/* The site's own pages beside the film: the waitlist and its thanks. One sheet, the home page's faces, colours,
   type scale, buttons and header, so a reader who clicks through never feels they left. Light is painted by light.js, as on the home page */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/chakra-petch-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/geist-latin.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-latin.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --ground: #05080a;
  --cream: #f0e6d2; --bright: #e4dac6; --body: #c9c0ad; --soft: #a8a397; --muted: #8c877a;
  --hair: rgb(240 230 210 / .11); --hair-2: rgb(240 230 210 / .2);
  --amber: #f2b27a;
  --display: 'Chakra Petch', 'Arial Narrow', Arial, sans-serif;
  --text: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --u: clamp(1px, min(100vw / 1920, 100vh / 1080), 2px);
  --col: max(calc(1360 * var(--u)), 86vw);
  --gut: clamp(20px, 6.1vw, calc(88 * var(--u)));
  --t-xl: clamp(46px, 7vw, calc(108 * var(--u)));
  --t-h2: clamp(28px, 3.4vw, calc(52 * var(--u)));
  --t-h3: clamp(21px, 1.7vw, calc(26 * var(--u)));
  --t-lede: clamp(18px, 1.45vw, calc(21 * var(--u)));
  --t-lede-xl: clamp(19px, 1.7vw, calc(24 * var(--u)));
  --t-ui: clamp(16px, calc(18 * var(--u)), 36px);
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--cream); font-family: var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* a page is one screen with its footer in it: the scene takes whatever the footer leaves, and only grows past it when its words need the room
   (Sohil, 2026-11-12: "why is the page so long that we're cutting off the footer") */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; } main { flex: 1 0 auto; display: flex; flex-direction: column; } footer { flex: none; }
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
.wrap { position: relative; z-index: 2; max-width: var(--col); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.nb { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn { display: inline-block; font-family: var(--display); font-weight: 500; font-size: var(--t-ui); color: #0b1013; background: var(--cream); padding: calc(16 * var(--u)) calc(26 * var(--u)); border: 0; border-radius: 3px; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.btn:hover, .btn:focus-visible { background: #fff6e4; }
.btn:focus-visible { outline: 1px solid rgb(240 230 210 / .6); outline-offset: 3px; }
.link { font-family: var(--display); font-weight: 500; font-size: var(--t-ui); color: var(--bright); text-decoration: none; padding-bottom: calc(4 * var(--u)); background: linear-gradient(var(--hair-2), var(--hair-2)) 0 100% / 100% 1px no-repeat; }
.link:hover, .link:focus-visible { background-image: linear-gradient(90deg, var(--cream), var(--amber), var(--cream)); }

/* ── the header: the wordmark home, as on the home page; Backed by Y Combinator stands over each page's headline ── */
.nav { position: absolute; z-index: 5; left: 0; right: 0; top: 0; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: max(calc(40 * var(--u)), env(safe-area-inset-top, 0px)); }
.nav .home img { height: clamp(20px, 5.2vw, calc(30 * var(--u))); width: auto; }
/* the light, painted full bleed behind a scene, and the scrim that keeps the words' side dark */
.light { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.light canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s cubic-bezier(.4, 0, .3, 1); }
.light canvas[data-painted] { opacity: 1; }
.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(5 8 10 / .86) 0%, rgb(5 8 10 / .6) 38%, rgb(5 8 10 / 0) 64%); }
.foot-fade { position: absolute; inset: auto 0 0 0; height: 24%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, var(--ground), transparent); }

h1.xl, .xl { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: var(--t-xl); line-height: .94; letter-spacing: -.012em; color: var(--cream); text-wrap: balance; }
.xl .am { color: var(--amber); }
.lede { margin-top: calc(30 * var(--u)); font-size: var(--t-lede-xl); line-height: 1.55; color: var(--bright); max-width: 34ch; text-wrap: pretty; }

