/* obunu.com. Every colour, corner, typeface, time and curve comes from tokens.css (Lumen Lines, docs/DESIGN.md);
   none of its own. The page is one journey: you stand in space in front of a portal with a world in it, and scrolling
   takes you through. main.js sets what moves: --p (how far through the portal, 0 to 1), --mx/--my (where the pointer
   is, -1 to 1, smoothed), the portal's centre and radius (--cx, --cy, --r), and per element the light and tilt. */

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--deep); scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root { --mx: 0; --my: 0; --p: 0; --cx: 68vw; --cy: 52vh; --r: 30vh; --inside: 0; --world: 1; --words: 1; --film: 1; --cue: 1; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.diving { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 30;
  padding: 10px 18px; border-radius: var(--radius-control);
  background: var(--ice); color: var(--ice-ink); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.soft { color: var(--text-soft); }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.addr { font-family: var(--font-label); font-size: 0.85em; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }

/* ── Space ────────────────────────────────────────────────────────────────────────────── */

.space { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.32;
  filter: blur(40px);
  transform: translate3d(calc(var(--mx) * -24px), calc(var(--my) * -24px + var(--scroll, 0) * -0.08px), 0);
}
.glow-a { left: 30vw; top: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--line-violet) 40%, transparent), transparent); }
.glow-b { left: -30vmax; top: 30vh; background: radial-gradient(closest-side, color-mix(in srgb, var(--line-blue) 30%, transparent), transparent); }

/* a soft light where the pointer is (a mouse or a pen; not on touch) */
.pointer-light {
  position: fixed; left: 0; top: 0; z-index: -1; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ice) 9%, transparent), transparent);
  transform: translate3d(var(--lx, -999px), var(--ly, -999px), 0);
  transition: opacity var(--ms-slow) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .pointer-light.on { opacity: 1; } }

/* ── Glass and buttons ────────────────────────────────────────────────────────────────── */

.panel, .chip, .button.glass, .top.stuck {
  background: var(--glass-screen);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--edge-soft);
  box-shadow: inset 0 1px 0 var(--edge);
}
.panel { border-radius: var(--radius-panel); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--radius-control);
  background: var(--ice); color: var(--ice-ink);
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0);
  transition: transform var(--spring-press-ms) var(--spring-press), box-shadow var(--ms-quick) var(--ease-out), background-color var(--ms-quick) var(--ease-out);
}
.button:not(.glass):not([aria-disabled="true"]) { box-shadow: 0 0 0 0 transparent, 0 8px 40px -10px color-mix(in srgb, var(--ice) 70%, transparent); }
.button:not(.glass):not([aria-disabled="true"]):hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ice) 22%, transparent), 0 12px 60px -6px color-mix(in srgb, var(--ice) 85%, transparent); }
.button:not([aria-disabled="true"]):active { transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0) scale(0.96); transition-duration: var(--ms-instant); }
.button.glass { color: var(--text); }
.button.glass:not([aria-disabled="true"]):hover { background: var(--glass-hi); }
.button.small { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
.button[aria-disabled="true"] { background: var(--glass-hi); color: var(--muted); border-color: var(--edge-soft); cursor: not-allowed; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* things that tilt toward the pointer, with a light on their glass where it is */
.tilt { transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform var(--spring-soft-ms) var(--spring-soft); }
.tilt.tilting { transition: transform var(--ms-instant) linear; }
.panel.tilt::after, .tile.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 0%), color-mix(in srgb, var(--ice) 13%, transparent), transparent 60%);
  opacity: 0; transition: opacity var(--ms-base) var(--ease-out);
}
.tilt.tilting::after, .tile.tilt.tilting::before { opacity: 1; }

/* ── The top bar ──────────────────────────────────────────────────────────────────────── */

