/* ==========================================================================
   WAKA public site, version 3. One stylesheet, no build.
   Sources for every value:
   - founder feedback on v2 (20 Nov 2026): quiet Atlas, blues and greens only,
     a menu button, the story in the founder's order, a living network, pinch
     to zoom, a roadmap that stacks as you scroll, less clutter
   - font pairing A (Inter Display headings, Inter body), kept
   - the WAKA app theme (app/globals.css): the kowhaiwhai emboss technique
     and its fringe values are reused exactly, not redrawn
   - WAKA Design System: warm ramp, rimu, night ground, 4px grid, 16px radius
   ========================================================================== */

/* ---- 1. Fonts (self-hosted, SIL OFL 1.1; no outside call) ----------------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-wordmark.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0041, U+004B, U+0057; }

/* ---- 2. Tokens ------------------------------------------------------------ */
:root {
  --n00: #fffcf7; --n05: #faf6f0; --n10: #f3eade; --n20: #e6d9c6; --n30: #c9b79b;
  --n40: #9a8465; --n50: #7a6851; --n60: #5c4e3c; --n70: #453b2e; --n90: #211c17;
  --rimu-30: #d99878; --rimu-60: #7a3b28;
  --harbour-30: #7fa79e; --harbour-60: #3e5c57; --harbour-wash: #e2ebe8;
  --night: #08101e; --night-high: #1a2840; --night-surface: #1e2a42;
  --moonlit: #e6ebf0; --secondary: #c5ccd4; --muted: #a4adb7; --line-night: #7c899a;
  /* The star systems: greens and blues only. */
  --aur-1: #1d6b5a; --aur-2: #1f5f7a; --aur-3: #1b3a6e;
  --mw-1: #1e3a5f; --mw-2: #223f7a; --mw-3: #6d7690;
  --aur-4: #1a6470; --aur-5: #1f6a4a;
  --sky-wash: #dde8f0;
  --success-light: #2c6644; --success-dark: #7cc49a;
  --danger-light: #b81e11; --danger-dark: #f38d81;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-1: 16px; --r-2: 12px; --r-full: 999px;
  /* One motion system: two curves and one beat. Every one-shot movement on the
     site uses these; the names below are aliases kept so older rules read.
     The slow ambient loops (sky drift, twinkle, breathe) stay ease-in-out,
     because a loop that runs both ways needs a curve symmetric at each end. */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-emph: cubic-bezier(0.19, 1, 0.22, 1);
  --beat: 0.4s;
  --ease-standard: var(--ease-out);
  --ease-exit: var(--ease-out);
  --ease-settle: var(--ease-emph);
  --ease-pop: var(--ease-emph);
  --m-quick: calc(var(--beat) * 0.3); --m-base: calc(var(--beat) * 0.5); --m-move: var(--beat); --m-settle: calc(var(--beat) * 1.5);
  --m-rise: calc(var(--beat) * 2); --rise-step: 0.06s;

  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-wordmark: "Fraunces", "Times New Roman", serif;
  --t-hero: min(112px, max(min(12.8vw, 52px), 8.2vw));
  --t-h2: clamp(34px, 2.4vw + 20px, 54px);
  --t-h3: 26px; --t-h3-lh: 32px;
  --t-lead: 21px; --t-lead-lh: 32px;
  --t-body: 18px; --t-body-lh: 28px;
  --t-caption: 15px; --t-caption-lh: 22px;

  --header-h: 64px;
  --container: 1200px;
  --pad: clamp(20px, 5vw, 72px);
  /* One spacing scale for section joins: every band pads top and bottom by
     --band-pad, so each join between sections is twice it (240 desk, 144 phone). */
  --band-pad: clamp(72px, 8.34vw, 120px);
  --mark-image: url("../brand/waka-vert-final.png");
  --pattern-image: url("../brand/koru-linework.png");
  --emboss-offset: 2px;
  --emboss-phone-size: auto 200%;
  --emboss-phone-x: 24%;
  --emboss-phone-y: 100%;
}

body[data-tone="night"], html:not(.motion-on) [data-ground="night"], [data-theme="night"], .theme-night {
  --ink: var(--moonlit); --text-2: var(--secondary); --text-3: var(--muted);
  --accent-text: var(--rimu-30); --eyebrow: var(--secondary); --dot: var(--harbour-30);
  --link: var(--moonlit); --line: var(--line-night); --line-soft: rgb(124 137 154 / 0.40);
  --surface: var(--night-surface); --card: var(--night-surface); --card-line: rgb(124 137 154 / 0.5);
  --btn-bg: var(--moonlit); --btn-fg: var(--night); --btn-hover: #ffffff;
  --focus: var(--harbour-30); --success: var(--success-dark); --danger: var(--danger-dark);
  --chip-bg: rgb(26 40 64 / 0.9); --chip-line: rgb(124 137 154 / 0.5);
  color-scheme: dark;
}
body[data-tone="paper"], html:not(.motion-on) [data-ground="paper"], [data-theme="paper"], .theme-paper {
  --ink: var(--n90); --text-2: var(--n60); --text-3: var(--n60);
  --accent-text: var(--harbour-60); --eyebrow: var(--harbour-60); --dot: var(--harbour-60);
  --link: var(--harbour-60); --line: var(--n50); --line-soft: var(--n30);
  --surface: var(--n00); --card: var(--n00); --card-line: var(--n20);
  --btn-bg: var(--n90); --btn-fg: var(--n05); --btn-hover: var(--n70);
  --focus: var(--harbour-60); --success: var(--success-light); --danger: var(--danger-light);
  --chip-bg: rgb(255 252 247 / 0.92); --chip-line: var(--n30);
  color-scheme: light;
}

