/* ============================================================
   TABLET REMINDER — Landing
   Single light theme. Black intro that detonates into light.
   DM Serif Display + Inter + JetBrains Mono.
   ============================================================ */

:root {
  --serif: 'DM Serif Display', 'DM Serif Text', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);

  --bg:        #e3e3e3;
  --bg-2:      #ededed;
  --bg-sunken: #d6d6d6;
  --ink:       #1c1c1c;
  --ink-soft:  #565656;
  --ink-faint: #8c8c8c;
  --line:      rgba(20, 20, 20, 0.14);
  --line-2:    rgba(20, 20, 20, 0.06);
  --shadow-dark:  rgba(150, 150, 150, 0.55);
  --shadow-light: rgba(255, 255, 255, 0.9);

  --black: #0b0b0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
::selection { background: var(--ink); color: var(--bg); }

/* fine grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

#root { height: 100%; }

/* ============================================================
   SCROLL SHELL
   ============================================================ */
.scroll-shell {
  height: 100vh; height: 100dvh;
  overflow-y: scroll; overflow-x: hidden;
  position: relative;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.scroll-shell::-webkit-scrollbar { display: none; }
.scroll-shell.locked { overflow: hidden; }
section.snap, footer.snap { scroll-snap-align: start; position: relative; }

/* ============================================================
   LOADER (on black, flows into the intro)
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 800;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader .ring { position: relative; width: 124px; height: 124px; }
.loader .ring .tick {
  position: absolute; top: 0; left: 50%; margin-left: -1px;
  width: 2px; height: 6px; background: #f0f0f0;
  transform-origin: 50% 62px; border-radius: 2px; opacity: 0.16;
  transition: opacity 0.35s var(--ease-out);
}
/* N / E / S / W stay long, like a compass / the app-logo clock face */
.loader .ring .tick.card { height: 14px; width: 2.5px; margin-left: -1.25px; }
.loader .ring .tick.on { opacity: 1; }
.loader .ring .pill { position: absolute; inset: 0; display: grid; place-items: center; }
.loader .ring .pill i {
  display: block; width: 22px; height: 46px; border-radius: 999px;
  background: linear-gradient(180deg, #f0f0f0 0 50%, #2a2a2a 50% 100%);
  border: 2px solid #f0f0f0;
  animation: pillspin 1.4s linear infinite;
}
@keyframes pillspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* at 100% the pill clicks into the diagonal pose: dark end → NE, white end → SW */
.loader.settled .ring .pill i { animation: none; transform: rotate(-135deg); transition: transform 0.55s var(--ease-out); }

/* ============================================================
   INTRO STAGE — black -> light detonation
   ============================================================ */
.intro {
  position: relative;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  --fg: #f3f3f3;
  --fg-soft: rgba(243,243,243,0.5);
  --panel: var(--black);
  background: var(--panel);
  color: var(--fg);
  transition: background 0.4s ease, color 0.4s ease;
}
/* before the bloom the page must not scroll/bounce \u2014 the gesture is only read,
   never consumed by native scrolling */
.intro:not([data-phase="bloomed"]) { touch-action: none; }
.intro.lit {
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --panel: var(--bg);
}

/* ---- hero layer (Care. Connect. Comfort.) ---- */
.hero-layer {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  /* short smoothing only — the slow morph comes from the scroll scrub itself */
  transition: filter 0.18s linear, opacity 0.18s linear;
  will-change: filter, opacity;
}
.intro[data-phase="settle"]  .hero-layer,
.intro[data-phase="bloomed"] .hero-layer,
.intro[data-phase="dive"]    .hero-layer { opacity: 0 !important; filter: blur(30px) !important; pointer-events: none; transition: opacity 0.6s ease, filter 0.6s ease; }

.hero-layer .words { display: flex; flex-direction: column; gap: clamp(2px, 0.4vw, 6px); }
.hero-layer .word {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(54px, 13vw, 188px); line-height: 0.92;
  letter-spacing: -0.02em; overflow: hidden; padding: 0 0.04em; color: var(--fg);
}
.hero-layer .word span { display: inline-block; transform: translateY(115%) rotate(6deg); }
.intro.in .hero-layer .word span { animation: wordrise 1.15s var(--ease-out) forwards; }
.intro.in .hero-layer .word:nth-child(1) span { animation-delay: 0.15s; }
.intro.in .hero-layer .word:nth-child(2) span { animation-delay: 0.32s; }
.intro.in .hero-layer .word:nth-child(3) span { animation-delay: 0.49s; }
.hero-layer .word.muted span { color: var(--fg-soft); }
@keyframes wordrise { to { transform: translateY(0) rotate(0); } }

.hero-layer .scroll-cue {
  position: absolute; bottom: clamp(26px, 5vh, 48px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-soft); display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0;
}
.intro.in .hero-layer .scroll-cue { animation: rise 0.9s var(--ease-out) 1.25s forwards; }
.hero-layer .scroll-cue .line { width: 1px; height: 42px; background: rgba(243,243,243,0.25); position: relative; overflow: hidden; }
.hero-layer .scroll-cue .line::after { content: ""; position: absolute; top: -42px; left: 0; width: 1px; height: 42px; background: var(--fg); animation: cuemove 2s var(--ease-inout) infinite; }
@keyframes cuemove { to { top: 42px; } }
@keyframes rise { to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ============================================================
   CROSS STAGE — the building, sharpened medical cross
   ============================================================ */
.cross-stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.intro[data-phase="hero"] .cross-stage,
.intro[data-phase="holding"] .cross-stage { pointer-events: auto; }

.cross-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(196px, 39vmin, 472px); height: clamp(196px, 39vmin, 472px); display: grid; place-items: center;
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.cross-wrap[data-show="true"] { opacity: 1; }
.cross-wrap.ready { animation: crossBreathe 3.4s var(--ease-inout) infinite; }
@keyframes crossBreathe { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.035); } }

.cross {
  position: relative; width: clamp(190px, 38vmin, 460px); height: clamp(190px, 38vmin, 460px);
  cursor: pointer; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 0 38px rgba(243,243,243,0.28));
  transition: filter 0.7s ease;
}
.intro.lit .cross { filter: drop-shadow(0 8px 22px rgba(0,0,0,0.14)); cursor: default; }
.intro[data-phase="bloomed"] .cross, .intro[data-phase="dive"] .cross { pointer-events: none; }

