/* =====================================================================
   AETHER website: minimal, dark, scroll-driven.
   Fonts are served from this site (no Google servers): Unbounded (display),
   Inter (text), Chakra Petch (small labels). All SIL OFL, licences in /fonts.
   Page colours via a class on <body>: .home, .studio, .kata
   Scroll values come from assets/site.js: --p (pinned scene 0..1), --v (in view 0..1).
   ===================================================================== */
@font-face { font-family: "Unbounded"; src: url("../fonts/Unbounded-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/Unbounded-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #04060a;
  --bg-2: #0a0f17;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.18);
  --text: #f2f5f7;
  --muted: #95a2ae;
  --faint: #5f6b78;
  --cyan: #46e6f0;
  --magenta: #e75bdc;
  --gold: #e2b04a;
  --water: #4fb6ff;
  --earth: #c99054;
  --air: #cfe6ee;
  --fire: #ff6a2b;
  --mint: #8fe3b0;
  --a1: var(--cyan); --a2: var(--magenta); --a3: var(--gold);
  --ink: #041013;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Chakra Petch", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --p: 0; --v: 0;
}
body.studio { --a3: #9fd8ff; }
body.kata { --a1: var(--water); --a2: var(--gold); --a3: var(--fire); --ink: #150f04; --grad: linear-gradient(100deg, var(--water), var(--air) 30%, var(--gold) 62%, var(--fire)); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
a { color: inherit; }
img, video, canvas, svg { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--a1) 35%, transparent); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } body { font-size: 16px; } }