/* ---- 3. Reset and base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); background: var(--night); }
body { margin: 0; font: 400 var(--t-body)/var(--t-body-lh) var(--font); font-optical-sizing: none; font-feature-settings: "cv05"; color: var(--ink); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(127 167 158 / 0.35); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.no-js .js-only { display: none; }
.wrap { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }

/* ---- 4. Type ---------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font); font-variation-settings: "opsz" 32; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.08; font-weight: 560; letter-spacing: -0.026em; }
h3 { font-size: var(--t-h3); line-height: var(--t-h3-lh); font-weight: 560; letter-spacing: -0.016em; }
.lead { font-size: var(--t-lead); line-height: var(--t-lead-lh); color: var(--text-2); max-width: 36ch; text-wrap: pretty; }
.sub { color: var(--text-2); max-width: 52ch; text-wrap: pretty; }
.caption { font-size: var(--t-caption); line-height: var(--t-caption-lh); color: var(--text-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s4); font-size: var(--t-caption); line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: var(--eyebrow); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.section-head { max-width: 780px; margin-bottom: var(--s7); }
.section-head .sub { margin-top: var(--s4); }
.accent { color: var(--accent-text); }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.lockup { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: inherit; min-height: 48px; flex: none; }
.lockup .mark { width: 10px; height: 36px; background: var(--rimu-30); -webkit-mask: var(--mark-image) center / contain no-repeat; mask: var(--mark-image) center / contain no-repeat; }
[data-theme="paper"] .lockup .mark { background: var(--rimu-60); }
[data-theme="paper"] .lockup .word { color: var(--rimu-60); }
.lockup .word { font-family: var(--font-wordmark); font-weight: 600; font-size: 20px; letter-spacing: 0.35em; margin-right: -0.35em; color: var(--rimu-30); line-height: 1; font-variation-settings: "opsz" 20; }

/* ---- 5. The sky ------------------------------------------------------------
   One fixed layer. The ground runs night, deep blue, sky blue, pale blue,
   paper (set by the script). Over it: the aurora (top of the page and again
   at the foot), the Milky Way through the middle of the night, pale tints by
   day. Every gradient ends inside its own box, so no edge is ever a line. */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-ground { position: absolute; inset: 0; background: var(--ground-now, var(--night)); }
.fields { position: absolute; inset: 0; }
.fields-aurora { opacity: var(--aurora, 1); }
.fields-milky { opacity: var(--milky, 0); }
.fields-paper { opacity: var(--paper-fields, 0); }
.blob { position: absolute; width: 170%; height: 170%; left: -35%; top: -35%; }
.a1 { background: radial-gradient(32% 46% at 50% 50%, var(--aur-1), rgb(29 107 90 / 0) 100%); transform: translate(-18%, -20%) skewX(-18deg); opacity: 0.95; }
.a2 { background: radial-gradient(24% 48% at 50% 50%, var(--aur-2), rgb(31 95 122 / 0) 100%); transform: translate(12%, -24%) skewX(-24deg); opacity: 0.85; }
.a3 { background: radial-gradient(40% 34% at 50% 50%, var(--aur-3), rgb(27 58 110 / 0) 100%); transform: translate(22%, 14%); opacity: 0.8; }
.m1 { background: radial-gradient(48% 14% at 50% 50%, var(--mw-1), rgb(30 58 95 / 0) 100%); transform: rotate(-28deg) translate(0, 2%); opacity: 0.9; }
.m2 { background: radial-gradient(40% 34% at 50% 50%, var(--mw-2), rgb(34 63 122 / 0) 100%); transform: translate(-18%, 16%); }
.m3 { background: radial-gradient(46% 7% at 50% 50%, var(--mw-3), rgb(109 118 144 / 0) 100%); transform: rotate(-28deg) translate(4%, 1%); opacity: 0.3; }
.p1 { background: radial-gradient(34% 34% at 50% 50%, var(--harbour-wash), rgb(226 235 232 / 0) 100%); transform: translate(-16%, 12%); }
.p2 { background: radial-gradient(34% 34% at 50% 50%, var(--sky-wash), rgb(221 232 240 / 0) 100%); transform: translate(18%, -14%); }
/* Colour drift: two more soft fields (a teal blue and a deep green) fade in
   and out against the first two on long, unrelated loops, so the night sky
   slowly shifts between greens and blues. Opacity and transform only. */
.a4 { background: radial-gradient(30% 40% at 50% 50%, var(--aur-4), rgb(26 100 112 / 0) 100%); transform: translate(-4%, -18%) skewX(-20deg); opacity: 0; }
.a5 { background: radial-gradient(28% 36% at 50% 50%, var(--aur-5), rgb(31 106 74 / 0) 100%); transform: translate(16%, -12%) skewX(-12deg); opacity: 0; }
.motion-on .a1 { animation: aur1 41s ease-in-out infinite alternate, tintA 29s ease-in-out infinite alternate; }
.motion-on .a2 { animation: aur2 53s ease-in-out infinite alternate, tintB 37s ease-in-out infinite alternate; }
.motion-on .a4 { animation: aur2 47s ease-in-out infinite alternate-reverse, tintIn 29s ease-in-out infinite alternate; }
.motion-on .a5 { animation: aur1 59s ease-in-out infinite alternate-reverse, tintIn 37s ease-in-out infinite alternate-reverse; }
@keyframes tintA { from { opacity: 0.95; } to { opacity: 0.55; } }
@keyframes tintB { from { opacity: 0.85; } to { opacity: 0.5; } }
@keyframes tintIn { from { opacity: 0; } to { opacity: 0.5; } }
.motion-on .a3 { animation: drift3 61s ease-in-out infinite alternate; }
.motion-on .m1 { animation: mw1 67s ease-in-out infinite alternate; }
.motion-on .m2 { animation: drift2 59s ease-in-out infinite alternate; }
.motion-on .m3 { animation: mw3 71s ease-in-out infinite alternate; }
.motion-on .p1 { animation: drift1 47s ease-in-out infinite alternate; }
.motion-on .p2 { animation: drift2 41s ease-in-out infinite alternate; }
@keyframes aur1 { from { transform: translate(-22%, -22%) skewX(-14deg) scaleY(0.9); } to { transform: translate(-6%, -14%) skewX(-26deg) scaleY(1.1); } }
@keyframes aur2 { from { transform: translate(18%, -28%) skewX(-20deg) scaleY(1.1); } to { transform: translate(2%, -18%) skewX(-30deg) scaleY(0.9); } }
@keyframes mw1 { from { transform: rotate(-26deg) translate(-4%, 0) scaleX(0.95); } to { transform: rotate(-31deg) translate(4%, 5%) scaleX(1.05); } }
@keyframes mw3 { from { transform: rotate(-26deg) translate(1%, 0); } to { transform: rotate(-31deg) translate(6%, 4%); } }
@keyframes drift1 { from { transform: translate(-20%, -16%) scale(0.9); } to { transform: translate(12%, 6%) scale(1.1); } }
@keyframes drift2 { from { transform: translate(20%, 20%) scale(0.85); } to { transform: translate(-8%, 8%) scale(1.05); } }
@keyframes drift3 { from { transform: translate(8%, -20%) scale(1.1); } to { transform: translate(-16%, 14%) scale(0.9); } }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(1 - var(--paperness, 0)); }
.sky[data-phase="night"] .fields-paper, .sky[data-phase="paper"] .fields-aurora, .sky[data-phase="paper"] .fields-milky, .sky[data-phase="paper"] .stars { display: none; }
.sky[data-phase="night"] .emboss-paper, .sky[data-phase="paper"] .emboss-night { display: none; }
/* The kowhaiwhai emboss: the app's technique, copied from app/globals.css. */
.emboss { position: absolute; inset: 0; }
.emboss-night { opacity: calc(1 - var(--paperness, 0)); --pattern-shadow: #040810; --pattern-shadow-opacity: 0.35; --pattern-light: var(--moonlit); --pattern-light-opacity: 0.14; }
.emboss-paper { opacity: var(--paperness, 0); --pattern-shadow: var(--harbour-60); --pattern-shadow-opacity: 0.14; --pattern-light: var(--n00); --pattern-light-opacity: 0.9; }
@supports (mask-composite: subtract) and (mask-mode: luminance) {
  .emboss::before, .emboss::after { content: ""; position: absolute; inset: 0; mask-image: linear-gradient(to top, black 0%, black 30%, transparent 85%), var(--pattern-image), var(--pattern-image); mask-size: 100% 100%, cover, cover; mask-repeat: no-repeat, no-repeat, no-repeat; mask-mode: alpha, luminance, luminance; mask-composite: intersect, subtract; }
  .emboss::before { background-color: var(--pattern-shadow); opacity: var(--pattern-shadow-opacity); mask-position: 50% 100%, 50% 100%, 50% calc(100% + var(--emboss-offset)); }
  .emboss::after { background-color: var(--pattern-light); opacity: var(--pattern-light-opacity); mask-position: 50% 100%, 50% 100%, 50% calc(100% - var(--emboss-offset)); }
  @media (max-width: 639px) {
    .emboss::before, .emboss::after { mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%), var(--pattern-image), var(--pattern-image); mask-size: 100% 100%, var(--emboss-phone-size), var(--emboss-phone-size); }
    .emboss::before { mask-position: 50% 100%, var(--emboss-phone-x) var(--emboss-phone-y), var(--emboss-phone-x) calc(var(--emboss-phone-y) + var(--emboss-offset)); }
    .emboss::after { mask-position: 50% 100%, var(--emboss-phone-x) var(--emboss-phone-y), var(--emboss-phone-x) calc(var(--emboss-phone-y) - var(--emboss-offset)); }
  }
}
html:not(.motion-on) .sky .fields-milky, html:not(.motion-on) .sky .emboss-paper, html:not(.motion-on) .sky .fields-paper { display: none; }

