/* S1 waitlist. Black ground, warm white type, the sunrise palette used only in the 3D sun.
*/

@font-face { font-family: 'S1 Sans'; src: url('fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f3f0ea;
  --ink-2: rgb(243 240 234 / 0.66);
  --mute: #8e8c96;
  --rule: rgb(243 240 234 / 0.12);
  --field: rgb(243 240 234 / 0.04);
  --danger: #ff8a6b;
  --sans: 'S1 Sans', system-ui, sans-serif;
  --w: 1080px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); overflow-x: clip; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #000; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.soft { color: var(--mute); }
.vh { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #000; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }
.wrap { inline-size: 100%; max-inline-size: calc(var(--w) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: #000; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: opacity 160ms; }
.btn:hover { opacity: 0.86; }
.btn-sm { min-block-size: 36px; padding: 0 16px; font-size: 14px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; block-size: 64px; padding-inline: var(--gut);
  transition: background 240ms, border-color 240ms; border-block-end: 1px solid transparent; }
.nav[data-solid] { background: rgb(0 0 0 / 0.8); backdrop-filter: blur(12px); border-color: var(--rule); }
.lockup { display: inline-flex; align-items: baseline; gap: 10px; font-size: 16px; }
.lockup b { font-weight: 600; }
.lockup span { color: var(--mute); font-weight: 500; letter-spacing: 0.06em; font-size: 13px; }
.navEnd { display: flex; align-items: center; gap: 16px; }

/* Hero */
.hero { position: relative; min-block-size: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 64px clamp(48px, 8vh, 88px); }
.stage { position: relative; block-size: clamp(260px, 46svh, 520px); margin-block-end: clamp(24px, 4vh, 48px); }
#world { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: block; opacity: 0; transition: opacity 1200ms var(--ease); }
.stage[data-ready] #world { opacity: 1; }
.fallbackSun { display: none; position: absolute; inset-inline-start: 50%; inset-block-start: 10%; inline-size: min(40vw, 240px); transform: translateX(-50%); opacity: 0.9; }
.stage[data-fallback] .fallbackSun { display: block; }
.no-js .fallbackSun { display: block; }
.heroCopy { position: relative; text-align: center; display: grid; justify-items: center; gap: 24px; }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; font-stretch: 96%; }
.lede { max-inline-size: 560px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }

/* Form */
.join { inline-size: 100%; max-inline-size: 460px; margin-block-start: 8px; }
.line { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--rule); border-radius: 999px; background: var(--field); transition: border-color 160ms; }
.line:focus-within { border-color: rgb(243 240 234 / 0.4); }
.line[data-state='bad'] { border-color: var(--danger); }
.line input { flex: 1; min-inline-size: 0; padding-inline: 14px; border: 0; background: none; outline: none; font-size: 16px; }
.line input::placeholder { color: var(--mute); }
.line .btn { min-block-size: 42px; }
.msg { min-block-size: 20px; margin-block-start: 8px; font-size: 13px; color: var(--mute); }
.msg[data-tone='bad'] { color: var(--danger); }
.done { padding: 18px 20px; border: 1px solid var(--rule); border-radius: 16px; text-align: center; outline: none; }
.done p { color: var(--ink-2); font-size: 14px; }
.done strong { display: block; margin-block-end: 4px; font-weight: 500; }
.done button { margin-block-start: 10px; border: 0; background: none; color: var(--mute); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Sections */
.sec { padding-block: clamp(72px, 11vw, 136px); border-block-start: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
.sec h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.sec .body { color: var(--ink-2); font-size: 17px; max-inline-size: 600px; }
.sec > :not(h2) { grid-column: 2; }
.sec > h2 { grid-row: 1 / span 4; }

/* Examples */
.examples { display: grid; gap: 1px; margin-block-start: 24px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--rule); }
.ex { display: grid; gap: 10px; padding: 20px; background: var(--bg); }
.exTop { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute); }
.exText { font-size: 17px; line-height: 1.7; }
.exQ { font-size: 14px; color: var(--ink-2); }
.exRes { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.exRes b { font-weight: 500; }
.bar { position: relative; flex: 1; block-size: 4px; border-radius: 4px; background: rgb(243 240 234 / 0.1); }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: var(--ink); }
.bar s { position: absolute; inset-block: -4px; inline-size: 1px; background: var(--mute); }
.exRes .to { color: var(--mute); white-space: nowrap; }
.ex[data-to='person'] .bar i { background: var(--mute); }
.note { margin-block-start: 12px; font-size: 13px; color: var(--mute); }

/* Facts and spec */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block-start: 24px; }
.facts div, .spec div { padding-block-start: 14px; border-block-start: 1px solid var(--rule); }
dt { font-size: 13px; color: var(--mute); }
dd { margin-block-start: 4px; font-size: 16px; }
.spec { display: grid; }
.spec div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding-block: 16px; }
.spec dd { margin: 0; color: var(--ink-2); }
.spec dt { font-size: 15px; color: var(--ink); }