/* ---------- Atmosphere ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(100px); opacity: .11; animation: drift 30s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--a1); top: -28vmax; left: -18vmax; }
.aurora i:nth-child(2) { background: var(--a2); top: 15vmax; right: -28vmax; animation-duration: 36s; animation-delay: -9s; }
.aurora i:nth-child(3) { background: var(--a3); bottom: -38vmax; left: 18vmax; opacity: .07; animation-duration: 42s; animation-delay: -18s; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }
canvas#orb, canvas#orb-rings { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav-inner { pointer-events: auto; width: min(1240px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid transparent; transition: background .35s var(--ease), border-color .35s; }
.nav.scrolled .nav-inner { background: rgba(6,9,14,.55); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--display); letter-spacing: .24em; font-size: 13.5px; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 210deg, var(--cyan), var(--magenta), var(--gold), var(--cyan)); -webkit-mask: radial-gradient(circle, transparent 6.5px, #000 7.5px); mask: radial-gradient(circle, transparent 6.5px, #000 7.5px); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.links { display: flex; gap: 2px; }
.links a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .2s; }
.links a:hover, .links a[aria-current=page] { color: var(--text); }
.links a[aria-current=page]::after { content: ""; display: block; height: 1px; background: var(--grad); margin-top: 3px; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
@media (max-width: 860px) { .links { display: none; } .menu-btn { display: block; } }
.sheet { position: fixed; inset: 0; z-index: 49; background: rgba(4,6,10,.985); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; place-content: center; gap: 12px; text-align: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
/* links fade in only once the backdrop covers the page, and fade out first when closing, so texts never overlap */
.sheet a { font-family: var(--display); font-weight: 200; font-size: clamp(28px, 9vw, 44px); text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .15s, transform .3s; }
body.menu-open .sheet { opacity: 1; visibility: visible; }
body.menu-open .sheet a { opacity: 1; transform: none; transition: opacity .3s .18s, transform .4s .18s; }
body.menu-open .sheet a:nth-child(2) { transition-delay: .23s; }
body.menu-open .sheet a:nth-child(3) { transition-delay: .28s; }
body.menu-open .sheet a:nth-child(4) { transition-delay: .33s; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Type + buttons ---------- */
.label { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.label.accent { color: var(--a1); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.015em; }
.display { font-size: clamp(42px, 8vw, 118px); line-height: .95; }
.h2 { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; }
body.studio .display, body.home .reveal-copy h2 { letter-spacing: .03em; font-kerning: none; font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0, "kern" 0; }   /* the capitals of AETHER must not touch */
.thin { font-weight: 200; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 600px; line-height: 1.65; margin: 0; }
.lead strong { color: var(--text); font-weight: 600; }
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 15px 24px; cursor: pointer; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.btn.primary { color: var(--ink); background: var(--text); border-color: transparent; }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s; }
.btn.primary:hover::after { opacity: 1; }
.btn.small { padding: 11px 17px; font-size: 14px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.text-link .ln { width: 46px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.text-link:hover .ln { width: 74px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chip { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chip::before { content: "/ "; color: var(--faint); }
.chip.live { color: var(--a1); }

/* ---------- Scroll engine ---------- */
.scene { position: relative; height: var(--h, 250vh); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.key { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
.js [data-reveal].in, .reveal-all [data-reveal] { opacity: 1; transform: none; }
section.block { padding: 112px 0; position: relative; }
@media (max-width: 640px) { section.block { padding: 80px 0; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Home hero (pinned) ---------- */
.hero-pin { display: grid; place-items: center; text-align: center; }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; padding: 0 18px; margin-top: 30vh;
  opacity: clamp(0, calc(1 - var(--p) * 5.5), 1); transform: translateY(calc(var(--p) * -20vh)); filter: blur(calc(var(--p) * 24px)); }
.wordmark { font-family: var(--display); font-weight: 200; font-size: clamp(62px, 14vw, 200px); line-height: .9; margin: 0; letter-spacing: calc(.06em + var(--p) * .9em); margin-right: calc(-1 * (.06em + var(--p) * .9em)); }
.wordmark span { background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-family: var(--display); font-size: clamp(18px, 2.4vw, 28px); margin: 0; }
.hero-copy .lead { margin: 0 auto; max-width: 520px; font-size: clamp(15px, 1.4vw, 17px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; opacity: calc(1 - var(--p) * 6); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@media (max-width: 640px), (max-height: 720px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(4,6,10,.15), rgba(4,6,10,.75)); opacity: 0; transition: opacity 1s var(--ease); }
.scrim.on { opacity: .9; }
/* The statement plays in word by word once the scene passes its data-at point (words split by site.js) */
.hero-statement { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0 24px; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease); }
.hero-statement.on { opacity: 1; }
.hero-statement .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(10px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.hero-statement.on .w { opacity: 1; transform: none; filter: none; }
.hero-statement p { font-family: var(--display); font-weight: 200; font-size: clamp(30px, 5.4vw, 80px); line-height: 1.08; max-width: 1100px; margin: 0; }
.hero-statement p b { font-weight: 400; }
.no-gl .hero-pin::before { content: ""; position: absolute; left: 50%; top: 28%; width: min(46vh, 70vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 18%), radial-gradient(circle at 50% 55%, var(--a2), transparent 55%), radial-gradient(circle at 40% 40%, var(--a1), #06121a 70%); box-shadow: 0 0 140px -10px var(--a1); }

/* ---------- Steps (pinned sequence) ---------- */
.steps-pin { display: grid; align-items: center; }
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; height: 100%; }
.steps { position: relative; min-height: 440px; max-width: 560px; }
.step { position: absolute; inset: 0; display: grid; align-content: center; gap: 22px; opacity: 0; transform: translateY(50px); filter: blur(10px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); pointer-events: none; }
.step.active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step .num { font-family: var(--display); font-weight: 200; font-size: 15px; letter-spacing: .2em; color: var(--muted); }
.step .num b { color: var(--text); font-weight: 400; }
.step h2 { font-size: clamp(36px, 5.4vw, 78px); line-height: 1.02; }
.step p { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 480px; margin: 0; }
.rail { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; z-index: 3; }
.rail span { width: 2px; height: 34px; background: var(--line-2); transition: background .5s, height .5s var(--ease); }
.rail span.active { background: var(--text); }
.rail-wrap { position: relative; }
.steps-head { position: absolute; top: 110px; left: 0; right: 0; }
@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; align-content: end; padding-bottom: 9vh; }
  .steps { min-height: 330px; }
  .rail { left: auto; right: 18px; top: auto; bottom: 9vh; transform: none; }
  .rail span { height: 22px; }
  .step p { padding-right: 22px; }   /* keeps the text clear of the rail */
  .steps-head { top: 90px; }
}

/* Media that changes with the step (studio features) */
.step-media { position: relative; aspect-ratio: 16 / 10; }
.step-media > * { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06) translateY(20px); filter: blur(8px); transition: opacity .8s var(--ease), transform 1.1s var(--ease), filter .8s var(--ease); }
.step-media > .active { opacity: 1; transform: none; filter: none; }
.step-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; -webkit-mask: radial-gradient(ellipse at center, #000 55%, transparent 100%); mask: radial-gradient(ellipse at center, #000 55%, transparent 100%); }
@media (max-width: 860px) { .step-media { position: absolute; left: 0; right: 0; top: 16vh; aspect-ratio: auto; height: 34vh; } }

/* ---------- HUD: glass panels that deploy out of the orb ----------
   Panels sit around the orb centre in viewport units (orb key: x .72, y .5, r .5; phones x .5, y .28) and are
   turned slightly towards it in 3D. site.js sets --fx/--fy (vector panel -> orb) so they fly out of / back into
   the orb, draws the hairline links with travelling light pulses, and builds the [data-viz] visuals. */
.hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; perspective: 1200px;
  --R: calc(min(100vw, 100vh) * .1); --pw: clamp(220px, calc(var(--R) * 3.1), 340px); --fs: clamp(11px, calc(var(--R) * .15), 14px); }
.hud-set { position: absolute; inset: 0; color: rgb(var(--hc)); transform-style: preserve-3d; }
.hud-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud-links .ln { fill: none; stroke: rgba(255,255,255,.28); stroke-width: .75; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset .3s var(--ease); }
.hud-links .pulse { fill: none; stroke: rgb(var(--hc)); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 14 var(--len, 400); stroke-dashoffset: 14; opacity: 0; filter: drop-shadow(0 0 4px rgb(var(--hc))); }
.hud-links circle { fill: none; stroke: rgb(var(--hc)); stroke-width: .9; opacity: 0; transition: opacity .3s; }
.hud-links circle.core { fill: rgb(var(--hc)); stroke: none; }
.hud.on .hud-set.active .hud-links .ln { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .3s; }
.hud.on .hud-set.active .hud-links .pulse { opacity: 1; animation: hud-pulse 2.8s cubic-bezier(.5,0,.3,1) 1.1s infinite; }
.hud.on .hud-set.active .hud-links circle { opacity: 1; transition-delay: .9s; }
@keyframes hud-pulse { from { stroke-dashoffset: 14; } to { stroke-dashoffset: calc(-1 * var(--len, 400)); } }

.hud-p { position: absolute; width: var(--pw); padding: 14px 16px 16px; border-radius: 16px; color: var(--text);
  font: 500 var(--fs)/1.4 var(--sans); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.025) 60%), rgba(9,13,20,.34);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), 0 0 60px -30px rgba(var(--hc), .55), inset 0 1px 0 rgba(255,255,255,.12);
  opacity: 0; filter: blur(10px);
  transform: translate3d(var(--fx, 0), var(--fy, 0), -120px) rotateY(calc(var(--ry, 0deg) * 3)) scale(.25);
  transition: transform .5s var(--ease), opacity .35s, filter .4s; overflow: hidden; }
/* gradient hairline edge: bright where the light hits, tinted where it faces the orb */
.hud-p::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(var(--edge, 135deg), rgba(255,255,255,.42), rgba(255,255,255,.07) 34%, rgba(255,255,255,0) 58%, rgba(var(--hc), .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* light sweep across the glass when the panel arrives */
.hud-p::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%); transform: translateX(-70%); }
.hud.on .hud-set.active .hud-p { opacity: 1; filter: none; transform: translate3d(0, 0, 0) rotateY(var(--ry, 0deg)) scale(1);
  transition: transform 1s cubic-bezier(.16,1,.3,1), opacity .5s, filter .7s; }
.hud.on .hud-set.active .hud-p::after { transform: translateX(70%); transition: transform 1.4s var(--ease) .45s; }
.hud.on .hud-set.active .hud-b { transition-delay: .08s; }
.hud.on .hud-set.active .hud-c { transition-delay: .16s; }
.hud-p > :not(header) { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.hud.on .hud-set.active .hud-p > :not(header) { opacity: 1; transform: none; transition: opacity .6s .5s, transform .8s var(--ease) .5s; }

.hud-p header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: .78em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hud-p header em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; letter-spacing: .08em; text-transform: none; font-weight: 500; color: rgba(var(--hc), .95); }
.hud-p header em::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--hc)); box-shadow: 0 0 0 3px rgba(var(--hc), .16), 0 0 10px rgb(var(--hc)); }

/* positions around the orb (desktop); --ry turns each panel towards the orb, --edge sets where its rim lights up */
.hud-a { --ry: 12deg; --edge: 120deg; left: max(calc(72vw - var(--R) * 3), 52vw); top: max(calc(50vh - var(--R) * 3.8), 92px); }
.hud-b { --ry: -14deg; --edge: 230deg; left: calc(72vw + var(--R) * 1.8); top: calc(50vh - var(--R) * .9); width: min(var(--pw), calc(28vw - var(--R) * 1.8 - 24px)); }
.hud-c { --ry: 10deg; --edge: 60deg; left: max(calc(72vw - var(--R) * 2.3), 52vw); top: calc(50vh + var(--R) * 1.65); width: calc(var(--pw) * .9); }

/* ---- contents ---- */
.hud-p .viz { display: block; width: 100%; height: auto; overflow: visible; }
.hud-p .viz.sm { width: calc(var(--fs) * 3.6); flex: none; } .hud-p .viz.md { width: calc(var(--fs) * 4.4); flex: none; }
.hud-p .spin { transform-origin: 24px 24px; animation: hud-spin 14s linear infinite; }
@keyframes hud-spin { to { transform: rotate(360deg); } }
.hud-p .inline, .hud-p .gauge-row { display: flex; align-items: center; gap: 14px; }
.hud-p .cap { margin: 0; color: rgba(255,255,255,.55); line-height: 1.45; }
.hud-p .cap b { color: var(--text); font-weight: 500; }

/* room point cloud (dots built by site.js), a scan band sweeps through it */
.hud-p [data-viz="room"] circle { fill: currentColor; opacity: .32; animation: hud-scan 3.2s linear infinite; animation-delay: var(--d); }
.hud-p [data-viz="room"] circle.obj { opacity: .75; }
@keyframes hud-scan { 0%, 8% { opacity: 1; r: 1.6; } 22%, 100% { opacity: .3; r: 1; } }
/* surfaces: value rows with a thin confidence line */
.hud-p .rows { display: grid; gap: 10px; }
.hud-p .rows p { position: relative; display: flex; justify-content: space-between; margin: 0; padding-bottom: 9px; color: rgba(255,255,255,.55); }
.hud-p .rows b { color: var(--text); font-weight: 500; }
.hud-p .rows i { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: rgba(255,255,255,.08); }
.hud-p .rows i::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, rgba(var(--hc), .2), rgb(var(--hc))); box-shadow: 0 0 6px rgb(var(--hc)); transition: width 1.4s var(--ease) .7s; }
.hud.on .hud-set.active .hud-p .rows i::after { width: var(--w); }
/* anchor coordinates */
.hud-p dl { display: grid; grid-template-columns: auto auto; gap: 3px 10px; margin: 0; }
.hud-p dt { color: rgba(var(--hc), .9); font-weight: 600; font-size: .8em; letter-spacing: .1em; }
.hud-p dd { margin: 0; color: var(--text); }
/* hand skeleton */
.hud-p .hand .joints { filter: drop-shadow(0 0 3px rgb(var(--hc))); }
.hud-p .hand .tip { animation: hud-tip 1.6s ease-in-out infinite; }
.hud-p .hand .pinchline { animation: hud-dash 1.2s linear infinite; opacity: .8; }
@keyframes hud-tip { 50% { r: 3.4; } }
@keyframes hud-dash { to { stroke-dashoffset: -10; } }
/* gesture word that rolls through pinch / grab / twist */
.hud-p .ticker-word { height: 1.2em; overflow: hidden; font-family: var(--display); font-weight: 200; font-size: calc(var(--fs) * 2.6); line-height: 1.2; color: var(--text); }
.hud-p .ticker-word span { display: block; animation: hud-roll 6s cubic-bezier(.7,0,.2,1) infinite; }
@keyframes hud-roll { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-100%); } 66%, 95% { transform: translateY(-200%); } 100% { transform: translateY(-300%); } }
/* ring gauges (pinch strength counts up and down, "on device" fills to 100 %) */
@property --g { syntax: "<integer>"; inherits: true; initial-value: 0; }
.hud-p .gauge .arc, .hud-p .arc { stroke-dasharray: 0 100; }
.hud.on .hud-set.active .hud-p .gauge-row { animation: hud-gauge 2.6s ease-in-out .6s infinite alternate; }
.hud-p .gauge-row .arc { stroke-dasharray: var(--g) 100; filter: drop-shadow(0 0 3px rgb(var(--hc))); }
.hud-p .gauge-row .arc.full { stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease) .6s; }
.hud.on .hud-set.active .hud-p .gauge-row:has(.full) { animation: none; }
.hud.on .hud-set.active .hud-p .arc.full { stroke-dasharray: 100 0; }
@keyframes hud-gauge { from { --g: 18; } to { --g: 94; } }
.hud-p .count { font-family: var(--display); font-weight: 200; font-size: calc(var(--fs) * 2.4); line-height: 1; color: var(--text); counter-reset: g var(--g); }
.hud-p .count::after { content: counter(g) "%"; }
/* mixer: hairline tracks with gliding caps */
.hud-p .mixer { display: flex; justify-content: space-between; height: calc(var(--fs) * 6.4); padding: 0 4px; }
.hud-p .mixer i { position: relative; width: 1px; background: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.22)); }
.hud-p .mixer i::after { content: ""; position: absolute; left: -7px; width: 15px; height: 4px; border-radius: 2px; background: var(--text); box-shadow: 0 0 10px rgba(var(--hc), .9), 0 0 0 1px rgba(var(--hc), .5);
  animation: hud-fader 3.2s ease-in-out var(--d) infinite alternate; }