.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 18px max(16px, calc((100vw - 1240px) / 2));
  border: 0 solid transparent; border-bottom-width: 1px;
  transition: background-color var(--ms-base) var(--ease-out), border-color var(--ms-base) var(--ease-out), padding var(--ms-base) var(--ease-out);
}
.top.stuck { padding-top: 10px; padding-bottom: 10px; border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; margin-right: auto; }
.mark svg { width: 30px; height: 30px; }
.mark circle { fill: none; stroke: var(--ice); stroke-width: 3; }
.mark .dot { fill: var(--ice); stroke: none; }
.top-nav { display: flex; gap: 4px; }
.top-nav a {
  padding: 8px 14px; border-radius: var(--radius-control); color: var(--text-soft); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: color var(--ms-quick) var(--ease-out), background-color var(--ms-quick) var(--ease-out);
}
.top-nav a:hover { color: var(--text); background: var(--glass-hi); }

/* ── The hero: a portal, and through it ───────────────────────────────────────────────── */

.hero { position: relative; height: 260vh; }
.has-intro .hero { height: 420vh; } /* the intro's stretch first, then the portal's */
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }

/* the intro: the film inside the portal (the same circle as the world's), its first frame there at once as the
   canvas's background (main.js places it); at its end the world comes up inside the ring and the film goes */
.intro-film {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: none;
  background-color: var(--deep); background-repeat: no-repeat;
  clip-path: circle(var(--r) at var(--cx) var(--cy));
  -webkit-clip-path: circle(var(--r) at var(--cx) var(--cy));
  opacity: var(--film);
}
.has-intro .intro-film { display: block; }

/* the world, seen through the portal: a circle that opens until it fills the screen */
.portal-world {
  position: absolute; inset: 0; z-index: 0; opacity: var(--world);
  clip-path: circle(var(--r) at var(--cx) var(--cy));
  -webkit-clip-path: circle(var(--r) at var(--cx) var(--cy));
}
.world-depth {
  position: absolute; inset: -6%;
  /* through a window, the far side moves against you: the world shifts opposite the pointer, less once you're in */
  transform: translate3d(calc(var(--mx) * -26px * (1 - var(--p) * 0.6)), calc(var(--my) * -18px * (1 - var(--p) * 0.6)), 0) scale(calc(1.18 - var(--p) * 0.18));
}
.shot {
  position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--ms-scene) var(--ease-in-out);
  animation: drift var(--idle-drift) var(--ease-in-out) infinite alternate;
  animation-play-state: var(--idle-state);
}
.shot.on { opacity: 1; }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.05) translate3d(-1.5%, -1%, 0); } }
.world-shade {
  position: absolute; inset: 0;
  /* in the portal: its edge falls off into the dark; once through: dark at the foot for the places, at the top for the bar */
  background:
    radial-gradient(circle var(--r) at var(--cx) var(--cy), transparent calc(62% + var(--p) * 38%), color-mix(in srgb, var(--deep) calc(80% - var(--p) * 80%), transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--deep) calc(var(--inside) * 85%), transparent) 0%, transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--deep) calc(var(--p) * 55%), transparent) 0%, transparent 16%);
}

