/* Hushpup 2.0 site. Tokens mirror Brand Kit 2.0 (Day / Dusk).
   Layout: centred 1120px column on linen; full-bleed film stills break the column for pacing. */
:root {
  /* Film light: one fixed look for everyone. Deep warm taupe, cream type with a soft glow, sage and amber.
     Taken from the launch film, not tied to the device's dark mode. */
  --surface: #3a3129;
  --surface-raised: #463c33;
  --surface-sunk: #2f2721;
  --ink: #f6eee2;
  --ink-muted: #cbbda9;
  --hairline: rgba(246, 238, 226, 0.14);
  --control-edge: rgba(246, 238, 226, 0.42);
  --action: #f6eee2;
  --on-action: #2b241e;
  --accent: #c3dba4;
  --on-accent: #1f2b22;
  --accent-soft: rgba(195, 219, 164, 0.14);
  --focus: #f1c98b;
  --sun: #f1c98b;
  --led: #ffd98a;
  --knit: #4a4037;
  --glow: 0 0 22px rgba(255, 236, 204, 0.32), 0 0 2px rgba(255, 246, 230, 0.5);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 36px rgba(0, 0, 0, 0.28);
  /* curtain shader colours */
  --curtain-base: #54473b;
  --curtain-shadow: #2a221c;
  --curtain-light: #8f7a65;
  --curtain-tint: #5e6a4c;
  --curtain-sun: #f1c98b;

  --sans: "Instrument Sans", "GT Standard", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: clamp(44px, 6.2vw, 76px);
  --h1: clamp(36px, 4.6vw, 52px);
  --h2: clamp(28px, 3.4vw, 38px);
  --h3: 24px;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: clamp(64px, 9vw, 112px);
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 20px; --radius-pill: 999px;
  --content: 1120px;
  --frame-x: clamp(16px, 3.6vw, 56px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}
:root, :root[data-theme="light"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 24px; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; color: var(--ink); text-shadow: var(--glow); }
h1 { font-size: var(--h1); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: var(--h2); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 58ch; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; letter-spacing: 0; }
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--space-6)); margin-inline: auto; padding-inline: var(--space-6); }
@media (max-width: 600px) { .wrap { padding-inline: var(--space-4); } }
.section { padding-block: var(--space-24); }
.section--sunk { background: var(--surface-sunk); }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.stack--tight { gap: var(--space-3); }

/* Buttons: ink label with a chevron chip */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: 48px;
  padding: 0 var(--space-4) 0 var(--space-6); border-radius: var(--radius-md);
  font: 500 16px/22px var(--sans); letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary { box-shadow: 0 0 24px rgba(255, 236, 204, 0.18); }
