/* Explo landing page. Night hero and footer (WebGL), product stories, travel tools.
   Satoshi only (a Futura-style geometric sans: the lettering of classic travel posters), never heavier than Medium (500). */

@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* day: the app's warm cream background with navy ink */
  --page: none;
  --page-end: var(--bg);
  --bg: #f7f7f2;
  --fg: #041122;
  --muted: #465260;
  --faint: #66707c;
  --border: rgba(2, 13, 27, 0.08);
  --border-2: rgba(2, 13, 27, 0.16);
  --card: #f7f7f2;
  --card-top: #f7f7f2;
  --soft: rgba(2, 13, 27, 0.06);
  --soft-2: rgba(2, 13, 27, 0.03);
  --card-shadow: 0 1px 2px rgba(2, 13, 27, 0.04), 0 18px 40px -22px rgba(2, 13, 27, 0.22);
  --card-inset: inset 0 1px 0 rgba(254, 254, 252, 0.9);

  --blue: #108ae1;
  --ok: #4a6400;
  --want: #108ae1;
  --lived: #d98a1f;
  --cream: #d8d8cb;

  /* The one accent: lime. Blue stays the want-to-go / map color.
     --accent-bright is the bright step for night surfaces (navy ink on it is 15:1; cream ink would be 1.1:1).
     --accent is the deep olive step for the cream page (5.8:1 on #f7f7f2), and flips to the bright one inside .night and the nav pill. */
  --accent-bright: #c6f24e;
  --accent-bright-hover: #d4f76e;
  --accent: #4a6400;
  --accent-hover: #364a00;
  --accent-fg: #d8d8cb;

  --radius: 28px;
  --maxw: 1200px;
}