/* the portal's ring: a lit line that draws itself, a light that sweeps round, a halo; it opens with the portal */
.portal-ring {
  position: absolute; z-index: 1; pointer-events: none; overflow: visible;
  left: calc(var(--cx) - var(--r)); top: calc(var(--cy) - var(--r)); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  opacity: calc(1 - var(--p) * 1.6);
}
.portal-ring circle { fill: none; vector-effect: non-scaling-stroke; }
.ring-halo { stroke: var(--ice); stroke-width: 18; opacity: 0.14; filter: blur(6px); }
.ring-line { stroke: var(--ice); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 8px var(--ice)); }
.ring-sweep { stroke: url(#sweep); stroke-width: 5; stroke-dasharray: 0.16 0.84; stroke-linecap: round; transform-origin: 100px 100px; animation: sweep calc(var(--idle-turn) / 4) linear infinite; animation-play-state: var(--idle-state); }
.ring-ticks { stroke: var(--edge); stroke-width: 2; stroke-dasharray: 1 9; transform-origin: 100px 100px; animation: sweep var(--idle-turn) linear infinite reverse; animation-play-state: var(--idle-state); }
@keyframes sweep { to { rotate: 360deg; } }

/* you, on a lit stand, in front of the portal's lower edge: the nearest layer, so it moves with the pointer */
.hero-stage {
  position: absolute; z-index: 2; margin: 0;
  /* its box comes from main.js: in front of the portal at first, then aside in the world once you're through */
  left: var(--sl, 50%); top: var(--st, 20%); width: var(--sw, 30vw); height: var(--sh, 60vh);
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0);
  opacity: var(--world);
}
.stage { position: absolute; inset: 0; opacity: 0; transition: opacity var(--ms-slow) var(--ease-out); }
.stage.live { opacity: 1; }
.stage canvas { touch-action: pan-y !important; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px; border-radius: var(--radius-control);
  font-size: 0.8125rem; font-weight: 500; color: var(--text);
}
.chip .dot, .where .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); box-shadow: 0 0 10px var(--line); }
.chip .hint { color: var(--muted); font-weight: 400; }
.stage-chip { position: absolute; left: 50%; bottom: 0; translate: -50% 0; white-space: nowrap; opacity: calc(1 - var(--p) * 3); }

/* the words, on the dark to the left of the portal; they go as you go through */
.hero-text {
  position: absolute; z-index: 3; left: max(16px, calc((100vw - 1240px) / 2)); top: 50%; width: min(38rem, 43vw);
  transform: translate3d(calc(var(--mx) * 6px), calc(-50% + var(--p) * -120px), 0);
  opacity: calc((1 - var(--p) * 3.4) * var(--words));
}
.hero-text[inert] { visibility: hidden; }
h1 { font-size: clamp(2.6rem, 5.6vw, 5.25rem); line-height: 1; letter-spacing: -0.035em; }
h1 .line { display: block; }
h1 .line + .line { color: transparent; background: linear-gradient(100deg, var(--text) 10%, var(--ice) 60%, var(--text) 95%); -webkit-background-clip: text; background-clip: text; }
.lede { margin: 26px 0 0; max-width: 31em; color: var(--text-soft); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.6; }
.hero-text .fine { color: var(--text-soft); }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; margin: 0; display: grid; justify-items: center; gap: 10px;
  font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--muted);
  opacity: calc((1 - var(--p) * 6) * var(--cue));
}
.scroll-cue span { width: 2px; height: 36px; border-radius: 2px; background: linear-gradient(var(--ice), transparent); animation: cue var(--idle-breathe) var(--ease-in-out) infinite; animation-play-state: var(--idle-state); transform-origin: top; }
@keyframes cue { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 0; transform-origin: bottom; } }

/* once through: where you are, and the places to land */
.inside {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 max(16px, calc((100vw - 1240px) / 2)) 28px;
  opacity: var(--inside); transform: translate3d(0, calc((1 - var(--inside)) * 40px), 0);
  pointer-events: none;
}
.inside.in { pointer-events: auto; }
.where { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1rem; font-weight: 500; text-shadow: 0 1px 12px var(--deep); }
.rail { display: flex; gap: 16px; margin: 0; padding: 10px 2px 12px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile {
  --c: var(--line, var(--ice));
  position: relative; flex: 0 0 auto; width: max(210px, calc((min(100vw - 32px, 1240px) - 64px) / 5)); aspect-ratio: 16 / 10; scroll-snap-align: start;
  border-radius: var(--radius-card); overflow: hidden; cursor: pointer;
  background: var(--glass); border: 1px solid var(--edge-soft);
  transition: transform var(--spring-soft-ms) var(--spring-soft), box-shadow var(--ms-base) var(--ease-out), border-color var(--ms-base) var(--ease-out);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale var(--ms-scene) var(--ease-out); }
.tile.on img { scale: 1.06; }
.tile .loop { scale: 1 !important; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 88%, transparent), transparent 62%); }
.tile.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 18px 50px -12px color-mix(in srgb, var(--c) 70%, transparent); }
.tile:not(.on):hover { border-color: var(--edge); }
.tile-text { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 3; display: grid; gap: 2px; line-height: 1.3; }
.tile-text strong { font-size: 1.0625rem; }
.tile-text span { color: var(--text-soft); font-size: 0.8125rem; }
.tile.yours { border-style: dashed; background: color-mix(in srgb, var(--glass) 70%, transparent); }
.tile.yours::after { display: none; }
.tile.yours a { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; }
.tile.yours svg { width: 40px; height: 40px; margin-bottom: 36px; fill: none; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; transition: transform var(--spring-press-ms) var(--spring-press); }
.tile.yours:hover svg { transform: rotate(90deg); }