/* ---- 6. Bands ---------------------------------------------------------------- */
main, .site-footer { position: relative; z-index: 1; }
.band { position: relative; padding-block: var(--band-pad); color: var(--ink); }
html:not(.motion-on) .band[data-ground="paper"] { background: var(--n05); }

/* ---- 7. Header: lockup left, Contact and Menu right ---------------------------- */
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; padding: var(--s3) var(--s4); background: var(--n05); color: var(--n90); border-radius: var(--r-2); font-weight: 500; }
.skip-link:focus { top: var(--s2); outline-color: var(--harbour-60); }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); color: var(--ink); background: transparent; border-bottom: 1px solid transparent;
  transition: background-color var(--m-base) var(--ease-out), border-color var(--m-base) var(--ease-out), color var(--m-base) var(--ease-out); }
.site-header.is-solid[data-theme="night"], .site-header.menu-open[data-theme="night"] { background: var(--night); border-bottom-color: var(--line-soft); }
.site-header.is-solid[data-theme="paper"], .site-header.menu-open[data-theme="paper"] { background: var(--n05); border-bottom-color: var(--line-soft); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.site-menu { position: absolute; right: var(--pad); top: calc(var(--header-h) + 8px); z-index: 49; width: 320px; max-width: calc(100vw - 2 * var(--pad)); padding: var(--s3); border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--card-line); box-shadow: 0 20px 50px rgb(0 0 0 / 0.3); animation: cardPop calc(var(--beat) * 0.75) var(--ease-emph); }
.site-menu ul { display: grid; }
.site-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3); border-radius: var(--r-2); color: var(--ink); text-decoration: none; font-weight: 500; }
.site-menu a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.site-menu a[aria-current] { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.site-menu .pause-motion { margin-top: var(--s2); width: 100%; justify-content: flex-start; }
@media (max-width: 599px) { .site-menu { left: var(--pad); right: var(--pad); width: auto; max-width: none; } .lockup .word { font-size: 18px; } .header-actions .btn { padding: 0 14px; min-height: 44px; } }
.no-js .site-menu { position: static; width: auto; box-shadow: none; animation: none; }
.no-js .menu-toggle { display: none; }

/* ---- 8. Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 20px; border-radius: var(--r-full); border: 1px solid transparent; font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; background: none; color: var(--ink); white-space: nowrap;
  transition: background-color var(--m-quick) var(--ease-standard), border-color var(--m-quick) var(--ease-standard), color var(--m-quick) var(--ease-standard); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--secondary { border-color: var(--line); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--quiet { color: var(--text-2); padding: 0 var(--s3); }
.btn--quiet:hover { color: var(--ink); }
.btn[aria-busy="true"] { cursor: progress; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.pause-motion[aria-pressed="true"] .when-playing, .pause-motion[aria-pressed="false"] .when-paused { display: none; }
.no-js .pause-motion { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---- 9. Opening: the Atlas, quiet until pressed ------------------------------------
   People as drifting lights. One name shows by default; press a light and
   that person's name, their kin's names and the lines between them appear. */
.hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: var(--s8) var(--s7); overflow: clip; }
.hero .inner { position: relative; z-index: 2; pointer-events: none; }
.hero .inner a, .hero .inner button { pointer-events: auto; }
.atlas { position: absolute; z-index: 1; right: calc(var(--pad) - 1vw); top: 50%; width: min(44vw, 680px); aspect-ratio: 10 / 7; translate: 0 -50%; }
.atlas-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.atlas-lines path, .atlas-lines line { vector-effect: non-scaling-stroke; }
.atlas-lines .link { stroke: var(--harbour-30); stroke-width: 1.6; animation: lineIn var(--beat) var(--ease-out); }
@keyframes lineIn { from { opacity: 0; } }
.atlas-lines .faint { stroke: rgb(230 235 240 / 0.8); stroke-linecap: round; }
.motion-on .atlas-lines .faint { animation: twinkle 6s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }
.atlas-list { display: grid; gap: var(--s2); }
.js .atlas-list { position: absolute; inset: 0; display: block; }
.js .atlas-list > li { position: absolute; width: 0; height: 0; will-change: transform; }
.js .atlas-list > li > .nm, .js .atlas-list > li > .who, .js .atlas-list > li > .star-info { display: none; }
.atlas-list .star-info img { display: none; }
.anode { position: absolute; left: 0; top: 0; transform: translate(-22px, -22px); display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--moonlit); font: 500 14px/18px var(--font); cursor: pointer; white-space: nowrap; border-radius: var(--r-full); }
.anode .pt { width: 44px; height: 44px; display: grid; place-items: center; flex: none; position: relative; }
.anode .pt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgb(230 235 240 / 0.4); transition: transform var(--m-base) var(--ease-standard), background-color var(--m-base); }
.anode .pt::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--harbour-30); opacity: 0; transform: scale(0.5); transition: opacity var(--m-base), transform var(--m-move) var(--ease-settle); }
.anode .nm { background: var(--chip-bg); border: 1px solid var(--chip-line); border-radius: 8px; padding: 3px 8px; color: var(--moonlit); position: relative; display: none; animation: cardPop var(--beat) var(--ease-emph); }
.anode.named .nm { display: block; }
.anode .nm::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 1px; background: rgb(230 235 240 / 0.6); }
.anode.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 22px), -22px); }
.anode.flip .nm::before { left: auto; right: -10px; }
.anode.elder .pt::before { width: 8px; height: 8px; box-shadow: 0 0 14px 4px rgb(230 235 240 / 0.5); }
.anode:hover .pt::before, .anode[aria-expanded="true"] .pt::before { transform: scale(1.5); }
.anode[aria-expanded="true"] .pt::after { opacity: 1; transform: scale(1); }
.anode[aria-expanded="true"] .nm, .anode:hover .nm { background: var(--moonlit); color: var(--night); border-color: var(--moonlit); }
.anode.is-kin .pt::before { background: var(--harbour-30); box-shadow: 0 0 12px 4px rgb(127 167 158 / 0.55); }
.anode:focus-visible { outline-offset: 0; }
.motion-on .anode .pt::before { animation: breathe 7s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
/* The Atlas arrives: each light fades up in turn, then the sky settles. */
.motion-on .anode { animation: fadeIn var(--m-rise) var(--ease-out) backwards; animation-delay: var(--in, 0s); }
.motion-on .atlas-lines { animation: fadeIn calc(var(--beat) * 4) var(--ease-out) backwards; }
/* Te Kāhui o Matariki: nine drawn stars in the cluster's own layout. They
   glow a soft blue white, like the haze around the Pleiades, and each has
   its own small, calm movement for what it is connected to. Transform and
   opacity only. Labels sit right (default), left, above or below. */
.nebula { position: absolute; left: 16%; top: 2%; width: 76%; height: 94%; pointer-events: none; background: radial-gradient(48% 46% at 52% 46%, rgb(120 160 220 / 0.16), rgb(120 160 220 / 0) 100%), radial-gradient(30% 28% at 62% 40%, rgb(150 190 235 / 0.12), rgb(150 190 235 / 0) 100%); }
.no-js .nebula { display: none; }
.js .mlist { pointer-events: none; }
.js .mlist .anode { pointer-events: auto; }
.anode.mstar .pt::before { width: var(--size, 6px); height: var(--size, 6px); background: var(--core, #e4edfb); box-shadow: 0 0 6px 1px rgb(var(--glow, 170 200 240) / 0.75), 0 0 16px 4px rgb(var(--glow, 170 200 240) / 0.22); }
.anode.mstar .nm { display: block; font-size: 13px; padding: 2px 8px; border-color: rgb(150 185 230 / 0.55); animation: none; }
.anode.mstar .pt::after { border-color: rgb(170 205 242 / 0.9); }
.anode.mstar .nm { transition: opacity var(--m-base) var(--ease-out); }
.atlas.people-open .anode.mstar .nm { opacity: 0; }
.anode.mstar[aria-expanded="true"] .nm, .anode.mstar:hover .nm { background: #e4edfb; border-color: #e4edfb; color: var(--night); }
.anode.side-b, .anode.side-t { flex-direction: column; gap: 0; transform: translate(-50%, -22px); }
.anode.side-t { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 22px)); }
.anode.side-b .nm::before, .anode.side-t .nm::before { display: none; }
/* One realistic star for all nine: a bright core, a soft pre-blurred halo
   (a radial gradient, never a filter) and faint diffraction spikes. Each
   star scintillates on its own periods and phases (set by the script from a
   fixed seed), so no two ever pulse together. The halo swells on the
   emphasis curve and settles; brightness steps unevenly on the standard one. */
.mstar .pt .halo, .mstar .pt .spike { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.mstar .pt .halo { width: var(--halo, 40px); height: var(--halo, 40px); margin: calc(var(--halo, 40px) / -2); border-radius: 50%; background: radial-gradient(circle, rgb(var(--glow, 170 200 240) / 0.42) 0%, rgb(var(--glow, 170 200 240) / 0.14) 32%, rgb(var(--glow, 170 200 240) / 0) 68%); opacity: 0.7; }
.mstar .pt .spike { width: var(--spike, 22px); height: 1px; margin: -0.5px 0 0 calc(var(--spike, 22px) / -2); background: linear-gradient(90deg, rgb(var(--glow, 170 200 240) / 0), rgb(var(--glow, 170 200 240) / 0.75), rgb(var(--glow, 170 200 240) / 0)); opacity: 0.4; }
.mstar .pt .spike.v { transform: rotate(90deg); }
.motion-on .anode.mstar .pt::before { animation: scint var(--p1, 4s) var(--ease-out) infinite; animation-delay: var(--d1, 0s); }
.motion-on .mstar .pt .halo { animation: haloSwell var(--p2, 6s) var(--ease-emph) infinite; animation-delay: var(--d2, 0s); }
.motion-on .mstar .pt .spike { animation: spikeGlint var(--p3, 5s) var(--ease-out) infinite; animation-delay: var(--d3, 0s); }
@keyframes scint { 0% { opacity: 0.84; transform: scale(1); } 13% { opacity: 1; transform: scale(1.12); } 29% { opacity: 0.74; transform: scale(0.94); } 47% { opacity: 0.95; transform: scale(1.05); } 61% { opacity: 0.8; transform: scale(0.97); } 78% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0.84; transform: scale(1); } }
@keyframes haloSwell { 0% { opacity: 0.55; transform: scale(0.9); } 22% { opacity: 0.85; transform: scale(1.18); } 50% { opacity: 0.6; transform: scale(0.96); } 71% { opacity: 0.76; transform: scale(1.08); } 100% { opacity: 0.55; transform: scale(0.9); } }
@keyframes spikeGlint { 0% { opacity: 0.28; } 31% { opacity: 0.6; } 54% { opacity: 0.34; } 83% { opacity: 0.55; } 100% { opacity: 0.28; } }
/* Explainer stars: a ring and a green glow, their names shown on desk. */
.anode.feat .pt::before { width: 9px; height: 9px; background: var(--harbour-30); box-shadow: 0 0 16px 5px rgb(127 167 158 / 0.55); }
.anode.feat .pt::after { opacity: 0.9; transform: scale(1); border-color: rgb(127 167 158 / 0.7); }
.anode.feat .nm { display: block; border-color: rgb(127 167 158 / 0.6); font-size: 13px; padding: 2px 8px; animation: none; }
.motion-on .anode.feat .pt::after { animation: featRing calc(var(--beat) * 8) var(--ease-out) infinite; animation-delay: var(--d, 0s); }
@keyframes featRing { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.anode.feat[aria-expanded="true"] .pt::after { animation: none; opacity: 1; transform: scale(1); }
.js .xlist { pointer-events: none; }
.js .xlist .anode { pointer-events: auto; }
.atlas.people-open .anode.feat .nm { opacity: 0; }
.anode.feat .nm { transition: opacity var(--m-base) var(--ease-out); }
.mcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: var(--s2); font-size: 13px; line-height: 18px; color: var(--muted); text-align: right; pointer-events: none; }
.no-js .mcaption { position: static; text-align: left; }
/* The star card, beside the pressed star on desk, a sheet on a phone. */
.star-card { position: absolute; z-index: 6; width: 360px; max-width: calc(100vw - 2 * var(--pad)); background: var(--night-surface); border: 1px solid rgb(124 137 154 / 0.55); border-radius: var(--r-1); overflow: hidden; color: var(--moonlit); animation: cardPop var(--beat) var(--ease-emph); box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); }
.star-card .pic { position: relative; aspect-ratio: 16 / 7; background: var(--night-high); overflow: hidden; }
.star-card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 0%); animation: picIn calc(var(--beat) * 1.75) var(--ease-emph) both; }
.star-card .pic .how-world { height: 100%; }
.star-card .pic svg { width: 100%; height: 100%; }
@keyframes picIn { from { clip-path: inset(0 0 100% 0); transform: scale(1.04); } to { clip-path: inset(0); transform: none; } }
.star-card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 42 66 / 0.9), rgb(30 42 66 / 0) 55%); }
.star-card .more { color: var(--moonlit); margin-top: var(--s2); }
.star-card .body { padding: var(--s4) var(--s5) var(--s5); }
.star-card .bar { height: 3px; width: 0; background: var(--harbour-30); animation: barIn calc(var(--beat) * 1.75) var(--ease-emph) calc(var(--beat) * 0.375) both; }
@keyframes barIn { to { width: 100%; } }
.star-card h3 { font-size: 20px; line-height: 26px; }
.star-card p { margin-top: var(--s2); color: var(--secondary); font-size: 16px; line-height: 24px; }
.star-card .body { padding-right: var(--s8); }
.star-card .waka { color: var(--moonlit); }
.star-card .close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border: 0; background: rgb(8 16 30 / 0.55); color: var(--moonlit); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.star-card .close:hover { background: rgb(8 16 30 / 0.8); }
@keyframes breathe { from { opacity: 0.7; } to { opacity: 1; } }
.atlas-card { position: absolute; z-index: 5; width: 300px; max-width: calc(100vw - 2 * var(--pad)); background: var(--night-surface); border: 1px solid rgb(124 137 154 / 0.55); border-radius: var(--r-1); padding: var(--s4) var(--s7) var(--s4) var(--s4); color: var(--moonlit); box-shadow: 0 16px 48px rgb(0 0 0 / 0.45); animation: cardPop var(--beat) var(--ease-emph); }
.atlas-card h3 { font-size: 20px; line-height: 26px; }
.atlas-card .who { margin-top: 2px; font-size: var(--t-caption); line-height: var(--t-caption-lh); color: var(--harbour-30); font-weight: 500; }
.atlas-card .rel { margin-top: var(--s2); font-size: 16px; line-height: 24px; color: var(--secondary); }
.atlas-card .close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--secondary); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.atlas-card .close:hover { color: var(--moonlit); background: rgb(230 235 240 / 0.08); }
@keyframes cardPop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.hero h1 { font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.034em; font-weight: 540; text-wrap: initial; }
.hero h1 .line { display: block; }
.rotator { display: inline-block; position: relative; vertical-align: top; min-height: 1em; white-space: nowrap; text-align: left; }
.rotator .word { display: inline-block; }
.rotator .word[aria-hidden="true"] { position: absolute; left: 0; top: 0; }
.rotator .word.is-leaving { animation: wordOut var(--beat) var(--ease-out) forwards; }
.rotator .word.is-entering { animation: wordIn var(--m-rise) var(--ease-emph) both; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-0.24em); filter: blur(6px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.3em); filter: blur(6px); } }
/* Word rise: each word of a headline rises a little, blurred to sharp, one
   after another (the script wraps the words; the copy is unchanged). */
