/* Hero lab: shared shell for the three first-screen prototypes. Static prototypes: the field sends nothing. */
:root{--bg:#070708;--fg:#ededea;--muted:#8e8e94;--line:#2a2a2e;--field:#0b0b0dcc;--gutter:clamp(20px,5vw,72px);--flash:0}
.light{--bg:#eeeef0;--fg:#101116;--muted:#63656e;--line:#cfd0d6;--field:#ffffffb8}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:"Hanken Grotesk",system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}
a{color:inherit;text-decoration:none}
canvas.scene{position:fixed;inset:0;width:100%;height:100%;display:block}

.hdr{position:fixed;inset:0 0 auto 0;z-index:5;display:flex;align-items:center;gap:36px;padding:28px var(--gutter)}
.hdr .logo{margin-right:auto;display:block}
.hdr .logo img{display:block;height:24px;width:auto}
.hdr nav{display:flex;gap:34px;font-size:15px}
.hdr nav a{opacity:.82;transition:opacity .2s}
.hdr nav a:hover{opacity:1}
.pill{padding:11px 20px;border:1px solid color-mix(in srgb,var(--fg) 42%,transparent);border-radius:999px;font-size:15px;white-space:nowrap;transition:background .25s,color .25s}
.pill:hover{background:var(--fg);color:var(--bg)}

.hero{position:relative;z-index:4;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:120px var(--gutter) 100px;width:min(58vw,900px)}
.hero>*{opacity:0;transform:translateY(16px);animation:rise 1.1s cubic-bezier(.2,.7,.2,1) forwards}
.hero>:nth-child(1){animation-delay:.25s}.hero>:nth-child(2){animation-delay:.4s}.hero>:nth-child(3){animation-delay:.55s}.hero>:nth-child(4){animation-delay:.68s}
@keyframes rise{to{opacity:1;transform:none}}
h1{margin:0;font-weight:400;font-size:clamp(40px,4.9vw,80px);line-height:1.04;letter-spacing:-.036em;white-space:nowrap;text-shadow:0 0 calc(var(--flash)*46px) rgba(var(--flash-rgb,190,214,255),calc(var(--flash)*.55))}
.serif h1{font-family:"Instrument Serif",Georgia,serif;font-size:clamp(48px,6vw,100px);line-height:.98;letter-spacing:-.02em}
.serif h1 em{font-style:italic}
.sub{margin:22px 0 0;max-width:36em;font-size:clamp(15px,1.15vw,18px);line-height:1.5;color:var(--muted)}
.field{margin-top:34px;display:flex;align-items:center;gap:10px;width:min(100%,440px);height:62px;padding:0 8px 0 22px;border:1px solid color-mix(in srgb,var(--fg) 34%,transparent);border-radius:16px;background:var(--field);backdrop-filter:blur(8px);transition:border-color .25s}
.field:focus-within{border-color:var(--fg)}.field input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--fg);font:inherit;font-size:17px}
.field input::placeholder{color:var(--muted)}
.field button{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--fg);color:var(--bg);display:grid;place-items:center;cursor:pointer;transition:transform .25s}
.field button:hover{transform:translateX(3px)}
.note{margin:14px 0 0;font-size:13px;color:var(--muted)}
.cap{position:fixed;left:var(--gutter);bottom:26px;z-index:5;font-size:12px;letter-spacing:.08em;color:var(--muted)}

/* prototype switcher, not part of the design */
.lab{position:fixed;right:var(--gutter);bottom:18px;z-index:6;display:flex;gap:6px;font-size:12px}
.lab a{padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:color-mix(in srgb,var(--bg) 70%,transparent)}
.lab a[aria-current]{background:var(--fg);border-color:var(--fg);color:var(--bg)}

@media (max-width:820px){
  .hdr{padding:20px var(--gutter)}
  .hdr nav{display:none}
  .hero{width:auto;justify-content:flex-start;padding:104px var(--gutter) 0}
  h1{font-size:clamp(34px,9.6vw,50px)}
  .serif h1{font-size:clamp(40px,11.4vw,58px)}
  .cap{bottom:58px}
  .lab{left:var(--gutter);right:auto;bottom:14px}
}
/* the narrowest phones (320px wide, and iPhones set to a larger display): the headline's first line must fit the screen */
@media (max-width:359px){h1{font-size:9.2vw} .pill{padding:10px 14px;font-size:14px}}
@media (prefers-reduced-motion:reduce){.hero>*{animation:none;opacity:1;transform:none}}