/* the first moment: the ring draws itself, the world comes in, the words rise (stars come in at warp, main.js) */
@media (prefers-reduced-motion: no-preference) {
  .ring-line { animation: draw 1400ms var(--ease-out) 200ms both; }
  .portal-world, .intro-film { animation: open 1300ms var(--ease-out) 350ms both; }
  .hero-text > * { animation: rise var(--ms-scene) var(--ease-out) both; }
  .hero-text > :nth-child(1) { animation-delay: 500ms; }
  .hero-text > :nth-child(2) { animation-delay: 640ms; }
  .hero-text > :nth-child(3) { animation-delay: 780ms; }
  .hero-text > :nth-child(4) { animation-delay: 900ms; }
  .top { animation: fade var(--ms-scene) var(--ease-out) 900ms both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes open { from { clip-path: circle(0 at var(--cx) var(--cy)); -webkit-clip-path: circle(0 at var(--cx) var(--cy)); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }

/* less motion: no flight through the portal; the places sit under it */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-sticky { position: relative; }
  .inside { position: relative; opacity: 1; transform: none; pointer-events: auto; padding-top: 24px; } /* main.js puts it under the picture */
  .scroll-cue { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────────────────────── */

section:not(.hero) { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(96px, 16vh, 180px) 16px 0; }
@media (min-width: 720px) { section:not(.hero) { padding-left: 32px; padding-right: 32px; } }
.head { max-width: 46rem; }
.head .soft { margin: 20px 0 0; font-size: 1.125rem; }

/* The promise: words that light up as you read down */
.promise { padding-top: clamp(120px, 22vh, 240px) !important; }
.promise-text {
  margin: 0; max-width: 22em;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.22; font-weight: 600; letter-spacing: -0.025em;
  color: var(--text);
}
.js .promise-text .w { color: color-mix(in srgb, var(--text) 18%, transparent); transition: color var(--ms-base) var(--ease-out), text-shadow var(--ms-slow) var(--ease-out); }
.js .promise-text .w.lit { color: var(--text); }
.js .promise-text .w.now { color: var(--ice); text-shadow: 0 0 24px color-mix(in srgb, var(--ice) 60%, transparent); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 56px 0 0; padding: 0; list-style: none; perspective: 1200px; }
.step { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; }
.step::before { content: ""; position: absolute; inset: 0 24px auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); box-shadow: 0 0 18px var(--c); }
.step .num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 50%;
  border: 3px solid var(--c); font-family: var(--font-label); font-size: 0.875rem; color: var(--text);
  box-shadow: 0 0 20px color-mix(in srgb, var(--c) 40%, transparent);
}
.step p { margin: 10px 0 0; color: var(--text-soft); }
.mini { margin-top: auto; padding-top: 24px; position: relative; z-index: 3; }
.starts { display: flex; flex-wrap: wrap; gap: 8px; }
.starts span { padding: 6px 14px; border-radius: var(--radius-control); border: 2px solid var(--c); font-size: 0.875rem; font-weight: 500; }
.chat { display: grid; gap: 10px; }
.msg { margin: 0; padding: 12px 16px; border-radius: var(--radius-row); font-size: 0.9375rem; line-height: 1.45; max-width: 92%; }
.msg.you { justify-self: end; background: var(--glass-hot); border-bottom-right-radius: 8px; }
.msg.ai { background: var(--glass-hi); border: 1px solid var(--edge-soft); border-bottom-left-radius: 8px; min-height: 46px; }
.typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 900ms var(--ease-in-out) infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes bounce { 50% { transform: translateY(-4px); opacity: 0.5; } }
.chat .said { display: none; }
.js .chat .msg { opacity: 0; transform: translateY(8px); transition: opacity var(--ms-base) var(--ease-out), transform var(--ms-base) var(--ease-out); }
.js .in .chat .you { opacity: 1; transform: none; transition-delay: 300ms; }
.js .in .chat .ai { opacity: 1; transform: none; transition-delay: 900ms; }
.chat.answered .typing { display: none; }
.chat.answered .said { display: inline; animation: fade var(--ms-base) var(--ease-out); }

.invite { display: grid; justify-items: center; gap: 4px; text-align: center; }
.invite-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border-radius: var(--radius-row);
  background: var(--glass-hi); border: 1px solid var(--edge-soft); text-align: left;
  transition: transform var(--ms-base) var(--ease-in), opacity var(--ms-base) var(--ease-in);
}
.invite-orb { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-coral); background: color-mix(in srgb, var(--line-coral) 28%, var(--glass)); box-shadow: 0 0 16px color-mix(in srgb, var(--line-coral) 50%, transparent); }
.invite-text { display: grid; line-height: 1.35; }
.invite-text span { color: var(--muted); font-size: 0.875rem; }
.invite.gone .invite-card { transform: translateY(24px); opacity: 0; }
.hold {
  position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-top: 18px; padding: 0;
  border: 0; border-radius: 50%; background: var(--glass); color: var(--text); font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform var(--spring-press-ms) var(--spring-press);
}
.hold span { max-width: 6em; }
.hold svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.hold circle { fill: none; stroke-width: 5; }
.hold .track { stroke: var(--edge-soft); }
.hold .fill { stroke: var(--beacon); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ms-base) var(--ease-out); filter: drop-shadow(0 0 6px var(--beacon)); }
.hold.holding { transform: scale(0.94); }
.hold.holding .fill { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms linear; }
.hold:hover .track { stroke: var(--edge); }