/* Close + footer */
.close { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
.close > * { grid-column: auto !important; grid-row: auto !important; }
.foot { display: flex; justify-content: space-between; padding-block: 28px 40px; border-block-start: 1px solid var(--rule); color: var(--mute); font-size: 13px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav .btn-sm { display: none; }
  .sec { grid-template-columns: 1fr; }
  .sec > :not(h2), .sec > h2 { grid-column: 1; grid-row: auto; }
  .facts { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .line { border-radius: 16px; flex-direction: column; }
  .line input { min-block-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } #world { transition: none; } }

/* One screen, no scrolling (27 Oct). The hero is the whole page; the footer sits on the bottom edge. */
html, body { block-size: 100%; overflow: hidden; }
body { display: grid; grid-template-rows: auto 1fr auto; block-size: 100svh; }
.nav { position: relative; background: none; border: 0; }
main { min-block-size: 0; display: grid; }
.hero { min-block-size: 0; block-size: 100%; padding-block: 0 clamp(12px, 3vh, 32px); justify-content: center; }
.stage { block-size: clamp(150px, 34svh, 400px); margin-block-end: clamp(12px, 3vh, 36px); }
.heroCopy { gap: clamp(12px, 2.2vh, 22px); }
h1 { font-size: clamp(32px, min(6vw, 7.4svh), 80px); overflow-wrap: anywhere; }
.lede { font-size: clamp(14px, min(1.4vw, 2svh), 18px); }
.foot { padding: 12px var(--gut) 16px; border: 0; }
@media (max-width: 760px) {
  .line { border-radius: 999px; flex-direction: row; }
  .line .btn { padding: 0 16px; }
  .lede { max-inline-size: 34ch; }
}
@media (max-height: 640px) { .lede { display: none; } }

/* Premium pass (27 Oct): one colour headline, calmer spacing, the email field as the focus. */
:root { --ink-3: rgb(243 240 234 / 0.46); --field-2: rgb(243 240 234 / 0.06); }
.nav { block-size: 72px; }
.lockup b { font-size: 17px; letter-spacing: -0.01em; }
.lockup span { font-size: 12px; letter-spacing: 0.14em; }
.hero { max-inline-size: 760px; margin-inline: auto; inline-size: 100%; }
.stage { inline-size: 100%; block-size: clamp(130px, 30svh, 340px); margin-block-end: clamp(20px, 4vh, 44px); }
h1 { font-weight: 450; letter-spacing: -0.04em; line-height: 1.04; font-stretch: 92%; text-wrap: balance; }
h1 .soft { color: inherit; }
.lede { color: var(--ink-3); line-height: 1.6; max-inline-size: 46ch; text-wrap: pretty; }
.join { max-inline-size: 480px; margin-block-start: clamp(6px, 1.6vh, 16px); }
.line { padding: 6px; gap: 6px; border-color: rgb(243 240 234 / 0.16); background: var(--field-2);
  box-shadow: 0 0 0 0 rgb(242 154 90 / 0); transition: border-color 200ms, box-shadow 300ms var(--ease), background 200ms; }
.line:hover { border-color: rgb(243 240 234 / 0.26); }
.line:focus-within { border-color: rgb(243 240 234 / 0.5); background: rgb(243 240 234 / 0.08); box-shadow: 0 0 0 6px rgb(243 240 234 / 0.05); }
.line input { min-block-size: 48px; padding-inline: 18px; font-size: 16px; letter-spacing: -0.005em; }
.line input::placeholder { color: rgb(243 240 234 / 0.38); }
.line .btn { min-block-size: 48px; padding: 0 22px; font-size: 15px; font-weight: 550; letter-spacing: -0.01em; transition: transform 160ms var(--ease), opacity 160ms; }
.line .btn:active { transform: scale(0.98); }
.msg { text-align: center; color: var(--ink-3); }
.foot { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) {
  .nav { block-size: 60px; }
  .hero { padding-inline: var(--gut); }
  .heroCopy { padding-inline: 0; }
  .line input { padding-inline: 14px; min-inline-size: 0; }
  .line .btn { padding: 0 16px; font-size: 14px; }
}
body { grid-template-columns: minmax(0, 1fr); }
main, .hero, .heroCopy, .join { min-inline-size: 0; }
.join { max-inline-size: min(480px, 100%); } .hero { max-inline-size: min(760px, 100%); }
.line input { inline-size: 100%; }
@media (max-width: 400px) { .line .btn { padding: 0 14px; font-size: 13px; } .line input { padding-inline: 12px; font-size: 15px; } }

/* Globe a little higher (27 Oct). */
.stage { transform: translateY(-4svh); }


/* ---------- v5 (27 Oct): the one-screen hero, plus the two effects Ronit kept from the Framer previews ---------- */
/* Film grain (from preview 2, Framer "Noise Grain Texture"). A procedural grain over the whole page, no images. */
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.075; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.88  0 0 0 1.6 -0.55'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px; animation: grainShift 0.9s steps(6) infinite; }
@keyframes grainShift { 0% { transform: translate(0, 0); } 17% { transform: translate(-6%, 4%); } 33% { transform: translate(5%, -7%); } 50% { transform: translate(-3%, 9%); } 67% { transform: translate(8%, 2%); } 83% { transform: translate(-9%, -4%); } 100% { transform: translate(2%, 6%); } }
/* A faint warm vignette lifts the black so the grain reads as film, not dirt. */
.grainGlow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 40%, rgb(232 90 30 / 0.07), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
.heroCopy, .nav, .foot { position: relative; z-index: 1; }

/* Glow border on the email field (from preview 5, Framer "Animated Glow Border"). A short dash of sunrise light travels round the email pill with a soft blur glow. */
@property --ga { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.line { position: relative; isolation: isolate; animation: glowRun 7s linear infinite; }
.line::before, .line::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ga), transparent 0deg, transparent 290deg, rgb(184 48 15 / 0.0) 300deg, #e85a1e 335deg, #ffd3a8 352deg, transparent 360deg); }
.line::before { padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.line::after { z-index: -1; filter: blur(14px); opacity: 0.45; inset: 2px; }
.line:focus-within { animation-duration: 3.2s; }
@keyframes glowRun { to { --ga: 360deg; } }
@media (prefers-reduced-motion: reduce) { .line { animation: none; } .line::before, .line::after { display: none; } }

/* Finishing: the copy settles in once on load (opacity only, so the form is usable at once) */
.heroCopy > * { animation: settle 900ms var(--ease) both; }
.heroCopy > .lede { animation-delay: 120ms; } .heroCopy > .join { animation-delay: 220ms; }
@keyframes settle { from { opacity: .001; transform: translateY(6px); } }
.join { animation-name: settleForm !important; }
@keyframes settleForm { from { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .heroCopy > * { animation: none !important; } }
/* Let the 3D scene fade into the page at its edges, so the warm glow and grain show no box around it */
#world { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 88%), linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 72%, transparent 88%), linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); mask-composite: intersect; }

/* Sector (27 Oct): a quieter pill above the email line, same shape and type, no travelling glow so the email stays the main action.
   Pick a common sector from the list or type your own. The list opens upward over the lede so the page never scrolls. */
.pick { position: relative; display: flex; align-items: center; margin-block-end: 10px; padding: 6px; border: 1px solid rgb(243 240 234 / 0.16); border-radius: 999px;
  background: var(--field-2); transition: border-color 200ms, box-shadow 300ms var(--ease), background 200ms; }
.pick:hover { border-color: rgb(243 240 234 / 0.26); }
.pick:focus-within { border-color: rgb(243 240 234 / 0.5); background: rgb(243 240 234 / 0.08); box-shadow: 0 0 0 6px rgb(243 240 234 / 0.05); }
.pick[data-state='bad'] { border-color: var(--danger); }
.pick input { flex: 1; inline-size: 100%; min-inline-size: 0; min-block-size: 48px; padding-inline: 18px 40px; border: 0; background: none; outline: none; font-size: 16px; letter-spacing: -0.005em; }
.pick input::placeholder { color: rgb(243 240 234 / 0.38); }
.pick .chev { position: absolute; inset-inline-end: 22px; inline-size: 12px; block-size: 12px; color: var(--ink-3); pointer-events: none; transition: transform 200ms var(--ease); }
.pick:has([aria-expanded='true']) .chev { transform: rotate(180deg); }
.opts { position: absolute; z-index: 5; inset-inline: 0; inset-block-end: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; text-align: start;
  max-block-size: min(296px, 42svh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(243 240 234 / 0.2) transparent;
  border: 1px solid rgb(243 240 234 / 0.14); border-radius: 18px; background: rgb(14 13 13 / 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.6); }
.opts li { padding: 8px 14px; border-radius: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.opts li:hover, .opts li[data-active] { background: rgb(243 240 234 / 0.07); color: var(--ink); }
.opts li[aria-selected='true'] { color: var(--ink); }
.opts li[data-own] { color: var(--ink); }
.opts li[data-own]:not(:first-child) { margin-block-start: 4px; border-block-start: 1px solid var(--rule); border-radius: 0 0 12px 12px; padding-block-start: 11px; }
@media (max-width: 400px) { .pick input { padding-inline: 12px 34px; font-size: 15px; } .pick .chev { inset-inline-end: 18px; } }
/* The extra row costs ~70px: give some back from the globe on short screens. */
@media (max-height: 800px) { .stage { block-size: clamp(110px, 26svh, 300px); margin-block-end: clamp(14px, 3vh, 32px); } }