.btn--primary:hover { background: #fffaf1; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--control-edge); }
.btn--secondary:hover { background: rgba(246, 238, 226, 0.08); }
.btn .chip {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.btn .chip svg { width: 12px; height: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.logo .logo-mark { height: 28px; width: auto; }
.logo .logo-word { font: 600 21px/1 var(--sans); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn, .nav .btn[aria-current] { min-height: 40px; color: var(--on-action); }
@media (max-width: 640px) {
  .nav { gap: var(--space-4); }
  .nav .nav-link--hide { display: none; }
}

/* Hero with the linen curtain */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--curtain-base); }
.hero canvas[data-curtain] { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .fallback {
  position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(90deg, transparent 0 9%, color-mix(in srgb, var(--curtain-shadow) 55%, transparent) 13%, transparent 18%),
    linear-gradient(160deg, var(--curtain-light), var(--curtain-base) 60%);
}
.hero-inner {
  min-height: clamp(560px, 86svh, 860px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: var(--space-6); padding-block: var(--space-16);
}
.hero-badge { width: 84px; height: auto; color: var(--ink); }
.hero h1 { font-size: var(--display); line-height: 1; letter-spacing: -0.02em; }
.hero .lead { margin-inline: auto; }
.hero .btn-row { justify-content: center; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: var(--space-6);
  text-align: center; color: var(--ink-muted);
}

/* Media frames */
.frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunk); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.bleed { position: relative; min-height: clamp(420px, 62vw, 760px); display: grid; overflow: hidden; }
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed .grain, .grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bleed .caption {
  position: relative; align-self: start; justify-self: center; text-align: center;
  padding-top: clamp(40px, 8vw, 96px); padding-inline: var(--space-4);
  color: #fffaf2; text-shadow: 0 0 24px rgba(255, 244, 222, 0.55), 0 1px 18px rgba(60, 45, 30, 0.35);
}
.bleed .caption h2 { color: inherit; font-size: var(--h1); }

/* Feature */
.feature { display: grid; gap: var(--space-12); }
.feature-head { display: grid; gap: var(--space-6); grid-template-columns: 1.1fr 1fr; align-items: end; }
.feature-head > * { min-width: 0; }
@media (max-width: 800px) { .feature-head { grid-template-columns: 1fr; } }
.feature .frame { aspect-ratio: 16 / 9; }
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.callouts > div { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--hairline); min-width: 0; }
@media (max-width: 720px) { .callouts { grid-template-columns: 1fr; } }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.how > * { min-width: 0; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-md);
  background: var(--surface-sunk); border: 1px solid var(--hairline);
}
.seg button {
  font: 500 15px/20px var(--sans); color: var(--ink-muted); background: transparent; border: 0;
  padding: 10px 14px; border-radius: 7px; cursor: pointer; letter-spacing: -0.01em;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-soft); }
.state-copy { min-height: 7.5em; }
.state-copy h3 { margin-bottom: var(--space-3); }
.how-visual {
  position: relative; border-radius: var(--radius-lg); background: var(--surface-raised);
  box-shadow: var(--shadow-soft); padding: var(--space-6); display: grid; gap: var(--space-6);
}
.gates { width: 100%; height: auto; }
.gates .ring { fill: none; stroke: var(--control-edge); stroke-width: 1.2; stroke-dasharray: 4 6; }
.gates .zone-outer { fill: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.gates .zone-inner { fill: color-mix(in srgb, var(--accent-soft) 80%, transparent); }
.gates text { fill: var(--ink-muted); font: 500 12px var(--sans); letter-spacing: 0.02em; }
.gates .hub { fill: var(--ink); }
.gates .zone-outer, .gates .zone-inner { fill-opacity: 1; }
.gates .hub-glow { fill: var(--sun); opacity: 0; transition: opacity 600ms var(--ease); }
.gates.is-home-glow .hub-glow { opacity: 0.55; }
.gates .you { transition: transform 900ms var(--ease); }
.gates .you circle { fill: var(--accent); }
.gates .you text { fill: var(--ink); }
.face-row { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.face {
  width: 196px; max-width: 100%; aspect-ratio: 196 / 96; border-radius: 14px;
  background: var(--knit); position: relative; overflow: hidden;
}
.face canvas { width: 100%; height: 100%; display: block; }
.face-meta { display: grid; gap: 4px; min-width: 0; }
.ring-pill {
  display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--ink-muted);
}
.ring-pill i {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--control-edge);
  transition: background-color 600ms var(--ease), border-color 600ms var(--ease), box-shadow 600ms var(--ease);
}
.ring-pill.on i { background: var(--led); border-color: var(--led); box-shadow: 0 0 12px var(--led); }

/* Pods */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-12); align-items: center; }
.split > * { min-width: 0; }
.split--rev { grid-template-columns: 1fr 1.25fr; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.split .frame { aspect-ratio: 16 / 9.4; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-6); margin: 0; }
.facts div { display: grid; gap: 2px; padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.facts dt { font-size: 14px; color: var(--ink-muted); }
.facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.benefits article {
  background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6);
  display: grid; gap: var(--space-3); align-content: start;
}
.benefits svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: var(--space-3); }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

