/* Igneous v2 — editorial type over procedural volcanic landscapes. System fonts only. */

:root {
  --basalt: #101214;
  --basalt-2: #191c1f;
  --slate: #2c3136;
  --hair: rgba(241, 239, 233, 0.16);
  --mist: #f3f1eb;
  --mist-dim: #c9ccc8;
  --mist-faint: #9ea4a3;
  --seaglass: #a6d8cc;
  --lichen: #bccb95;
  --gold: #ecbd78;
  --gold-deep: #d8994f;
  --dusk: #d39a93;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 6.5vw, 112px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--basalt); -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  color: var(--mist);
  font: 400 18px/1.55 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--mist); color: var(--basalt); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ stage */
#stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  display: block; z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease);
}
html.gl #stage { opacity: 1; }

/* CSS vista: the fallback scenery when WebGL is unavailable (and before the first frame). */
.vista { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--v-sky, linear-gradient(#1d2a35, #556a72 55%, #c9a582 78%, #2a2b2c 100%)); transition: opacity 1.2s var(--ease); }
html.gl .vista { opacity: 0; }
.vista i { position: absolute; left: -5%; right: -5%; bottom: 0; display: block; transition: background 1.2s var(--ease), clip-path 1.2s var(--ease); }
.vista .v-sky { inset: 0; background: radial-gradient(ellipse 60% 40% at var(--sun-x, 70%) var(--sun-y, 62%), var(--v-glow, rgba(255, 214, 160, 0.55)), transparent 70%); }
.vista .v-far { height: 46%; background: var(--v-far, #6f7f86); clip-path: polygon(0 52%, 8% 40%, 15% 46%, 24% 30%, 31% 38%, 40% 22%, 47% 34%, 55% 28%, 63% 40%, 72% 26%, 80% 36%, 88% 30%, 100% 44%, 100% 100%, 0 100%); opacity: 0.75; }
.vista .v-mid { height: 34%; background: var(--v-mid, #3b464b); clip-path: polygon(0 40%, 10% 30%, 18% 44%, 27% 24%, 36% 38%, 45% 30%, 54% 46%, 62% 28%, 71% 40%, 80% 22%, 90% 36%, 100% 30%, 100% 100%, 0 100%); }
.vista .v-near { height: 20%; background: var(--v-near, #15181a); clip-path: polygon(0 30%, 12% 46%, 22% 34%, 35% 52%, 50% 40%, 64% 56%, 78% 38%, 90% 50%, 100% 36%, 100% 100%, 0 100%); }
html[data-vista="caldera"] .vista { --v-sky: linear-gradient(#1b2633, #4d6070 45%, #d3a685 74%, #2d2a28 100%); --v-far: #7c8a90; --v-mid: #42494c; --v-near: #16191a; --sun-x: 70%; --sun-y: 64%; }
html[data-vista="ridges"] .vista { --v-sky: linear-gradient(#36577a, #8aa6bd 50%, #dfe4e2 72%, #9aa6ad 100%); --v-far: #a9b8c2; --v-mid: #71828d; --v-near: #3a444a; --v-glow: rgba(255, 245, 220, 0.5); --sun-x: 78%; --sun-y: 30%; }
html[data-vista="coast"] .vista { --v-sky: linear-gradient(#3f6a8c, #8fb2c6 48%, #d8e2e2 66%, #3c5b63 67%, #1d3238 100%); --v-far: #5e6f72; --v-mid: #24292b; --v-near: #0d0f10; --v-glow: rgba(255, 250, 235, 0.45); --sun-x: 30%; --sun-y: 22%; }
html[data-vista="coast"] .vista .v-far, html[data-vista="dusk"] .vista .v-far { height: 30%; clip-path: polygon(0 70%, 14% 62%, 30% 66%, 52% 58%, 64% 64%, 70% 40%, 78% 38%, 84% 60%, 100% 64%, 100% 100%, 0 100%); }
html[data-vista="coast"] .vista .v-mid, html[data-vista="dusk"] .vista .v-mid { height: 22%; clip-path: polygon(0 60%, 18% 66%, 40% 62%, 58% 70%, 62% 30%, 64% 28%, 67% 70%, 80% 66%, 100% 72%, 100% 100%, 0 100%); }
html[data-vista="coast"] .vista .v-near, html[data-vista="dusk"] .vista .v-near { height: 10%; clip-path: polygon(0 40%, 20% 52%, 45% 46%, 70% 58%, 100% 48%, 100% 100%, 0 100%); }
html[data-vista="dusk"] .vista { --v-sky: linear-gradient(#1c2340, #5a4a6a 38%, #e09a6a 62%, #f3c27e 66%, #2a2f38 67%, #101315 100%); --v-far: #4a3f48; --v-mid: #1d1d22; --v-near: #0b0c0e; --v-glow: rgba(255, 190, 120, 0.7); --sun-x: 60%; --sun-y: 64%; }

/* Loading veil (JS + WebGL only). It fades as soon as the first frame is ready. */
.veil {
  position: fixed; inset: 0; z-index: 60; display: none; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, #1c2228, var(--basalt) 70%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
html.loading .veil { display: grid; }
html.loading.ready .veil { opacity: 0; visibility: hidden; }
.veil-inner { text-align: center; padding: 24px; }
.veil-icon { margin: 0 auto 18px; border-radius: 17px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7); }
.veil-title { margin: 0; font: 500 clamp(34px, 5vw, 52px)/1 var(--serif); letter-spacing: -0.02em; }
.veil-line { margin: 12px 0 26px; color: var(--mist-dim); font-size: 16px; }
.veil-bar { width: 160px; height: 2px; margin: 0 auto; background: var(--hair); border-radius: 2px; overflow: hidden; }
.veil-bar i { display: block; height: 100%; width: 8%; background: var(--gold); transition: width 0.4s var(--ease); }

/* ------------------------------------------------------------------ bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 18px; row-gap: 8px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
}
.bar-left { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 18px; min-width: 0; }
.dock { grid-column: 2; grid-row: 1; justify-self: center; }
.bar-right { grid-column: 3; grid-row: 1; justify-self: end; }
/* Copy that scrolls up under the header fades behind it instead of running over the logo: a backdrop that blurs and
   darkens what passes beneath, feathered out below the bar (a soft falloff, never an edge) */
.bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 44px); z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(8, 10, 12, 0.74), rgba(8, 10, 12, 0.5) 45%, rgba(8, 10, 12, 0.16) 75%, rgba(8, 10, 12, 0));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0.75) 62%, rgba(0, 0, 0, 0.3) 82%, transparent);
  mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0.75) 62%, rgba(0, 0, 0, 0.3) 82%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 7px; }
.wordmark { font: 600 19px/1 var(--serif); letter-spacing: -0.01em; }
.endorse { font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-faint); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.tog {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid var(--hair); border-radius: 999px; background: rgba(16, 18, 20, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--mist-dim); font: 500 12px/1 var(--mono); letter-spacing: 0.06em; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.tog:hover { border-color: rgba(241, 239, 233, 0.4); color: var(--mist); }
.tog-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background 0.2s; }
.tog[aria-pressed="true"] { color: var(--mist); border-color: rgba(236, 189, 120, 0.6); }
.tog[aria-pressed="true"] .tog-dot { background: var(--gold); border-color: var(--gold); }
.tog .short { display: none; }
.tog.g { justify-content: center; width: 36px; height: 36px; padding: 0; position: relative; flex: none; }
.tog.g svg { display: block; width: 20px; height: 20px; }
.tog.g[aria-pressed="true"], .tog.g[aria-expanded="true"] { color: var(--gold, #ecbd78); }
.tog:focus-visible, .tod-range:focus-visible { outline: 2px solid var(--gold, #ecbd78); outline-offset: 2px; }
.tog.g:disabled { opacity: 0.4; cursor: default; }
.tog.g:disabled:hover { border-color: var(--hair); color: var(--mist-dim); }

/* the glyph dock (src/dock.js): a centred toolbar of symbol-only buttons; the names are tooltips */
.dock { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dock-g { display: inline-flex; align-items: center; gap: 6px; }
.dock-g + .dock-g { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--hair); }
.gi-sound .sl { display: none; }
.tog[aria-pressed="false"] .gi-sound .sl { display: inline; }
.tog[aria-pressed="false"] .gi-sound .wv { display: none; }
.hide-tog .sl { display: none; }
.hide-tog[aria-pressed="true"] .sl { display: inline; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -3px); z-index: 70;
  padding: 7px 10px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(12, 14, 16, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--mist); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; white-space: nowrap; text-transform: none;
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dock-g:last-child > [data-tip]:last-child::after { left: auto; right: 0; transform: translate(0, -3px); }
.dock-g:last-child > [data-tip]:last-child:hover::after, .dock-g:last-child > [data-tip]:last-child:focus-visible::after { transform: none; }
@media (hover: none) { [data-tip]::after { display: none; } }
html.hide-tools .dock [data-tool] { display: none; }
html.hide-tools .cin-panel { display: none; }
html.hide-tools .dock-g[data-g="audio"] { margin-left: 0; padding-left: 0; border-left: 0; }
html.hide-tools .dock-g[data-g="audio"] + .dock-g { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--hair); }
.dl {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--mist); color: var(--basalt); text-decoration: none; font: 600 13px/1 var(--sans);
  transition: background 0.2s;
}
.dl:hover { background: #fff; }

/* ------------------------------------------------------------------ route (journey nav) */
.route { position: fixed; right: calc(var(--gutter) * 0.35); top: 50%; transform: translateY(-50%); z-index: 30; display: none; transition: opacity 0.5s var(--ease), visibility 0.5s; }
html.js .route { display: block; }
/* a soft shadow pool behind the rail so it reads over white cloud and foam without a visible panel */
.route::before {
  content: ""; position: absolute; inset: -40px -18px -40px -70px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 10, 12, 0.34), rgba(8, 10, 12, 0.14) 60%, transparent);
  transition: inset 0.3s var(--ease);
}
.route:hover::before { inset: -40px -18px -40px -150px; }
/* past the last stop the rail and the HUD step aside for the small print and the footer */
html.at-end .route, html.at-end .hud, .hud.hud-off { opacity: 0; visibility: hidden; }
.route ol { list-style: none; margin: 0; padding: 0; position: relative; }
.route-track { position: absolute; right: 5px; top: 10px; bottom: 10px; width: 1px; background: rgba(241, 239, 233, 0.3); }
.route-track i { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--gold); }
.route a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 26px; padding-right: 0;
  text-decoration: none; color: #b8bdbb; font: 500 11px/1 var(--mono); letter-spacing: 0.1em;
}
.route a::after { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(241, 239, 233, 0.5); background: var(--basalt); box-shadow: 0 0 6px rgba(6, 8, 10, 0.5); transition: all 0.3s var(--ease); flex: none; }
.route .rl { opacity: 0; transform: translateX(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 1px rgba(6, 8, 10, 0.8), 0 1px 3px rgba(6, 8, 10, 0.6), 0 0 12px rgba(6, 8, 10, 0.55); }
.route .rn { opacity: 0.8; text-shadow: 0 0 1px rgba(6, 8, 10, 0.8), 0 1px 3px rgba(6, 8, 10, 0.6), 0 0 12px rgba(6, 8, 10, 0.55); }
.route:hover .rl, .route a:focus-visible .rl, .route a[aria-current="true"] .rl { opacity: 1; transform: none; }
.route a[aria-current="true"] { color: var(--mist); }
.route a[aria-current="true"]::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(236, 189, 120, 0.18); }
.route a.past::after { border-color: rgba(236, 189, 120, 0.7); }

/* ------------------------------------------------------------------ HUD (scenery) */
.hud {
  position: fixed; left: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 30;
  display: none; align-items: flex-end; gap: 16px; color: var(--mist-dim);
  font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  text-shadow: 0 0 1px rgba(6, 8, 10, 0.7), 0 1px 8px rgba(0, 0, 0, 0.55); pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
html.js .hud { display: flex; }
.hud-sun { color: var(--mist-dim); }
.hud-sun circle { fill: var(--gold); }
.hud-rows { display: flex; gap: 18px; margin: 0; }
.hud-rows div { display: grid; gap: 3px; }
.hud-rows dt { color: var(--mist-faint); font-size: 9.5px; }
.hud-rows dd { margin: 0; color: var(--mist); font-variant-numeric: tabular-nums; }
.hud-name { margin: 0 0 0 4px; padding-left: 16px; border-left: 1px solid var(--hair); color: var(--seaglass); }

/* ------------------------------------------------------------------ stops */
main { position: relative; z-index: 1; outline: none; }
.stop {
  position: relative; min-height: 150vh; display: flex; align-items: center;
  padding: 22vh var(--gutter);
  /* the copy scrim (.copy::before) reaches past the copy; never let it widen the page (on phones that widened the
     layout viewport and pushed the fixed header's Download pill off screen) */
  overflow-x: clip;
}
/* the hero fills exactly the first screen, so its copy is centred (and whole) before any scrolling */
html.js .stop:first-child { min-height: 100vh; min-height: 100svh; padding-top: max(84px, 12vh); padding-bottom: max(120px, 14vh); }
.stop[data-side="right"] { justify-content: flex-end; }
.stop[data-side="center"] { justify-content: center; text-align: center; }
/* right-hand copy keeps clear of the rail and its current-section label */
.stop[data-side="right"] .copy { margin-right: max(calc(var(--gutter) * 0.6), 150px - var(--gutter)); }
.copy { position: relative; max-width: min(37rem, 92vw); }
.copy::before {
  content: ""; position: absolute; inset: -14% -22% -16% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 10, 12, 0.34), rgba(8, 10, 12, 0.16) 55%, transparent);
  filter: blur(8px);
}
/* Small type over bright scenery: a tight dark halo (reads on white cloud and foam) plus a wide soft one. */
.place { margin: 0 0 22px; font: 600 11px/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #c4ece1; text-shadow: 0 0 1px rgba(6, 8, 10, 0.8), 0 1px 3px rgba(6, 8, 10, 0.6), 0 0 16px rgba(6, 8, 10, 0.62); }
.place .pn { color: var(--gold); margin-right: 10px; }
.kicker { margin: 0 0 10px; font: 500 13px/1.3 var(--mono); letter-spacing: 0.04em; color: #e2e4e0; text-shadow: 0 0 1px rgba(6, 8, 10, 0.8), 0 1px 3px rgba(6, 8, 10, 0.6), 0 0 16px rgba(6, 8, 10, 0.6); }
.hl {
  margin: 0 0 26px; font: 500 clamp(44px, min(6.4vw, 10.5vh), 108px)/0.98 var(--serif); letter-spacing: -0.024em;
  text-wrap: balance; color: var(--mist);
  text-shadow: 0 2px 30px rgba(6, 8, 10, 0.38), 0 1px 3px rgba(6, 8, 10, 0.28);
}
.hl-1 { font-size: clamp(52px, min(8vw, 12.5vh), 138px); }
.hl .hash { color: var(--gold); font-weight: 400; margin-right: 0.04em; font-size: 0.72em; vertical-align: 0.12em; opacity: 0.95; }
.body { margin: 0; max-width: 31em; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.58; color: rgba(246, 244, 239, 0.96); text-shadow: 0 0 1px rgba(6, 8, 10, 0.5), 0 1px 3px rgba(6, 8, 10, 0.42), 0 1px 18px rgba(6, 8, 10, 0.5); }
.stop[data-side="center"] .body, .stop[data-side="center"] .copy { margin-left: auto; margin-right: auto; }
.stop[data-side="center"] .hl { font-size: clamp(42px, min(5.6vw, 9.5vh), 96px); }
.facts { margin: 18px 0 0; max-width: 34em; font: 500 12px/1.65 var(--mono); letter-spacing: 0.04em; color: #dcdfdb; text-shadow: 0 0 1px rgba(6, 8, 10, 0.75), 0 1px 3px rgba(6, 8, 10, 0.55), 0 0 14px rgba(6, 8, 10, 0.5); }
.points { margin: 18px 0 0; padding: 0; list-style: none; max-width: 31em; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; color: rgba(246, 244, 239, 0.94); text-shadow: 0 0 1px rgba(6, 8, 10, 0.5), 0 1px 3px rgba(6, 8, 10, 0.42), 0 1px 18px rgba(6, 8, 10, 0.5); }
.points li { padding-left: 1.3em; position: relative; }
.points li::before { content: "-"; position: absolute; left: 0; color: var(--gold); font-family: var(--mono); }
.body code { font-family: var(--mono); font-size: 0.92em; }
.fn { color: var(--gold); text-decoration: none; margin-left: 2px; }
.badge-compact { display: inline-block; margin-top: 30px; }
.badge-compact img, .badge img { height: auto; }

.cue { position: absolute; left: var(--gutter); bottom: 9vh; margin: 0; display: flex; align-items: center; gap: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist-dim); }
.cue-line { width: 1px; height: 38px; background: linear-gradient(transparent, var(--mist)); animation: cue 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html.calm .cue-line { animation: none; }

/* ------------------------------------------------------------------ reveals */
html.js .rv, html.js .hl .txt { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js .hl .txt { display: inline; transform: none; filter: blur(6px); transition: opacity 1.3s var(--ease), filter 1.3s var(--ease); }
html.js .hl .hash { opacity: 0; transition: opacity 1s var(--ease) 0.1s; }
html.js .stop.in .rv, html.js .stop.in .hl .txt, html.js .stop.in .hl .hash { opacity: 1; transform: none; filter: none; }
html.js .stop.in .kicker { transition-delay: 0.08s; }
html.js .stop.in .hl .txt { transition-delay: 0.16s; }
html.js .stop.in .body { transition-delay: 0.34s; }
html.js .stop.in .device, html.js .stop.in .trio, html.js .stop.in .badge-compact { transition-delay: 0.5s; }
html.js .stop.in .cta .rv:nth-child(2) { transition-delay: 0.5s; }
html.js .stop.in .cta .rv:nth-child(3) { transition-delay: 0.62s; }
html.js .stop.in .cta .rv:nth-child(4) { transition-delay: 0.74s; }
html.calm .rv, html.calm .hl .txt, html.calm .hl .hash { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }

/* ------------------------------------------------------------------ devices (CSS frames) */
.device { margin: 34px 0 0; position: relative; }
.device img { width: 100%; }
.device.phone {
  width: clamp(168px, 15vw, 232px); padding: 7px; border-radius: 38px;
  background: linear-gradient(150deg, #3a3f45, #16191c 40%, #24282c 70%, #0f1113);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 3px #0c0d0e, 0 40px 70px -30px rgba(0, 0, 0, 0.85), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}
.device.phone img { border-radius: 31px; }
.device.pad {
  width: clamp(220px, 21vw, 330px); padding: 10px; border-radius: 24px;
  background: linear-gradient(150deg, #3b4046, #17191c 45%, #25292d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 0 0 3px #0b0c0d, 0 40px 70px -30px rgba(0, 0, 0, 0.85);
}
.device.pad img { border-radius: 15px; }
.device.mac { width: min(100%, 560px); border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 2px rgba(0, 0, 0, 0.55), 0 44px 80px -34px rgba(0, 0, 0, 0.9); }
.device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.09), transparent 32%); }
.stop[data-side="right"] .device { margin-left: auto; }
.trio { position: relative; margin-top: 38px; height: clamp(250px, 24vw, 370px); width: min(100%, 600px); margin-left: auto; }
.trio .device { position: absolute; margin: 0; }
.trio .t-mac { right: 0; top: 0; width: 78%; }
.trio .t-pad { left: 8%; bottom: 0; width: 34%; }
.trio .t-phone { left: 0; bottom: -4%; width: 19%; padding: 4px; border-radius: 22px; }
.trio .t-phone img { border-radius: 18px; }
.trio .t-pad { padding: 6px; border-radius: 15px; }
.trio .t-pad img { border-radius: 10px; }

/* copy with one device: text and device side by side on wide screens */
@media (min-width: 1100px) {
  .copy.has-device { display: grid; grid-template-columns: minmax(0, 31rem) auto; column-gap: clamp(36px, 4vw, 72px); align-items: center; max-width: min(72rem, 92vw); }
  .copy.has-device > :not(.device) { grid-column: 1; }
  .copy.has-device > .device { grid-column: 2; grid-row: 1 / span 7; margin: 0; align-self: center; }
  .stop[data-side="right"] .copy.has-device { grid-template-columns: auto minmax(0, 31rem); }
  .stop[data-side="right"] .copy.has-device > :not(.device) { grid-column: 2; }
  .stop[data-side="right"] .copy.has-device > .device { grid-column: 1; margin: 0; }
  .copy.has-device > .device.mac { width: clamp(380px, 34vw, 600px); }
  .copy.has-device::before { inset: -14% -10% -16% -10%; }
}

/* One-thumb: the gesture demo (gestures/gestures.css) lays the section copy, the gesture caption and the floating phone
   out as one composition over the scenery, both sides sticky for the height of its step track (13 steps of 58vh, 46svh
   on phones). No panels: the landscape runs behind all of it, held still while the section scrolls (src/main.js). */
html main .stop.stop-thumb { display: block; min-height: 0; padding-top: 0; padding-bottom: 0; }
.gesture-demo-mount { position: relative; width: 100%; }
/* keep the phone clear of the section rail on the right */
@media (min-width: 861px) {
  .gesture-demo-mount { box-sizing: border-box; padding-right: max(0px, 200px - var(--gutter)); }
  /* the composition starts a little down the section (its padding is overridden by the sticky-copy rules below) */
  html main .stop.stop-thumb { padding-top: calc(25vh + 60px); }
}
@media (max-width: 860px) { html main .stop.stop-thumb { padding-top: 16vh; } }

/* ------------------------------------------------------------------ sticky copy
   With JavaScript, every section's copy scrolls in, holds at its resting spot (position: sticky) for the section's hold,
   then scrolls away, while the scroll keeps driving the landscape (src/main.js maps it to the camera, which keeps moving
   through the hold). src/main.js sets, per section, on the sticky element: --stick-top (the resting spot: the copy
   centred, on phones in the lower part of the screen; a copy taller than the screen rests showing its end) and --hold
   (the hold distance, about one screen, a "Tune" setting). The hold is a spacer after the copy, so the copy travels
   exactly that far. Without JavaScript the sections lay out as plain, static blocks. */
html.js main .stop { flex-direction: column; justify-content: flex-start; align-items: flex-start; min-height: 0; padding-top: 34vh; padding-bottom: 34vh; }
html.js main .stop[data-side="right"] { justify-content: flex-start; align-items: flex-end; }
html.js main .stop[data-side="center"] { justify-content: flex-start; align-items: center; }
html.js main .stop::after { content: ""; display: block; flex: none; height: var(--hold, 100vh); }
html.js main .stop > .copy { position: sticky; top: var(--stick-top, 30vh); }
html.js main .stop:first-child { min-height: 0; padding-top: var(--hero-top, max(84px, 12vh)); padding-bottom: 34vh; }
html.js main .stop:first-child .cue { bottom: auto; top: calc(91vh - 40px); top: calc(91svh - 40px); }
/* the one-thumb composition holds as a whole (copy, caption and phone); its demo's own balancing margin is not needed
   because the landscape no longer pauses on it */
html.js #gesture-demo { position: sticky; top: var(--stick-top, 64px); margin-bottom: 0 !important; }
@media (max-width: 860px) {
  html.js main .stop, html.js main .stop[data-side="right"] { align-items: flex-start; padding-top: 30vh; padding-bottom: 30vh; }
  html.js main .stop[data-side="center"] { align-items: center; }
}

/* ------------------------------------------------------------------ CTA */
.cta { display: grid; justify-items: center; gap: 22px; margin-top: 10px; }
.lead { margin: 0; font: 400 clamp(19px, 1.8vw, 24px)/1.4 var(--serif); font-style: italic; color: var(--mist); text-shadow: 0 1px 14px rgba(6, 8, 10, 0.55); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.badge { display: block; border-radius: 12px; transition: transform 0.3s var(--ease); }
.badge:hover { transform: translateY(-2px); }
.req { margin: 0; font: 500 11.5px/1.5 var(--mono); letter-spacing: 0.06em; color: #dcdfdb; text-shadow: 0 0 1px rgba(6, 8, 10, 0.75), 0 1px 3px rgba(6, 8, 10, 0.55), 0 0 14px rgba(6, 8, 10, 0.5); }
.back { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #b9e6da; text-decoration: none; padding: 10px 4px; border-bottom: 1px solid rgba(166, 216, 204, 0.5); text-shadow: 0 0 1px rgba(6, 8, 10, 0.75), 0 1px 3px rgba(6, 8, 10, 0.55), 0 0 14px rgba(6, 8, 10, 0.5); }
.back:hover { color: var(--mist); }

/* ------------------------------------------------------------------ small print + footer */
.smallprint, .foot { position: relative; z-index: 2; background: var(--basalt); }
.smallprint { padding: 18vh var(--gutter) 64px; background: linear-gradient(rgba(16, 18, 20, 0), var(--basalt) 18vh); }
.sp-inner, .foot-inner { max-width: 980px; margin: 0 auto; }
.sp-title { margin: 0 0 22px; font: 500 11px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--seaglass); }
.smallprint ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 40px; }
.smallprint li { font-size: 14.5px; line-height: 1.55; color: var(--mist-dim); padding-top: 14px; border-top: 1px solid var(--hair); }
.foot { padding: 40px var(--gutter) max(48px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
/* the footer's colour runs on past the page's end, so the fixed scenery never shows below it (Safari's bottom
   rubber-band, toolbar resizes); a shadow paints without adding any scroll height */
.foot { box-shadow: 0 100vh 0 100vh var(--basalt); }
.foot-id { margin: 0 0 18px; font: 600 18px/1 var(--serif); }
.foot-id .sep { margin: 0 8px; color: var(--mist-faint); }
.foot-links { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { color: var(--mist-dim); text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; }
.foot-links a:hover { color: var(--mist); border-bottom-color: var(--hair); }
.legal { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--mist-faint); max-width: 70em; }

/* ------------------------------------------------------------------ no JS / no WebGL */
html:not(.js) .stop, html.no-webgl .stop { min-height: 100vh; }
html.no-webgl .copy::before { background: radial-gradient(closest-side, rgba(8, 10, 12, 0.5), rgba(8, 10, 12, 0.22) 60%, transparent); }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 860px) {
  .route { display: none !important; }
  .endorse { display: none; }
  .bar .endorse { display: none; }
  .foot .endorse { display: inline; }
  .tog .long { display: none; }
  .tog .short { display: inline; }
  html:not(.hide-tools) .bar:has(.dock [data-tool]) .dock { grid-column: 1 / -1; grid-row: 2; }
  .stop, .stop[data-side="right"], .stop[data-side="center"] { justify-content: flex-start; align-items: flex-end; text-align: left; min-height: 135vh; padding: 30vh 22px 14vh; }
  .stop[data-side="right"] .copy { margin-right: 0; }
  .stop[data-side="center"] { align-items: center; text-align: center; justify-content: center; }
  .copy::before { inset: -10% -14% -12% -14%; background: radial-gradient(closest-side, rgba(8, 10, 12, 0.48), rgba(8, 10, 12, 0.22) 60%, transparent); }
  .hl { font-size: clamp(38px, 10.5vw, 64px); }
  .hl-1 { font-size: clamp(44px, 12.5vw, 72px); }
  .stop[data-side="center"] .hl { font-size: clamp(34px, 9.5vw, 56px); }
  .body { font-size: 17px; }
  .stop[data-side="right"] .device { margin-left: 0; }
  .device.phone { width: 150px; border-radius: 30px; padding: 5px; }
  .device.phone img { border-radius: 25px; }
  .device.pad { width: 200px; }
  .trio { margin-left: 0; height: 62vw; max-height: 340px; }
  .trio .device.phone { width: 21%; padding: 3px; border-radius: 16px; }
  .trio .device.phone img { border-radius: 13px; }
  .trio .device.pad { width: 36%; }
  .hud { left: 22px; right: 22px; bottom: auto; top: calc(max(14px, env(safe-area-inset-top)) + 58px); gap: 10px; font-size: 9.5px; }
  .hud-sun, .hud-name { display: none; }
  .hud-rows { gap: 14px; }
  .cue { left: 22px; }
}
@media (max-width: 520px) {
  .bar { column-gap: 8px; padding-left: 16px; padding-right: 16px; }
  .bar-left { gap: 8px; }
  .bar-right { gap: 6px; }
  .tog { height: 32px; padding: 0 10px; gap: 6px; font-size: 11px; }
  .tog.g { width: 32px; height: 32px; padding: 0; }
  .dock, .dock-g { gap: 4px; }
  .dock-g + .dock-g { padding-left: 6px; margin-left: 2px; }
  .dl { height: 32px; padding: 0 12px; font-size: 12.5px; }
  .wordmark { font-size: 17px; }
}
@media (max-width: 430px) {
  .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 380px) {
  .hud-rows div:nth-child(3) { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tog { background: var(--basalt-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  [data-tip]::after { background: var(--basalt-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cin-panel { background: var(--basalt-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .copy::before { background: radial-gradient(closest-side, rgba(8, 10, 12, 0.7), rgba(8, 10, 12, 0.45) 60%, transparent); }
  .body, .kicker, .place { color: var(--mist); }
}

/* global time-of-day control (src/timeofday.js) */
.tod { display: inline-flex; align-items: center; gap: 8px; }
.tod-range { width: 110px; accent-color: var(--gold, #ecbd78); opacity: 1; transition: opacity 0.2s; cursor: pointer; }
.tod:not(.on) .tod-range, .tod:not(.on) .tod-out { display: none; }
.tod.locked .tod-range { opacity: 0.4; }
.tod-range:disabled { cursor: default; }
.tod-out { min-width: 3.4em; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--mist-dim); font-variant-numeric: tabular-nums; }
.tod.on .tod-out { color: var(--mist); }
@media (max-width: 860px) { .tod-range { width: 90px; } .tod-out { min-width: 0; } }
@media (max-width: 520px) { .tod-range { width: 80px; } .tod-out { display: none !important; } }

/* posterized stand-in (src/vistalook.js): the scene's own colours and outlines as flat regions, over the CSS vista's layers */
.vista .v-photo { position: absolute; inset: -5%; overflow: hidden; transition: filter 0.8s var(--ease); will-change: transform; }
.vista .v-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vista.has-photo .v-sky, .vista.has-photo .v-far, .vista.has-photo .v-mid, .vista.has-photo .v-near { opacity: 0; }

/* solar eclipse (#eclipse, src/eclipse.js): the readout next to the time-of-day control, and the overlay on the posterized
   stand-in (src/vistalook.js setVistaEclipse). Sizes follow --er, the sun's radius. */
.tod-ecl { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--mist); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tod-ecl.total { color: var(--gold, #ecbd78); }
.vista.ecl .v-photo { transition: none; }
.vista .v-eclipse { position: absolute; inset: 0; pointer-events: none; overflow: hidden; --er: 12px; }
.v-eclipse b { position: absolute; display: block; }
.v-eclipse .ve-tint { inset: 0; background: rgb(122, 142, 204); mix-blend-mode: multiply; opacity: 0; }
.v-eclipse .ve-dusk { inset: 0; background: linear-gradient(to bottom, transparent 46%, rgba(255, 168, 96, 0.3) 64%, rgba(255, 122, 72, 0.2) 73%, transparent 86%); mix-blend-mode: screen; opacity: 0; }
.v-eclipse .ve-halo, .v-eclipse .ve-corona, .v-eclipse .ve-moon, .v-eclipse .ve-sun, .v-eclipse .ve-bead { border-radius: 50%; left: var(--ex); top: var(--ey); }
.v-eclipse .ve-halo { width: calc(var(--er) * 18); height: calc(var(--er) * 18); margin: calc(var(--er) * -9) 0 0 calc(var(--er) * -9); background: radial-gradient(circle, rgba(255, 247, 228, 0.95) 0, rgba(255, 238, 205, 0.4) 11%, rgba(255, 228, 185, 0.1) 32%, transparent 68%); mix-blend-mode: screen; }
.v-eclipse .ve-corona { width: calc(var(--er) * 12); height: calc(var(--er) * 12); margin: calc(var(--er) * -6) 0 0 calc(var(--er) * -6); opacity: 0;
  background: radial-gradient(circle, #fbfcff 0, #fbfcff calc(var(--er) * 1.02), rgba(236, 243, 255, 0.82) calc(var(--er) * 1.18), rgba(222, 232, 255, 0.36) calc(var(--er) * 1.8), rgba(212, 224, 255, 0.1) calc(var(--er) * 3.2), transparent calc(var(--er) * 6)); }
.v-eclipse .ve-corona::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 8deg, transparent 0 14deg, rgba(240, 246, 255, 0.55) 22deg, transparent 34deg 70deg, rgba(240, 246, 255, 0.35) 78deg, transparent 88deg 160deg, rgba(240, 246, 255, 0.6) 176deg, rgba(240, 246, 255, 0.25) 190deg, transparent 204deg 250deg, rgba(240, 246, 255, 0.3) 258deg, transparent 268deg 330deg, rgba(240, 246, 255, 0.45) 346deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 calc(var(--er) * 1.1), rgba(0, 0, 0, 0.5) calc(var(--er) * 2.6), transparent calc(var(--er) * 6)); mask-image: radial-gradient(circle, #000 calc(var(--er) * 1.1), rgba(0, 0, 0, 0.5) calc(var(--er) * 2.6), transparent calc(var(--er) * 6)); }
.v-eclipse .ve-moon { width: calc(var(--er) * 2.09); height: calc(var(--er) * 2.09); margin: calc(var(--er) * -1.045) 0 0 calc(var(--er) * -1.045); background: #05070c; opacity: 0; }
.v-eclipse .ve-sun { width: calc(var(--er) * 2); height: calc(var(--er) * 2); margin: calc(var(--er) * -1) 0 0 calc(var(--er) * -1); background: radial-gradient(circle, #fffef7 0, #fffbe9 55%, #fff0cc 86%, #ffe3ad 100%); }
.v-eclipse .ve-bead { width: calc(var(--er) * 8); height: calc(var(--er) * 8); margin: calc(var(--er) * -4) 0 0 calc(var(--er) * -4); background: radial-gradient(circle, #fff 0, #fff 4%, rgba(255, 251, 240, 0.7) 9%, rgba(255, 246, 230, 0.16) 30%, transparent 60%); mix-blend-mode: screen; opacity: 0; }

/* a scene that failed to build: its posterized stand-in replaces the live canvas for as long as it is on screen */
html.gl.poster-now #stage { opacity: 0; }
html.gl.poster-now .vista { opacity: 1; }

/* ---- cinema film-look control (src/cinemaui.js): testing tool, mounted in the top bar next to the time-of-day control ---- */
.cin { display: inline-flex; align-items: center; gap: 6px; }
.cin-tune[aria-expanded="true"] { color: var(--mist); border-color: rgba(236, 189, 120, 0.6); }
.cin-panel {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(420px, 92vw); max-height: calc(100vh - 84px); overflow-y: auto;
  padding: 14px 16px; border: 1px solid var(--hair); border-radius: 16px; background: rgba(16, 18, 20, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--mist-dim); font: 500 12px/1 var(--mono); letter-spacing: 0.06em;
}
.cin-panel[hidden] { display: none; }
.cin-h { margin: 0 0 10px; font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-faint); }
.cin-row { display: grid; grid-template-columns: 7.5em 1fr 3.6em; align-items: center; gap: 10px; padding: 7px 0; }
.cin-row input { width: 100%; min-width: 0; accent-color: var(--gold, #ecbd78); cursor: pointer; }
.cin-row output { text-align: right; color: var(--mist); font-variant-numeric: tabular-nums; }
.cin-acts { display: flex; gap: 10px; margin-top: 12px; }
.cin-text { box-sizing: border-box; width: 100%; margin-top: 10px; padding: 8px; border: 1px solid var(--hair); border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: var(--mist); font: 12px/1.4 var(--mono); resize: none; }
@media (max-width: 860px) { .cin { gap: 6px; } }