/* The dive into the world */
.dive { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.dive[hidden] { display: none; }
.dive-colour {
  position: absolute; inset: 0; background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--line-coral), color-mix(in srgb, var(--line-coral) 40%, var(--deep)));
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
  animation: iris var(--ms-scene) var(--ease-in-out) forwards;
}
.dive-shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; animation: arrive-in 1400ms var(--ease-out) 500ms forwards; }
.dive-card { position: relative; max-width: 30rem; padding: 32px; animation: rise var(--ms-slow) var(--ease-out) 1100ms both; }
.dive-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.dive-card .soft { margin: 14px 0 0; }
.dive-card .actions { margin-top: 24px; }
@keyframes iris { to { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); } }
@keyframes arrive-in { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .dive-colour { animation-name: fade; clip-path: none; }
  .dive-shot { animation-name: fade; }
  .dive-card { animation-name: fade; }
}

/* Your look */
.look-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.look-stage {
  position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 720px; border-radius: var(--radius-panel); overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 62%, color-mix(in srgb, var(--look, var(--line-teal)) 30%, transparent), transparent 75%),
    color-mix(in srgb, var(--glass) 70%, transparent);
  border: 1px solid var(--edge-soft); box-shadow: inset 0 1px 0 var(--edge), 0 30px 120px -40px color-mix(in srgb, var(--look, var(--line-teal)) 60%, transparent);
  transition: background var(--ms-scene) var(--ease-in-out), box-shadow var(--ms-scene) var(--ease-in-out);
}
.stage-state { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; color: var(--muted); font-size: 0.875rem; }
.look-text .soft { margin: 20px 0 0; font-size: 1.125rem; }
.pick { margin-top: 28px; }
.pick-title { margin: 0 0 12px; font-size: 0.9375rem; font-weight: 600; color: var(--text-soft); }
.people { display: flex; flex-wrap: wrap; gap: 10px; }
.people button, .colours button {
  padding: 0; border-radius: 50%; cursor: pointer; background: var(--glass-hi);
  transition: transform var(--spring-press-ms) var(--spring-press), border-color var(--ms-quick) var(--ease-out), box-shadow var(--ms-quick) var(--ease-out);
}
.people button { width: 52px; height: 52px; border: 3px solid var(--edge-soft); overflow: hidden; }
.people img { width: 100%; height: 100%; object-fit: cover; }
.people button:hover, .colours button:hover { transform: translateY(-3px) scale(1.06); }
.people button:active, .colours button:active { transform: scale(0.92); transition-duration: var(--ms-instant); }
.people button[aria-checked="true"] { border-color: var(--look, var(--ice)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--look, var(--ice)) 35%, transparent), 0 0 20px var(--look, var(--ice)); }
.colours { display: flex; gap: 12px; }
.colours button { width: 40px; height: 40px; border: 3px solid var(--deep); background: var(--c); box-shadow: 0 0 0 2px var(--edge-soft); }
.colours button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--c), 0 0 22px var(--c); }