/* sharp, equal-arm medical cross — no rounded corners (sized relative to .cross) */
.cross .arm { position: absolute; top: 50%; left: 50%; background: var(--fg); transform-origin: center; transition: background 0.35s ease; }
.cross .arm.v { width: 30%; height: 100%; transform: translate(-50%,-50%); }
.cross .arm.h { width: 100%; height: 30%; transform: translate(-50%,-50%); }
.cross .core { position: absolute; top: 50%; left: 50%; width: 30%; height: 30%; background: var(--fg); z-index: 2; transform: translate(-50%,-50%); transition: background 0.35s ease; }
/* recolor to black as the world flips to light */
.intro.lit .cross .arm, .intro.lit .cross .core { background: var(--ink); }

/* Hold prompt + animated loading bar */
.hold-ui {
  position: absolute; left: 50%; bottom: clamp(64px, 17vh, 168px); transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.hold-ui[data-show="true"] { opacity: 1; }
.hold-ui .hold-word { font-family: var(--mono); font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fg); padding-left: 0.42em; }
.hold-ui:not([data-holding="true"]) .hold-word { animation: promptPulse 1.9s ease-in-out infinite; }
@keyframes promptPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.hold-ui .hold-bar { width: 168px; height: 3px; background: rgba(243,243,243,0.18); overflow: hidden; opacity: 0; transition: opacity 0.45s ease; }
.hold-ui[data-holding="true"] .hold-bar { opacity: 1; }
.hold-ui .hold-bar i { display: block; width: 100%; height: 100%; background: var(--fg); transform-origin: left center; transform: scaleX(0); }
.hold-ui[data-holding="true"] .hold-bar i { transition: transform 0.06s linear; }
.hold-ui:not([data-holding="true"]) .hold-bar i { transition: transform 0.5s var(--ease-out); }

/* ============================================================
   ROTATING MOTION LINES (spin with the cross)
   ============================================================ */
.speedlines { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; place-items: center; transition: opacity 0.25s; }
.speedlines .sl-rot { position: relative; width: 0; height: 0; will-change: transform; }
.speedlines .ln {
  position: absolute; top: 0; left: 0; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--fg) 50%, transparent);
  transform-origin: left center;
}

/* ============================================================
   SHOCK-WIPE — the explosion paints the world light (bg flip in sync)
   ============================================================ */