.js .w { display: inline-block; }
.motion-on .hero h1 .w, .motion-on .chapter.is-active h3 .w { animation: wordRise var(--m-rise) var(--ease-emph) backwards; animation-delay: calc(var(--i, 0) * var(--rise-step) + var(--rise-at, 0s)); }
.motion-on .hero h1 .w { --rise-at: 0.15s; }
@keyframes wordRise { from { opacity: 0; transform: translateY(0.42em); filter: blur(8px); } }
.hero .lead { margin-top: var(--s5); max-width: 30ch; }
.hero .actions { margin-top: var(--s6); }
@media (max-width: 919px) {
  .hero { display: grid; grid-template-rows: auto auto; align-content: start; padding-block: 0 calc(var(--band-pad) + 44px); min-height: calc(100svh - var(--header-h)); } /* 44px holds the Matariki caption under the stars */
  .atlas { position: relative; inset: auto; translate: 0 0; width: 100%; aspect-ratio: auto; height: 52svh; min-height: 360px; margin-top: var(--s7); }
  .hero .inner { order: -1; margin-top: var(--s6); }
  .hero .lead { font-size: 18px; line-height: 28px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .atlas-card, .star-card { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .star-card .pic { aspect-ratio: 16 / 6; }
  .anode.feat .nm { display: none; }
  .mcaption { text-align: left; padding-inline: var(--pad); }
}

/* ---- 10. How it works: six chapters, one pinned stage ----------------------- */
.how { padding-bottom: var(--band-pad); }
.how .section-head { margin-bottom: var(--s5); }
.ch-nav { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
.ch-nav a { flex: 1; display: grid; gap: 8px; min-height: 44px; align-content: start; text-decoration: none; color: var(--text-2); font-size: var(--t-caption); line-height: 20px; font-weight: 500; min-width: 0; }
.ch-nav a .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-nav a[aria-current] { color: var(--ink); }
.ch-nav .bar { display: block; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 16%, transparent); overflow: hidden; }
.ch-nav .bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--dot); }
.chapter .num { display: block; font-size: var(--t-caption); line-height: 20px; color: var(--text-2); font-weight: 500; font-feature-settings: "tnum"; }
.chapter h3 { margin-top: var(--s2); font-size: clamp(28px, 1.4vw + 16px, 36px); line-height: 1.12; letter-spacing: -0.022em; }
.chapter p { margin-top: var(--s3); color: var(--text-2); max-width: 40ch; }
.dlabel { position: absolute; left: 0; top: 0; z-index: 2; font: 500 15px/20px var(--font); color: var(--n90); background: var(--n00); border: 1px solid var(--n30); border-radius: var(--r-full); padding: 3px 10px; white-space: nowrap; transform: translate(-50%, -100%); pointer-events: none; opacity: 0; transition: opacity var(--m-move) var(--ease-standard); }
.dlabel.is-on { opacity: 1; }
.dlabel.value { font-size: 16px; padding: 5px 12px; color: var(--n00); background: var(--harbour-60); border-color: #2c4540; }
.dlabel.value small { font-weight: 400; opacity: 0.85; margin-left: 4px; }
.dlabel.far { color: var(--moonlit); background: var(--night-high); border-color: var(--line-night); }
.how-svg { width: 100%; height: auto; overflow: visible; }
.how-world { position: relative; overflow: clip; }
.how-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.how-app { position: absolute; left: 0; top: 0; z-index: 3; border-radius: 10px; box-shadow: 0 24px 60px rgb(33 28 23 / 0.22), 0 0 0 1px rgb(33 28 23 / 0.08); transform-origin: 0 0; opacity: 0; will-change: transform; }
.chapters { display: grid; gap: var(--s7); }
.ch-nav { display: none; }
.how-draw { display: none; }
.still-figure { margin-top: var(--s5); max-width: 640px; }
.still-figure svg { width: 100%; height: auto; overflow: visible; }
.still-app img { border-radius: 10px; box-shadow: 0 16px 40px rgb(33 28 23 / 0.16), 0 0 0 1px rgb(33 28 23 / 0.08); }
.no-js .still-figure:not(.still-app) { display: none; }
@media (min-width: 920px) { html:not(.motion-on) .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }
.motion-on .how-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.motion-on .how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: center; height: 100%; }
.motion-on .ch-nav { display: flex; }
.motion-on .how-draw { display: block; position: relative; }
.motion-on .still-figure { display: none; }
.motion-on .chapters { display: block; position: relative; min-height: 300px; }
.motion-on .chapter { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(12px); transition: opacity var(--m-move) var(--ease-standard), transform var(--m-move) var(--ease-standard); visibility: hidden; }
.motion-on .chapter.is-active { opacity: 1; transform: none; visibility: visible; }
@media (max-width: 919px) {
  /* Phone, pinned: the drawing fills the space between the header and the
     progress bars and sits centred in it, with clear room under the header
     for its labels; the words sit below at a fixed height (the tallest
     chapter, set by the script), so nothing moves between chapters. */
  .motion-on .how-grid { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: var(--s5); padding-block: var(--s7) var(--s5); }
  .motion-on .how-draw { order: -1; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 480px; margin-inline: auto; }
  .motion-on .how-text { flex: none; }
  .motion-on .chapters { min-height: 250px; }
  .motion-on .ch-nav { margin-bottom: var(--s3); gap: 4px; }
  .ch-nav a { gap: 6px; min-height: 0; }
  .ch-nav a .t { display: none; }
  .ch-nav a[aria-current] .t { display: block; }
  .ch-nav a[aria-current] { flex: 3; }
  .chapter h3 { font-size: 26px; }
  .chapter p { font-size: 17px; line-height: 26px; }
  .dlabel { font-size: 13px; line-height: 18px; padding: 2px 8px; }
  .dlabel.value { font-size: 13px; padding: 3px 9px; }
  .dlabel.value small { display: none; }
}