/* Illustrations are navy and beige only: inside the tools grid the accent tokens are navy tints. */
.bento { --blue: #020d1b; --want: #020d1b; --ok: #020d1b; --lived: #6f7168; --accent: #020d1b; --accent-fg: #d8d8cb; }

/* The page is light only. Hero and footer are night frames. */
.night {
  --fg: #d8d8cb;
  --muted: #a8a99d;
  --faint: #76786e;
  --border: rgba(216, 216, 203, 0.12);
  --border-2: rgba(216, 216, 203, 0.22);
  --card: rgba(216, 216, 203, 0.05);
  --soft: rgba(216, 216, 203, 0.08);
  --accent: var(--accent-bright);
  --accent-hover: var(--accent-bright-hover);
  --accent-fg: #020d1b;
  color: var(--fg);
  color-scheme: dark;
}
.nav-pill { --accent: var(--accent-bright); --accent-hover: var(--accent-bright-hover); --accent-fg: #020d1b; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { accent-color: var(--accent); }
::selection { background: var(--accent-bright); color: #020d1b; }
body {
  margin: 0;
  background: var(--page) no-repeat;
  background-color: var(--page-end);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, b, strong, th { font-weight: 500; }
svg { display: block; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 90px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* primary: a flat lime pill with navy ink. secondary: a plain outline in cream (never pure white).
   Navy on #c6f24e is 15:1 and gets stronger on hover, so hover goes lighter. */
.btn-accent { background: var(--accent-bright); color: #020d1b; }
.btn-accent:hover { background: var(--accent-bright-hover); }
.btn-accent svg { transition: transform 0.2s ease; }
.btn-accent:hover svg { transform: translateX(2px); }
.btn-ghost { color: #d8d8cb; border-color: rgba(216, 216, 203, 0.32); }
.btn-ghost:hover { background: rgba(216, 216, 203, 0.09); border-color: rgba(216, 216, 203, 0.5); }

/* ───────── floating nav ───────── */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(1, 18, 39, 0.62); color: #d8d8cb;
  border: 1px solid rgba(160, 200, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(216, 216, 203, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.logo { width: 24px; height: 24px; background: currentColor; -webkit-mask: url("img/explo-symbol.svg") center / contain no-repeat; mask: url("img/explo-symbol.svg") center / contain no-repeat; }
.links { display: flex; gap: 2px; margin: 0 8px 0 18px; }
.links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: rgba(216, 216, 203, 0.72); transition: color 0.15s ease, background-color 0.15s ease; }
.links a:hover { color: #d8d8cb; background: rgba(216, 216, 203, 0.07); }

/* ───────── night frames (hero, footer) ───────── */
.frame { margin: 10px; border-radius: 36px; overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 0%, #071c34 0%, #041428 32%, #020d1b 62%, #010913 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 200, 255, 0.08); }

/* ───────── hero ───────── */
.hero { min-height: max(900px, 104svh); display: flex; flex-direction: column; align-items: center; text-align: center; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; cursor: grab; }
#globe.dragging { cursor: grabbing; }
#globe.over { cursor: pointer; }
.hero-copy { position: relative; z-index: 2; padding: 132px 24px 0; max-width: 1180px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 14px; color: var(--muted); background: rgba(216, 216, 203,.05); border: 1px solid var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.22); }
.hero h1 { margin-top: 24px; font-size: clamp(52px, 9.5vw, 148px); line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
/* The other ten translations of the claim are longer than "Every trip. Kept.", so they get a smaller size to stay on one line on desktop. */
html:not([lang="en"]) .hero h1 { font-size: clamp(40px, 7.2vw, 112px); }
.hero h1 span { display: inline-block; background: linear-gradient(180deg, #d8d8cb 30%, #a9aa9e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.24em; margin-bottom: -0.18em; }
.hero .lead { margin: 26px auto 0; max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.globe-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.g-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; white-space: nowrap; font-size: 13.5px; color: #d8d8cb;
  background: rgba(2, 13, 27, 0.6); border: 1px solid rgba(216, 216, 203, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); opacity: 0; will-change: transform, opacity; }
.g-label::after { content: ""; position: absolute; left: calc(50% + var(--sx, 0px)); bottom: -12px; width: 1px; height: 12px; background: linear-gradient(rgba(216,216,203,.5), transparent); }
.g-label i { width: 8px; height: 8px; border-radius: 50%; background: #ecebe1; box-shadow: 0 0 0 3px rgba(236,235,225,.16); }
.g-label i.want { background: transparent; box-shadow: inset 0 0 0 2px #9a9b8f; }
.g-label small { color: rgba(216, 216, 203, 0.6); font-size: 12.5px; }
.globe-tip { position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none; padding: 7px 12px; border-radius: 10px; font-size: 13px; background: #d8d8cb; color: #011025; opacity: 0; transition: opacity .12s ease; white-space: nowrap; }
.globe-tip.show { opacity: 1; }
.globe-tip small { color: #4b5d73; margin-left: 6px; }
.globe-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: #d8d8cb;
  background: rgba(2, 13, 27, 0.6); border: 1px solid rgba(216, 216, 203, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); white-space: nowrap; }
.globe-hint svg { width: 16px; height: 16px; opacity: .8; }
.globe-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: #ecebe1; display: none; }
.globe-hint.toast .dot { display: block; }
.globe-hint.toast .dot.want { background: transparent; box-shadow: inset 0 0 0 2px #9a9b8f; }
.globe-hint.toast .dot.none { background: transparent; box-shadow: inset 0 0 0 1.5px #6f7168; }
.globe-hint.toast svg { display: none; }
.no-webgl #globe, .no-webgl .globe-hint { display: none; }
.no-webgl .hero { background-image: radial-gradient(60% 50% at 50% 100%, rgba(216,216,203,.12), transparent 70%); }

/* ───────── hero: the pinned rise, the headline, the boarding pass (webgl.js initGlobe drives all three) ─────────
   #hero-run is taller than the screen; the night frame sticks while you scroll the extra 80svh, and the globe rises from a
   dome under the copy into a whole planet. No WebGL or reduced motion: no pin, the hero is a plain frame again. */
.js .hero-run { height: 180svh; }
.js .hero-run > .hero { position: sticky; top: 10px; height: calc(100svh - 20px); min-height: 640px; }
.no-webgl .hero-run { height: auto; }
.no-webgl .hero-run > .hero { position: relative; top: 0; height: auto; min-height: max(900px, 104svh); }
.hero.risen .hero-copy a { pointer-events: none; }
.webgl .globe-hint { transition: opacity .6s ease; }
.webgl .globe-hint:not(.on):not(.toast) { opacity: 0; } /* the drag hint waits until the journey has played */

.js .hero .eyebrow, .js .hero h1 span, .js .hero .lead, .js .hero .cta-row { animation: heroIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
.js .hero h1 .h-been { animation-delay: .12s; }
.js .hero h1 .h-next { animation-delay: .26s; }
.js .hero .lead { animation-delay: .42s; }
.js .hero .cta-row { animation-delay: .54s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } }

/* the boarding pass: bottom right, opposite the counter. The notches mark the tear-off line above the stub. */
.trip { position: absolute; z-index: 3; right: 32px; bottom: 26px; width: 304px; padding: 15px 18px 13px; border-radius: 22px; border: 0; text-align: left; font: inherit; color: #d8d8cb; cursor: pointer; isolation: isolate;
  background: rgba(6, 24, 46, 0.78);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(216, 216, 203, 0.12);
  -webkit-mask: radial-gradient(circle 8px at 0 calc(100% - 44px), #0000 95%, #000), radial-gradient(circle 8px at 100% calc(100% - 44px), #0000 95%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.trip.on { opacity: 1; transform: none; }
.trip:hover { box-shadow: inset 0 0 0 1px rgba(216, 216, 203, 0.24); }
.trip:focus-visible { outline: 2px solid #d8d8cb; outline-offset: 3px; }
.trip-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; line-height: 1; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(216, 216, 203, 0.55); }
.trip-k { display: inline-flex; align-items: center; gap: 8px; }
.trip-k i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #d8d8cb; }
.trip-k i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(216, 216, 203, 0.5); animation: tripPing 2.4s ease-out infinite; }
.trip-i { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.trip-route { display: grid; grid-template-columns: auto 1fr auto; align-items: start; margin-top: 13px; }
.trip-end { display: block; min-width: 0; }
.trip-end small { display: block; margin-top: 7px; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.trip-end.r { text-align: right; }
.trip-end.r small { margin-left: auto; }
.flap { display: flex; gap: 3px; font-weight: 500; }
.trip-end.r .flap { justify-content: flex-end; }
.flap span { display: grid; place-items: center; width: 23px; height: 31px; border-radius: 5px; font-size: 19px; line-height: 1; color: #e2e1d5; transform-origin: 50% 50%;
  background: linear-gradient(180deg, rgba(216, 216, 203, 0.11) 0 49%, rgba(0, 6, 12, 0.7) 49% 52%, rgba(216, 216, 203, 0.07) 52%);
  box-shadow: inset 0 1px 0 rgba(216, 216, 203, 0.12), 0 2px 6px -2px rgba(0, 0, 0, 0.5); }
.flap span.flip { animation: flapFlip .055s linear; }
.trip-path { position: relative; height: 31px; margin: 0 10px; }
.trip-path i { position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed rgba(216, 216, 203, 0.28); }
.trip-path svg { position: absolute; top: 50%; left: calc(var(--prog, 0) * (100% - 17px)); width: 17px; height: 17px; fill: #d8d8cb; transform: translateY(-50%) rotate(90deg); }
.trip-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 31px; margin-top: 12px; padding-top: 11px; border-top: 1.5px dashed rgba(216, 216, 203, 0.16); font-size: 13px; white-space: nowrap; }
.trip-foot [data-trip-meta] { color: var(--muted); font-variant-numeric: tabular-nums; }
.trip .in { animation: tripSwap .45s cubic-bezier(.2,.8,.2,1) both; }
.trip-empty { display: none; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.trip.empty { -webkit-mask: none; mask: none; }
.trip.empty .trip-route, .trip.empty .trip-foot, .trip.empty .trip-i { display: none; }
.trip.empty .trip-empty { display: block; }
.no-webgl .trip { display: none; }
.g-label.g-trip { gap: 7px; padding: 0 12px 0 11px; background: #d8d8cb; color: #020d1b; border-color: transparent; }
.g-label.g-trip b { font-weight: 500; letter-spacing: 0.04em; }
.g-label.g-trip small { color: rgba(2, 13, 27, 0.55); }
.g-label.g-trip::after { background: linear-gradient(#d8d8cb, transparent); }
@keyframes flapFlip { from { transform: scaleY(0.4); } }
@keyframes tripSwap { from { opacity: 0; transform: translateY(5px); } }
@keyframes tripPing { 0% { transform: scale(0.6); opacity: 1; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

@media (max-width: 1020px) {
  .trip { right: 20px; bottom: 20px; width: 288px; }
  .hero .globe-stats { left: 20px; bottom: 20px; width: 324px; padding: 20px 22px 18px; transform: translateY(10px); }
  .hero .globe-stats.show { transform: none; }
  .globe-hint { bottom: 196px; }
  .globe-hint:not(.toast) { opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) {
  .js .hero-run > .hero { top: 6px; height: calc(100svh - 12px); min-height: 600px; }
  /* two compact cards side by side at the bottom; the drag hint only shows up as the "marked" toast */
  .hero .globe-stats { left: 12px; right: auto; bottom: 12px; width: calc(50% - 18px); padding: 13px 14px 12px; border-radius: 20px; transform: translateY(10px); }
  .hero .globe-stats.show { transform: none; }
  .hero .globe-stats .gs-ring, .hero .globe-stats .gs-legend, .hero .globe-stats .gs-delta { display: none; }
  .hero .globe-stats .gs-label { font-size: 10.5px; color: rgba(216, 216, 203, 0.8); }
  .hero .globe-stats .gs-main { margin-top: 9px; }
  .hero .globe-stats .gs-n { font-size: 52px; }
  .hero .globe-stats .gs-of { font-size: 16px; }
  /* the dome is small under the copy on a phone: the cards wait until the planet has risen */
  .hero:not(.risen) .globe-stats.show, .hero:not(.risen) .trip.on { opacity: 0; transform: translateY(14px); pointer-events: none; }
  .trip { right: 12px; bottom: 12px; width: calc(50% - 18px); padding: 13px 14px 11px; border-radius: 20px; -webkit-mask: none; mask: none; }
  .trip-head { font-size: 10px; }
  .trip-route { margin-top: 11px; }
  .flap { gap: 2px; }
  .flap span { width: 17px; height: 24px; font-size: 14.5px; border-radius: 4px; }
  .trip-path { height: 24px; margin: 0 5px; }
  .trip-path svg { width: 13px; height: 13px; left: calc(var(--prog, 0) * (100% - 13px)); }
  .trip-end small, .trip-foot [data-trip-meta] { display: none; }
  .trip-foot { height: auto; margin-top: 9px; padding-top: 8px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .globe-hint { bottom: 150px; }
  .globe-hint:not(.toast) { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-run { height: auto; }
  .js .hero-run > .hero { position: relative; top: 0; height: auto; min-height: max(900px, 104svh); }
  .trip-k i::after { animation: none !important; }
}

/* ───────── section heads ───────── */
.section { padding: 130px 0; position: relative; }
.head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.head h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.0; letter-spacing: -0.045em; text-wrap: balance; }
.head p { margin: 22px auto 0; max-width: 560px; color: var(--muted); font-size: 19px; text-wrap: balance; }

/* ───────── cards ───────── */
.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-top), var(--card));
  border: 1px solid var(--border);
  box-shadow: var(--card-inset), var(--card-shadow);
}

/* ───────── stories: stacked sticky cards with the real app ───────── */
.stories { display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; }
.story {
  position: sticky; top: calc(96px + var(--i) * 14px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: 600px; padding: 0 64px; overflow: hidden; border-radius: 40px;
  color: #d8d8cb;
  background: radial-gradient(90% 120% at 100% 0%, #0c233e 0%, #08182a 38%, #03101e 70%, #010b17 100%);
  border: 1px solid rgba(216, 216, 203, 0.12);
  box-shadow: inset 0 1px 0 rgba(216, 216, 203,.06), 0 40px 80px -40px rgba(0, 5, 14, 0.7);
}
.story > * { position: relative; }
.story.alt { grid-template-columns: 1fr 1.05fr; }
.story.alt .story-copy { order: 2; }
.story-copy { padding: 64px 0; max-width: 520px; }
.story-num { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--accent-bright); }
.story h3 { margin-top: 22px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.0; letter-spacing: -0.045em; }
.story h3 span { display: block; color: #a8a99d; }
.story p { margin-top: 24px; font-size: 18px; color: #b3b4a8; max-width: 440px; }
.story ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.story li { height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: #d8d8cb; background: rgba(216, 216, 203,.06); border: 1px solid rgba(216,216,203,.14); }
.story li svg { width: 16px; height: 16px; flex: none; margin-left: -3px; fill: none; stroke: var(--c, #ecebe1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story li svg.fill { fill: var(--c, #ecebe1); }
.phone-wrap { align-self: end; display: flex; justify-content: center; padding-top: 56px; }
.story.alt .phone-wrap { order: 1; }
.phone {
  width: 330px; aspect-ratio: 1206 / 2622; padding: 11px; border-radius: 56px; margin-bottom: -150px;
  background: linear-gradient(150deg, #3a4556 0%, #121f32 40%, #08111d 100%);
  box-shadow: inset 0 0 0 1.5px rgba(216, 216, 203,.14), inset 0 0 0 5px #040912, 0 50px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.5);
  transform: rotate(var(--tilt, 0deg)); transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 46px; }
.story:hover .phone { transform: rotate(0deg) translateY(-8px); }

/* ───────── bento: travel tools ───────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 28px; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.tile h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
.tile > p { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 420px; }
.tile .viz { margin-top: auto; padding-top: 26px; }
.t-visa { grid-column: span 3; grid-row: span 2; }
.t-visa .viz { padding-top: 36px; }
.t-globe { grid-column: span 3; grid-row: span 2; }
.t-share, .t-sync, .t-native { grid-column: span 2; min-height: 280px; }
.tile .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.tint { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.tile > *:not(.tint) { position: relative; }

.vrow { display: grid; grid-template-columns: 104px 1fr 40px; align-items: center; gap: 14px; margin-top: 14px; font-size: 15px; }
.vrow .n { color: var(--muted); }
.vrow .bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.vrow .bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); opacity: var(--o, 1); }
.vrow .v { text-align: right; font-variant-numeric: tabular-nums; }
.visa-big { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; }
.visa-big b { font-size: clamp(64px, 7vw, 96px); letter-spacing: -0.05em; line-height: 1; }
.visa-big span { color: var(--muted); font-size: 17px; }


/* ───────── faq ───────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .head { text-align: left; margin: 0; position: sticky; top: 120px; }
.faq-grid .head p { margin-left: 0; }
.faq { overflow: hidden; }
.faq details { border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; font-size: 18px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 28px 24px; color: var(--muted); font-size: 16px; max-width: 620px; }

/* ───────── footer ───────── */
.foot { padding: 120px 0 0; margin-top: 40px; }
.foot-cta { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.foot-cta h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.05em; }
.foot-cta p { margin: 22px auto 0; max-width: 520px; color: var(--muted); font-size: 19px; }
.wordmark { --bleed: 0.34; --bleed-frac: calc(var(--bleed) / (1 + var(--bleed))); position: relative; margin-top: 70px; aspect-ratio: 1200 / 430; width: 100%; }
/* The terrain canvas rises above the wordmark box by --bleed of its height, so the lines run on behind the call to action
   and melt away at the top, instead of stopping on a hard edge. webgl.js reads the difference from the layout. */
#topo-mark { position: absolute; left: 0; top: calc(var(--bleed) * -100%); width: 100%; height: calc(100% * (1 + var(--bleed))); display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.18) calc(var(--bleed-frac) * 45%), rgba(0, 0, 0, 0.62) calc(var(--bleed-frac) * 78%), #000 calc(var(--bleed-frac) * 100%));
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.18) calc(var(--bleed-frac) * 45%), rgba(0, 0, 0, 0.62) calc(var(--bleed-frac) * 78%), #000 calc(var(--bleed-frac) * 100%)); }
@media (max-width: 760px) { .wordmark { --bleed: 0.52; } } /* the box is short on a phone, so let the terrain climb further */
.wordmark .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30vw; line-height: 1; letter-spacing: -0.06em; color: rgba(216, 216, 203, 0.08); }
.webgl .wordmark .fallback { display: none; }
.foot-bottom { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 36px 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14.5px; }
.foot-bottom nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-bottom nav a:hover { color: var(--fg); }

/* ───────── reveal ───────── */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* ───────── responsive ───────── */
@media (max-width: 1020px) {
  .story, .story.alt { grid-template-columns: 1fr; padding: 0 32px; min-height: 0; gap: 0; }
  .story.alt .story-copy, .story.alt .phone-wrap { order: 0; }
  .story-copy { padding: 52px 0 0; }
  .phone { width: 280px; margin-bottom: -130px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-visa, .t-globe { grid-column: span 2; grid-row: auto; }
  .t-share, .t-sync { grid-column: span 1; }
  .t-native { grid-column: span 2; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .head { position: static; text-align: center; }
  .faq-grid .head p { margin-left: auto; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .nav-pill { padding: 0 6px 0 16px; }
  .section { padding: 90px 0; }
  .hero-copy { padding-top: 120px; }
  .frame { margin: 6px; border-radius: 28px; }
  .story { border-radius: 30px; padding: 0 22px; top: calc(80px + var(--i) * 10px); }
  .phone { width: 240px; margin-bottom: -110px; border-radius: 44px; padding: 9px; }
  .phone img { border-radius: 36px; }
  .bento { grid-template-columns: 1fr; }
  .t-visa, .t-globe, .t-share, .t-sync, .t-native { grid-column: auto; }
  .tile { padding: 22px; }
  .vrow { grid-template-columns: 86px 1fr 34px; }
  .foot-bottom { padding: 22px 22px 28px; }
  .globe-hint { bottom: 18px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
