/* ==========================================================================
   AmanERP · Atlas
   Scroll is time of day: night → dawn → day → golden hour → dusk → night.
   Every value comes from the tokens below.
   ========================================================================== */

@property --sweep { syntax: '<percentage>'; inherits: false; initial-value: 100%; }

:root {
  /* palette: two temperatures, night and dawn */
  --night: #070B1C;
  --deep: #0E1834;
  --blue-hour: #1E2D59;
  --rose: #F2A7A0;
  --apricot: #FFC58A;
  --sun: #FFE3A3;
  --city: #FFE9C2;
  --sky: #EAF1FB;
  --noon: #F4F7FC;
  --paper: #FFFFFF;
  --ink: #0B1226;
  --muted: #8A93B2;
  --golden: #FBE7D3;

  /* roles (overridden per theme) */
  --bg: var(--night);
  --fg: #EAF1FB;
  --fg-2: #B8C0D9;
  --fg-3: #8A93B2;
  --line: rgb(234 241 251 / 0.14);
  --line-strong: rgb(234 241 251 / 0.28);
  --surface: #0E1834;
  --surface-2: #142045;
  --focus: var(--sun);

  /* type: 9 steps */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --fs-md: clamp(1.125rem, 1.04rem + 0.36vw, 1.3125rem);
  --fs-lg: clamp(1.3125rem, 1.14rem + 0.72vw, 1.75rem);
  --fs-xl: clamp(1.625rem, 1.3rem + 1.5vw, 2.625rem);
  --fs-2xl: clamp(2.125rem, 1.5rem + 2.9vw, 4rem);
  --fs-3xl: clamp(2.5rem, 1.2rem + 3.2vw, 4.5rem);
  --fs-4xl: clamp(3.25rem, 1.8rem + 5vw, 7.5rem);

  --font-display: 'Funnel Display', 'Funnel Sans', ui-sans-serif, system-ui, sans-serif;
  --font-text: 'Funnel Sans', 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-deva: 'Noto Sans Devanagari', 'Funnel Sans', sans-serif;

  /* space: 4-pt base */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;
  --section-y: clamp(3.5rem, 1.5rem + 3.5vw, 5.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 4rem);
  --container: 82.5rem;

  /* radii: two plus full */
  --r-1: 8px;
  --r-2: 18px;
  --r-full: 999px;

  /* elevation: two */
  --e-1: 0 1px 2px rgb(11 18 38 / 0.06), 0 6px 18px -8px rgb(11 18 38 / 0.12);
  --e-2: 0 2px 6px rgb(11 18 38 / 0.06), 0 30px 70px -24px rgb(11 18 38 / 0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

.theme-night { --bg: var(--night); --fg: #EAF1FB; --fg-2: #B8C0D9; --fg-3: #8A93B2; --line: rgb(234 241 251 / 0.14); --line-strong: rgb(234 241 251 / 0.3); --surface: #0E1834; --surface-2: #142045; --focus: var(--sun); color: var(--fg); }
.theme-day { --bg: var(--sky); --fg: var(--ink); --fg-2: #3F4A68; --fg-3: #56607E; --line: rgb(11 18 38 / 0.12); --line-strong: rgb(11 18 38 / 0.26); --surface: var(--paper); --surface-2: #F5F8FD; --focus: var(--ink); color: var(--fg); }
.theme-golden { --bg: var(--golden); --fg: var(--ink); --fg-2: #4A3F3C; --fg-3: #6A5A55; --line: rgb(11 18 38 / 0.14); --line-strong: rgb(11 18 38 / 0.28); --surface: #FFF8F1; --surface-2: #FFF3E6; --focus: var(--ink); color: var(--fg); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); color-scheme: dark light; scroll-padding-top: 5rem; }
html:not(.lenis) { scroll-behavior: smooth; }
html.reduced { scroll-behavior: auto; }
body {
  margin: 0; background: var(--night); color: var(--fg);
  font-family: var(--font-text); font-size: var(--fs-base); line-height: 1.6;
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
kbd { font-family: var(--font-mono); font-size: 0.8em; padding: 0.05em 0.4em; border-radius: 5px; border: 1px solid var(--line-strong); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.04; }
p, li, dd { text-wrap: pretty; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.tnum, .mono, td, .num, time, dd { font-variant-numeric: tabular-nums; }
.deva, [lang="hi"] { font-family: var(--font-deva); letter-spacing: 0 !important; }
[lang="ar"] { font-family: 'Noto Sans Arabic', var(--font-text); letter-spacing: 0; }
[lang="ja"] { font-family: 'Noto Sans JP', var(--font-text); letter-spacing: 0; }
[lang="zh"] { font-family: 'Noto Sans SC', var(--font-text); letter-spacing: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--sp-4); top: var(--sp-4); z-index: 100; padding: var(--sp-3) var(--sp-4); background: var(--sun); color: var(--ink); border-radius: var(--r-1); transform: translateY(-160%); transition: transform 0.2s var(--ease-out); }
.skip:focus { transform: none; }
html:not(.js) .js-only { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); background: var(--bg); }

.eyebrow { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.4; letter-spacing: 0.02em; color: var(--fg-3); margin-bottom: var(--sp-5); }
.eyebrow--night { color: var(--fg-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--sun { background: var(--sun); box-shadow: 0 0 0 3px rgb(255 227 163 / 0.16); }

.section__head { max-width: 46rem; margin-bottom: clamp(var(--sp-5), 3vw, var(--sp-7)); }
.section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-7); align-items: end; }
.section__title { font-size: var(--fs-2xl); }
.section__lede { font-size: var(--fs-md); line-height: 1.55; color: var(--fg-2); max-width: 38rem; margin-top: var(--sp-5); }
.section__head--split .section__lede { margin-top: 0; }

/* ---------------------------------------------------------------- status pills (neutral) */
.status { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1; white-space: nowrap; padding: 0.42em 0.7em; border-radius: var(--r-full); border: 1px solid var(--line-strong); color: var(--fg-2); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.status--avail::before, .status--launch::before { background: currentColor; }
.status--beta::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status--launch { color: var(--fg); }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-full); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; isolation: isolate; overflow: hidden; transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out); will-change: transform; }
.btn > span { position: relative; z-index: 1; }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); }
.btn--lg { min-height: 58px; padding: 0 var(--sp-7); font-size: var(--fs-base); }
.btn--sun { background: var(--sun); color: var(--ink); }
/* sunrise sweep: a warm horizon rises through the button */
.btn--sun::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, var(--rose) 0%, var(--apricot) 45%, var(--sun) 100%); transform: translateY(var(--sweep)); transition: --sweep 0.5s var(--ease-out); }
.btn--sun::before { transform: none; clip-path: inset(var(--sweep) 0 0 0); }
.btn--sun:hover::before, .btn--sun:focus-visible::before { --sweep: 0%; }
.btn--ghost { color: var(--fg); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--ink { background: var(--ink); color: var(--sky); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--nav-fg); --nav-fg: #EAF1FB; --nav-fg-2: #B8C0D9; --nav-bg: rgb(7 11 28 / 0); --nav-line: transparent; transition: color 0.4s var(--ease-out); }
.nav::before { content: ''; position: absolute; inset: 0; background: var(--nav-bg); border-bottom: 1px solid var(--nav-line); transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out); }
.nav { --nav-sky: 7 11 28; view-transition-name: site-nav; }
.nav.is-solid { --nav-bg: rgb(7 11 28 / 0.97); --nav-line: rgb(234 241 251 / 0.08); }
.nav[data-theme="day"] { --nav-fg: var(--ink); --nav-fg-2: #3F4A68; --focus: var(--ink); }
.nav { --focus: var(--sun); }
.nav[data-theme="day"].is-solid { --nav-bg: rgb(234 241 251 / 0.985); --nav-line: rgb(11 18 38 / 0.08); }
.nav[data-theme="day"] .btn--sun { background: var(--ink); color: var(--sky); }
.nav[data-theme="day"] .btn--sun::before { background: linear-gradient(0deg, #3A2F4A 0%, #1E2D59 60%, var(--ink) 100%); }
.nav__inner { position: relative; display: flex; align-items: center; gap: var(--sp-6); height: 72px; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brand__mark { width: 28px; height: 28px; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: var(--sp-6); margin-inline: auto; font-size: var(--fs-sm); }
.nav__links a { color: var(--nav-fg-2); text-decoration: none; padding-block: var(--sp-2); background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: color 0.2s, background-size 0.35s var(--ease-out); }
.nav__links a:hover { color: var(--nav-fg); background-size: 100% 1px; }
.nav__end { display: flex; align-items: center; gap: var(--sp-5); }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid currentColor; opacity: 0.9; place-items: center; }
.nav__menu-icon, .nav__menu-icon::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s var(--ease-out); }
.nav__menu-icon::before { content: ''; position: absolute; top: 5px; }
.nav__menu-icon { transform: translateY(-2.5px); }
.nav__menu[aria-expanded="true"] .nav__menu-icon { transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon::before { transform: translateY(-5px) rotate(-90deg); }

/* page time: a 24 h dial (noon at the top, midnight at the bottom) — the page's hour, not yours */
.dial { display: flex; align-items: center; gap: var(--sp-2); color: var(--nav-fg-2); }
.dial__face { width: 34px; height: 34px; overflow: visible; flex: none; }
.dial__day { fill: rgb(var(--nav-sky)); stroke: currentColor; stroke-opacity: 0.22; stroke-width: 1; transition: fill 0.3s linear; }
.dial__arc { fill: none; stroke: var(--apricot); stroke-opacity: 0.55; stroke-width: 1.4; }
.dial__ticks line { stroke: currentColor; stroke-opacity: 0.4; stroke-width: 1; }
.dial__ticks line.is-major { stroke-opacity: 0.85; stroke-width: 1.4; }
.dial__sun { fill: var(--apricot); stroke: var(--nav-bg-solid, transparent); }
.dial.is-night .dial__sun { fill: var(--city); opacity: 0.75; }
.dial__text { display: grid; font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.25; white-space: nowrap; }
.dial__k { opacity: 0.85; }
.dial__v { color: var(--nav-fg); }
#dial-time { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- globe canvas + slots */
/* distant stars stay put while the page scrolls: only the hero and the finale are transparent to them */
.starfield { position: fixed; inset: 0; z-index: 0; height: 100lvh; background: url('../assets/stars.webp') center / cover no-repeat; opacity: 0.75; pointer-events: none; }
.globe-canvas { position: fixed; inset: 0 auto auto 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; touch-action: pan-y; opacity: 0; transition: opacity 0.3s var(--ease-out); }
.globe-canvas.is-ready { opacity: 1; }
.globe-canvas.is-off { visibility: hidden; }
.is-dragging-globe, .is-dragging-globe * { cursor: grabbing !important; user-select: none; }
.globe-slot { position: absolute; border-radius: 50%; pointer-events: none; }
/* the instant dot map: same dots, same camera as the WebGL globe, drawn before three.js loads */
.globe-placeholder { position: absolute; max-width: none; left: calc(var(--pad) * -1); top: calc(var(--pad) * -1); width: calc(100% + var(--pad) * 2); height: calc(100% + var(--pad) * 2); transition: opacity 0.9s var(--ease-out); }
.globe-placeholder.is-gone { opacity: 0; }
/* static fallback: only fetched when WebGL (or JS) is unavailable */
.globe-fallback { position: absolute; pointer-events: none; display: none; background: center / contain no-repeat; }
html:not(.js) .globe-fallback:not(.globe-fallback--finale) { display: block; background-image: url('../assets/globe-fallback.webp'); }
html:not(.webgl) .globe-fallback--finale { display: block; background-image: url('../assets/globe-horizon.webp'); background-size: cover; background-position: center bottom; }
main, .footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: max(100svh, 44rem); display: grid; overflow: clip; }
/* the hero lets drags through to the globe canvas underneath; its controls and copy stay interactive */
main, .hero { pointer-events: none; }
main > :not(.hero), .hero a, .hero button, .hero [tabindex], .hero__copy { pointer-events: auto; }
.js:not(.reduced) .hero__line, .js:not(.reduced) .hero__copy .eyebrow, .js:not(.reduced) .hero__lede, .js:not(.reduced) .hero__ctas, .js:not(.reduced) .legend { opacity: 0; animation: failsafe 0.01s 2.6s forwards; }
@keyframes failsafe { to { opacity: 1; } }
.globe-slot--hero { --d: min(100vh, 62vw); width: var(--d); height: var(--d); left: 40vw; top: calc(50% - var(--d) / 2 + 6vh); }
.globe-fallback:not(.globe-fallback--finale) { width: min(100vh, 62vw); aspect-ratio: 1; left: 40vw; top: calc(50% - min(100vh, 62vw) / 2 + 6vh); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: var(--sp-6); padding-top: clamp(7rem, 17vh, 10rem); padding-bottom: clamp(var(--sp-5), 5vh, var(--sp-7)); }
/* first read: globe → headline → CTA; the instruments wait at the bottom edge */
.hero__copy { grid-column: 1; grid-row: 1; align-self: start; max-width: min(34rem, 37vw); }
.sunline { grid-column: 1; grid-row: 2; align-self: end; }
.legend { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; position: relative; }
.hero__title { font-size: var(--fs-3xl); font-weight: 450; line-height: 1.0; letter-spacing: -0.03em; color: #F4F7FC; text-shadow: 0 2px 30px rgb(7 11 28 / 0.6); }
.hero__line { display: block; }
.hero__line--warm { color: var(--sun); }
.hero__lede { margin-top: var(--sp-5); font-size: var(--fs-md); line-height: 1.55; color: var(--fg-2); max-width: 32rem; text-shadow: 0 1px 20px rgb(7 11 28 / 0.8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.sunline { display: grid; gap: 3px; padding-top: var(--sp-3); border-top: 1px solid var(--line); max-width: min(34rem, 37vw); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.5; color: var(--fg-3); }
.sunline__src { color: var(--fg-3); }
.sunline b { font-weight: 500; color: #EAF1FB; font-variant-numeric: tabular-nums; }
.js:not(.reduced) .sunline { opacity: 0; transform: translateY(4px); filter: blur(4px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
.js .sunline.is-on { opacity: 1; transform: none; filter: none; }
/* legend by the globe: a solid night pill (no blur), with the city list as a disclosure above it */
.legend__bar { position: relative; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-4); border-radius: var(--r-full); background: rgb(7 11 28 / 0.86); border: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-2); }
.legend__key { display: flex; gap: var(--sp-4); margin-right: var(--sp-2); white-space: nowrap; }
.legend__key > span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.legend__btn { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 32px; padding: 0 var(--sp-3); border-radius: var(--r-full); border: 1px solid var(--line-strong); color: var(--fg-2); white-space: nowrap; }
.legend__btn:hover, .legend__btn[aria-expanded="true"] { color: var(--fg); border-color: var(--fg-2); }
.legend__count { color: var(--fg-3); }
.globe-pause:hover { color: var(--fg); border-color: var(--fg-2); }
.globe-pause__icon { width: 9px; height: 9px; background: linear-gradient(90deg, currentColor 35%, transparent 35% 65%, currentColor 65%); }
.globe-pause[aria-pressed="true"] .globe-pause__icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.reduced .globe-pause { display: none; }
.drag-pill { position: fixed; left: 0; top: 0; z-index: 40; padding: 0.35rem 0.65rem; border-radius: var(--r-full); background: var(--sun); color: var(--ink); font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.drag-pill.is-on { opacity: 1; }
@media (pointer: coarse) { .drag-pill { display: none; } }

.cities { position: absolute; right: 0; bottom: calc(100% + var(--sp-2)); width: min(24rem, calc(100vw - 2 * var(--gutter))); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-2); background: rgb(14 24 52 / 0.97); border: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); display: grid; grid-template-columns: 5.5rem 1fr; row-gap: var(--sp-3); align-items: baseline; box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6); }
.cities[hidden] { display: none; }
.cities__legend { display: flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.cities__list { display: flex; flex-wrap: wrap; gap: 0 var(--sp-1); }
.cities__list li { display: flex; align-items: center; }
.cities__list button { min-height: 28px; padding: 0.3em 0.3em; margin: -0.3em; white-space: nowrap; border-radius: 4px; color: var(--fg-2); transition: color 0.2s; }
.cities__list--planned button { color: var(--fg-3); }
.cities__list { gap: var(--sp-1) var(--sp-3); }
.cities__list button:hover, .cities__list button[aria-pressed="true"] { color: var(--sun); }
.cities__hint { grid-column: 1 / -1; padding-top: var(--sp-3); border-top: 1px solid var(--line); line-height: 1.5; }
.pin { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pin--launch { background: var(--sun); box-shadow: 0 0 0 2px var(--night), 0 0 0 3px rgb(255 227 163 / 0.5); }
.pin--planned { border: 1.5px solid #B9C1DA; }

.city-card { position: fixed; z-index: 30; left: 0; top: 0; width: 17.5rem; padding: var(--sp-4) var(--sp-5) var(--sp-5); border-radius: var(--r-2); background: rgb(14 24 52 / 0.97); border: 1px solid rgb(234 241 251 / 0.14); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); color: #EAF1FB; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.97); transform-origin: 0 0; transition: opacity 0.18s var(--ease-out), transform 0.25s var(--ease-out); }
.city-card.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0); }
.city-card__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.city-card__name { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; display: flex; align-items: baseline; gap: var(--sp-2); }
.city-card__country { font-family: var(--font-text); font-size: var(--fs-sm); color: #B8C0D9; letter-spacing: 0; }
.city-card .status { --line-strong: rgb(234 241 251 / 0.3); color: #B8C0D9; }
.city-card .status--launch { color: var(--sun); border-color: rgb(255 227 163 / 0.45); }
.city-card__time { font-family: var(--font-mono); font-size: var(--fs-xl); line-height: 1.1; margin-top: var(--sp-3); display: flex; align-items: baseline; gap: var(--sp-3); font-variant-numeric: tabular-nums; }
.city-card__day { font-size: var(--fs-sm); color: #B8C0D9; }
.city-card__sky { font-size: var(--fs-sm); color: #B8C0D9; margin-top: var(--sp-1); }
.city-card__facts { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid rgb(234 241 251 / 0.12); display: grid; gap: var(--sp-1); font-size: var(--fs-sm); }
.city-card__facts > div { display: grid; grid-template-columns: 5.5rem 1fr; }
.city-card__facts dt { color: #8A93B2; }

.arc-tags { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.arc-tags.is-hidden { display: none; }
.arc-tag { position: absolute; left: 0; top: 0; margin: -2.1em 0 0 0.6em; padding: 0.35em 0.6em; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1; color: var(--ink); background: var(--sun); border-radius: var(--r-full); white-space: nowrap; opacity: 0; transition: opacity 0.3s; will-change: transform; }
.arc-tag.is-on { opacity: 1; }
.arc-tag.is-planned { background: rgb(14 24 52 / 0.92); color: #D7DDEE; border: 1px dashed rgb(185 193 218 / 0.6); }
.arc-tag em { font-style: normal; color: #8A93B2; }
.land-chip { position: absolute; left: 0; top: 0; translate: -50% 0; margin-top: -2.9em; padding: 0.42em 0.75em; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1; white-space: nowrap; color: #EAF1FB; background: rgb(14 24 52 / 0.96); border: 1px solid rgb(255 227 163 / 0.45); border-radius: var(--r-full); opacity: 0; transition: opacity 0.35s var(--ease-out); will-change: transform; }
.land-chip b { font-weight: 500; color: var(--sun); }
.land-chip em { font-style: normal; color: #8A93B2; }
.land-chip.is-on { opacity: 1; }

/* ---------------------------------------------------------------- horizon limbs
   A section edge drawn as the planet's limb: a very shallow arc (sunrise over it at dawn,
   the Earth's shadow rising at dusk). Masked, so content below the arc is never clipped. */
.limb {
  --limb: 4.5vw;
  margin-top: calc(-1 * var(--limb));
  -webkit-mask: radial-gradient(170vw 100vw at 50% 100vw, #000 99.6%, transparent 100%) 0 0 / 100% 50vw no-repeat, linear-gradient(#000 0 0) 0 50vw / 100% 100% no-repeat;
  mask: radial-gradient(170vw 100vw at 50% 100vw, #000 99.6%, transparent 100%) 0 0 / 100% 50vw no-repeat, linear-gradient(#000 0 0) 0 50vw / 100% 100% no-repeat;
}

/* ---------------------------------------------------------------- dawn */
.dawn { position: relative; color: #EAF1FB; }
.dawn__sky { position: relative; overflow: hidden; padding-top: clamp(5rem, 11vh, 7rem); padding-bottom: calc(clamp(5rem, 11vh, 7rem) + var(--limb, 4.5vw));
  background: linear-gradient(180deg, rgb(7 11 28 / 0) 0, var(--night) 8%, var(--deep) 34%, var(--blue-hour) 50%, #3F5286 62%, #8B93AE 74%, #DDB3A4 84%, #F9C79E 92%, #FFE3A3 100%); }
.dawn__sky::after, .founder::after { content: ''; position: absolute; inset: 0; background: url('../assets/grain.png') 0 0 / 160px 160px; mix-blend-mode: overlay; opacity: 0.08; pointer-events: none; }
.dawn__sky .ribbon { position: relative; z-index: 1; }
.reduced .dawn__sky, html:not(.js) .dawn__sky { background: linear-gradient(180deg, rgb(7 11 28 / 0) 0, var(--night) 5%, var(--deep) 45%, var(--blue-hour) 64%, #3F5286 74%, #8B93AE 83%, #DDB3A4 89%, #F9C79E 94%, #FFE3A3 100%); padding-bottom: calc(clamp(7rem, 16vh, 10rem) + 4.5vw); }
.dawn__glow { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 45%, #000 75%); mask-image: linear-gradient(180deg, transparent 0%, transparent 45%, #000 75%); }
.dawn__sun { position: absolute; left: 50%; bottom: -24%; width: min(72rem, 130vw); height: 70%; transform: translate(-50%, var(--rise, 18%)); border-radius: 50%; background: radial-gradient(closest-side, rgb(255 247 224 / 0.95), rgb(255 227 163 / 0.62) 32%, rgb(255 197 138 / 0.22) 64%, rgb(255 197 138 / 0) 100%); will-change: transform; }
.dawn__statement { position: relative; z-index: 1; color: var(--ink); padding-top: calc(var(--sp-6) + var(--limb)); padding-bottom: var(--section-y); background: linear-gradient(180deg, #FBF0DF 0%, #F4F2F2 45%, var(--sky) 100%); --fg-3: #56607E; --fg-2: #3F4A68; --line: rgb(11 18 38 / 0.12); }
.dawn__statement .container { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-5) var(--sp-8); align-items: end; }
.dawn__statement .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.dawn__title { font-size: var(--fs-2xl); max-width: 22ch; font-weight: 450; }
.dawn__title .deva { font-weight: 400; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 8rem 1fr; gap: var(--sp-3); align-items: baseline; }
.facts__k { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); }
.facts__v { font-size: var(--fs-base); color: var(--ink); }

/* greeting ribbon */
.ribbon { position: relative; }
.ribbon__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon__track { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5) clamp(2.5rem, 5vw, 5rem); padding: var(--sp-5) var(--gutter) var(--sp-7); }
.ribbon__track li { padding-inline: 0.12em; }
.js:not(.reduced) .ribbon__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-inline: 0; }
.ribbon__track li { position: relative; display: flex; flex-direction: column; align-items: center; flex: none; }
.ribbon__word { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-4xl); line-height: 1.15; letter-spacing: -0.02em; color: var(--city); border-radius: 8px; outline-offset: 6px; }
.ribbon__word[lang="hi"] { font-family: var(--font-deva); letter-spacing: 0; }
.ribbon__word[lang="ar"], .ribbon__word[lang="ja"], .ribbon__word[lang="zh"] { font-weight: 400; letter-spacing: 0; font-size: calc(var(--fs-4xl) * 0.82); }
.ribbon__lang { position: absolute; top: 100%; font-family: var(--font-mono); font-size: var(--fs-xs); color: #D5DAEA; white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s var(--ease-out); }
.ribbon__word:hover + .ribbon__lang, .ribbon__viewport:focus-visible .ribbon__lang, html:not(.js) .ribbon__lang, .reduced .ribbon__lang { opacity: 1; transform: none; }
.ribbon__viewport:focus-visible { outline: 2px solid var(--sun); outline-offset: -2px; border-radius: var(--r-2); }
.ribbon__track li:not(:last-child)::after { content: ''; position: absolute; right: calc(-0.5 * clamp(2.5rem, 5vw, 5rem) - 3px); top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--apricot); opacity: 0.7; }
.ribbon__pause { position: relative; display: flex; align-items: center; gap: var(--sp-2); margin: 0 auto; min-height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-full); background: var(--deep); border: 1px solid rgb(234 241 251 / 0.25); font-family: var(--font-mono); font-size: var(--fs-xs); color: #B8C0D9; }
.ribbon__pause:hover { color: #EAF1FB; border-color: rgb(234 241 251 / 0.5); }
.ribbon__pause-icon { width: 10px; height: 10px; background: linear-gradient(90deg, currentColor 35%, transparent 35% 65%, currentColor 65%); }
.ribbon__pause[aria-pressed="true"] .ribbon__pause-icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.reduced .ribbon__pause { display: none; }

/* ---------------------------------------------------------------- sunlight: the light source moves across the day sections */
.product, .system, .localise, .markets, .trust { isolation: isolate; }
.product::before, .system::before, .localise::before, .markets::before, .trust::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60rem 40rem at var(--sun-x) var(--sun-y), var(--sun-c), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22rem); mask-image: linear-gradient(180deg, transparent, #000 22rem);
}
.product { --sun-x: 4%; --sun-y: 40%; --sun-c: rgb(255 197 138 / 0.16); }
.system { --sun-x: 28%; --sun-y: 30%; --sun-c: rgb(255 227 163 / 0.16); }
.localise { --sun-x: 52%; --sun-y: 20%; --sun-c: rgb(255 247 230 / 0.7); }
.markets { --sun-x: 76%; --sun-y: 30%; --sun-c: rgb(255 227 163 / 0.16); }
.trust { --sun-x: 96%; --sun-y: 40%; --sun-c: rgb(255 197 138 / 0.2); }

/* ---------------------------------------------------------------- product */
.product { background: linear-gradient(180deg, var(--sky), #EDF2FA); }
.product__grid { display: grid; grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr); gap: clamp(var(--sp-6), 4vw, var(--sp-8)); align-items: start; }
.product__side { min-width: 0; }
.product__side .section__head { margin-bottom: var(--sp-6); }
.product__side .section__title { font-size: var(--fs-xl); }
.product__side .section__lede { font-size: var(--fs-base); }
.tabs { display: grid; gap: var(--sp-1); }
.tab { display: grid; gap: var(--sp-1); text-align: left; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-2); border: 1px solid transparent; transition: background-color 0.25s, border-color 0.25s; }
.tab__name { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.015em; color: var(--fg-3); transition: color 0.25s; }
.tab__name kbd { font-size: 0.55em; }
.tab__desc { font-size: var(--fs-sm); color: var(--fg-3); line-height: 1.5; display: none; }
.tab[aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: var(--e-1); }
.tab[aria-selected="true"] .tab__name { color: var(--ink); }
.tab[aria-selected="true"] .tab__desc { display: block; color: var(--fg-2); }
.tab:hover .tab__name { color: var(--ink); }
html:not(.js) .tab__desc { display: block; }

/* the product, rebuilt in HTML */
.app { --app-line: rgb(11 18 38 / 0.09); position: relative; border-radius: var(--r-2); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--e-2); overflow: hidden; font-size: 0.875rem; line-height: 1.45; color: var(--ink); min-height: 32rem; }
.app__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--app-line); }
.app__org { display: flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.app__org strong { display: block; font-weight: 600; font-size: 0.8125rem; }
.app__org small { display: block; font-size: 0.6875rem; color: var(--fg-3); }
.app__search { display: flex; align-items: center; gap: var(--sp-2); padding: 0.5rem 0.75rem; border-radius: var(--r-1); background: #F3F6FB; color: var(--fg-3); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; }
.app__search kbd { margin-left: auto; }
.app__clock { text-align: right; font-size: 0.75rem; color: var(--fg-2); white-space: nowrap; }
.app__clock small { display: block; color: var(--fg-3); }
.app__sterile { display: flex; align-items: center; gap: var(--sp-2); padding: 0.55rem var(--sp-4); background: var(--ink); color: var(--city); font-size: 0.75rem; font-family: var(--font-mono); max-height: 0; padding-block: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out); }
.app[data-view="sterile"] .app__sterile { max-height: 3rem; padding-block: 0.55rem; }
.app__body { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 30rem; }
.app__rail { padding: var(--sp-4); border-right: 1px solid var(--app-line); background: #FAFBFD; transition: opacity 0.4s, filter 0.4s; }
.app[data-view="sterile"] .app__rail { opacity: 0.35; filter: grayscale(1); }
.app__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.75rem; font-weight: 600; color: var(--fg-2); margin: var(--sp-1) 0 var(--sp-2); }
.app__label span { font-weight: 400; font-family: var(--font-mono); font-size: 0.625rem; color: var(--fg-3); }
.app__label:not(:first-child) { margin-top: var(--sp-5); }
.app__capsules, .app__stack { display: grid; gap: var(--sp-1); }
.app__capsules li, .app__stack li { display: grid; padding: 0.5rem 0.625rem; border-radius: var(--r-1); border: 1px solid transparent; }
.app__capsules li span, .app__stack li span { font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__capsules small, .app__stack small { font-size: 0.6875rem; color: var(--fg-3); }
.app__capsules li.is-active { background: var(--paper); border-color: var(--app-line); box-shadow: inset 2px 0 0 var(--ink); }
.app[data-view="sterile"] .app__capsules li.is-active { box-shadow: none; background: transparent; border-color: transparent; }
.app__stack li.is-urgent { background: #FFF4E6; box-shadow: inset 2px 0 0 #B8630B; }
.app__stack li.is-urgent small { color: #8A4A08; }
.app[data-view="interrupts"] .app__stack li.is-urgent { background: #FFE9CF; }
.app__main { position: relative; padding: var(--sp-5); }
.pane { display: none; }
.app[data-view="capsules"] .pane--capsules, .app[data-view="compass"] .pane--compass, .app[data-view="sterile"] .pane--sterile, .app[data-view="interrupts"] .pane--interrupts, .app[data-view="roles"] .pane--roles { display: block; animation: pane-in 0.45s var(--ease-out) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }
html:not(.js) .pane { display: block; margin-bottom: var(--sp-6); }
.pane__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); }
.pane__title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.pane__sub { font-size: 0.8125rem; color: var(--fg-3); margin-top: 2px; }
.pane__note { margin-top: var(--sp-5); font-size: 0.8125rem; color: var(--fg-2); max-width: 34rem; }
.chip { font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.35rem 0.6rem; border-radius: var(--r-full); border: 1px solid var(--app-line); color: var(--fg-2); white-space: nowrap; }
.chip--ok::before { content: '✓ '; }
.chip--calm { background: var(--ink); color: var(--city); border-color: var(--ink); }
.steps { display: flex; gap: var(--sp-1); margin: var(--sp-5) 0; counter-reset: s; }
.steps li { flex: 1; font-size: 0.6875rem; color: var(--fg-3); padding-top: var(--sp-2); border-top: 2px solid var(--app-line); }
.steps li.is-done { border-color: var(--ink); color: var(--fg-2); }
.steps li.is-current { border-color: var(--apricot); color: var(--ink); font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field { display: grid; gap: 4px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 0.6875rem; color: var(--fg-3); }
.field__value { display: flex; align-items: center; min-height: 38px; padding: 0 0.75rem; border: 1px solid rgb(11 18 38 / 0.14); border-radius: var(--r-1); background: var(--paper); font-size: 0.8125rem; }
.field--wide .field__value { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 197 138 / 0.45); }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; background: currentColor; animation: caret 1.1s steps(1) 6; }
@keyframes caret { 50% { opacity: 0; } }
.palette { max-width: 34rem; margin: var(--sp-2) auto 0; border-radius: var(--r-2); border: 1px solid var(--app-line); box-shadow: var(--e-2); background: var(--paper); padding: var(--sp-2); }
.palette__input { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-bottom: 1px solid var(--app-line); font-size: 1rem; }
.palette__scope { margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.2rem 0.5rem; border-radius: var(--r-full); background: #F1F4FA; color: var(--fg-2); }
.palette__group { font-size: 0.6875rem; font-weight: 600; color: var(--fg-3); padding: var(--sp-3) var(--sp-3) var(--sp-1); }
.palette__row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3); align-items: baseline; padding: 0.55rem var(--sp-3); border-radius: var(--r-1); }
.palette__row small { color: var(--fg-3); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__row.is-active { background: #EEF3FB; }
.palette__foot { display: flex; gap: var(--sp-4); padding: var(--sp-3); margin-top: var(--sp-1); border-top: 1px solid var(--app-line); font-size: 0.6875rem; color: var(--fg-3); }
.checklist { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.checklist li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 0.7rem 0.9rem; border-radius: var(--r-1); border: 1px solid var(--app-line); }
.checklist li small { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-3); }
.checklist li.is-done span::before { content: '✓  '; color: var(--fg-2); }
.checklist li.is-current { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 197 138 / 0.4); }
.held { margin-top: var(--sp-5); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-1); background: #F5F7FB; }
.held__title { font-size: 0.75rem; font-weight: 600; color: var(--fg-2); margin-bottom: var(--sp-1); }
.held__row { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--fg-3); padding-block: 3px; }
.alert { border-radius: var(--r-2); border: 1px solid #E9C9A6; background: linear-gradient(180deg, #FFF8EF, var(--paper)); padding: var(--sp-5); }
.alert__kicker { font-family: var(--font-mono); font-size: 0.6875rem; color: #8A4A08; }
.alert__title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin-top: var(--sp-2); }
.alert__why { display: grid; gap: var(--sp-1); margin-top: var(--sp-4); font-size: 0.8125rem; }
.alert__why > div { display: grid; grid-template-columns: 4.5rem 1fr; }
.alert__why dt { color: var(--fg-3); }
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-5); }
.chain li { display: grid; font-size: 0.75rem; padding-top: var(--sp-2); border-top: 2px solid var(--app-line); color: var(--fg-3); }
.chain li.is-done { border-color: var(--ink); color: var(--fg-2); }
.chain li.is-current { border-color: var(--apricot); color: var(--ink); font-weight: 600; }
.chain small { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 400; }
.alert__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.fakebtn { font-size: 0.8125rem; font-weight: 600; padding: 0.55rem 0.9rem; border-radius: var(--r-1); border: 1px solid rgb(11 18 38 / 0.16); }
.fakebtn--primary { background: var(--ink); color: var(--sky); border-color: var(--ink); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.role { border-radius: var(--r-2); border: 1px solid var(--app-line); padding: var(--sp-4); }
.role__who { font-weight: 600; font-size: 0.875rem; margin-bottom: var(--sp-3); }
.role__doors { display: grid; gap: var(--sp-1); }
.role__doors li { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.8125rem; padding: 0.45rem 0.6rem; border-radius: var(--r-1); background: #F3F6FB; }
.role__doors li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.role__doors li.is-closed { background: transparent; color: #8A93B2; text-decoration: line-through; text-decoration-color: rgb(138 147 178 / 0.6); }
.role__doors li.is-closed::before { background: transparent; border: 1.5px solid #B9C1DA; }

/* ---------------------------------------------------------------- one system (CSS 3D, crisp text) */
.system { position: relative; overflow-x: clip; background: linear-gradient(180deg, #EDF2FA, var(--noon)); }
.system__pin { min-height: 100vh; display: flex; align-items: center; padding-block: var(--sp-8); }
.system__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-7); align-items: center; }
.system__steps { display: grid; }
.system__step + .system__step { margin-top: var(--sp-7); }
.js:not(.reduced) .system__steps.is-live .system__step { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.js:not(.reduced) .system__steps.is-live .system__step.is-on { opacity: 1; transform: none; }
.system__statement { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
.system__body { margin-top: var(--sp-5); font-size: var(--fs-md); color: var(--fg-2); max-width: 32rem; }
.system__engines { margin-top: var(--sp-7); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); max-width: 32rem; }
.stack { position: relative; height: min(40rem, 72vh); perspective: 2400px; perspective-origin: 50% 30%; }
.stack__scene { position: absolute; left: 50%; top: 71%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-38deg) scale(var(--s, 1)); }
.slab { --w: clamp(14rem, 21vw, 19rem); --h: calc(var(--w) * 0.62); position: absolute; left: calc(var(--w) / -2); top: calc(var(--h) / -2); width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translate3d(0, 0, calc(var(--i) * 34px + 34px)); }
.slab__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem 1.15rem; border-radius: 14px; background: var(--paper); border: 1px solid rgb(11 18 38 / 0.1); box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 18px 30px -18px rgb(11 18 38 / 0.35); backface-visibility: hidden; }
.slab::before { content: ''; position: absolute; inset: 0; border-radius: 14px; background: #C7D0E2; transform: translateZ(-7px); }
.slab__patch { position: absolute; inset: 0; border-radius: 14px; background: var(--tint); opacity: 0; mix-blend-mode: multiply; pointer-events: none; }
.slab__name { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.015em; color: var(--ink); line-height: 1.1; }
.slab__sub { font-family: var(--font-mono); font-size: 0.6875rem; color: #3F4A68; margin-top: 4px; }
.slab--core .slab__face { background: var(--ink); border-color: var(--ink); }
.slab--core .slab__name { color: var(--sun); }
.slab--core .slab__sub { color: #B8C0D9; }
.slab--core::before { background: #050816; }
.slab--core { opacity: 0; }
.stack.has-leaders .stack__scene { left: 33%; }
.stack__leaders, .stack__labels { position: absolute; inset: 0; pointer-events: none; opacity: var(--labels, 0); }
.stack:not(.has-leaders) .stack__leaders, .stack:not(.has-leaders) .stack__labels { display: none; }
.stack__leaders { width: 100%; height: 100%; overflow: visible; }
.stack__leaders polyline { fill: none; stroke: var(--ink); stroke-opacity: 0.32; stroke-width: 1; }
.stack__labels li { position: absolute; left: 0; top: 0; display: flex; gap: var(--sp-2); align-items: baseline; white-space: nowrap; }
.stack__name { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.stack__sub { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-3); }
.has-leaders .slab:not(.slab--core) .slab__face > span { opacity: calc(1 - var(--labels, 0)); }
.reduced .slab--core, html:not(.js) .slab--core { opacity: 0; }
.stack__caption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg-2); opacity: var(--one, 0); transform: translateY(calc((1 - var(--one, 0)) * 8px)); }
.stack__caption span { color: #8F4A05; }
.stack.has-leaders .stack__caption { right: auto; left: 33%; transform: translate(-50%, calc((1 - var(--one, 0)) * 8px)); }
.reduced .stack__caption, html:not(.js) .stack__caption { opacity: 1; transform: none; }
.reduced .stack.has-leaders .stack__caption { transform: translateX(-50%); }

/* ---------------------------------------------------------------- localise */
.localise { background: linear-gradient(180deg, var(--noon), #F7F9FD 40%, var(--sky)); }
.localise__side .section__head { margin-bottom: var(--sp-6); }
.localise__side .section__title { font-size: var(--fs-xl); }
.localise__side .section__lede { font-size: var(--fs-base); margin-top: var(--sp-4); }
.localise__grid { display: grid; grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr) minmax(13rem, 16rem); gap: clamp(var(--sp-5), 3vw, var(--sp-7)); align-items: start; }
.countries { border: 0; margin: 0; padding: 0; display: grid; gap: var(--sp-4); min-width: 0; }
.countries__legend { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); padding: 0; margin-bottom: var(--sp-1); }
.countries__group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.countries__k { flex-basis: 100%; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); }
.country { position: relative; cursor: pointer; }
.country input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.country span { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-full); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 500; background: var(--paper); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.country--planned span { border-style: dashed; color: var(--fg-2); background: transparent; }
.country input:checked + span { background: var(--ink); color: var(--sky); border-color: var(--ink); border-style: solid; }
.country input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.country:hover span { border-color: var(--ink); }

.invoice-wrap { min-width: 0; }
.invoice { position: relative; background: var(--paper); border-radius: var(--r-2); border: 1px solid var(--line); box-shadow: var(--e-2); padding: clamp(var(--sp-5), 3vw, var(--sp-7)); font-size: var(--fs-sm); color: var(--ink); overflow: hidden; }
.invoice[data-planned="true"] { background: repeating-linear-gradient(135deg, rgb(11 18 38 / 0.018) 0 10px, transparent 10px 20px), var(--paper); }
.inv__head { display: flex; justify-content: space-between; gap: var(--sp-5); align-items: flex-start; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.inv__doc { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; display: flex; flex-wrap: wrap; gap: 0 0.4em; align-items: baseline; }
.inv__doc span + span { font-size: 0.72em; color: var(--fg-2); font-weight: 400; }
.inv__status { margin-top: var(--sp-3); }
.inv__meta { display: grid; gap: 2px; text-align: right; font-size: var(--fs-sm); }
.inv__meta > div { display: flex; justify-content: flex-end; gap: var(--sp-3); white-space: nowrap; }
.inv__meta dd { white-space: nowrap; }
.inv__head > div:first-child { min-width: 0; }
.inv__meta dt { color: var(--fg-3); }
.inv__parties { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); padding-block: var(--sp-5); }
.inv__label { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-3); margin-bottom: var(--sp-1); }
.inv__name { font-weight: 600; }
.inv__addr { color: var(--fg-2); }
.inv__ids { font-size: 0.75rem; color: var(--fg-2); margin-top: var(--sp-1); }
.inv__lines { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.inv__lines th { font-weight: 500; font-size: 0.75rem; color: var(--fg-3); text-align: left; padding: var(--sp-2) var(--sp-2) var(--sp-2) 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.inv__lines td { padding: var(--sp-3) var(--sp-2) var(--sp-3) 0; border-bottom: 1px solid rgb(11 18 38 / 0.06); vertical-align: top; }
.inv__lines .num { text-align: right; white-space: nowrap; padding-right: 0; padding-left: var(--sp-3); }
.inv__lines td:first-child { width: 42%; }
.inv__bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, auto); gap: var(--sp-5); align-items: end; padding-top: var(--sp-5); }
.inv__foot { display: flex; gap: var(--sp-4); align-items: center; font-size: 0.75rem; color: var(--fg-2); min-height: 76px; }
.inv__foot .qr { width: 76px; height: 76px; flex: none; }
.inv__foot .mono { font-size: 0.6875rem; color: var(--ink); }
.inv__badge { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.4rem 0.65rem; border-radius: var(--r-1); border: 1px solid var(--line-strong); color: var(--ink); margin-bottom: var(--sp-2); }
.inv__totals { display: grid; gap: 2px; font-size: var(--fs-sm); }
.inv__totals > div { display: flex; justify-content: space-between; gap: var(--sp-6); padding-block: 3px; }
.inv__totals dt { color: var(--fg-2); }
.inv__totals dd { font-variant-numeric: tabular-nums; }
.inv__totals .is-total { margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1.5px solid var(--ink); font-weight: 600; font-size: var(--fs-md); }
.inv__totals .is-total dt { color: var(--ink); }
.inv__words { margin-top: var(--sp-4); font-size: 0.8125rem; color: var(--fg-2); font-style: italic; }
.inv__words:empty { display: none; }
.demo-note { margin-top: var(--sp-3); font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--fg-2); }
.spec { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec > div { padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); }
.spec dd { font-size: var(--fs-sm); margin-top: 2px; }
.spec dd.mono { font-size: 0.8125rem; }
.is-swapping { animation: swap-in 0.55s var(--ease-out) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }

/* View Transitions (with a Flip fallback in JS): these parts morph in place, script changes cross-fade */
.invoice { view-transition-name: invoice; }
.inv__doc { view-transition-name: inv-doc; }
.inv__totals .is-total dd { view-transition-name: inv-total; }
[data-f="sellerIds"] { view-transition-name: inv-seller-ids; }
[data-f="buyerIds"] { view-transition-name: inv-buyer-ids; }
.spec { view-transition-name: inv-spec; }
::view-transition-group(invoice), ::view-transition-group(inv-doc), ::view-transition-group(inv-total),
::view-transition-group(inv-seller-ids), ::view-transition-group(inv-buyer-ids), ::view-transition-group(inv-spec) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
.inv__totals dt [lang="ar"], .inv__label [lang="ar"] { font-size: 1.05em; }

/* ---------------------------------------------------------------- markets */
.markets { background: linear-gradient(180deg, var(--sky), #EEF1F7); }
.light-card { position: relative; background: var(--paper); border-radius: var(--r-2); border: 1px solid var(--line); box-shadow: var(--e-1); overflow: hidden; }
/* cursor-aware light: a faint warm glow follows the pointer */
.light-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(28rem circle at var(--mx, 50%) var(--my, 0%), rgb(255 197 138 / 0.09), transparent 60%); }
.light-card:hover::after, .touch-light .light-card::after { opacity: 1; }
.markets__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); gap: var(--sp-5); align-items: start; }
.markets__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.markets__head .section__title { font-size: var(--fs-xl); }
.market { padding: clamp(var(--sp-5), 2.4vw, var(--sp-6)); }
.market__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap; }
.market__name { font-size: var(--fs-xl); }
.market__meta { font-size: var(--fs-xs); color: var(--fg-3); }
.market__lede { margin-top: var(--sp-4); color: var(--fg-2); max-width: 36rem; }
.features { margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.features li { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding-block: var(--sp-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.world { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: center; }
.world__list { font-size: var(--fs-base); color: var(--fg-2); }
.footnote { flex-basis: 100%; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); }

/* ---------------------------------------------------------------- trust (late afternoon: warmth creeps in) */
.trust { background: linear-gradient(180deg, #EEF1F7, #F4EFEA 70%, #F8ECE0); }
.layers { display: grid; align-content: start; border-top: 1px solid var(--line-strong); }
.layers .layer { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: var(--sp-4) 0; display: grid; grid-template-columns: 6.5rem 1fr; column-gap: var(--sp-4); align-items: baseline; }
.layers .layer::after { display: none; }
.layer > p:last-child { grid-column: 2; }
.layer__k { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); }
.layer__name { font-size: var(--fs-md); margin: 2px 0 var(--sp-1); }
.layer p:last-child { color: var(--fg-2); font-size: var(--fs-base); }
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: var(--sp-4); }
.audit { padding: var(--sp-5) var(--sp-6); }
.audit__title { font-weight: 600; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: baseline; }
.audit__title span { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--fg-3); }
.audit__rows { margin-top: var(--sp-4); display: grid; }
.audit__rows li { display: grid; grid-template-columns: 6.5rem 10rem minmax(0, 1fr); gap: var(--sp-4); padding-block: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); align-items: baseline; }
.audit__rows time { font-size: 0.75rem; color: var(--fg-3); }
.audit__act { font-size: 0.75rem; }
.promises { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr minmax(0, 0.8fr); gap: var(--sp-4); align-content: start; }
.promises .specs { margin: 0; flex-direction: column; flex-wrap: nowrap; gap: var(--sp-2); padding: var(--sp-5) var(--sp-2); }
.promise { padding: var(--sp-5) var(--sp-6); border-radius: var(--r-2); border: 1px solid var(--line-strong); }
.promise--dont { border-style: dashed; }
.promise__k { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; margin-bottom: var(--sp-3); }
.promise li { position: relative; padding-left: 1.4em; font-size: var(--fs-sm); color: var(--fg-2); }
.promise li + li { margin-top: var(--sp-2); }
.promise li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.promise--dont li::before { background: transparent; border: 1.5px solid var(--ink); }
.specs { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--fg-2); }
.specs li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.specs li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3); }

/* ---------------------------------------------------------------- founder (golden hour) */
.founder { overflow: hidden; padding-bottom: calc(var(--section-y) + 4.5vw); background: linear-gradient(180deg, #F8ECE0 0%, var(--golden) 26%, #FCD9BC 62%, #F6BBA6 86%, #E8A69E 100%); --fg-3: #5E4F4A; }
.founder > .container { position: relative; z-index: 1; }
.founder__grid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(var(--sp-6), 5vw, var(--sp-9)); row-gap: var(--sp-4); gap: clamp(var(--sp-6), 5vw, var(--sp-9)); align-items: center; }
.founder__photo { position: relative; border-radius: var(--r-2); overflow: hidden; aspect-ratio: 1; box-shadow: var(--e-2); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
/* golden-hour light, kept subtle on a real photo */
.founder__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgb(255 197 138 / 0.22), rgb(242 167 160 / 0.08) 50%, transparent 70%); mix-blend-mode: soft-light; }
.founder__quote p { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 450; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; hanging-punctuation: first; }
.founder__name { margin-top: var(--sp-5); font-size: var(--fs-md); }
.founder__cv { margin-top: var(--sp-5); display: grid; gap: var(--sp-2); color: var(--fg-2); font-size: var(--fs-base); max-width: 38rem; }
.founder__cv li { position: relative; padding-left: 1.2em; }
.founder__cv li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: #B8630B; }
.founder__photo { grid-column: 1; grid-row: 1; }
.founder__copy { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.partner-slot { grid-column: 1; grid-row: 2; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-2); border: 1.5px dashed rgb(11 18 38 / 0.3); max-width: 38rem; color: var(--fg-2); font-size: var(--fs-base); }
.partner-slot__k { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink); margin-bottom: var(--sp-2); }

/* ---------------------------------------------------------------- dusk (transition, no text) */
.dusk__glow { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 70%); mask-image: linear-gradient(180deg, transparent 30%, #000 70%); }
.dusk__sun { position: absolute; left: 50%; bottom: -30%; width: min(64rem, 130vw); height: 70%; transform: translate(-50%, var(--set, 0%)); border-radius: 50%; background: radial-gradient(closest-side, rgb(255 238 204 / 0.85), rgb(255 197 138 / 0.4) 42%, rgb(255 197 138 / 0) 100%); will-change: transform; }

/* ---------------------------------------------------------------- pricing (evening) */
.pricing { z-index: 2; padding-top: calc(var(--section-y) + var(--limb)); background: linear-gradient(180deg, var(--deep), #0B1430); }
.pricing__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-7); align-items: start; margin-bottom: var(--sp-5); }
.pricing__head .section__lede { font-size: var(--fs-base); }
.tiers { display: grid; margin-top: var(--sp-6); border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--sp-4); align-items: baseline; padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.tier__name { font-size: var(--fs-md); }
.tier p { color: var(--fg-2); font-size: var(--fs-base); }
.founding { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); padding: clamp(var(--sp-6), 4vw, var(--sp-8)); border-radius: var(--r-2); background: var(--surface-2); border: 1px solid rgb(255 197 138 / 0.32); box-shadow: inset 0 1px 0 rgb(255 227 163 / 0.18); }
.founding__big { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 450; letter-spacing: -0.025em; line-height: 1.04; }
.founding__big .tnum { color: var(--sun); }
.founding__small { margin-top: var(--sp-3); color: var(--fg-2); font-size: var(--fs-md); }
.founding__terms { display: grid; gap: var(--sp-3); align-content: center; }
.founding__terms li { display: flex; gap: var(--sp-3); align-items: baseline; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.founding__terms li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); flex: none; transform: translateY(-2px); }
.founding__seats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(25, 1fr); gap: 7px; max-width: 30rem; margin-top: var(--sp-3); }
.founding__seats span { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgb(255 227 163 / 0.5); }
.founding__note { grid-column: 1 / -1; margin-top: calc(-1 * var(--sp-3)); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); }

/* ---------------------------------------------------------------- faq (night) */
.faq { padding-top: var(--sp-5); background: linear-gradient(180deg, #0B1430, var(--night)); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-7); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; cursor: pointer; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 450; letter-spacing: -0.015em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor 0 0) center / 100% 1.5px no-repeat, linear-gradient(currentColor 0 0) center / 1.5px 100% no-repeat; transition: transform 0.3s var(--ease-out); opacity: 0.7; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--sp-5); color: var(--fg-2); max-width: 40rem; }

/* ---------------------------------------------------------------- apply (night, the globe's horizon) */
.apply { position: relative; min-height: max(100svh, 52rem); display: flex; flex-direction: column; justify-content: flex-start; overflow: clip; }
.apply::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(180deg, rgb(7 11 28 / 0), var(--night)); pointer-events: none; z-index: 1; }
.apply__inner { position: relative; z-index: 2; padding-top: clamp(5.5rem, 12vh, 8rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.apply__title { font-size: var(--fs-4xl); font-weight: 400; letter-spacing: -0.035em; line-height: 0.98; max-width: 16ch; }
.apply__lede { margin-top: var(--sp-5); font-size: var(--fs-md); color: var(--fg-2); max-width: 32rem; }
.apply__ctas { margin-top: var(--sp-6); }
.sunrise { margin-top: var(--sp-5); display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-2); }
.globe-slot--finale { --d: max(150vw, 130vh); width: var(--d); height: var(--d); left: calc(50% - var(--d) / 2); top: calc(100% - var(--d) * 0.1); }
.globe-fallback--finale { left: 0; right: 0; bottom: 0; height: 42%; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--night); border-top: 1px solid var(--line); padding-block: var(--sp-6) var(--sp-5); font-size: var(--fs-sm); color: var(--fg-2); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--sp-7); }
.footer__brand p { margin-top: var(--sp-3); }
.footer__brand .brand { color: var(--fg); }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.footer__nav div { display: grid; gap: var(--sp-2); align-content: start; }
.footer__nav a { display: block; min-height: 24px; padding-block: 2px; text-decoration: none; color: var(--fg-2); }
.footer__nav a:hover { color: var(--fg); text-decoration: underline; }
.footer__k { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-3); margin-bottom: var(--sp-1); }
.footer__fine { grid-column: 1 / -1; padding-top: var(--sp-5); border-top: 1px solid var(--line); display: grid; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--fg-3); max-width: 60rem; }
.footer__fine strong { color: var(--fg-2); font-weight: 500; }

/* ---------------------------------------------------------------- reveal (JS only; reduced motion shows everything) */
.js:not(.reduced) [data-reveal] { opacity: 0; transform: translateY(18px); }
.js:not(.reduced) [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav__links { gap: var(--sp-5); }
  .dial__k { display: none; }
  .localise__grid { grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem); }
  .localise__side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: end; }
  .localise__side .section__head { margin-bottom: 0; }
  .countries { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }
  .countries__legend { flex-basis: 100%; }
  .countries__k { flex-basis: auto; align-self: center; }
}
@media (max-width: 1020px) {
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: var(--sp-2) var(--gutter) var(--sp-5); background: rgb(7 11 28 / 0.98); border-bottom: 1px solid rgb(234 241 251 / 0.1); font-size: var(--fs-md); }
  .nav[data-theme="day"] .nav__links { background: rgb(234 241 251 / 0.98); border-color: rgb(11 18 38 / 0.08); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding-block: var(--sp-3); border-bottom: 1px solid currentColor; border-color: rgb(128 128 128 / 0.2); background: none; }
  .nav__menu { display: grid; order: 3; }
  .nav__end { margin-left: auto; }
  .product__grid { grid-template-columns: 1fr; }
  .tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-full); }
  .tab__name { font-size: var(--fs-base); }
  .tab[aria-selected="true"] .tab__desc { display: none; }
  .system__grid { grid-template-columns: 1fr; }
  .section__head--split { grid-template-columns: 1fr; gap: var(--sp-5); align-items: start; }
  .trust__grid { grid-template-columns: 1fr; }
  .markets__grid { grid-template-columns: 1fr; }
  .pricing__top { grid-template-columns: 1fr; gap: var(--sp-5); }
  .product__side .section__head { max-width: 40rem; }
  .faq__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .founder__grid { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
  .dawn__statement .container { grid-template-columns: 1fr; }
  .localise__grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-5); }
}
/* the stacked hero (globe above, words below) takes over wherever a side-by-side column would get too narrow */
@media (max-width: 900px) {
  .hero { height: auto; min-height: max(100svh, 40rem); }
  .globe-slot--hero { --d: min(100vw, 48vh); left: calc(50% - var(--d) / 2); top: 80px; }
  .globe-fallback:not(.globe-fallback--finale) { width: min(100vw, 48vh); left: calc(50% - min(100vw, 48vh) / 2); top: 80px; }
  .hero__inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: calc(80px + min(100vw, 48vh) + 0.75rem); padding-bottom: var(--sp-6); }
  .hero__copy { grid-row: 1; max-width: none; }
  .sunline { grid-row: 2; margin-top: var(--sp-5); max-width: none; }
  .legend { grid-column: 1; grid-row: 3; justify-self: stretch; margin-top: var(--sp-4); }
  .legend__bar { border-radius: var(--r-full); padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3); gap: var(--sp-1); }
  .legend__key { flex: 1 1 auto; gap: var(--sp-3); margin-right: 0; }
  .legend__btn { padding: 0 var(--sp-3); }
  .globe-pause__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .globe-pause { width: 32px; justify-content: center; padding: 0; }
  .cities { left: 0; right: 0; width: auto; grid-template-columns: 1fr; row-gap: var(--sp-2); }
  .cities__list { row-gap: var(--sp-2); }
  .cities__list button { min-height: 32px; white-space: nowrap; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero__lede { font-size: var(--fs-base); margin-top: var(--sp-4); }
  .hero__ctas { margin-top: var(--sp-5); }
  .hero__ctas .btn { flex: 1 1 auto; }
}
@media (max-width: 760px) {
  .dial { display: none; }
  .nav__end .btn { display: none; }
  .nav__inner { height: 64px; }
  .city-card { width: min(17.5rem, calc(100vw - 2 * var(--gutter))); }
  .facts { grid-template-columns: 1fr 1fr; column-gap: var(--sp-4); }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .system__engines { display: none; }
  .app { min-height: 0; }
  .app__bar { grid-template-columns: 1fr auto; }
  .app__search { display: none; }
  .app__body { grid-template-columns: 1fr; min-height: 0; }
  .app__rail { display: none; }
  .app__main { padding: var(--sp-4); }
  .roles { grid-template-columns: 1fr; }
  .form { gap: var(--sp-2) var(--sp-3); }
  .chain { grid-template-columns: 1fr 1fr; }
  .stack { height: auto; perspective: none; margin-top: var(--sp-6); }
  .stack__scene, .reduced .stack__scene { position: relative; left: auto; top: auto; width: 100%; height: calc(10 * 38px); transform: none; }
  .slab { --w: 100%; --h: 32px; left: 0; top: 0; transform: translate3d(0, calc((9 - var(--i)) * 38px), 0); }
  .slab::before { display: none; }
  .slab__face { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 0 0.9rem; border-radius: 10px; }
  .slab__name { font-size: 1rem; }
  .slab__sub { margin-top: 0; }
  .slab--core { --h: 52px; transform: translate3d(0, -6px, 0); }
  .slab--core .slab__face { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; box-shadow: 0 16px 30px -16px rgb(11 18 38 / 0.5); }
  .stack__caption { position: absolute; left: 0; right: 0; top: calc(212px + 62px); margin-top: 0; }
  .reduced .stack__caption, html:not(.js) .stack__caption { position: static; margin-top: var(--sp-4); }
  .system__pin { min-height: 0; padding-block: var(--sp-6); }
  .localise__grid { grid-template-columns: 1fr; }
  .localise__side { grid-template-columns: 1fr; }
  .spec { position: static; grid-template-columns: 1fr 1fr; column-gap: var(--sp-4); }
  .invoice { padding: var(--sp-5) var(--sp-4); font-size: 0.8125rem; }
  .inv__head { flex-direction: column; gap: var(--sp-3); }
  .inv__meta { text-align: left; }
  .inv__meta > div { justify-content: flex-start; }
  .inv__parties { grid-template-columns: 1fr; gap: var(--sp-4); }
  .inv__lines th:nth-child(2), .inv__lines td:nth-child(2), .inv__lines th:nth-child(4), .inv__lines td:nth-child(4) { display: none; }
  .inv__lines td:first-child { width: auto; }
  .inv__bottom { grid-template-columns: 1fr; }
  .inv__bottom .inv__totals { order: -1; }
  .markets__cards, .promises, .layers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) var(--sp-3); scroll-padding-inline: var(--gutter); }
  .markets__cards::-webkit-scrollbar, .promises::-webkit-scrollbar, .layers::-webkit-scrollbar { display: none; }
  .markets__cards > *, .promises > *, .layers > * { scroll-snap-align: start; }
  .layers { border-top: 0; gap: var(--sp-3); }
  .layers .layer { grid-template-columns: 1fr; padding: var(--sp-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); }
  .layer > p:last-child { grid-column: 1; }
  .inv__addr, .inv__words { display: none; }
  .promises { grid-column: auto; }
  .tier { grid-template-columns: 1fr; gap: 2px; }
  .system__statement { font-size: var(--fs-xl); }
  .system__body { font-size: var(--fs-base); margin-top: var(--sp-3); }
  .system__step + .system__step { margin-top: var(--sp-4); }
  .system__step:not(:last-child) .system__body { display: none; }
  .founding { padding: var(--sp-5); }
  .hero__ctas .btn { padding-inline: var(--sp-4); }
  .system__engines { margin-top: var(--sp-5); }
  .spec { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .spec > div { padding-block: var(--sp-2); }
  .spec dd, .spec dd.mono { font-size: 0.75rem; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); font-size: var(--fs-xs); }
  .footer { padding-block: var(--sp-6) var(--sp-5); }
  .footer__grid { gap: var(--sp-5); }
  .audit { padding: var(--sp-4); }
  .audit__rows li { grid-template-columns: auto 1fr; gap: 2px var(--sp-3); padding-block: var(--sp-2); }
  .audit__rows li > span:last-child { grid-column: 1 / -1; }
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { max-width: 7rem; }
  .founder__grid { gap: var(--sp-5); }
  .founder__cv { gap: var(--sp-1); }
  .partner-slot, .founder__copy { grid-column: 1; grid-row: auto; }
  .promises .specs { padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-2); }
  .founding { grid-template-columns: 1fr; }
  .founding__seats { gap: 4px; }
  .world { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .globe-slot--finale { --d: 250vw; top: calc(100% - var(--d) * 0.17); }
  .dawn__sky { padding-top: 4.5rem; padding-bottom: calc(6rem + 4.5vw); }
  .dawn__title { font-size: var(--fs-lg); }
  .section__head { margin-bottom: var(--sp-6); }
  .apply { min-height: max(100svh, 46rem); }
  .apply__inner { padding-top: 7rem; }
  .app__clock { display: none; }
}
@media (max-width: 420px) {
  .spec { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .caret { animation: none; }
}
@media print {
  .globe-canvas, .nav, .arc-tags, .legend, .city-card { display: none !important; }
}