.boom { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.boom[data-show="true"] { opacity: 1; }

/* a light disc sweeps out of the cross and becomes the new background */
.boom .wipe {
  position: absolute; width: 240vmax; height: 240vmax; border-radius: 50%;
  background: var(--bg); transform: scale(0);
}
.boom[data-show="true"] .wipe { animation: shockWipe 1.2s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }
@keyframes shockWipe { 0% { transform: scale(0); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* rings riding the explosion — the leading edge + a sharp pulse */
.boom .ring { position: absolute; border-radius: 50%; transform: scale(0); }
.boom .ring.lead { width: 240vmax; height: 240vmax; border: 2px solid rgba(11,11,11,0.16); }
.boom[data-show="true"] .ring.lead { animation: ringLead 1.2s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }
@keyframes ringLead { 0% { transform: scale(0); opacity: 0; } 10% { opacity: 0.85; } 72% { transform: scale(1.01); opacity: 0; } 100% { opacity: 0; } }
.boom .ring.pulse { width: 64px; height: 64px; border: 2.5px solid rgba(11,11,11,0.45); }
.boom[data-show="true"] .ring.pulse { animation: ringPulse 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes ringPulse { 0% { transform: scale(0); opacity: 0.7; } 100% { transform: scale(9); opacity: 0; } }

/* ============================================================
   BLOOMED HUB — upright cross + lighting paths + four pillars
   ============================================================ */
.hub { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; --hub-reserve: 340px; --hub-reserve-x: 96px; --prong-w: clamp(150px, 20vmin, 188px); padding-top: clamp(120px, 21vh, 184px); padding-bottom: clamp(20px, 4vh, 50px); opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease-out); }
.hub[data-show="true"] { opacity: 1; pointer-events: auto; }
.hub-inner { position: relative; width: min(58vmin, 520px, calc(100dvh - var(--hub-reserve)), calc(100vw - var(--prong-w) - var(--hub-reserve-x))); height: min(58vmin, 520px, calc(100dvh - var(--hub-reserve)), calc(100vw - var(--prong-w) - var(--hub-reserve-x))); transition: transform 1.4s cubic-bezier(0.22,1,0.36,1); will-change: transform; }
/* radial hub eases in on bloom — and re-plays when the layout converts back to
   the cross+prongs on resize (the display swap restarts the animation). */
.hub[data-show="true"] .hub-inner { animation: hubConvIn 0.6s var(--ease-out); }
@keyframes hubConvIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

/* on dive, the surrounding pillars gently fade back (no ring ballooning) */
.intro[data-dive="in"] .hub { opacity: 0; pointer-events: none; transition: opacity 0.85s ease; }
.intro[data-dive="out"] .hub { opacity: 1; pointer-events: none; transition: opacity 0.85s ease; }

/* upright center cross (sharp) */
.hub-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; }
.hub-core .hc { position: absolute; top: 50%; left: 50%; background: var(--ink); transform: translate(-50%,-50%); }
.hub-core .hc.v { width: 20px; height: 64px; }
.hub-core .hc.h { width: 64px; height: 20px; }

/* lighting paths from centre to each pillar — DRAW OUTWARD from the cross on bloom */
.path { position: absolute; top: 50%; left: 50%; background: var(--ink); opacity: 0.14; transition: opacity 0.35s, box-shadow 0.35s, transform 0.6s var(--ease-out); }
.path[data-lit="true"] { opacity: 1; box-shadow: 0 0 14px rgba(28,28,28,0.45); }
.path-top    { width: 2px; height: calc(50% - clamp(78px, 10vmin, 94px)); transform: translate(-50%, -100%) translateY(-32px) scaleY(0); transform-origin: bottom center; }
.path-bottom { width: 2px; height: calc(50% - clamp(78px, 10vmin, 94px)); transform: translate(-50%, 0%) translateY(32px) scaleY(0); transform-origin: top center; }
.path-left   { height: 2px; width: calc(50% - clamp(78px, 10vmin, 94px)); transform: translate(-100%, -50%) translateX(-32px) scaleX(0); transform-origin: right center; }
.path-right  { height: 2px; width: calc(50% - clamp(78px, 10vmin, 94px)); transform: translate(0%, -50%) translateX(32px) scaleX(0); transform-origin: left center; }
.hub[data-show="true"] .path-top    { transform: translate(-50%, -100%) translateY(-32px) scaleY(1); transition-delay: 0.1s; }
.hub[data-show="true"] .path-bottom { transform: translate(-50%, 0%) translateY(32px) scaleY(1); transition-delay: 0.16s; }
.hub[data-show="true"] .path-left   { transform: translate(-100%, -50%) translateX(-32px) scaleX(1); transition-delay: 0.13s; }
.hub[data-show="true"] .path-right  { transform: translate(0%, -50%) translateX(32px) scaleX(1); transition-delay: 0.19s; }
/* travelling pulse on the lit path */
.path[data-lit="true"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--dir, 0deg), transparent, rgba(28,28,28,0.9), transparent); background-size: 100% 60%; animation: pulseTravelV 0.9s linear infinite; }
.path-left[data-lit="true"]::after, .path-right[data-lit="true"]::after { background: linear-gradient(90deg, transparent, rgba(28,28,28,0.9), transparent); background-size: 60% 100%; animation: pulseTravelH 0.9s linear infinite; }
@keyframes pulseTravelV { from { background-position: 0 -160%; } to { background-position: 0 260%; } }
@keyframes pulseTravelH { from { background-position: -160% 0; } to { background-position: 260% 0; } }