/* The Nexus */
.nexus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.nexus-text .soft { margin: 20px 0 0; font-size: 1.125rem; }
.facts { display: grid; margin: 28px 0 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--edge-soft); }
.facts dt { font-weight: 600; }
.facts dd { margin: 4px 0 0; color: var(--text-soft); }
.map { margin: 0; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map text { font-family: var(--font-label); font-size: 15px; fill: var(--muted); text-anchor: middle; letter-spacing: 0.02em; paint-order: stroke; stroke: var(--deep); stroke-width: 5px; stroke-linejoin: round; }
.map .world, .map .here { transform: translate(calc(var(--mx) * var(--d, 1) * 9px), calc(var(--my) * var(--d, 1) * 9px)); cursor: default; }
.orbit { fill: none; stroke: var(--edge-soft); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; transform-origin: 300px 260px; animation: sweep calc(var(--idle-turn) * 4) linear infinite; animation-play-state: var(--idle-state); }
.link { stroke: var(--c); stroke-width: 2; stroke-opacity: 0.55; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-opacity var(--ms-quick) var(--ease-out), stroke-width var(--ms-quick) var(--ease-out); }
.link.hot { stroke-opacity: 1; stroke-width: 4; filter: drop-shadow(0 0 6px var(--c)); }
.nexus-ring { fill: var(--glass); stroke: var(--ice); stroke-width: 3; filter: drop-shadow(0 0 12px var(--ice)); }
.nexus-core { fill: var(--ice); }
.nexus-hub text { fill: var(--text-soft); }
.orb { fill: var(--glass); stroke: var(--c); stroke-width: 3; transition: filter var(--ms-quick) var(--ease-out); }
.world:hover .orb { filter: drop-shadow(0 0 14px var(--c)); }
.world:hover text { fill: var(--text); }
.core { fill: var(--c); fill-opacity: 0.28; }
.here-dot { fill: var(--beacon); }
.here-pulse { fill: none; stroke: var(--beacon); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.here text { fill: var(--beacon); }
@media (prefers-reduced-motion: no-preference) {
  .js .map .link { stroke-dashoffset: 1; }
  .js .map .world .orb, .js .map .world .core, .js .map .world text, .js .map .here { opacity: 0; }
  .map.in .link { animation: reach 900ms var(--ease-out) forwards; animation-delay: calc(250ms + var(--i) * 120ms); }
  .map.in .world .orb, .map.in .world .core, .map.in .world text { animation: arrive 600ms var(--ease-out) forwards; animation-delay: calc(700ms + var(--i) * 120ms); }
  .map.in .here { animation: arrive 500ms var(--ease-out) 1.7s forwards; }
  .map.in .here-pulse { animation: pulse 2.6s var(--ease-out) 2.2s infinite; }
}
@keyframes reach { to { stroke-dashoffset: 0; } }
@keyframes arrive { to { opacity: 1; } }
@keyframes pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

/* What it costs */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; max-width: 900px; perspective: 1200px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; }
.plan.host { border-color: var(--edge); }
.price { margin: 6px 0 0; font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; }
.plan ul { margin: 18px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text-soft); }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ice); }
.plan .button { margin-top: auto; align-self: flex-start; position: relative; z-index: 3; }
.plan .fine { position: relative; z-index: 3; }
.plan .fine a { color: var(--text-soft); text-underline-offset: 3px; }
.plan .fine.soon { margin-top: 6px; }