/* Colourways */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.swatches a { display: grid; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.swatches .frame { aspect-ratio: 456 / 308; background: var(--surface-raised); transition: transform 400ms var(--ease); }
.swatches a:hover .frame { transform: translateY(-3px); }
.swatches .name { font-weight: 500; }
@media (max-width: 860px) { .swatches { grid-template-columns: repeat(2, 1fr); } }

/* Dusk app band (always dusk) */
.dusk { background: #1f2b22; color: #f7f3ec; }
.dusk h2, .dusk h3 { color: #f7f3ec; }
.dusk .lead, .dusk .muted { color: #b9bfb3; }
.dusk .eyebrow { color: #a9c98a; }
.app-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.app-points div { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid #3a4a3d; }
@media (max-width: 760px) { .app-points { grid-template-columns: 1fr; } }
.tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  background: var(--accent-soft); color: var(--ink);
}
.dusk .tag { background: #2f5523; color: #f7f3ec; }

/* Film */
.film-trigger {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #2a2620;
}
.film-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-trigger:hover img { transform: scale(1.02); }
.film-trigger .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: var(--space-3); padding: 12px 20px 12px 14px;
  border-radius: var(--radius-pill); background: rgba(247, 243, 236, 0.92); color: #1f2b22;
  font: 500 16px/22px var(--sans);
}
.film-trigger .play span:first-child {
  width: 32px; height: 32px; border-radius: 50%; background: #1f2b22; display: grid; place-items: center;
}
dialog.film {
  width: min(1100px, 94vw); padding: 0; border: 0; border-radius: var(--radius-lg); background: #111611; color: #f7f3ec;
}
dialog.film::backdrop { background: rgba(20, 26, 21, 0.78); backdrop-filter: blur(6px); }
dialog.film video, dialog.film .film-empty { width: 100%; aspect-ratio: 16 / 9; display: block; background: #111611; }
dialog.film .film-empty { display: grid; place-items: center; text-align: center; padding: var(--space-6); position: relative; }
dialog.film .film-empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
dialog.film .film-empty p { position: relative; max-width: 40ch; }
dialog.film .close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(247, 243, 236, 0.9); color: #1f2b22; cursor: pointer; font-size: 20px; line-height: 1;
}

/* CTA */
.cta { text-align: left; }
.cta .caption { justify-self: end; text-align: right; align-self: center; padding: var(--space-16) clamp(16px, 7vw, 96px); display: grid; gap: var(--space-6); justify-items: end; }
.cta .caption .btn { text-shadow: none; }
@media (max-width: 700px) {
  .cta .caption { justify-self: center; text-align: center; justify-items: center; align-self: end; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding-block: var(--space-12); }
.site-footer .wrap { display: grid; gap: var(--space-8); grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer .wrap > * { min-width: 0; }
.site-footer nav { display: grid; gap: var(--space-2); align-content: start; }
.site-footer nav a { color: var(--ink-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.concept-note {
  padding: var(--space-4); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--ink);
  font-size: 14px; line-height: 20px;
}
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Reveal: visible at rest, gentle drift when JS marks it */
.reveal { transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.pending { opacity: 0.001; transform: translateY(14px); }

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

/* Floating hub on the curtain: zero-gravity micro-drift, nothing bounces */
.hero-hub { position: relative; width: min(520px, 86%); margin-top: var(--space-4); }
.hero-hub img { width: 100%; height: auto; animation: drift 9s var(--ease) infinite alternate; filter: drop-shadow(0 26px 30px rgba(60, 48, 32, 0.16)); }
.hero-hub::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -14px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 48, 32, 0.16), transparent); animation: shadow 9s var(--ease) infinite alternate;
}
@keyframes drift { from { transform: translateY(0) rotate(-0.4deg); } to { transform: translateY(-10px) rotate(0.4deg); } }
@keyframes shadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(0.92); opacity: 0.75; } }
.hero-inner { min-height: 0; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }

/* Drawn colourway pucks (stand-ins until the renders land) */
.swatch-frame { display: grid; place-items: center; background: color-mix(in srgb, var(--surface-raised) 70%, var(--surface)); }
.puck { width: 78%; height: auto; overflow: visible; }

/* Closing block */
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.cta-inner > * { min-width: 0; }
.cta-inner img { width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(60, 48, 32, 0.16)); }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* Film dialog with the YouTube trailer */
dialog.film iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #111611; }
dialog.film .film-foot { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); font-size: 14px; }
dialog.film .film-foot a { color: #a9c98a; }


/* =====================================================================
   Film-light site: nav, stage, hero, index dial, intro
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body:not(.home) main { padding-top: var(--nav-h); }
h1, h2, h3, .lead { text-wrap: balance; }

/* ---------- nav: links left, logo centre, sound right ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border: 0;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background-color 500ms var(--ease), backdrop-filter 500ms var(--ease);
}
.site-header::after { content: ""; position: absolute; left: var(--frame-x); right: var(--frame-x); bottom: 0; height: 1px; background: var(--hairline); }
.is-scrolled .site-header, body:not(.home) .site-header { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.nav-row { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-6); padding-inline: calc(var(--frame-x) + 4px); }
.nav-left { display: flex; gap: var(--space-6); min-width: 0; }
.nav-left a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-left a:hover, .nav-left a[aria-current] { color: var(--ink); }
.nav-mark { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; justify-self: center; }
.nav-mark .mark-wrap { position: relative; display: inline-grid; place-items: center; width: 34px; height: 30px; transition: transform 120ms linear; }
.nav-mark .logo-mark { width: 34px; height: auto; filter: drop-shadow(0 0 8px rgba(255, 236, 204, 0.25)); }
.nav-mark .logo-word { font: 600 20px/1 var(--sans); letter-spacing: -0.02em; text-shadow: var(--glow); }
.rings { position: absolute; left: 17px; top: 50%; width: 0; height: 0; pointer-events: none; }
.rings span {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 228, 180, var(--o, 0.5)); box-shadow: 0 0 12px rgba(255, 214, 150, 0.18);
  animation: ring 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(var(--s, 3)); opacity: 0; } }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); min-width: 0; }
.sound-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--control-edge); background: transparent; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer;
}
.sound-btn:hover { background: rgba(246, 238, 226, 0.08); }
.sound-btn[aria-pressed="true"] { border-color: rgba(255, 220, 160, 0.6); box-shadow: 0 0 18px rgba(255, 214, 150, 0.16); }
.eq { display: inline-flex; align-items: center; gap: 2.5px; height: 14px; }
.eq i { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--led); opacity: 0.45; transform-origin: 50% 50%; transition: transform 90ms linear; }
.sound-on .eq i { opacity: 1; box-shadow: 0 0 6px rgba(255, 217, 138, 0.6); }
.style-select {
  height: 36px; padding: 0 30px 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--control-edge);
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23f6eee2' stroke-width='1.4'/></svg>") no-repeat right 12px center;
  color: var(--ink); font: 500 14px/1 var(--sans); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.style-select option { color: #2b241e; background: #f6eee2; }
.btn--sm { min-height: 36px; padding: 0 10px 0 16px; font-size: 14px; }
.btn--quiet { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 12px; }
.btn--quiet:hover { background: rgba(246, 238, 226, 0.08); }
@media (max-width: 900px) { .nav-left { display: none; } .nav-row { grid-template-columns: auto 1fr; } .nav-mark { justify-self: start; } }
@media (max-width: 560px) { .style-select, .sound-label { display: none; } .sound-btn { padding: 0 11px; } .nav-mark .logo-word { font-size: 18px; } }

/* ---------- the stage: curtain and hub, fixed behind the hero and index ---------- */
.stage-bg, .stage-hub { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.stage-bg { z-index: 0; background: var(--curtain-base); }
.stage-hub { z-index: 2; }
.stage-off .stage-bg, .stage-off .stage-hub, .stage-off .hub-labels { visibility: hidden; }
.home main { position: relative; }
.scene { position: relative; }
.after { position: relative; z-index: 4; background: var(--surface); box-shadow: 0 -40px 80px rgba(20, 16, 12, 0.5); }
.home .site-footer { position: relative; z-index: 4; background: var(--surface); }

/* hairline frame, as in a drawing */
.frame-lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.frame-lines i { position: absolute; background: var(--hairline); }
.fl-v { top: 0; bottom: 0; width: 1px; }
.fl-l { left: var(--frame-x); } .fl-r { right: var(--frame-x); }
.fl-h { left: var(--frame-x); right: var(--frame-x); height: 1px; }
.fl-mid { top: 50%; } .fl-b { bottom: 28px; }

/* ---------- hero ---------- */
.scene-hero { height: 100svh; min-height: 640px; overflow: hidden; }
.scene-hero.is-over-hub { cursor: pointer; }
.mid-cap { position: absolute; top: calc(50% - 30px); z-index: 3; margin: 0; font-size: 12px; line-height: 16px; letter-spacing: 0.01em; color: var(--ink-muted); }
.mid-cap--l { left: calc(var(--frame-x) + 14px); }
.mid-cap--r { right: calc(var(--frame-x) + 14px); text-align: right; }
.wave { position: absolute; left: var(--frame-x); right: var(--frame-x); top: 50%; height: 140px; translate: 0 -50%; z-index: 1; width: calc(100% - 2 * var(--frame-x)); }
.hero-bottom {
  position: absolute; z-index: 3; left: calc(var(--frame-x) + 14px); right: calc(var(--frame-x) + 14px); bottom: 64px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: var(--space-8);
  pointer-events: none;
}
.hero-bottom > * { pointer-events: auto; }
.hero-bottom h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.025em; text-shadow: 0 0 34px rgba(255, 236, 204, 0.35), 0 0 2px rgba(255, 246, 230, 0.55); }
.hero-side { display: grid; gap: var(--space-6); justify-self: end; max-width: 440px; }
.hero-side p { color: var(--ink); opacity: 0.88; font-size: 17px; line-height: 26px; text-shadow: 0 0 18px rgba(30, 22, 16, 0.5); }
.hub-hint {
  position: absolute; z-index: 3; left: 62%; top: calc(47% + min(27vw, 44vh) * 0.36); translate: -50% 0;
  display: inline-flex; align-items: center; gap: var(--space-2); height: 34px; padding: 0 14px 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--control-edge); background: rgba(40, 33, 27, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 13px/1 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.hub-hint svg { width: 14px; height: 14px; }
.hub-hint:hover { background: rgba(70, 60, 51, 0.55); }
html:not(.has-3d) .hub-hint { display: none; }
@media (max-width: 760px) {
  .hero-bottom { grid-template-columns: 1fr; bottom: 48px; gap: var(--space-4); }
  .hero-side { justify-self: start; }
  .hero-side p { font-size: 15px; line-height: 22px; }
  .mid-cap { display: none; }
  .wave { top: 42%; }
  .fl-mid { top: 42%; }
  .hub-hint { left: 50%; top: calc(42% + min(62vw, 42vh) * 0.36); }
}

/* exploded labels (fixed, follow the parts) */
.hub-labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hub-label { position: absolute; left: 0; top: 0; display: grid; gap: 1px; padding-left: 22px; white-space: nowrap; font-size: 13px; line-height: 17px; color: var(--ink); opacity: 0; transition: opacity 500ms var(--ease); text-shadow: 0 0 12px rgba(30, 22, 16, 0.7); }
.hub-label::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: var(--control-edge); }
.hub-label strong { font-weight: 500; }
.hub-label span { color: var(--ink-muted); font-size: 12px; }
.hub-labels.on .hub-label { opacity: 1; }
@media (max-width: 760px) { .hub-label span { display: none; } }

/* ---------- index dial ---------- */
.scene-index { height: calc(100svh + 5 * 70svh); }
.index-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; touch-action: pan-y; }
.index-sticky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 100% 50%, rgba(28, 22, 17, 0.55), transparent 60%); pointer-events: none; z-index: 1; }
.dial { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; }
.dial-item {
  position: absolute; left: 0; top: 0; transform-origin: 0 50%; white-space: nowrap;
  font-size: 13px; line-height: 18px; color: var(--ink-muted); opacity: 0; will-change: transform, opacity;
}
.dial-page { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.dial-page a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 6px 4px; border-radius: 6px; }
.dial-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--control-edge); transition: background-color 400ms var(--ease), box-shadow 400ms var(--ease), border-color 400ms var(--ease); }
.dial-name { transition: text-shadow 400ms var(--ease), color 400ms var(--ease); }
.dial-page.is-focus .dial-dot, .dial-page.is-hover .dial-dot { background: var(--led); border-color: var(--led); box-shadow: 0 0 12px rgba(255, 217, 138, 0.8), 0 0 28px rgba(255, 217, 138, 0.35); }
.dial-page.is-focus .dial-name, .dial-page.is-hover .dial-name { text-shadow: 0 0 22px rgba(255, 236, 204, 0.55), 0 0 2px rgba(255, 246, 230, 0.6); }
.dial-page:not(.is-focus):not(.is-hover) a { color: var(--ink-muted); }
.index-copy {
  position: absolute; z-index: 3; left: calc(var(--frame-x) + 14px); bottom: 64px; max-width: min(340px, 30vw);
  display: grid; gap: var(--space-3); justify-items: start;
}
.index-copy h3 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -0.02em; text-shadow: 0 0 30px rgba(255, 236, 204, 0.35); }
.index-copy p { color: var(--ink); opacity: 0.86; }
.index-copy .btn { margin-top: var(--space-3); }
.index-hint { position: absolute; z-index: 3; right: calc(var(--frame-x) + 14px); bottom: 36px; margin: 0; font-size: 12px; color: var(--ink-muted); }
@media (max-width: 760px) {
  .index-copy { max-width: none; bottom: 36px; right: calc(var(--frame-x) + 14px); }
  .index-copy h3 { font-size: 28px; }
  .index-copy p { font-size: 15px; line-height: 21px; }
  .index-copy { gap: var(--space-2); }
  .index-hint { display: none; }
  .dial-page { font-size: 19px; }
}