/* pillars EMERGE outward from the cross, after the paths draw */
.prong {
  position: absolute; --cap: clamp(94px, 12.5vmin, 120px); width: var(--prong-w); height: var(--prong-w); display: grid; place-items: center;
  background: none; border: none; cursor: pointer; padding: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.prong-top    { top: 0; left: 50%; transform: translate(-50%, -50%) translateY(78px) scale(0.12); }
.prong-right  { top: 50%; left: 100%; transform: translate(-50%, -50%) translateX(-78px) scale(0.12); }
.prong-bottom { top: 100%; left: 50%; transform: translate(-50%, -50%) translateY(-78px) scale(0.12); }
.prong-left   { top: 50%; left: 0; transform: translate(-50%, -50%) translateX(78px) scale(0.12); }
.hub[data-show="true"] .prong { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hub[data-show="true"] .prong-top    { transition-delay: 0.30s; }
.hub[data-show="true"] .prong-right  { transition-delay: 0.40s; }
.hub[data-show="true"] .prong-bottom { transition-delay: 0.50s; }
.hub[data-show="true"] .prong-left   { transition-delay: 0.60s; }

.prong .cap {
  position: relative;
  width: var(--cap); height: var(--cap); border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--bg-2);
  display: grid; place-items: center; color: var(--ink);
  transition: transform 0.4s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s;
}
.prong .cap svg { width: clamp(36px, 4.8vmin, 46px); height: clamp(36px, 4.8vmin, 46px); }
.prong:hover .cap, .prong:focus-visible .cap { transform: scale(1.08); background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* role name — permanent, on the inner side of each prong (toward centre).
   top (Patient) + bottom (Pharmacy) are rotated vertical to run along their
   prongs; left (Diagnostics) + right (Doctor) stay horizontal. */
.prong-name {
  position: absolute; top: 50%; left: 50%;
  font-family: var(--mono); font-size: clamp(10px, 1.3vmin, 12px);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; pointer-events: none;
  transition: color 0.35s;
}
.prong:hover .prong-name, .prong:focus-visible .prong-name { color: var(--ink); }
/* nudge each label off its lighting path line so the two never intersect:
   top/bottom (vertical text) shift sideways; left/right (horizontal text) lift up. */
.prong-top    .prong-name { transform: translate(-50%, -50%) translate(13px, calc(var(--cap) / 2 + 16px)) rotate(-90deg); }
.prong-bottom .prong-name { transform: translate(-50%, -50%) translate(13px, calc(var(--cap) / -2 - 16px)) rotate(-90deg); }
.prong-right  .prong-name { transform: translate(-50%, -50%) translate(calc(var(--cap) / -2 - 14px), -14px); }
.prong-left   .prong-name { transform: translate(-50%, -50%) translate(calc(var(--cap) / 2 + 14px), -14px); }

/* stage head (post-bloom title) */
.stage-head {
  position: absolute; top: clamp(40px, 7vh, 72px); left: 0; right: 0;
  text-align: center; z-index: 30; pointer-events: none; color: var(--ink);
  opacity: 0; transform: translateY(-16px);
  transition: opacity 0.7s var(--ease-out) 0.2s, transform 0.7s var(--ease-out) 0.2s;
}
.stage-head[data-show="true"] { opacity: 1; transform: none; }
.stage-head .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 12px; }
.stage-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3.4vw, 40px); line-height: 1.04; letter-spacing: -0.02em; }
.stage-head .hint { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); transition: opacity 0.3s ease; }
/* keep the heading during a dive, but drop the "select a pillar" hint */
.intro[data-phase="dive"] .stage-head .hint { opacity: 0; }

/* ============================================================
   CLICK-BASED CAMERA DIVE INTO A ROLE (pinhole + rack focus)
   ============================================================ */
.dive { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; clip-path: circle(0px at 50% 50%); will-change: clip-path; }
.dive[data-show="true"] { opacity: 1; pointer-events: auto; }
.dive .dive-bg { position: absolute; inset: 0; background: #0a0a0a; }
/* on zoom-out: hold black, then morph the background to the no-hover cap color,
   and morph the symbol white->black IN SYNC (same delay/duration) so it stays visible */
.dive.closing .dive-bg { background: var(--bg-2); transition: background var(--dive-bg-dur, 820ms) ease var(--dive-bg-delay, 500ms); }
.dive.closing .dive-icon svg { color: var(--ink); opacity: 1; filter: none; transition: color var(--dive-bg-dur, 820ms) ease var(--dive-bg-delay, 500ms), opacity 400ms ease, filter 500ms ease; }

/* huge symbol filling the background — stays WHITE when the role page is open.
   responsive (capped so it never runs away on big screens) and centred. */
.dive-icon { position: relative; z-index: 1; width: min(78vmin, 720px); height: min(78vmin, 720px); margin: 0; justify-self: center; align-self: center; color: #f3f3f3; display: grid; place-items: center; will-change: transform, opacity; }
.dive-icon svg { width: 100%; height: 100%; opacity: 0.92; stroke-width: 0.7; transition: filter 1.2s ease, opacity 1.2s ease; }
/* rack-focus: blur eases in SLOWLY as the text enters, but the symbol stays white */
.dive.focused .dive-icon svg { filter: blur(16px); opacity: 0.6; }

/* role copy laid over the dive */
.dive-info { position: absolute; left: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-50%); max-width: min(560px, 82vw); max-height: 84vh; overflow-y: auto; scrollbar-width: none; color: #f3f3f3; z-index: 2; }
.dive-info::-webkit-scrollbar { display: none; }

/* text ENTERS line-by-line: rise + unblur, staggered (~1s after the page opens) */
.dive-info .di-eyebrow   { animation: diveLine 0.7s var(--ease-out) 1.00s both; }
.dive-info h3            { animation: diveLine 0.8s var(--ease-out) 1.10s both; }
.dive-info .di-lede      { animation: diveLine 0.72s var(--ease-out) 1.22s both; }
.dive-info .di-feat-head { animation: diveLine 0.7s var(--ease-out) 1.34s both; }
.dive-info .di-row:nth-child(1) { animation-delay: 1.44s; }
.dive-info .di-row:nth-child(2) { animation-delay: 1.53s; }
.dive-info .di-row:nth-child(3) { animation-delay: 1.62s; }
.dive-info .di-row:nth-child(4) { animation-delay: 1.71s; }
.dive-info .di-row:nth-child(5) { animation-delay: 1.80s; }
@keyframes diveLine { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* text EXITS quickly: drop up + blur out, light reverse stagger */
.dive.closing .dive-info .di-demo     { animation: diveLineOut 0.32s var(--ease-out) 0s both; }
.dive.closing .dive-info .di-row      { animation: diveLineOut 0.34s var(--ease-out) 0s both; }
.dive.closing .dive-info .di-feat-head{ animation: diveLineOut 0.36s var(--ease-out) 0.05s both; }
.dive.closing .dive-info .di-lede     { animation: diveLineOut 0.38s var(--ease-out) 0.09s both; }
.dive.closing .dive-info h3           { animation: diveLineOut 0.4s var(--ease-out) 0.13s both; }
.dive.closing .dive-info .di-eyebrow  { animation: diveLineOut 0.4s var(--ease-out) 0.17s both; }
@keyframes diveLineOut { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateY(-20px); filter: blur(6px); } }
.dive-info .di-eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(243,243,243,0.55); display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dive-info .di-num { font-size: 12px; padding: 4px 10px; border: 1px solid rgba(243,243,243,0.25); border-radius: 999px; }
.dive-info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 18px; }
.dive-info .di-lede { font-size: clamp(16px, 1.9vw, 22px); line-height: 1.5; color: rgba(243,243,243,0.75); max-width: 32ch; margin-bottom: 26px; }
.dive-info .di-feat-head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(243,243,243,0.5); margin-bottom: 16px; padding-top: 22px; border-top: 1px solid rgba(243,243,243,0.16); }
.dive-info .di-rows { display: flex; flex-direction: column; gap: 13px; }
.dive-info .di-row { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 13px; border-bottom: 1px solid rgba(243,243,243,0.13); animation: diveLine 0.6s var(--ease-out) both; }
.dive-info .di-rn { font-family: var(--mono); font-size: 13px; color: rgba(243,243,243,0.4); padding-top: 4px; }
.dive-info .di-rt b { font-weight: 600; font-size: clamp(16px, 1.8vw, 19px); display: block; margin-bottom: 5px; }
.dive-info .di-rt span { font-size: clamp(13px, 1.5vw, 15px); color: rgba(243,243,243,0.6); line-height: 1.55; }