/* The door */
.door { text-align: center; display: grid; justify-items: center; padding-bottom: clamp(96px, 16vh, 180px) !important; }
.door h2 { max-width: 16ch; }
.door .soft { margin: 18px 0 34px; font-size: 1.125rem; }
.door-portal { position: relative; width: 200px; height: 200px; margin-bottom: 40px; transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 10px), 0); }
.door-portal span {
  position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ice);
  box-shadow: 0 0 40px color-mix(in srgb, var(--ice) 40%, transparent), inset 0 0 40px color-mix(in srgb, var(--ice) 25%, transparent);
  transition: scale var(--spring-soft-ms) var(--spring-soft);
}
.door-portal span:nth-child(2) { inset: 30px; border-color: var(--line-violet); opacity: 0.85; transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -6px), 0); }
.door-portal span:nth-child(3) { inset: 62px; border-color: var(--line-coral); opacity: 0.75; transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -12px), 0); }
.door-portal i { position: absolute; inset: 86px; border-radius: 50%; background: var(--beacon); box-shadow: 0 0 30px var(--beacon), 0 0 80px color-mix(in srgb, var(--beacon) 50%, transparent); transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -16px), 0); }
.door.warping .door-portal span { scale: 1.08; }
@media (prefers-reduced-motion: no-preference) {
  .door-portal span { animation: ripple var(--idle-breathe) var(--ease-in-out) infinite alternate; animation-play-state: var(--idle-state); }
  .door-portal span:nth-child(2) { animation-delay: 200ms; }
  .door-portal span:nth-child(3) { animation-delay: 400ms; }
}
@keyframes ripple { to { opacity: 0.55; } }

/* ── The waitlist ─────────────────────────────────────────────────────────────────────── */

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* only a bot fills it in */

/* one glass pill: the address and the button in it */
.join-form {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 34rem; margin-top: 32px; padding: 6px;
  border-radius: var(--radius-control); background: var(--glass-screen); border: 1px solid var(--edge-soft); box-shadow: inset 0 1px 0 var(--edge);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  transition: border-color var(--ms-quick) var(--ease-out), box-shadow var(--ms-quick) var(--ease-out);
}
.join-form:focus-within { border-color: var(--ice); box-shadow: inset 0 1px 0 var(--edge), 0 0 0 4px color-mix(in srgb, var(--ice) 18%, transparent); }
.join-form input[type="email"] {
  flex: 1 1 12rem; min-width: 0; min-height: 50px; padding: 0 20px; border: 0; border-radius: var(--radius-control);
  background: transparent; color: var(--text); font: inherit; font-size: 1rem; outline: none;
}
.join-form input::placeholder { color: var(--muted); }
.join-form .button { min-height: 50px; }
.join-form .join-said { flex-basis: 100%; margin: 0; padding: 0 20px; font-size: 0.9375rem; color: var(--text-soft); }
.join-form .join-said:empty { display: none; }
.join-form .join-said.error { color: var(--alert); padding-bottom: 8px; }
.join-form.busy .button { opacity: 0.7; cursor: progress; }
/* sent: the form gives way to what happens next */
.join-form.sent { padding: 18px 22px; border-radius: var(--radius-row); border-color: color-mix(in srgb, var(--live) 50%, var(--edge-soft)); }
.join-form.sent input, .join-form.sent .button { display: none; }
.join-form.sent .join-said { padding: 0; color: var(--text); animation: rise var(--ms-slow) var(--ease-out) both; }
.join-form.sent .join-said strong { color: var(--ice); font-weight: 600; }
.join-form.sent .join-said::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px var(--live); }
.door .join-form { margin: 0 auto; width: 100%; }
.door .join-form.sent { text-align: left; }
.hero-text .fine a, .look-text .fine a { color: var(--text); }