/* ---------- intro ---------- */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.intro-on body { overflow: hidden; }
.intro-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(255, 238, 210, 0.14), transparent 58%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 1.6px) 0 0 / 5px 5px,
    linear-gradient(180deg, #4a3f35, #2c241e);
  transition: opacity 1200ms var(--ease);
}
.intro-bg .grain { opacity: 0.1; }
.intro-face { position: relative; width: min(82vw, 860px); aspect-ratio: 18 / 8; transition: opacity 1100ms var(--ease), transform 1600ms var(--ease), filter 1400ms var(--ease); }
.intro-mist { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-gate {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(40px, 9vh, 96px)); padding-inline: var(--space-6);
  display: grid; justify-items: center; gap: var(--space-4); text-align: center; transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.intro-line { color: var(--ink); font-size: 17px; line-height: 26px; text-shadow: var(--glow); max-width: 40ch; }
.intro-note { color: var(--ink-muted); font-size: 13px; }
.intro-skip { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); left: 0; right: 0; text-align: center; font: 500 13px/1 var(--sans); color: var(--ink-muted); opacity: 0; transition: opacity 600ms var(--ease); }
.intro.is-awake { cursor: pointer; }
.intro.is-awake .intro-gate { opacity: 0; transform: translateY(12px); pointer-events: none; }
.intro.is-awake .intro-skip { opacity: 1; }
.intro.is-dissolving .intro-face { opacity: 0; transform: scale(1.08) translateY(-2%); filter: blur(10px); }
.intro.is-clearing .intro-bg { opacity: 0; }
.intro.is-clearing .intro-skip { opacity: 0; }
.intro.is-clearing { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .intro-on .intro { display: none; } .intro-on body { overflow: auto; } }

/* while the hub is apart, the copy steps back so the parts can be read */
.scene-hero .hero-bottom, .scene-hero .mid-cap { transition: opacity 600ms var(--ease); }
.scene-hero.is-open .hero-bottom, .scene-hero.is-open .mid-cap { opacity: 0.14; }
.scene-hero.is-open .hero-bottom:hover { opacity: 1; }
html { scroll-behavior: auto; }