/* per-role demo video slot — sits beneath all the copy */
.dive-info .di-demo { margin-top: clamp(28px, 4vw, 46px); animation: diveLine 0.7s var(--ease-out) 1.62s both; }
.dive-info .di-demo-head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(243,243,243,0.5); margin-bottom: 14px; padding-top: 22px; border-top: 1px solid rgba(243,243,243,0.14); }
.dive-info .di-demo-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px;
  border: 1px solid rgba(243,243,243,0.18); background: linear-gradient(180deg, rgba(243,243,243,0.07), rgba(243,243,243,0.02));
  display: grid; place-items: center; overflow: hidden;
}
.dive-info .di-demo-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 40%, rgba(243,243,243,0.06), transparent 70%); pointer-events: none; }
.dive-info .di-demo-play { width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid rgba(243,243,243,0.42); display: grid; place-items: center; color: #f3f3f3; transition: transform 0.4s var(--ease-out), border-color 0.3s, background 0.3s; }
.dive-info .di-demo-play svg { width: 24px; height: 24px; margin-left: 2px; }
.dive-info .di-demo-frame:hover .di-demo-play { transform: scale(1.08); border-color: rgba(243,243,243,0.8); background: rgba(243,243,243,0.08); }
.dive-info .di-demo-cap { position: absolute; left: 18px; bottom: 15px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243,243,243,0.55); }

.dive-back {
  position: absolute; z-index: 60; top: clamp(24px, 6vh, 50px); left: clamp(20px, 5vw, 60px);
  display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #f3f3f3;
  background: rgba(243,243,243,0.08); border: 1px solid rgba(243,243,243,0.22); padding: 12px 20px; border-radius: 999px; cursor: pointer;
  transition: background 0.3s, color 0.3s, opacity 0.35s; animation: diveFade 0.6s var(--ease-out) 1s both;
}
@keyframes diveFade { from { opacity: 0; } to { opacity: 1; } }
.dive-back:hover { background: #f3f3f3; color: #0a0a0a; }
.dive.closing .dive-back { opacity: 0; animation: none; transition: opacity 0.3s ease; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.sec-pad { padding: clamp(80px, 12vh, 160px) clamp(20px, 6vw, 120px); }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-faint); white-space: nowrap; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.show { opacity: 1; transform: none; }

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: clamp(14px, 1.6vw, 22px) 0; display: flex; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .track { display: flex; align-items: center; gap: 28px; animation: marq 38s linear infinite; padding-right: 28px; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item { font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); letter-spacing: -0.01em; color: var(--ink); }
.marquee .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
@keyframes marq { to { transform: translateX(-50%); } }

/* FEATURES */
.features { background: var(--bg); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.feat-card {
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 2.4vw, 36px);
  background: var(--bg-2); display: flex; flex-direction: column; gap: 14px; min-height: 240px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s;
  position: relative; overflow: hidden;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: 10px 14px 40px var(--shadow-dark), -6px -6px 24px var(--shadow-light); border-color: transparent; }
.feat-card .ico { width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.feat-card .ico svg { width: 22px; height: 22px; }
.feat-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 26px); }
.feat-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.feat-card .idx { position: absolute; top: 22px; right: 26px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.2em; }