/* the sheet for the buttons that aren't next to a form */
dialog.join {
  width: min(32rem, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 40px 32px 28px; color: var(--text);
  overflow: visible; text-align: center;
}
dialog.join::backdrop { background: color-mix(in srgb, var(--deep) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.join[open] { animation: sheet-in var(--ms-base) var(--ease-out) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
dialog.join h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
dialog.join .soft { margin: 14px 0 0; }
dialog.join .join-form { margin: 26px auto 0; text-align: left; }
dialog.join .fine a { color: var(--text-soft); }
.join-ring { display: grid; place-items: center; width: 84px; height: 84px; margin: -82px auto 18px; border-radius: 50%; background: var(--deep); border: 3px solid var(--ice); box-shadow: 0 0 30px color-mix(in srgb, var(--ice) 45%, transparent), inset 0 0 24px color-mix(in srgb, var(--ice) 30%, transparent); }
.join-ring span { width: 26px; height: 26px; border-radius: 50%; background: var(--beacon); box-shadow: 0 0 22px var(--beacon); }
.close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--glass-hi); color: var(--text-soft); cursor: pointer; }
.close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.close:hover { color: var(--text); }
@media (max-width: 600px) {
  .join-form { border-radius: var(--radius-row); }
  .join-form .button { flex: 1 1 100%; }
}

/* The waitlist's own pages (/waitlist/confirm, /waitlist/leave): one card in space */
.page-card { min-height: 100svh; display: grid; place-items: center; padding: 96px 16px 48px; }
.page-card .panel { width: min(34rem, 100%); padding: 48px 32px 32px; text-align: center; }
.page-card .join-ring { margin: -90px auto 22px; }
.page-card .join-ring.ok span { background: var(--live); box-shadow: 0 0 22px var(--live); }
.page-card .join-ring.off span { background: var(--muted); box-shadow: none; }
.page-card h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
.page-card .soft { margin: 16px 0 0; }
.page-card .actions { justify-content: center; }

/* The foot */
.foot { display: flex; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 32px 16px 40px; border-top: 1px solid var(--edge-soft); color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 720px) { .foot { padding-left: 32px; padding-right: 32px; } }
.foot p { margin: 0; }
.foot a { color: var(--text-soft); }

/* ── Narrower screens ─────────────────────────────────────────────────────────────────── */

@media (max-width: 1080px) { .top-nav { display: none; } }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .nexus, .look-grid { grid-template-columns: 1fr; }
  .map { max-width: 560px; margin: 0 auto; width: 100%; }
  .look-stage { max-width: 480px; width: 100%; justify-self: center; aspect-ratio: 1 / 1; }
}
@media (max-width: 860px) {
  .hero { height: 220vh; }
  .has-intro .hero { height: 330vh; }
  .hero-text { left: 16px; right: 16px; top: 84px; width: auto; transform: translate3d(0, calc(var(--p) * -120px), 0); }
  h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .lede { margin-top: 14px; font-size: 1rem; line-height: 1.55; }
  .hero-text .actions { margin-top: 20px; }
  .hero-text .fine { display: none; }
  .scroll-cue { display: none; }
  .map text { font-size: 17px; }
}
@media (max-width: 600px) {
  .plan-grid { grid-template-columns: 1fr; }
  .actions .button { flex: 1 1 auto; }
  .plan .button { align-self: stretch; }
  .top .button.small { padding: 0 16px; }
  .foot { flex-direction: column; }
}
