/* DV84 GLOW SIGN-UP · Noctiluca. Desktop = the concept's 1600×1000 frame scaled by --u (one concept px). */
:root {
  color-scheme: dark;
  --ink: #eef6f8;
  --dim: rgba(230, 243, 247, .66);
  --mute: rgba(230, 243, 247, .56);
  --cyan: #6fdcf0;
  --cyan-hi: #9ff3ff;
  --rose: #ffb2b8;
  --night: #050b16;
  --u: min(.0625vw, .1svh);
  --hz: 40svh;                       /* the horizon (the shader reads the .sky box) */
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px; background: #0c1a2c; color: var(--ink);
  font: 500 14px/1 'Inter'; text-decoration: none; box-shadow: 0 0 0 1px rgba(150, 230, 255, .4); }
.skip:focus { top: 12px; }

.stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; touch-action: none; }
.scrolls .stage { touch-action: pan-y; }
#sea { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* ---------- CSS fallback (no WebGL, ?nofx, context loss): same composition, frosted and still ---------- */
.fallback { position: absolute; inset: 0; z-index: 0; display: none; pointer-events: none;
  background:
    radial-gradient(60% 40% at 83% calc(var(--hz-y, 40svh) - 20svh), rgba(150, 175, 205, .22), transparent 60%),
    linear-gradient(180deg, #0a1220 0, #101b2d calc(var(--hz-y, 40svh) - 2px), #2a3d5c var(--hz-y, 40svh), #15233a calc(var(--hz-y, 40svh) + 2px), #08111f 70%, #050b16 100%); }
.no-fx .fallback { display: block; }
.no-fx #sea { visibility: hidden; }
.fb-moon { position: absolute; left: calc(83% - 32px); top: calc(var(--hz-y, 40svh) - 20svh - 32px); width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, #fbfaf6, #e7e6e1 70%, #cfcfca); box-shadow: 0 0 60px 20px rgba(170, 195, 225, .25); }
.fb-glitter { position: absolute; left: 75%; width: 16%; top: calc(var(--hz-y, 40svh) + 8px); bottom: 10%;
  background: repeating-linear-gradient(180deg, rgba(220, 230, 245, .0) 0 7px, rgba(220, 230, 245, .16) 7px 9px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.fb-glow { position: absolute; left: -10%; right: -10%; top: calc(var(--hz-y, 40svh) + 37svh); height: 14svh; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(80, 215, 240, .55), rgba(30, 140, 200, .18) 55%, transparent 75%); filter: blur(6px); }
@media (max-aspect-ratio: 1/1) and (max-width: 1099px) { .fb-moon, .fb-glitter { display: none; } }

/* success flash: light thrown up from the water onto everything above it */
.flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(60% 45% at 50% var(--fy, 58%), rgba(90, 220, 255, .2), rgba(40, 150, 220, .06) 45%, transparent 70%); }
.flash.on { animation: flash 2.4s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- header ---------- */
.nav { position: relative; z-index: 3; height: max(56px, calc(84 * var(--u))); display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(20px, calc(56 * var(--u))); }
.logo { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; font: 500 max(13px, calc(15 * var(--u)))/1 'Inter'; letter-spacing: .26em;
  text-transform: uppercase; text-decoration: none; border-radius: 10px; }
.logo i { width: 12px; height: 12px; border-radius: 50%; display: block; background: radial-gradient(circle, #d8ffff, #29d9ff 45%, rgba(41, 217, 255, 0) 72%);
  box-shadow: 0 0 14px 4px rgba(41, 217, 255, .45); }
.nav nav { display: flex; gap: max(18px, calc(34 * var(--u))); }
.nav nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font: 500 max(13px, calc(13 * var(--u)))/1 'Inter'; color: rgba(208, 222, 234, .62);
  text-decoration: none; transition: color .2s; border-radius: 8px; }
.nav nav a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid #bff8ff; outline-offset: 3px; }

/* ---------- hero (the sky above the horizon) ---------- */
.main { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }
.sky { min-height: calc(var(--hz) - max(56px, calc(84 * var(--u)))); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px 24px calc(58 * var(--u)); }
.hero { text-align: center; }
.eyebrow { margin: 0; font: 600 max(10px, calc(11 * var(--u)))/1.3 'Inter'; letter-spacing: .32em; text-transform: uppercase; color: var(--cyan); }
h1 { margin: calc(20 * var(--u)) 0 calc(24 * var(--u)); font: 400 max(34px, calc(92 * var(--u)))/0.95 'Instrument Serif', Georgia, serif; letter-spacing: -.015em;
  text-shadow: 0 0 40px rgba(0, 0, 0, .6); }
h1 em { color: var(--cyan-hi); text-shadow: 0 0 30px rgba(60, 220, 255, .45); padding-right: .04em; }
.lede { margin: 0 auto; max-width: max(420px, calc(600 * var(--u))); font: 400 max(13.5px, calc(16 * var(--u)))/1.55 'Inter'; color: var(--dim); }

/* ---------- the form (below the horizon) ---------- */
.sea { display: flex; flex-direction: column; align-items: center; padding: max(16px, calc(10.5svh - 34 * var(--u))) 16px 24px; }
.field { --rim: rgba(150, 230, 255, .2); --glow: 0 0 0 rgba(40, 210, 255, 0);
  position: relative; width: clamp(300px, calc(560 * var(--u)), 92vw); display: flex; gap: 8px; padding: max(6px, calc(8 * var(--u)));
  border-radius: 999px; background: linear-gradient(180deg, rgba(150, 210, 240, .13), rgba(50, 110, 150, .08));
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 0 0 1px var(--rim) inset, var(--glow), 0 20px 60px rgba(0, 0, 0, .45);
  transition: box-shadow .35s var(--ease); }
.field::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 1px; border-radius: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(160, 245, 255, calc(.25 + var(--pulse, 0) * .75)), transparent); opacity: .8; }
.field:hover { --rim: rgba(160, 235, 255, .34); }
.field:focus-within { --rim: rgba(110, 235, 255, .6); --glow: 0 0 42px rgba(40, 210, 255, .26); }
.field.err { --rim: rgba(255, 150, 160, .75); --glow: 0 0 36px rgba(255, 110, 130, .18); animation: shake .36s; }
.field.done { --rim: rgba(160, 250, 255, .7); --glow: 0 0 60px rgba(60, 225, 255, .4); }
@keyframes shake { 20% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 80% { transform: translateX(-2px); } }
.field input { flex: 1; min-width: 0; height: max(48px, calc(52 * var(--u))); background: none; border: 0; outline: 0; color: #f2fbfd; border-radius: 999px;
  font: 400 max(16px, calc(17 * var(--u)))/1 'Inter'; padding: 0 max(16px, calc(22 * var(--u))); caret-color: #8ff0ff; }
.field input::placeholder { color: rgba(232, 244, 248, .72); }
.field input:focus::placeholder { color: rgba(226, 241, 247, .34); }
.field input:disabled { color: rgba(226, 241, 247, .4); cursor: not-allowed; }
.field button { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: max(48px, calc(52 * var(--u))); min-width: max(120px, calc(122 * var(--u))); padding: 0 max(20px, calc(26 * var(--u))); border-radius: 999px; border: 0; cursor: pointer;
  font: 600 max(14px, calc(15 * var(--u)))/1 'Inter'; color: #00222b; letter-spacing: .005em;
  background: linear-gradient(180deg, #c9fbff, #5fe4f7 55%, #22bfe0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 -2px 6px rgba(0, 90, 120, .25) inset, 0 0 26px rgba(60, 220, 255, .42);
  transition: filter .2s, transform .15s var(--ease), box-shadow .25s; }
.field button:hover { filter: brightness(1.07) saturate(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 -2px 6px rgba(0, 90, 120, .25) inset, 0 0 36px rgba(60, 220, 255, .6); }
.field button:active { transform: scale(.97); }
.field button:disabled { cursor: not-allowed; filter: grayscale(.7) brightness(.62); box-shadow: none; }
.field button[aria-busy=true] { cursor: progress; filter: none; }
.field button .spin, .field button .tick { display: none; }
.field button[aria-busy=true] .spin { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 34, 43, .25); border-top-color: #00222b;
  animation: spin .7s linear infinite; }
.field.done button .tick { display: block; width: 18px; height: 18px; fill: none; stroke: #00222b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .5s .1s var(--ease) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.note { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: max(14px, calc(18 * var(--u))); min-height: 44px; text-align: center; }
.msg { margin: 0; font: 400 max(13px, calc(13 * var(--u)))/1.45 'Inter'; color: var(--mute); max-width: 92vw; text-shadow: 0 0 6px rgba(2, 8, 18, .9), 0 0 14px rgba(2, 8, 18, .7); }
.msg b { color: var(--cyan-hi); font-weight: 500; font-variant-numeric: tabular-nums; }
.msg.err { color: var(--rose); }
.msg.ok { color: #cfeff5; }
.chip { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; font: 500 13px/1 'Inter'; color: var(--cyan-hi);
  background: rgba(8, 22, 38, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(150, 230, 255, .32) inset; transition: background .2s; }
.chip:hover { background: rgba(14, 40, 62, .72); }
.chip[hidden] { display: none; }
@media (pointer: coarse) { .chip { min-height: 44px; } }

/* ---------- caption + brandmark (the series frame) ---------- */
.foot { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 max(20px, calc(48 * var(--u))) max(22px, calc(40 * var(--u))); pointer-events: none; }
.cap { font: 500 13px/1.45 'Inter'; letter-spacing: .02em; color: var(--ink); text-shadow: 0 1px 12px rgba(0, 10, 20, .6); }
.cap b { display: block; font: 600 max(11px, calc(12 * var(--u)))/1 'Inter'; letter-spacing: .22em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.cap span { font-size: max(15px, calc(17 * var(--u))); font-weight: 500; letter-spacing: -.005em; }
.cap i { display: block; font-style: normal; opacity: .6; margin-top: 4px; font-size: max(12px, calc(13 * var(--u))); }
.brandmark { font: 600 11px/1 'Inter'; letter-spacing: .3em; text-transform: uppercase; opacity: .42; white-space: nowrap; }

/* ---------- portrait (phones, portrait tablets): the concept_phone composition, scaled by width ---------- */
@media (max-aspect-ratio: 1/1) and (max-width: 1099px) {
  :root { --hz: 38svh; --q: clamp(1px, .2564vw, 2.1px); }
  .nav { height: calc(64 * var(--q)); min-height: 56px; padding: 0 calc(20 * var(--q)); }
  .logo { font-size: calc(15 * var(--q)); }
  .nav nav { display: none; }
  .sky { min-height: calc(var(--hz) - max(56px, calc(64 * var(--q)))); padding: 8px calc(16 * var(--q)) calc(52 * var(--q)); }
  .eyebrow { font-size: calc(11 * var(--q)); }
  h1 { font-size: min(calc(53 * var(--q)), 13.2vw); margin: calc(14 * var(--q)) 0 calc(18 * var(--q)); white-space: nowrap; }
  .lede { font-size: calc(14 * var(--q)); max-width: calc(330 * var(--q)); text-wrap: balance; }
  .lede br { display: none; }
  .sea { padding: calc(44 * var(--q)) calc(18 * var(--q)) 24px; }
  .field { width: min(100%, 560px); flex-direction: column; gap: 4px; border-radius: calc(24 * var(--q)); padding: 6px; }
  .field input { height: calc(44 * var(--q)); min-height: 44px; padding: 0 calc(20 * var(--q)); font-size: max(16px, calc(17 * var(--q))); text-align: left; }
  .field button { width: 100%; height: calc(52 * var(--q)); min-height: 48px; font-size: calc(15 * var(--q)); }
  .note { margin-top: calc(22 * var(--q)); }
  .msg { font-size: calc(13 * var(--q)); }
  .foot { padding: 0 calc(22 * var(--q)) calc(26 * var(--q)); }
  .cap b { font-size: calc(11 * var(--q)); }
  .cap span { font-size: calc(15 * var(--q)); }
}
@media (max-aspect-ratio: 1/1) and (max-width: 640px) { .cap i, .brandmark { display: none; } }
/* short landscape phones: keep the hero compact so the form is on the first screen */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .nav { height: 52px; }
  .sky { min-height: calc(var(--hz) - 52px); padding-bottom: 14px; }
  h1 { font-size: 34px; margin: 8px 0 8px; }
  .lede { font-size: 13px; max-width: 520px; }
  .eyebrow { font-size: 10px; }
  .sea { padding-top: 18px; }
  .field { width: min(500px, 72vw); }
  .foot { padding-bottom: 14px; }
  .cap i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .field.err { animation: none; }
  .flash.on { animation: flash-r 1.2s ease forwards; }
  @keyframes flash-r { 0% { opacity: 0; } 30% { opacity: .5; } 100% { opacity: 0; } }
  .field button[aria-busy=true] .spin { animation-duration: 1.6s; }
  .field.done button .tick { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: .01ms !important; }
}