/* TRUST */
.trust { background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: center; }
.trust .lead p { font-size: clamp(16px, 1.8vw, 21px); line-height: 1.6; color: var(--ink-soft); max-width: 40ch; }
.trust .lead .big { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 44px); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 24px; }
.trust .points { display: flex; flex-direction: column; gap: 4px; }
.trust .point { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); }
.trust .point:last-child { border-bottom: 1px solid var(--line); }
.trust .point .ic { width: 26px; height: 26px; color: var(--ink); flex: none; margin-top: 2px; }
.trust .point b { font-weight: 600; font-size: 17px; display: block; margin-bottom: 5px; }
.trust .point span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* DOWNLOAD */
.download {
  background: var(--bg-sunken); min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.download .glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 68%); pointer-events: none; }
.download .badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; margin-bottom: 34px; position: relative; z-index: 2; white-space: nowrap; }
.download h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7.5vw, 104px); line-height: 1.02; letter-spacing: -0.025em; position: relative; z-index: 2; }
.download h2 em { font-style: italic; color: var(--ink-soft); white-space: nowrap; }
.download p { margin-top: 30px; max-width: 38ch; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: var(--ink-soft); position: relative; z-index: 2; }
.download .ctas { display: flex; gap: 16px; margin-top: 46px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }
.btn { display: inline-flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 15px; font-weight: 500; padding: 18px 30px; border-radius: 999px; cursor: pointer; text-decoration: none; border: 1px solid var(--line); transition: transform 0.4s var(--ease-out), box-shadow 0.4s, background 0.4s, color 0.4s; }
.btn .b-ic { width: 24px; height: 24px; }
.btn .b-tx { text-align: left; line-height: 1.15; }
.btn .b-tx small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.btn .b-tx b { font-weight: 600; font-size: 16px; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { transform: translateY(-4px); box-shadow: 0 18px 40px var(--shadow-dark); }
.btn.ghost { background: var(--bg-2); color: var(--ink); }
.btn.ghost:hover { transform: translateY(-4px); box-shadow: 8px 12px 30px var(--shadow-dark), -5px -5px 16px var(--shadow-light); }
.download .meta { margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-faint); position: relative; z-index: 2; }

/* FAQ */
.faq { background: var(--bg); }
.faq-list { border-top: 1px solid var(--line); max-width: 920px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 3vw, 34px) 6px; text-align: left; font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 2.4vw, 30px); color: var(--ink); letter-spacing: -0.01em; }
.faq-q .pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--ink); transition: transform 0.4s var(--ease-out); }
.faq-q .pm::before { width: 18px; height: 2px; }
.faq-q .pm::after  { width: 2px; height: 18px; }
.faq-item.open .pm::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-inout); }
.faq-a .inner { padding: 0 6px clamp(24px, 3vw, 34px); color: var(--ink-soft); font-size: clamp(14px, 1.6vw, 17px); line-height: 1.65; max-width: 70ch; }

/* FOOTER */
.footer { background: var(--bg-sunken); padding: clamp(50px, 7vw, 90px) clamp(20px, 6vw, 120px) clamp(34px, 4vw, 50px); border-top: 1px solid var(--line); }
.footer .top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer .big-mark { font-family: var(--serif); font-size: clamp(40px, 9vw, 130px); line-height: 0.9; letter-spacing: -0.03em; }
.footer .cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer .col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer .col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.3s; }
.footer .col a:hover { color: var(--ink); }
.footer .base { margin-top: clamp(50px, 7vw, 90px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-faint); }

/* ============================================================
   LINKS — umano-style finale
   ============================================================ */
.links { background: var(--bg-sunken); border-top: 1px solid var(--line); padding: clamp(70px, 12vh, 150px) clamp(20px, 6vw, 120px) clamp(34px, 4vw, 54px); min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; }
.links-inner { width: 100%; max-width: 1280px; margin: 0 auto; }
.links-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(38px, 5vw, 64px); }
.links-head .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-faint); white-space: nowrap; }
.links-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 86px); line-height: 1.0; letter-spacing: -0.02em; }