/* ---- 11. See it: real screens, fitted; pinch to zoom; numbered lights ------------ */
.tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.tablist { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-full); border: 1px solid transparent; background: none; color: var(--text-2); font-weight: 500; font-size: 16px; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--line); background: var(--surface); }
.tabpanel { animation: fadeIn var(--m-base) var(--ease-standard); }
@keyframes fadeIn { from { opacity: 0; } }
.screen { position: relative; border-radius: var(--r-2); overflow: hidden; background: var(--n05); box-shadow: 0 20px 50px rgb(33 28 23 / 0.14), 0 0 0 1px rgb(33 28 23 / 0.08); touch-action: pan-y; }
.screen.is-zoomed { touch-action: none; }
.pz-view { position: relative; transform-origin: 0 0; will-change: transform; }
.screen img { aspect-ratio: 1120 / 787; width: 100%; user-select: none; -webkit-user-drag: none; }
.pz-reset { position: absolute; right: var(--s3); top: var(--s3); z-index: 3; min-height: 40px; padding: 0 14px; background: var(--n90); color: var(--n05); border-color: transparent; }
.hot { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; transform: scale(var(--inv, 1)); }
.hot span { width: 26px; height: 26px; border-radius: 50%; background: var(--harbour-60); color: var(--n00); font: 600 13px/1 var(--font); display: grid; place-items: center; box-shadow: 0 0 0 3px rgb(255 252 247 / 0.85), 0 4px 12px rgb(33 28 23 / 0.3); transition: transform var(--m-base) var(--ease-standard), background-color var(--m-base); }
.hot:hover span { transform: scale(1.12); }
.hot[aria-expanded="true"] span { background: var(--n90); transform: scale(1.12); }
.motion-on .hot::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--harbour-60); animation: halo calc(var(--beat) * 6.5) var(--ease-out) infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes halo { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
.hot-note { margin-top: var(--s3); min-height: 56px; display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--card-line); color: var(--ink); animation: fadeIn var(--m-base) var(--ease-standard); }
.hot-note .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--harbour-60); color: var(--n00); font: 600 13px/1 var(--font); display: grid; place-items: center; }
.hot-note p { font-size: 16px; line-height: 24px; }
.tabpanel figcaption { margin-top: var(--s4); color: var(--text-2); max-width: 60ch; }
@media (min-width: 920px) { .tabs { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } .tablist { flex-direction: column; overflow: visible; margin: 0; padding: 0; } .tab { text-align: left; } }