.hud-p .mixer i::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: rgb(var(--hc)); box-shadow: 0 0 8px rgb(var(--hc)); animation: hud-meter 1.1s ease-in-out var(--d) infinite alternate; width: 1px; }
@keyframes hud-fader { from { top: 62%; } to { top: 14%; } }
@keyframes hud-meter { from { height: 18%; } to { height: 70%; } }
/* AI assist tasks tick off one after another */
.hud-p .tasks { display: grid; gap: 9px; }
.hud-p .tasks p { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 0; padding-bottom: 8px; color: rgba(255,255,255,.6); }
.hud-p .tasks p::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: rgba(255,255,255,.08); }
.hud-p .tasks p::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: rgb(var(--hc)); box-shadow: 0 0 6px rgb(var(--hc)); z-index: 1; animation: hud-task 4.5s linear infinite; animation-delay: calc(var(--k) * 1.1s); }
.hud-p .tasks i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(var(--hc), .4); position: relative; animation: hud-check 4.5s linear infinite; animation-delay: calc(var(--k) * 1.1s); }
.hud-p .tasks i::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid currentColor; border-width: 0 1.2px 1.2px 0; transform: rotate(45deg); opacity: 0; animation: inherit; animation-name: hud-tick; }
@keyframes hud-task { 0% { width: 0; } 20% { width: 100%; opacity: 1; } 85% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
@keyframes hud-check { 0%, 19% { background: transparent; } 22%, 88% { background: rgba(var(--hc), .18); border-color: rgb(var(--hc)); } 100% { background: transparent; } }
@keyframes hud-tick { 0%, 20% { opacity: 0; } 23%, 88% { opacity: 1; } 100% { opacity: 0; } }
/* MIDI keys */
.hud-p .keys { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; height: calc(var(--fs) * 4.6); }
.hud-p .keys i { border: 1px solid rgba(255,255,255,.14); border-top: 0; border-radius: 0 0 3px 3px; }
.hud-p .keys i.hit { animation: hud-key 2.4s infinite; } .hud-p .keys i.hit2 { animation: hud-key 2.4s .8s infinite; } .hud-p .keys i.hit3 { animation: hud-key 2.4s 1.6s infinite; }
.hud-p .keys b { position: absolute; top: 0; width: 6%; height: 58%; background: rgba(4,6,10,.92); border: 1px solid rgba(255,255,255,.12); border-top: 0; border-radius: 0 0 2px 2px; }
@keyframes hud-key { 0%, 20% { background: linear-gradient(rgba(var(--hc), .1), rgba(var(--hc), .75)); box-shadow: 0 6px 18px -4px rgb(var(--hc)); border-color: rgba(var(--hc), .8); } 40%, 100% { background: transparent; box-shadow: none; } }
/* big number */
.hud-p .big { margin: 0 0 4px; font-family: var(--display); font-weight: 200; font-size: calc(var(--fs) * 4.2); line-height: 1; letter-spacing: -.02em; color: var(--text); }
.hud-p .big span { font-size: .38em; margin-left: .25em; color: rgba(var(--hc), .95); letter-spacing: .06em; }

/* phones: orb at the top centre, two compact panels beside it, the third and the extras hidden */
@media (max-width: 859.98px) {
  .hud { --fs: 9.5px; --pw: calc(36vw - 22px); }
  .hud-p { width: var(--pw); padding: 10px 10px 11px; border-radius: 12px; }
  .hud-p header { margin-bottom: 8px; gap: 6px; font-size: .74em; }
  .hud-p header em { display: none; }
  .hud-a { --ry: 10deg; left: 12px; top: calc(28vh - 70px); }
  .hud-b { --ry: -10deg; left: auto; right: 12px; top: calc(28vh + 4px); width: var(--pw); }
  .hud-c, .hud-p .more { display: none; }
  .hud-p .inline, .hud-p .gauge-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hud-p { filter: none; } }

/* ---------- Project reveal (pinned) ---------- */
/* The picture fills the screen as soon as it scrolls in (no card). Once the scene passes its data-at point the pin
   gets .on and the copy animates in on its own, line by line, instead of fading with the scroll position. */
.reveal-pin { display: grid; }
.reveal-media { position: absolute; inset: 0; background: #05080c; }
.reveal-media img, .reveal-media video, .reveal-media canvas { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 - var(--p) * .06)); }
.reveal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,10,.2) 0%, rgba(4,6,10,0) 40%, rgba(4,6,10,.85) 100%), linear-gradient(90deg, rgba(4,6,10,.7), rgba(4,6,10,0) 60%); opacity: .3; transition: opacity 1s var(--ease); }
.reveal-pin.on .reveal-media::after { opacity: 1; }
.reveal-copy { position: relative; z-index: 2; align-self: end; padding-bottom: 12vh; display: grid; gap: 20px; justify-items: start; }
.reveal-copy > * { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.reveal-copy > :nth-child(2) { transition-delay: .08s; }
.reveal-copy > :nth-child(3) { transition-delay: .18s; }
.reveal-copy > :nth-child(4) { transition-delay: .28s; }
.reveal-pin.on .reveal-copy > * { opacity: 1; transform: none; filter: none; }
.reveal-copy h2, .reveal-copy p { text-shadow: 0 2px 28px rgba(4,6,10,.85); }
.reveal-copy h2 { font-size: clamp(46px, 9vw, 140px); line-height: .92; }
.reveal-copy p { color: rgba(242,245,247,.78); max-width: 520px; margin: 0; font-size: clamp(16px, 1.5vw, 19px); }
.ek-stage { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, #1a1306, #05070b 70%); }
/* Phones: the lower half gets a solid fade so the copy reads over the picture or the ring */
@media (max-width: 860px) and (orientation: portrait) {
  .reveal-media::after { background: linear-gradient(180deg, rgba(4,6,10,.25) 0%, rgba(4,6,10,0) 26%, rgba(4,6,10,.55) 50%, rgba(4,6,10,.93) 68%, rgba(4,6,10,.97) 100%); }
  .reveal-media img { height: 62%; -webkit-mask: linear-gradient(#000 72%, transparent); mask: linear-gradient(#000 72%, transparent); }   /* footage stays in the clear upper part, above the copy */
  .ek-stage { background: radial-gradient(ellipse at 50% 36%, #1a1306, #05070b 70%); }
}
.reveal-all .reveal-copy > *, .reveal-pin:focus-within .reveal-copy > * { opacity: 1; transform: none; filter: none; }
.reveal-pin:focus-within .reveal-media::after { opacity: 1; }

/* ---------- Ticker (moves with scroll) ---------- */
.ticker { position: relative; padding: 110px 0; overflow: hidden; }
.ticker-line { font-family: var(--display); font-weight: 200; font-size: clamp(54px, 10vw, 150px); line-height: 1.05; white-space: nowrap; will-change: transform; }
.ticker-line.a { transform: translateX(calc(5% - var(--v) * 45%)); }
.ticker-line.b { transform: translateX(calc(-40% + var(--v) * 45%)); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); }
.ticker-line .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; }

/* ---------- Statement (words light up) ---------- */
.statement { font-family: var(--display); font-weight: 200; font-size: clamp(28px, 4.4vw, 62px); line-height: 1.14; max-width: 1150px; margin: 0; }
.statement .w { color: rgba(255,255,255,.13); transition: color .45s var(--ease); }
.statement .w.lit { color: var(--text); }
.statement .w.hl { font-weight: 400; }
.statement .w.hl.lit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Section heads + lists ---------- */
.head { display: grid; gap: 18px; margin-bottom: 70px; max-width: 820px; }
.head.center { text-align: center; justify-items: center; margin-inline: auto; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.row:hover { padding-left: 12px; }
.row .n { font-family: var(--display); font-weight: 200; color: var(--muted); font-size: 15px; letter-spacing: .14em; }
.row h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; }
.row p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; } }

/* ---------- Flow line (studio) ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 70px; }
.flow-line { position: absolute; left: 16.66%; right: 16.66%; top: 22px; height: 1px; background: var(--line); }
.flow-line::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(clamp(0, calc((var(--v) - .25) * 2.6), 1)); }
.flow-node { text-align: center; display: grid; gap: 10px; justify-items: center; }
.flow-node .dot { position: absolute; top: 14px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); transition: background .4s, box-shadow .4s, border-color .4s; }
.flow-node h3 { font-size: clamp(18px, 1.8vw, 22px); }
.flow-node p { margin: 0; color: var(--muted); font-size: 15px; max-width: 260px; }
.flow-node.on .dot { background: var(--a1); border-color: transparent; box-shadow: 0 0 22px var(--a1); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 46px; } .flow-line { left: 8px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } .flow-line::after { transform-origin: top; transform: scaleY(clamp(0, calc((var(--v) - .25) * 2.6), 1)); } .flow-node { text-align: left; justify-items: start; } .flow-node .dot { left: 0; top: 4px; } }

/* ---------- Kata extras ---------- */
.glyph-stage { position: relative; display: grid; place-items: center; height: min(60vh, 520px); }
.glyph-stage .halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--sc, var(--water)) 0%, transparent 62%); opacity: .28; filter: blur(20px); transition: background .8s; }
.glyph-stage svg { position: absolute; width: min(38vh, 300px); height: auto; color: var(--sc, var(--water)); opacity: 0; transform: scale(.7) rotate(-20deg); filter: blur(6px) drop-shadow(0 0 30px currentColor); transition: opacity .7s var(--ease), transform 1s var(--ease), filter .7s; }
.glyph-stage svg.active { opacity: 1; transform: none; filter: drop-shadow(0 0 30px currentColor); }
.kata [data-active="0"] { --sc: var(--water); } .kata [data-active="1"] { --sc: var(--earth); } .kata [data-active="2"] { --sc: var(--air); } .kata [data-active="3"] { --sc: var(--fire); }
.step .el { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--sc, var(--a1)); }
@media (max-width: 860px) { .glyph-stage { position: absolute; left: 0; right: 0; top: 14vh; height: 34vh; } .glyph-stage svg { width: 22vh; } }
.phone { position: relative; aspect-ratio: 9/16; width: min(330px, 100%); margin: 0 auto; border-radius: 34px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(ellipse at 50% 30%, #1d3a45, #070d12 70%); display: grid; place-items: center; }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .ph { text-align: center; color: var(--muted); font-size: 15px; padding: 24px; }
.phone .ph .ring { width: 64px; height: 64px; border: 2px solid var(--gold); border-radius: 50%; margin: 0 auto 16px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.1); box-shadow: 0 0 40px -4px var(--gold); } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 50px; } }
.portals { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 90px; }
.portal { padding: 28px 22px 0 0; display: grid; gap: 6px; position: relative; }
.portal::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px; background: var(--c); box-shadow: 0 0 16px var(--c); }
.portal b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.portal span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .portals { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }
.ranks { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 90px; }
.ranks::before, .ranks::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 1px; background: var(--line-2); }
.ranks::after { background: var(--gold); box-shadow: 0 0 14px var(--gold); transform-origin: left; transform: scaleX(clamp(0, calc((var(--v) - .3) * 2.4), 1)); }
.rank { text-align: center; position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; }
.rank .pip { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 200; color: var(--muted); transition: all .5s var(--ease); }
.rank b { font-family: var(--display); font-weight: 200; font-size: 15px; letter-spacing: .06em; }
.rank.on .pip { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 30px -6px var(--gold); }
.rank.on:last-child .pip { background: var(--gold); color: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols > div { border-top: 1px solid var(--line); padding-top: 26px; display: grid; gap: 10px; align-content: start; }
.cols h3 { font-size: 19px; }
.cols p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 30px; } }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ticks b { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 28px 54px 28px 0; position: relative; font-family: var(--display); font-weight: 200; font-size: clamp(18px, 2vw, 24px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: linear-gradient(var(--text), var(--text)) center/14px 1px no-repeat, linear-gradient(var(--text), var(--text)) center/1px 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; color: var(--muted); max-width: 720px; }

/* ---------- Sign-up (minimal) ---------- */
.signup { max-width: 900px; margin: 0 auto; text-align: center; display: grid; gap: 22px; justify-items: center; }
.signup .lead { margin: 0 auto 10px; text-align: center; }
.waitlist { width: 100%; max-width: 640px; text-align: left; }
.picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0 0 30px; border: 0; padding: 0; }
.pick { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: 15px; color: var(--muted); transition: color .2s, border-color .2s, background .2s; user-select: none; }
.pick:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick .box { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: background .2s, box-shadow .2s; }
.pick:has(input:checked) { color: var(--text); border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, transparent); }
.pick:has(input:checked) .box { background: var(--pc); border-color: var(--pc); box-shadow: 0 0 10px var(--pc); }
.pick:has(input:focus-visible) { outline: 2px solid var(--pc); outline-offset: 3px; }
.pick.ek { --pc: var(--gold); } .pick.st { --pc: var(--cyan); } .pick.learn { --pc: var(--mint); } .pick.news { --pc: var(--magenta); }
.field { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); padding: 6px 0 6px 2px; transition: border-color .3s; }
.field:focus-within { border-color: var(--a1); box-shadow: 0 1px 0 var(--a1); }
.field input { flex: 1; min-width: 0; font: 200 clamp(18px, 2vw, 24px)/1.3 var(--display); color: var(--text); background: transparent; border: 0; outline: none; padding: 12px 0; }
.field input::placeholder { color: var(--faint); }
@media (max-width: 520px) { .field { flex-direction: column; align-items: stretch; border: 0; } .field input { border-bottom: 1px solid var(--line-2); } .field:focus-within { box-shadow: none; } .field input:focus { border-bottom-color: var(--a1); box-shadow: 0 1px 0 var(--a1); } .field .btn { width: 100%; } }
.hero-form { max-width: 520px; margin-top: 8px; }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 22px 0 0; }
.questions label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--line); }
.questions .opt { color: var(--faint); }
.questions select, .questions input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: transparent; border: 0; padding: 6px 0; outline: none; appearance: none; }
.questions select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 4px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 26px; }
.questions select option { background: var(--bg-2); }
.questions label:focus-within { border-color: var(--a1); box-shadow: 0 1px 0 var(--a1); }
@media (max-width: 520px) { .questions { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; color: var(--muted); font-size: 15px; cursor: pointer; }
.check input { accent-color: var(--a1); width: 16px; height: 16px; flex: none; }
.fine { color: var(--faint); font-size: 13px; margin: 16px 0 0; }
.fine a { color: var(--muted); }
.msg { margin: 12px 0 0; font-size: 15px; min-height: 1.4em; }
.msg.ok { color: var(--mint); }
.msg.err { color: #ff9b7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Product hero (studio / kata) ---------- */
.p-hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 90px; position: relative; }
.p-hero .wrap { display: grid; gap: 26px; }
.p-hero .copy { max-width: 580px; display: grid; gap: 24px; }
@media (max-width: 860px) { .p-hero { align-items: start; padding-top: 56vh; padding-bottom: 70px; } }

/* ---------- Footer ---------- */
footer { position: relative; padding: 80px 0 40px; border-top: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, transparent, rgba(4,6,10,.85) 30%); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.foot-top p { margin: 12px 0 0; color: var(--muted); max-width: 360px; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.giant { font-family: var(--display); font-weight: 200; font-size: clamp(70px, 21vw, 300px); line-height: .8; letter-spacing: .04em; text-align: center; margin: 70px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
body.studio .giant, body.home .giant { font-size: clamp(60px, 17vw, 236px); }   /* six wide letters: keeps the word inside the page */
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 13px; margin-top: 18px; }
.foot-bottom a { color: inherit; }

[data-optional-wrap]:not(.has-media) { display: none; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