/* JOIN-THE-BETA finale CTA */
.links-kicker { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: clamp(20px, 3vw, 34px); }
.join-cta { position: relative; display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 40px); text-decoration: none; color: var(--ink); padding: clamp(8px, 1.5vw, 18px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.join-cta .jc-text { position: relative; overflow: hidden; font-family: var(--serif); font-size: clamp(56px, 14vw, 200px); line-height: 1.0; letter-spacing: -0.03em; flex: 1; padding: 0.02em 0; }
.join-cta .jc-text span { display: block; transition: transform 0.6s var(--ease-out); }
.join-cta .jc-text .b { position: absolute; inset: 0; padding: 0.02em 0; transform: translateY(106%); color: var(--ink-soft); }
.join-cta:hover .jc-text .a, .join-cta:focus-visible .jc-text .a { transform: translateY(-106%); }
.join-cta:hover .jc-text .b, .join-cta:focus-visible .jc-text .b { transform: translateY(0); }
.join-cta .jc-arrow { font-family: var(--sans); font-size: clamp(34px, 6vw, 88px); line-height: 1; color: var(--ink); align-self: center; transform: translate(-14px, 8px); opacity: 0; transition: transform 0.55s var(--ease-out), opacity 0.4s; }
.join-cta:hover .jc-arrow, .join-cta:focus-visible .jc-arrow { transform: translate(0, 0); opacity: 1; }
.join-sub { margin-top: clamp(20px, 3vw, 32px); max-width: 30ch; font-family: var(--sans); font-size: clamp(15px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-soft); }
.links-base .big-mark { display: block; font-family: var(--serif); font-size: clamp(46px, 13vw, 196px); line-height: 0.88; letter-spacing: -0.035em; color: var(--ink); }
.links-base .lb-row { margin-top: clamp(26px, 4vw, 46px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-faint); }
.links-base .lb-row span { white-space: nowrap; }

/* ============================================================
   ROLE CARDS — small-screen alternative to the radial pillar hub.
   Same four roles; each card carries a .cap so the dive open/close
   iris animation originates from (and collapses back to) the card.
   ============================================================ */
.role-carousel { display: none; width: 100%; flex-direction: column; align-items: center; gap: 22px; --rc-w: min(74vw, 300px); }

/* the horizontal swiper — one card centred per screen, peek of the next */
.role-cards {
  position: relative;
  display: flex; flex-direction: row; align-items: stretch; width: 100%;
  gap: 18px; padding: 26px calc((100% - var(--rc-w)) / 2) 46px;
  overflow-x: auto; overflow-y: hidden;
  /* only horizontal panning — a vertical drag is ignored, never scrolls vertically */
  touch-action: pan-x;
  overscroll-behavior-x: contain; overscroll-behavior-y: none;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.role-cards::-webkit-scrollbar { display: none; }

.role-card {
  flex: 0 0 var(--rc-w); scroll-snap-align: center; min-height: clamp(360px, 54vh, 448px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px 28px 28px; text-align: left; font: inherit; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; cursor: pointer;
  /* raised, neumorphic — same shadow language as the app's "Notify me" button */
  box-shadow: 8px 12px 30px var(--shadow-dark), -5px -5px 16px var(--shadow-light);
  opacity: 1;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.3s;
}
/* entry — plays after the explosion blooms the cards in, and re-plays when the
   layout converts to cards on resize (display swap restarts the animation).
   `backwards` fill keeps each card hidden through its stagger delay, then
   reverts to the base resting transform so press/hover stay responsive. */
.hub[data-show="true"] .role-card { animation: rcEnter 0.64s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hub[data-show="true"] .role-card:nth-child(1) { animation-delay: 0.05s; }
.hub[data-show="true"] .role-card:nth-child(2) { animation-delay: 0.16s; }
.hub[data-show="true"] .role-card:nth-child(3) { animation-delay: 0.27s; }
.hub[data-show="true"] .role-card:nth-child(4) { animation-delay: 0.38s; }
@keyframes rcEnter {
  0%   { opacity: 0; transform: translateY(48px) scale(0.9); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* PRESS — depresses into the surface like the app button */
.role-card:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 3px 5px 13px var(--shadow-dark), -3px -3px 10px var(--shadow-light);
}
@media (hover: hover) {
  .role-card:hover, .role-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 10px 16px 42px var(--shadow-dark), -6px -6px 22px var(--shadow-light);
    border-color: transparent;
  }
}

.role-card .rc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.role-card .cap {
  flex: none; width: 66px; height: 66px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--bg);
  display: grid; place-items: center; color: var(--ink);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.role-card .cap svg { width: 30px; height: 30px; }
.role-card:active .cap, .role-card:hover .cap, .role-card:focus-visible .cap { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.role-card .rc-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-faint); }
.role-card .rc-label { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.role-card .rc-lede { font-family: var(--sans); font-size: 14px; line-height: 1.52; color: var(--ink-soft); }
.role-card .rc-cta {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.role-card .rc-arrow { font-family: var(--sans); font-size: 15px; letter-spacing: 0; transition: transform 0.4s var(--ease-out); }
.role-card:active .rc-arrow, .role-card:hover .rc-arrow, .role-card:focus-visible .rc-arrow { transform: translateX(5px); }

/* pagination dots */
.role-dots { display: flex; align-items: center; gap: 9px; }
.role-dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: var(--ink); opacity: 0.22;
  transition: opacity 0.3s, width 0.3s var(--ease-out), background 0.3s;
}
.role-dot.on { opacity: 1; width: 24px; }

/* ============================================================
   RESPONSIVE — fluid down to phones, stable under browser zoom
   ============================================================ */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 60px); }
}

@media (max-width: 860px) {
  .hub { --hub-reserve: 318px; padding-top: clamp(100px, 17vh, 150px); }
  .hub-inner { width: min(74vmin, 460px, calc(100dvh - var(--hub-reserve)), calc(100vw - var(--prong-w) - var(--hub-reserve-x))); height: min(74vmin, 460px, calc(100dvh - var(--hub-reserve)), calc(100vw - var(--prong-w) - var(--hub-reserve-x))); }
  .dive-icon { width: min(100vmin, 640px); height: min(100vmin, 640px); }
  .link-row { gap: 14px; }
  .link-row .lr-meta { display: none; }
  .footer .top { gap: 28px; }
}

@media (max-width: 680px) {
  .stage-head { top: clamp(30px, 6vh, 56px); }
  .stage-head h2 { font-size: clamp(19px, 5.6vw, 30px); }
  .stage-head .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .stage-head .hint { font-size: 10px; margin-top: 10px; }

  .hub { --hub-reserve: 272px; --prong-w: 124px; padding-top: clamp(92px, 15vh, 132px); }
  .hub-inner { width: min(72vmin, 380px, calc(100dvh - var(--hub-reserve)), calc(100vw - var(--prong-w) - var(--hub-reserve-x))); height: min(72vmin, 380px, calc(100dvh - var(--hub-reserve)), calc(100vw - var(--prong-w) - var(--hub-reserve-x))); }
  .prong { --cap: 80px; }
  .prong .cap svg { width: 32px; height: 32px; }

  /* dive: symbol becomes a faint backdrop, copy scrolls full-width */
  .dive-icon { width: min(116vmin, 560px); height: min(116vmin, 560px); }
  .dive-info {
    position: absolute; top: clamp(72px, 12vh, 104px); left: 0; right: 0; bottom: 0;
    transform: none; max-width: none; max-height: none; padding: 0 clamp(22px, 6vw, 34px) 40px; overflow-y: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 93%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 93%, transparent 100%);
  }
  .dive-info, .dive.closing .dive-info { animation: none; transform: none; }
  .dive-info .di-rows { display: flex; }
  .dive-info .di-eyebrow { font-size: 11px; letter-spacing: 0.24em; gap: 12px; margin-bottom: 16px; }
  .dive-info .di-num { font-size: 11px; padding: 3px 9px; }
  .dive-info h3 { font-size: clamp(40px, 13vw, 66px); line-height: 0.96; margin-bottom: 16px; }
  .dive-info .di-lede { font-size: 16px; line-height: 1.55; max-width: 40ch; margin-bottom: 24px; }
  .dive-info .di-feat-head { font-size: 11px; letter-spacing: 0.22em; padding-top: 20px; margin-bottom: 14px; }
  .dive-info .di-row { gap: 14px; padding-bottom: 14px; }
  .dive-info .di-rt b { font-size: 16px; margin-bottom: 4px; }
  .dive-info .di-rt span { font-size: 14px; line-height: 1.5; }
  .dive-back { top: 16px; left: 16px; padding: 10px 16px; font-size: 11px; }

  .download .ctas { width: 100%; }
  .btn { width: 100%; max-width: 340px; justify-content: center; }
  .footer .top { flex-direction: column; }
  .footer .cols { gap: 36px; }
}

