/* Coming-soon shell (optics/, amino/, ember/). One screen, never scrolls.
   Each page sets the palette on :root:
   --bg0 (darkest) --bg1 --bg2 (lighter stage core) --accent --accent-2 (soft accent)
   --text --muted --faint --hair (accent hairline) --hair-soft --on-accent (text on accent buttons)
   --glow (rgba of accent for glows) */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 103.9%; ascent-override: 102.9%; descent-override: 29%; line-gap-override: 0%; }

:root { color-scheme: dark; --ease: cubic-bezier(0.22, 1, 0.36, 1); --mx: 70vw; --my: 45vh; --pad: clamp(16px, 3.2vw, 44px); }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg0); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; height: 100dvh; overflow: hidden; position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  color: var(--text); font: 16px/1.6 "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(70% 70% at 72% 46%, var(--bg2) 0%, var(--bg1) 38%, var(--bg0) 78%) var(--bg0);
}
/* film grain + cursor light */
body::before { content: ""; position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), var(--glow), transparent 62%); mix-blend-mode: screen; opacity: .55; }
@keyframes grain { 0% { transform: translate(0,0) } 20% { transform: translate(-6%,4%) } 40% { transform: translate(5%,-7%) } 60% { transform: translate(-3%,8%) } 80% { transform: translate(7%,2%) } 100% { transform: translate(0,0) } }

h1, h2, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 3D stage: full bleed behind the content */
.hero { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.is-live canvas { opacity: 1; }
.hero .poster { position: absolute; right: 2%; top: 50%; width: min(56vw, 860px); transform: translateY(-50%); transition: opacity 1.2s var(--ease); pointer-events: none; }
.hero.is-live .poster { opacity: 0; }
.hero-hit { position: fixed; z-index: 2; right: 0; top: 0; bottom: 0; width: 52%; }

/* ---- top bar */
.bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) var(--pad) 0; }
.home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--hair-soft); background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: color .4s var(--ease), border-color .4s var(--ease); }
.home img { width: 34px; height: 34px; }
.home .ico { width: 15px; height: 15px; }
.brandmark { position: absolute; left: 50%; transform: translateX(-50%); height: clamp(30px, 4.4vh, 44px); top: max(14px, calc(env(safe-area-inset-top) + 2px)); }
.brandmark img { height: 100%; width: auto; }
.lang { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid var(--hair-soft); background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lang button { min-width: 42px; height: 38px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; cursor: pointer; transition: color .4s var(--ease), background-color .4s var(--ease); }
.lang button[aria-pressed="true"] { color: var(--accent-2); background: color-mix(in srgb, var(--accent) 18%, transparent); }
@media (hover: hover) and (pointer: fine) { .home:hover { color: var(--text); border-color: var(--hair); } .lang button:hover { color: var(--text); } }

/* ---- content */
main { position: relative; z-index: 3; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 0 var(--pad); pointer-events: none; }
.copy { width: min(560px, 100%); pointer-events: auto; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; line-height: 1; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; transform: scale(.7); } }
h1 { margin-top: clamp(12px, 2.2vh, 22px); font-weight: 800; letter-spacing: -0.05em; line-height: .96; font-size: clamp(38px, min(7.2vw, 9.4vh), 96px); text-wrap: balance; }
.acc { color: var(--accent-2); background-image: linear-gradient(100deg, transparent 2%, var(--accent) 10%, var(--accent-2) 60%, transparent 98%);
  background-repeat: no-repeat; background-size: 100% .08em; background-position: 0 94%; padding-bottom: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { margin-top: clamp(10px, 2vh, 20px); max-width: 30rem; color: var(--muted); font-size: clamp(14.5px, 1.9vh, 17.5px); line-height: 1.55; }

/* ---- waitlist */
.wl { margin-top: clamp(14px, 3vh, 30px); max-width: 30rem; }
.wl-row { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(0,0,0,.32); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.wl-row:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.wl input[type="email"] { flex: 1; min-width: 0; width: 0; /* no intrinsic min width -> never widens the page */ height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15.5px; outline: none; }
.wl input::placeholder { color: var(--faint); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 16px 40px -14px var(--glow); transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .45s var(--ease); touch-action: manipulation; }
.btn .ico { transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 22px 50px -12px var(--glow); } .btn:hover .ico { transform: translateX(3px); } }
.btn:active { transform: scale(.98); }
.wl.is-busy .btn { opacity: .7; cursor: progress; }
.wl.is-done .wl-row { border-color: var(--accent-2); }
.wl.is-done input[type="email"], .wl.is-done .btn { pointer-events: none; opacity: .55; }
.wl-consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 0 6px; color: var(--faint); font-size: 12px; line-height: 1.45; cursor: pointer; }
.wl-consent input { appearance: none; -webkit-appearance: none; flex: none; width: 17px; height: 17px; margin: 0; border-radius: 5px; border: 1px solid var(--hair); background: rgba(0,0,0,.3); display: grid; place-items: center; cursor: pointer; }
.wl-consent input:checked { background: var(--accent); border-color: var(--accent); }
.wl-consent input:checked::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.wl-consent a { color: var(--muted); }
.wl-msg { min-height: 1.4em; margin-top: 6px; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wl-msg[data-kind="ok"] { color: var(--accent-2); }
.wl-msg[data-kind="err"] { color: #ff9a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- spoilers */
.spoilers-wrap { margin-top: clamp(14px, 3.2vh, 34px); }
.sp-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.sp-label::after { content: ""; flex: 1; max-width: 140px; height: 1px; background: linear-gradient(90deg, var(--hair), transparent); }
.spoilers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.spoiler { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--hair-soft); border-radius: 16px; overflow: hidden; cursor: pointer;
  background: rgba(0,0,0,.35); color: var(--text); font: inherit; text-align: left; isolation: isolate;
  transition: transform .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease); }