/* ── the waitlist: one screen, the sun coming up over the ridge with the crew watching it, the promise and the form ── */
.wl { position: relative; flex: 1 0 auto; overflow: hidden; display: flex; }
.wl .wrap.copy { width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(150 * var(--u)); padding-bottom: calc(120 * var(--u)); }
.wl .copy > * { max-width: calc(760 * var(--u)); }
/* calm: a headline at the size of the home page's section titles, one quiet line, and one field beside its button (Sohil, 2026-11-12: "it needs to be chill and work elegantly") */
.wl-h { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(30px, 3.4vw, calc(54 * var(--u))); line-height: 1.04; letter-spacing: -.01em; color: var(--cream); max-width: 17em !important; text-wrap: balance; }
.wl .lede { margin-top: calc(18 * var(--u)); font-size: var(--t-lede); color: var(--body); }
.wl-form { margin-top: calc(36 * var(--u)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(10 * var(--u)); width: min(100%, calc(500 * var(--u))); max-width: none !important; }
.wl-form input { width: 100%; min-width: 0; font: 400 var(--t-ui) / 1.2 var(--text); color: var(--cream); background: rgb(8 12 15 / .72); border: 1px solid var(--hair-2); border-radius: 3px; padding: calc(16 * var(--u)) calc(18 * var(--u)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background-color .2s; }
.wl-form input::placeholder { color: var(--muted); opacity: 1; }
.wl-form input:hover { border-color: rgb(240 230 210 / .32); }
.wl-form input:focus { outline: none; border-color: rgb(242 178 122 / .75); background: rgb(8 12 15 / .86); }
.wl-form .btn { white-space: nowrap; }
.wl-form .btn[disabled] { opacity: .7; cursor: default; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* on a wide screen the sunrise stands to the right of the words: its frame starts a seventh of the way in and fades up from its left edge,
   so the sun and the crew on the ridge stand clear of the form */
@media (min-aspect-ratio: 1001 / 1000) {
  .wl .light { left: 14%; right: -6%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
}
@media (max-width: 420px) {
  .wl-form { grid-template-columns: 1fr; }
  .wl-form .btn { width: 100%; text-align: center; }
}
/* on a screen held upright the words and the picture stand in their own places: the words from the top, the sunrise and its crew under
   them, its sky only reaching up behind the last of them */
@media (max-aspect-ratio: 1 / 1) {
  .wl { --pic: min(118vw, 56svh); }
  .wl .light { top: auto; height: var(--pic); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .wl .scrim { display: none; }
  .wl .wrap.copy { justify-content: flex-start; padding-top: max(100px, calc(env(safe-area-inset-top, 0px) + 84px)); padding-bottom: calc(var(--pic) * .4); }
}
/* on a phone the page is only its words and its form, centred, with no planet: the sunrise under them crowded a phone's screen (Sohil,
   2026-11-12: "maybe no planet on mobile. a bit crowded") */
@media (max-aspect-ratio: 1 / 1) and (max-width: 600px) {
  .wl .light, .wl .foot-fade { display: none; }
  .wl .wrap.copy { justify-content: center; padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 80px)); padding-bottom: 48px; }
  /* and its footer is one quiet line, the LinkedIn mark and the year, with no second wordmark under the header's own (Sohil, 2026-11-13:
     "doesn't the header and the stacked footer look really excessive") */
  footer .wrap > a { display: none; }
  footer .wrap { padding-top: 18px; padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
  footer p { font-size: 13px; gap: 16px; }
}
@media (max-aspect-ratio: 1 / 1) and (max-height: 700px) {
  .wl .wrap.copy { padding-top: max(80px, calc(env(safe-area-inset-top, 0px) + 68px)); }
}


/* ── the footer, as on the home page ── */
footer { position: relative; background: var(--ground); }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hair); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; padding-top: calc(36 * var(--u)); padding-bottom: max(calc(44 * var(--u)), env(safe-area-inset-bottom, 0px)); }
footer img { height: calc(22 * var(--u)); min-height: 18px; width: auto; }
footer p { font-size: clamp(14px, calc(16 * var(--u)), 32px); color: var(--muted); }
/* Luminary on LinkedIn, a small mark beside the year, muted like it; under the pointer it lifts to cream in the same faint warm glow as
   the Y Combinator line (Sohil, 2026-11-12: "add our linkedin on the footer") */
footer p { display: flex; align-items: center; gap: calc(22 * var(--u)); }
.fli { display: block; color: var(--muted); padding: 8px; margin: -8px; transition: color .45s ease, filter .45s ease; }
.fli svg { display: block; width: calc(18 * var(--u)); min-width: 16px; height: auto; }
.fli:hover, .fli:focus-visible { color: var(--cream); filter: drop-shadow(0 0 .45em rgb(242 178 122 / .4)); } .fli:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) { .light canvas { transition: none; } }