/* phones — size the radial hub in vw so the cross + four prongs always fit
   the width (hub-inner 60vw + prong 30vw = 90vw), and keep labels aligned by
   driving the cap size through --cap. */
@media (max-width: 480px) {
  .hub { --hub-reserve: 300px; --prong-w: 30vw; padding-top: clamp(76px, 12vh, 116px); }
  .hub-inner { width: min(60vw, calc(100dvh - var(--hub-reserve))); height: min(60vw, calc(100dvh - var(--hub-reserve))); }
  .prong { --cap: 19vw; }
  .prong .cap svg { width: 8.2vw; height: 8.2vw; }
  .prong-name { font-size: 9px; letter-spacing: 0.14em; }
}

/* short / landscape screens — keep title + hub from ever overlapping */
@media (max-height: 600px) {
  .stage-head { top: clamp(24px, 5vh, 44px); }
  .stage-head h2 { font-size: clamp(18px, 4.4vh, 30px); }
  .stage-head .eyebrow { margin-bottom: 6px; }
  .stage-head .hint { margin-top: 8px; }
  .hub { padding-top: clamp(106px, 22vh, 150px); padding-bottom: 12px; }
  .hub-inner { width: min(58vmin, calc(100dvh - 300px)); height: min(58vmin, calc(100dvh - 300px)); }
  .hero-layer .word { font-size: clamp(40px, 12vh, 110px); }
  .hold-ui { bottom: clamp(20px, 8vh, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-layer .word span { transform: none; }
  .hero-layer .scroll-cue { opacity: 1; }
}

/* ============================================================
   SMALLEST / SHORT SCREENS — the radial pillar hub gives way to the role-card
   carousel. Normal portrait phones (≥381px, tall) keep the cross + pillars;
   only tiny portrait phones and short/landscape phones fall back to cards.
   Placed last so it wins over the radial-layout breakpoints above.
   ============================================================ */
@media (max-width: 380px), (max-width: 900px) and (max-height: 560px) {
  .hub-inner { display: none; }
  /* the moment the cross detonates, hide it INSTANTLY — never let it drift to
     centre and then fade out on a small screen */
  .intro[data-phase="settle"] .cross-wrap {
    opacity: 0; visibility: hidden; pointer-events: none; transition: none;
  }
  .intro[data-phase="bloomed"] .cross-wrap,
  .intro[data-phase="dive"] .cross-wrap {
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  }
  .hub {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    overflow-y: auto; padding: clamp(140px, 22vh, 210px) 0 44px;
  }
  .role-carousel { display: flex; margin-block: auto; }
}

@media (max-width: 900px) and (max-height: 560px) {
  /* short / small-landscape: compact, content-height cards so they still fit */
  .role-carousel { --rc-w: min(54vw, 320px); gap: 14px; }
  .role-card { min-height: 0; padding: 16px 20px; gap: 9px; }
  .role-card .cap { width: 48px; height: 48px; }
  .role-card .cap svg { width: 22px; height: 22px; }
  .role-card .rc-label { font-size: 22px; }
  .role-card .rc-lede { font-size: 12px; line-height: 1.4; -webkit-line-clamp: 2; }
  .hub { padding-top: clamp(86px, 18vh, 120px); }
}
