/* Xplrearth home: adapted from the AnimatedWebs "Civic Ledger" globe template
   (layout, type and motion system kept; brand, copy and palette are Xplrearth's). */
:root {
  --bg: #05101e;
  --bg-2: #081a30;
  --text: #e0f2f1;
  --muted: #9fb3c8;
  --line: rgba(224, 242, 241, .12);
  --accent: #4c8df6;      /* trail blue: primary actions, uncovered areas */
  --amber: #f5a524;       /* waypoints, sparingly */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Poppins', system-ui, sans-serif;
  --mono: 'Fira Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .05em; }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px 32px; transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 16, 30, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.nav nav { margin-left: auto; display: flex; gap: 26px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* hero: 250vh scroller with a sticky 100vh stage */
.hero { position: relative; height: 250vh; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; display: none; background: radial-gradient(60% 60% at 60% 50%, #12305a 0%, #0a1d36 45%, var(--bg) 75%); }
.no-webgl .stage-fallback { display: block; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 48% 46% at 22% 74%, rgba(5, 16, 30, .86) 0%, rgba(5, 16, 30, .5) 55%, transparent 100%), linear-gradient(0deg, var(--bg) 0%, transparent 18%); }
.hero-copy { position: absolute; z-index: 2; left: max(24px, calc((100vw - 1180px) / 2)); bottom: 12vh; width: min(720px, calc(100vw - 48px)); }
.ticker { color: var(--accent); margin: 0 0 18px; }
h1 { font-weight: 600; font-size: clamp(36px, 5.4vw, 70px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 20px; }
h1 .line { display: block; overflow: hidden; }
.lede { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.btn.solid { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(76, 141, 246, .35); }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(76, 141, 246, .5); }
.btn.ghost { color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(224, 242, 241, .06); }
.hint { color: var(--muted); margin: 26px 0 0; opacity: .8; }
.tooltip { position: absolute; z-index: 3; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: rgba(8, 26, 48, .92); border: 1px solid var(--line); font-size: 13px; transform: translate(-50%, -140%); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.tooltip.on { opacity: 1; }

/* panel (enters as the camera pulls back) */
.panel { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1180px) / 2)); top: 50%; width: 300px; padding: 22px; border-radius: 18px; background: rgba(8, 26, 48, .82); border: 1px solid var(--line); backdrop-filter: blur(14px); transform: translate(40px, -50%); opacity: 0; transition: transform .9s var(--ease), opacity .6s var(--ease); }
.panel.on { transform: translate(0, -50%); opacity: 1; }
.panel h2 { margin: 0; font-size: 17px; font-weight: 600; }
.panel-sub { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.curve { width: 100%; height: auto; overflow: visible; }
.curve .grid { stroke: rgba(224, 242, 241, .08); stroke-width: 1; }
.curve .axis { fill: var(--muted); font: 10px var(--mono); }
.curve .area { fill: var(--accent); opacity: .1; }
.curve .path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.curve .pt { fill: var(--accent); stroke: #081a30; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.panel.on .pt { animation: pop .4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.curve .end { fill: var(--text); font: 600 11px var(--display); }
.table-view { margin-top: 10px; font-size: 13px; color: var(--muted); }
.table-view summary { cursor: pointer; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table-view td, .table-view th { text-align: left; padding: 3px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* sections */
section:not(.hero) { padding: 120px 0; position: relative; }
h2 { font-weight: 600; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 14px; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 48px; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; max-width: 760px; counter-reset: step; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--amber)); opacity: .35; }
.row { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 22px; padding: 18px 0; }
.row .dot { width: 16px; height: 16px; margin: 6px 0 0 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(76, 141, 246, .18); position: relative; }
.row[data-kind='amber'] .dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(245, 165, 36, .18); }
.row h3::before { content: counter(step) '. '; color: var(--muted); font-weight: 400; }
.row p { color: var(--muted); max-width: 620px; }
.reveal { opacity: 0; transform: translateX(40px); transition: opacity .4s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* tour */
.tour { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.tour-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.features { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 40px; }
.features button { text-align: left; border: 0; background: transparent; color: var(--text); padding: 14px 18px; border-radius: 14px; cursor: pointer; display: grid; gap: 2px; border-left: 2px solid transparent; transition: background .25s, border-color .25s; font: inherit; }
.features button span { color: var(--muted); font-size: 15px; }
.features button:hover { background: rgba(224, 242, 241, .04); }
.features button[aria-selected='true'] { background: rgba(76, 141, 246, .1); border-left-color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 4px 0 0; font-size: 30px; font-weight: 600; }
.phone { margin: 0 auto; width: min(320px, 80vw); aspect-ratio: 540 / 1056; border-radius: 42px; padding: 10px; background: #0d1b2e; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset; position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.phone img.swap { opacity: 0; transform: scale(.98); }

/* privacy legend */
.legend { list-style: none; margin: 0; padding: 26px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 40px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 26, 48, .5); }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.legend p { color: var(--muted); }


/* faq */
.faq details { max-width: 760px; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 640px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; position: relative; overflow: hidden; }
.foot-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .muted { margin-top: 10px; }
.copy { color: var(--muted); font-size: 13px; margin-top: 32px; }

/* entrance: headline lines */
.hero-copy .line > span, .hero-copy .ticker, .hero-copy .lede, .hero-copy .ctas, .hero-copy .hint { display: block; animation: lineIn .9s var(--ease) both; }
.hero-copy .ticker { animation-delay: .05s; } .hero-copy .line:nth-child(1) > span { animation-delay: .12s; } .hero-copy .line:nth-child(2) > span { animation-delay: .2s; }
.hero-copy .lede { animation-delay: .3s; } .hero-copy .ctas { animation-delay: .38s; display: flex; } .hero-copy .hint { animation-delay: .5s; }
@keyframes lineIn { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 14px 18px; } .nav nav { display: none; }
  .hero { height: auto; }
  .stage { position: relative; height: auto; min-height: 100vh; display: flex; flex-direction: column; }
  #globe, .stage-fallback { position: relative; height: 60vh; flex: none; }
  .stage::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 30%); height: 60vh; }
  .hero-copy { position: relative; left: auto; bottom: auto; width: auto; padding: 0 24px 40px; margin-top: -60px; }
  .panel { position: relative; inset: auto; width: auto; margin: 0 24px 40px; transform: none; opacity: 1; }
  .panel.on { transform: none; }
  .hero-copy .hint { display: none; }
  .lede { font-size: 16px; }
  section:not(.hero) { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* store buttons */
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .22); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 17px; }
.store small { font-weight: 400; font-size: 11px; opacity: .8; }
a.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.store.soon { opacity: .55; cursor: default; }
.hero-copy .stores { animation: lineIn .9s .34s var(--ease) both; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* statement: words clear from fog as you scroll */
.statement { padding: 16vh 0 !important; }
.fogtext { width: min(1080px, 100% - 48px); margin: 0 auto; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.18; font-weight: 600; letter-spacing: -.01em; }
.fogtext .w { display: inline-block; margin-right: .26em; color: rgba(224, 242, 241, .14); filter: blur(6px); transition: color .5s var(--ease), filter .6s var(--ease); }
.fogtext .w.clear { color: var(--text); filter: none; }
.fogtext .w.hl.clear { color: var(--accent); }

/* languages marquee */
.langs { padding: 28px 0 !important; border-block: 1px solid var(--line); overflow: hidden; }
.marquee { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(22px, 3vw, 36px); font-weight: 600; color: var(--muted); }
.track span:nth-child(7n+2) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3D phone */
.tour-grid { perspective: 1200px; }
.phone { transform-style: preserve-3d; transition: transform .6s var(--ease); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.phone::after { content: ''; position: absolute; inset: auto 10% -40px; height: 60px; border-radius: 50%; background: radial-gradient(rgba(76, 141, 246, .35), transparent 70%); filter: blur(12px); z-index: -1; }

/* closer */
.closer { text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(76, 141, 246, .22), transparent 70%); }
.closer-inner { display: flex; flex-direction: column; align-items: center; }
.closer .section-lede { margin: 0 auto 30px; }
.closer h2 { font-size: clamp(32px, 4.6vw, 58px); }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .phone { animation: none; } .fogtext .w { color: var(--text); filter: none; } }

/* headline: letters clear from fog */
#hero-title .word { display: inline-block; white-space: nowrap; }
#hero-title.fogged .ch { display: inline-block; animation: chClear 1.1s var(--ease) var(--d) both; }
@keyframes chClear { from { opacity: 0; filter: blur(14px); transform: translateY(.18em) scale(1.08); } 60% { opacity: 1; } to { opacity: 1; filter: none; transform: none; } }
#hero-title .line > span { animation: none; }

/* privacy legend: board with a pointer glow, animated symbols */
.legend { position: relative; overflow: hidden; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(76, 141, 246, .14), transparent 60%), linear-gradient(180deg, rgba(8, 26, 48, .7), rgba(8, 26, 48, .45)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
.legend::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(224, 242, 241, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(224, 242, 241, .05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 80%); mask: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
.legend li { position: relative; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease) calc(var(--i, 0) * 90ms), transform .7s var(--ease) calc(var(--i, 0) * 90ms); }
.legend.in li { opacity: 1; transform: none; }
.legend li:hover .sym { transform: scale(1.12); }
svg.sym { width: 40px; height: 40px; margin-top: -4px; overflow: visible; transition: transform .35s var(--ease); }
.legend li { grid-template-columns: 46px 1fr; }
.sym .draw { stroke-dashoffset: 120; }
.legend.in .sym .draw { animation: dash 2.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.legend.in .sym .phone-dot { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.sym .cells rect { fill: #4c8df6; opacity: .12; }
.legend.in .sym .cells rect { animation: cell 3.6s ease-in-out infinite; animation-delay: calc(var(--k) * 140ms); }
@keyframes cell { 0%, 15% { opacity: .12; } 35%, 80% { opacity: .85; } 100% { opacity: .12; } }
.sym .zone { fill: rgba(224, 242, 241, .08); stroke: rgba(224, 242, 241, .5); stroke-width: 1.5; stroke-dasharray: 3 3; transform-origin: 20px 21px; }
.legend.in .sym .z2 { animation: zone 2.6s ease-out infinite; fill: none; }
@keyframes zone { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.sym .rough { fill: rgba(245, 165, 36, .12); stroke: rgba(245, 165, 36, .5); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sym .ping { fill: none; stroke: #f5a524; stroke-width: 2; transform-origin: 20px 20px; }
.legend.in .sym .ping { animation: ping2 2s ease-out infinite; }
@keyframes ping2 { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.sym .slash { stroke-dasharray: 30; stroke-dashoffset: 30; }
.sym .ring { stroke-dasharray: 90; stroke-dashoffset: 90; }
.legend.in .sym .ring { transition: stroke-dashoffset .9s var(--ease) .5s; stroke-dashoffset: 0; }
.legend.in .sym .slash { transition: stroke-dashoffset .5s var(--ease) 1.3s; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .legend li { opacity: 1; transform: none; } .sym .slash, .sym .ring { stroke-dashoffset: 0; } }

/* how it works: scroll fills the line, dots light up, the section's fog thins */
.how { overflow: hidden; }
.how::before { content: ''; position: absolute; inset: -10%; pointer-events: none; opacity: calc(.9 - var(--fill, 0) * .85);
  background: radial-gradient(40% 30% at 20% 30%, rgba(200, 215, 235, .10), transparent 70%), radial-gradient(35% 28% at 75% 60%, rgba(200, 215, 235, .09), transparent 70%), radial-gradient(30% 25% at 45% 90%, rgba(200, 215, 235, .08), transparent 70%);
  filter: blur(18px); animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift2 { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
.timeline::before { opacity: .18; }
.timeline::after { content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--amber)); transform-origin: top; transform: scaleY(var(--fill, 0)); box-shadow: 0 0 12px rgba(76, 141, 246, .6); }
.row .dot { transition: transform .4s var(--ease), box-shadow .4s; background: #1a2d47; box-shadow: 0 0 0 5px rgba(224, 242, 241, .06); }
.row.lit .dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(76, 141, 246, .22); transform: scale(1.15); }
.row[data-kind='amber'].lit .dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(245, 165, 36, .22); }
.row .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.row[data-kind='amber'] .dot::after { border-color: var(--amber); }
.row.lit .dot::after { animation: ripple 1.2s var(--ease) 1; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.row h3, .row p { transition: color .5s var(--ease); }
.row:not(.lit) h3 { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .how::before { animation: none; } .timeline::after { transform: none; } }

/* rotating verb: departures-board flip, moving route gradient, a smooth route line underneath */
#hero-title .rot { position: relative; display: inline-grid; vertical-align: bottom; transition: width .55s var(--ease); white-space: nowrap; perspective: 600px; padding-bottom: .08em; }
#hero-title .rw { grid-area: 1 / 1; display: inline-block; white-space: nowrap; justify-self: start; width: max-content; }
#hero-title .rw:not(.on):not(.off) { visibility: hidden; }
#hero-title .fl { display: inline-block; transform-origin: 50% 60% -0.2em; backface-visibility: hidden;
  background: linear-gradient(90deg, #7fb2ff, #6f8dff, #9b7bff, #d27bff, #ff79c6, #ff9fd8, #7fb2ff); background-size: calc(var(--n) * 100%) 100%;
  background-position: calc(var(--j) / max(1, var(--n) - 1) * 100%) 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: routeHue 6s linear infinite; }
@keyframes routeHue { to { background-position: calc(var(--j) / max(1, var(--n) - 1) * 100% - 100% * var(--n)) 0; } }
#hero-title .rw.on .fl { animation: flipIn .75s cubic-bezier(.2, 1.2, .3, 1) both, routeHue 6s linear infinite; animation-delay: calc(var(--j) * 45ms), 0s; }
#hero-title .rw.off .fl { animation: flipOut .5s cubic-bezier(.5, 0, .75, 0) both; animation-delay: calc(var(--j) * 30ms); }
@keyframes flipIn { from { opacity: 0; transform: rotateX(-95deg) translateY(.15em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes flipOut { to { opacity: 0; transform: rotateX(90deg) translateY(-.15em); filter: blur(4px); } }
#hero-title .route { position: absolute; left: 0; right: 0; bottom: 0; height: .12em; pointer-events: none; }
#hero-title .route::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, rgba(127, 178, 255, .15), #7fb2ff 20%, #9b7bff 55%, #ff79c6); box-shadow: 0 0 10px rgba(155, 123, 255, .45); transform-origin: left; transform: scaleX(0); }
#hero-title .route i { position: absolute; top: 50%; left: 0; width: .16em; height: .16em; margin: -.08em 0 0 -.08em; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 .06em rgba(245, 165, 36, .3), 0 0 18px rgba(245, 165, 36, .95); opacity: 0; }
#hero-title .rot.draw .route::before { animation: drawRoute .9s var(--ease) .25s both; }
#hero-title .rot.draw .route i { animation: walk 1.1s var(--ease) .25s both; }
@keyframes drawRoute { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes walk { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
#hero-title .stop { display: inline-block; }
#hero-title.fogged .stop { animation: chClear .8s var(--ease) 1.2s both; }
@media (prefers-reduced-motion: reduce) { #hero-title .rw:not(.on) { display: none; } #hero-title .fl { animation: none; } #hero-title .route::before { transform: none; } }

/* language picker (assets/i18n.js) */
.lang-slot { display: flex; }
@media (max-width: 768px) { .lang-slot { margin-left: auto; } }

/* privacy board: full policy as a button */
.more { margin-top: 30px; }
.policy-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; background: linear-gradient(180deg, rgba(14, 36, 64, .85), rgba(8, 22, 40, .85)); box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s; }
/* gradient border that slowly travels round */
.policy-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--pb-a, 0deg), rgba(127, 178, 255, .9), rgba(155, 123, 255, .5), rgba(255, 121, 198, .8), rgba(127, 178, 255, .2), rgba(127, 178, 255, .9)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: pbSpin 6s linear infinite; }
/* sheen that sweeps across on hover */
.policy-btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.policy-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(76, 141, 246, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.policy-btn:hover::after { left: 120%; }
.pb-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #4c8df6, #9b7bff); box-shadow: 0 0 0 4px rgba(76, 141, 246, .15), 0 6px 18px rgba(76, 141, 246, .45); }
.policy-btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pb-icon svg { width: 19px; height: 19px; color: #fff; }
.pb-icon svg path:last-child { stroke-dasharray: 12; stroke-dashoffset: 0; }
.policy-btn:hover .pb-icon svg path:last-child { animation: pbTick .6s var(--ease); }
.pb-arrow { width: 18px; height: 18px; color: var(--accent-strong, #7fb0ff); transition: transform .35s var(--ease); }
.policy-btn:hover .pb-arrow { transform: translateX(5px); }
@property --pb-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes pbSpin { to { --pb-a: 360deg; } }
@keyframes pbTick { from { stroke-dashoffset: 12; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .policy-btn::before, .policy-btn:hover .pb-icon svg path:last-child { animation: none; } .policy-btn::after { display: none; } }