.sp-img { position: absolute; inset: 0; z-index: -1; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(.7) brightness(.55); transform: scale(1.18); transition: filter .9s var(--ease), transform 1.2s var(--ease); }
.spoiler::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(255,255,255,.035) 9px 10px), linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75)); transition: opacity .8s var(--ease); }
.sp-no { position: absolute; top: 10px; left: 12px; z-index: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .2em; color: var(--accent-2); }
.sp-lock { position: absolute; top: 9px; right: 10px; z-index: 1; width: 16px; height: 16px; color: var(--muted); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.sp-title { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.sp-title.is-scrambled { color: var(--muted); letter-spacing: .06em; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.sp-text { position: absolute; left: 12px; right: 12px; bottom: 34px; z-index: 1; font-size: 12.5px; line-height: 1.35; color: var(--text); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.spoiler.is-open { transform: translateY(-4px); border-color: var(--hair); box-shadow: 0 22px 50px -24px var(--glow); }
.spoiler.is-open .sp-img img { filter: blur(1.5px) saturate(1.05) brightness(.8); transform: scale(1.04); }
.spoiler.is-open::before { opacity: .55; }
.spoiler.is-open .sp-lock { opacity: 0; transform: scale(.6) rotate(-20deg); }
.spoiler.is-open .sp-text { opacity: 1; transform: none; }
.sp-reveal { display: none; }

/* ---- footer */
footer { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 0 var(--pad) calc(10px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 12px; }
footer nav { display: flex; gap: 2px 8px; }
footer a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; color: var(--muted); font-weight: 600; text-decoration: none; }
.hint { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; font-weight: 800; }
.hint i { width: 18px; height: 28px; border-radius: 9px; border: 1.5px solid var(--hair); position: relative; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--accent-2); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translate(3px, 2px); } }

/* ---- entrance */
.in { animation: enter 1.2s var(--ease) both; }
.in.d1 { animation-delay: .08s } .in.d2 { animation-delay: .16s } .in.d3 { animation-delay: .24s } .in.d4 { animation-delay: .32s } .in.d5 { animation-delay: .4s }
@keyframes enter { from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---- small screens: stage on top, copy at the bottom, still one screen */
@media (max-width: 860px) {
  .hero .poster { right: 50%; top: 30%; width: min(92vw, 520px); transform: translate(50%, -50%); }
  .hero-hit { left: 0; width: 100%; bottom: 64%; } /* top area only: touch hover = finger on the stage */
  .brandmark { display: none; }
  .home span { display: none; }
  .home { padding: 0 10px 0 4px; }
  main { align-content: end; padding-bottom: 6px; }
  .copy { width: 100%; }
  h1 { font-size: clamp(32px, 9.6vw, 46px); }
  .lead { font-size: 14.5px; }
  .wl input[type="email"] { height: 46px; font-size: 16px; padding: 0 12px; }
  .btn { height: 46px; padding: 0 16px; font-size: 14.5px; }
  .spoilers { gap: 8px; }
  .spoiler { aspect-ratio: 16 / 10; border-radius: 13px; }
  .sp-title { font-size: 12px; left: 9px; right: 9px; bottom: 7px; }
  .sp-title.is-scrambled { font-size: 10.5px; }
  .sp-no { top: 7px; left: 9px; }
  .sp-text { display: none; }
  .sp-reveal { display: block; min-height: 0; max-height: 0; overflow: hidden; margin-bottom: 0; font-size: 13px; line-height: 1.4; color: var(--muted); transition: max-height .5s var(--ease), margin .5s var(--ease); }
  .sp-reveal strong { color: var(--accent-2); }
  .sp-reveal.is-on { max-height: 4.4em; margin-bottom: 8px; }
  footer .hint { display: none; }
}
@media (max-height: 700px) and (max-width: 860px) { .lead { display: none; } .sp-label { display: none; } }
@media (max-height: 640px) and (min-width: 861px) { .spoilers-wrap { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .in, .badge::before, body::before, .hint i::after { animation: none !important; }
  .hero .poster { opacity: 1 !important; }
}