/* ---- 12. Our Roadmap: the pātaka gaining layers as you scroll --------------------- */
.road .section-head { margin-bottom: var(--s5); }
.road-draw { position: relative; }
.road-draw svg { width: 100%; height: auto; overflow: visible; }
.layer-tag { position: absolute; left: 0; top: 0; z-index: 2; font: 500 14px/18px var(--font); color: var(--n90); background: var(--n00); border: 1px solid var(--harbour-30); border-radius: var(--r-full); padding: 4px 11px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity var(--m-move) var(--ease-standard); max-width: 70%; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.layer-tag.is-on { opacity: 1; }
.layer-tag.lit { color: var(--n00); background: var(--harbour-60); border-color: #2c4540; }
.layers { display: grid; gap: var(--s5); }
.layer h3 { font-size: clamp(26px, 1.4vw + 16px, 34px); line-height: 1.12; letter-spacing: -0.022em; }
.layer .num { display: block; font-size: var(--t-caption); line-height: 20px; color: var(--text-2); font-weight: 500; font-feature-settings: "tnum"; }
/* Openers: a hairline that draws left to right, then holds. Above the See it,
   Roadmap and Who is behind headings, and above each roadmap layer's tag. */
.opener::before, .road .layer .num::before { content: ""; display: block; height: 1px; background: var(--line); transform-origin: 0 50%; }
.opener::before { width: min(160px, 40%); margin-bottom: var(--s5); }
.road .layer .num::before { width: 48px; margin-bottom: var(--s2); }
.motion-on .opener::before { transform: scaleX(0); transition: transform calc(var(--beat) * 3) var(--ease-emph); }
.motion-on .opener.is-in::before { transform: none; }
.motion-on .road .layer .num::before { transform: scaleX(0); transition: transform calc(var(--beat) * 2.5) var(--ease-emph); }
.motion-on .road .layer.is-active .num::before { transform: none; transition-delay: calc(var(--beat) * 0.25); }
.layer p { margin-top: var(--s3); color: var(--text-2); max-width: 40ch; }
.road-grid { display: grid; gap: var(--s6); }
@media (min-width: 920px) { .road-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: center; } }
/* Still layout: the whole stack and every layer's words, in a list. */
.road-pin { position: relative; }
html:not(.motion-on) .layer h3 { cursor: pointer; }
.motion-on .road-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.motion-on .road-grid { height: 100%; }
.motion-on .layers { display: block; position: relative; min-height: 220px; }
.motion-on .layer { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(12px); transition: opacity var(--m-move) var(--ease-standard), transform var(--m-move) var(--ease-standard); visibility: hidden; }
.motion-on .layer.is-active { opacity: 1; transform: none; visibility: visible; }
@media (max-width: 919px) {
  .motion-on .road-grid { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s5); padding-block: var(--s7) var(--s5); }
  .motion-on .road-draw { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 440px; margin-inline: auto; }
  .motion-on .layers { flex: none; }
  .motion-on .layers { min-height: 200px; }
  .layer h3 { font-size: 26px; }
  .layer p { font-size: 17px; line-height: 26px; }
  .layer-tag { font-size: 13px; padding: 3px 9px; }
}
.road .more { margin-top: var(--s5); }
.status-word { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-caption); line-height: 20px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.status-word::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.status-word.ready::before { background: var(--success); border-color: var(--success); }
.status-cols { display: grid; gap: var(--s7); }
@media (min-width: 760px) { .status-cols { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.status-cols h2 { font-size: 28px; line-height: 34px; margin-bottom: var(--s3); }
.rows li { padding: var(--s4) 0; border-top: 1px solid var(--line-soft); }
.rows li:last-child { border-bottom: 1px solid var(--line-soft); }
.rows .t { font-weight: 500; }
.rows .sub { display: block; margin-top: 2px; color: var(--text-2); }

/* ---- 13. Who is behind WAKA ----------------------------------------------------- */
.behind-grid { display: grid; gap: var(--s7); }
@media (min-width: 920px) { .behind-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: var(--s9); } }
.behind h2 { max-width: 20ch; }
.behind p { margin-top: var(--s4); color: var(--text-2); max-width: 56ch; }
.behind p.ink { color: var(--ink); }
.behind .caption { margin-top: var(--s6); }
.behind-logo { display: flex; align-items: center; justify-content: center; }
.behind-logo img { width: min(60%, 260px); opacity: 0.92; }
@media (max-width: 919px) { .behind-logo { justify-content: center; } .behind-logo img { width: 160px; } }

/* ---- 14. Get in touch, footer ------------------------------------------------------ */
.touch { padding-block: var(--band-pad); }
.touch h2 { max-width: 18ch; }
.touch .sub { margin-top: var(--s4); }
.touch .actions { margin-top: var(--s6); }
.site-footer { padding-block: var(--band-pad) var(--s6); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s8); } }
@media (max-width: 759px) { .site-footer { padding-block: var(--band-pad) var(--s5); } .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); } .footer-grid > div:first-child { grid-column: 1 / -1; } .footer-base { margin-top: var(--s5); } }
.footer-grid p { color: var(--text-2); max-width: 36ch; margin: var(--s3) 0 var(--s3); }
.footer-grid h2 { font-size: var(--t-caption); line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: var(--text-3); margin-bottom: var(--s2); font-variation-settings: "opsz" 14; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.footer-grid li a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .pause-motion { margin-left: calc(-1 * var(--s3)); }
.footer-base { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; color: var(--text-3); font-size: var(--t-caption); line-height: var(--t-caption-lh); }

/* ---- 15. Pages ----------------------------------------------------------------------- */
body.page { background: var(--n05); }
.page .site-footer { background: var(--night); }
.page .band { padding-block: var(--s8) var(--s9); }
.page-head { max-width: 780px; margin-bottom: var(--s7); }
.page-head h1 { font-size: clamp(40px, 3.6vw + 20px, 72px); line-height: 1.02; font-weight: 540; letter-spacing: -0.032em; }
.page-head .lead { margin-top: var(--s5); max-width: 44ch; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(28px, 1.4vw + 18px, 36px); margin-top: var(--s8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s6); font-size: 22px; line-height: 28px; }
.prose p { margin-top: var(--s4); color: var(--text-2); }
.prose p.ink { color: var(--ink); }
.prose ul { margin-top: var(--s3); display: grid; gap: 6px; color: var(--text-2); }
.prose ul li { padding-left: 18px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--n40); }
.page-figure { margin-top: var(--s5); max-width: 640px; }
.page-figure svg { width: 100%; height: auto; overflow: visible; }
.steps7 { margin-top: var(--s5); display: grid; gap: var(--s3); }
.steps7 li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line-soft); }
.steps7 .n { font-weight: 500; color: var(--accent-text); font-feature-settings: "tnum"; padding-top: 3px; }
.steps7 h3 { margin: 0; font-size: 22px; line-height: 28px; }
.steps7 p { margin-top: var(--s1); }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: var(--s4); color: var(--text-2); text-decoration: none; font-weight: 500; }
.crumb:hover { color: var(--ink); }
.next-page { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: var(--s3); }
.page .road-grid { margin-top: var(--s6); align-items: start; }
.page .layers { display: grid; gap: var(--s5); }
.page .layer { position: static; opacity: 1; transform: none; visibility: visible; }
.release { margin-top: var(--s5); border-radius: var(--r-1); background: var(--n00); border: 1px solid var(--n30); padding: var(--s6); max-width: 720px; }
.release .status-word { margin-bottom: var(--s3); }
.release h2 { margin: 0; font-size: 28px; line-height: 34px; }
.release dl { margin-top: var(--s5); display: grid; gap: var(--s3); }
.release dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--n20); }
.release dt { color: var(--text-2); }
.fingerprint { margin-top: var(--s5); }
.fingerprint .label { font-weight: 500; }
.fp-groups { margin-top: var(--s3); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); max-width: 560px; }
.fp-groups span { height: 40px; border-radius: 8px; border: 1.5px dashed var(--n40); }
.fingerprint .note { margin-top: var(--s3); color: var(--text-2); }
@media (max-width: 599px) { .fp-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .release { padding: var(--s5); } .release dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.check-steps { margin-top: var(--s4); counter-reset: c; display: grid; gap: var(--s3); color: var(--text-2); }
.check-steps li { counter-increment: c; display: grid; grid-template-columns: 32px minmax(0, 1fr); }
.check-steps li::before { content: counter(c) "."; color: var(--ink); font-weight: 500; }
.contact-grid { display: grid; gap: var(--s6); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s9); } }
.form { display: grid; gap: var(--s5); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.field { display: grid; gap: var(--s1); }
.field label, .field .legend { font-weight: 500; }
.reach .legend { margin-bottom: var(--s2); }
.field .opt { color: var(--text-2); font-weight: 400; }
.field .hint { font-size: var(--t-caption); line-height: var(--t-caption-lh); color: var(--text-2); }
.control { min-height: 48px; width: 100%; padding: var(--s3); border-radius: var(--r-2); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
textarea.control { min-height: 144px; resize: vertical; }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%235c4e3c' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s3) center; padding-right: var(--s7); }
.control:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.field[data-invalid="true"] .control { border: 2px solid var(--danger); }
.field .msg { min-height: 20px; font-size: var(--t-caption); line-height: var(--t-caption-lh); color: var(--danger); display: flex; gap: 6px; align-items: flex-start; }
.reach { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .reach .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { padding: var(--s4); border-radius: var(--r-2); background: var(--n00); border: 1px solid var(--n20); color: var(--text-2); font-size: var(--t-caption); line-height: var(--t-caption-lh); }
.error-summary { border: 2px solid var(--danger); border-radius: var(--r-2); padding: var(--s4); }
.error-summary h2 { font-size: var(--t-body); line-height: var(--t-body-lh); color: var(--danger); margin-bottom: var(--s2); }
.error-summary a { color: var(--ink); }
.form-result { margin-top: var(--s5); padding: var(--s5); border-radius: var(--r-1); border: 1px solid var(--line); background: var(--n00); }
.form-result h2 { font-size: 24px; line-height: 30px; margin-bottom: var(--s2); }
.form-result p { color: var(--text-2); }
.form-result .actions { margin-top: var(--s4); }
.other-way { margin-top: var(--s5); color: var(--text-2); }
.other-way .addr { font-weight: 500; color: var(--ink); word-break: break-word; }

/* ---- 16. Preference paths ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rotator .word.is-leaving, .rotator .word.is-entering, .blob, .anode, .atlas-lines, .w, .anode .pt::before, .anode .pt::after, .atlas-lines .faint, .atlas-lines .link, .hot::after, .anode .nm, .star-card .bar, .star-card .pic img, .mstar .pt .halo, .mstar .pt .spike { animation: none !important; }
  .opener::before, .layer .num::before { transform: none !important; transition: none !important; }
  .star-card .bar { width: 100%; }
  .tabpanel, .atlas-card, .hot-note, .site-menu { animation-duration: var(--m-quick); animation-name: fadeIn; }
  .chapter, .layer, .dlabel, .layer-tag { transition: none !important; }
}
@media (prefers-contrast: more) {
  body[data-tone="night"], [data-ground="night"], [data-theme="night"] { --text-2: var(--moonlit); --text-3: var(--secondary); --line-soft: var(--line-night); }
  body[data-tone="paper"], [data-ground="paper"], [data-theme="paper"] { --text-2: var(--n90); --text-3: var(--n70); --line-soft: var(--n40); }
}
@media (forced-colors: active) {
  .sky { display: none; }
  .atlas-card, .star-card, .anode .nm, .control, .btn, .tab, .release, .hot-note, .layer-tag, .site-menu { border: 1px solid CanvasText; }
  .status-word::before, .anode .pt::before, .hot span { forced-color-adjust: none; }
}

/* ---- 17. Print ---------------------------------------------------------------------- */
@media print {
  @page { margin: 18mm; }
  html, body, .band, .site-header, .site-footer { background: #fff !important; color: #000 !important; }
  .band { padding-block: 8mm; --ink: #000; --text-2: #222; --text-3: #333; --link: #000; --accent-text: #000; }
  .sky, .atlas, .pause-motion, .header-cta, .menu-toggle, .site-menu, .skip-link, .how-draw, .ch-nav, .atlas-card, .star-card, .hot, .road-draw, .pz-reset { display: none !important; }
  .site-header { position: static; height: auto; }
  .how-stage, .road-stage { position: static !important; height: auto !important; }
  .how-pin, .road-pin { height: auto !important; }
  .chapter, .layer { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .chapters, .layers { display: grid !important; }
}
