/*
 * Brainplane landing page. Horizon direction, calm control.
 * Values follow docs/design/02-brand.md and packages/ui/tokens.css.
 * Day (Paper) by default, Night from the system setting, data-theme on <html> overrides.
 * .stage sections are night in both themes (hero, crew, film, closing).
 */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B612 Mono";
  src: url("/fonts/B612Mono-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #0b0f14;
  --graphite: #11161d;
  --paper: #f4f6f9;
  --signal: #ff5b1f;

  --font: "Geist", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, "SF Mono", monospace;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.45, 0.05, 0.25, 1);
  /* spring-arrive: stiffness 250, damping 25 */
  --spring-arrive: linear(
    0,
    0.046,
    0.155,
    0.291,
    0.431,
    0.563,
    0.678,
    0.773,
    0.849,
    0.907,
    0.949,
    0.978,
    0.997,
    1.009,
    1.015,
    1.017,
    1.016,
    1.013,
    1.009,
    1.005,
    1
  );
  /* spring-level: stiffness 220, damping 26 (the horizon levels off) */
  --spring-level: linear(0, 0.044, 0.145, 0.27, 0.399, 0.521, 0.627, 0.717, 0.791, 0.849, 0.894, 0.928, 0.953, 0.971, 0.983, 0.992, 0.997, 1, 1.002, 1.003, 1);

  --gutter: 24px;
  --max: 1200px;

  /* Day */
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink-1: #11161d;
  --ink-2: #3a424e;
  --ink-3: #5f6877;
  --ink-4: rgb(17 22 29 / 0.28);
  --hairline: rgb(17 22 29 / 0.08);
  --hairline-strong: rgb(17 22 29 / 0.14);
  --primary-fill: #11161d;
  --primary-ink: #ffffff;
  --primary-hover: #262d37;
  --signal-text: #c2410c;
  --iris: #5b4be0;
  --jade: #0a7859;
  --held: #5f6877;
  --field: #ffffff;
  --field-border: rgb(17 22 29 / 0.16);
  --glass: rgb(246 248 251 / 0.74);
  --glass-rim: inset 0 0.5px 0 rgb(255 255 255 / 0.9), inset 0 0 0 0.5px rgb(17 22 29 / 0.08);
  --shadow-shot: 0 1px 2px rgb(17 22 29 / 0.06), 0 30px 80px -24px rgb(17 22 29 / 0.32), 0 0 0 1px rgb(17 22 29 / 0.07);
  --shadow-float: 0 12px 32px -12px rgb(17 22 29 / 0.22), 0 0 0 0.5px rgb(17 22 29 / 0.1);
}

/* Night palette as a reusable block */
:root[data-theme="dark"],
.stage {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #141a22;
  --surface-2: #1b222b;
  --ink-1: #f4f6f9;
  --ink-2: #c3c9d2;
  --ink-3: #949dab;
  --ink-4: rgb(244 246 249 / 0.26);
  --hairline: rgb(255 255 255 / 0.08);
  --hairline-strong: rgb(255 255 255 / 0.14);
  --primary-fill: #f4f6f9;
  --primary-ink: #0b0f14;
  --primary-hover: #ffffff;
  --signal-text: #ff6a33;
  --iris: #9488ff;
  --jade: #2ec293;
  --held: #8f98a6;
  --field: rgb(255 255 255 / 0.07);
  --field-border: rgb(255 255 255 / 0.16);
  --glass: rgb(20 26 34 / 0.72);
  --glass-rim: inset 0 0.5px 0 rgb(255 255 255 / 0.14), inset 0 0 0 0.5px rgb(255 255 255 / 0.08);
  --shadow-shot: 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 100px -30px rgb(0 0 0 / 0.8);
  --shadow-float: 0 16px 40px -16px rgb(0 0 0 / 0.7), 0 0 0 0.5px rgb(255 255 255 / 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f14;
    --surface: #141a22;
    --surface-2: #1b222b;
    --ink-1: #f4f6f9;
    --ink-2: #c3c9d2;
    --ink-3: #949dab;
    --ink-4: rgb(244 246 249 / 0.26);
    --hairline: rgb(255 255 255 / 0.08);
    --hairline-strong: rgb(255 255 255 / 0.14);
    --primary-fill: #f4f6f9;
    --primary-ink: #0b0f14;
    --primary-hover: #ffffff;
    --signal-text: #ff6a33;
    --iris: #9488ff;
    --jade: #2ec293;
    --held: #8f98a6;
    --field: rgb(255 255 255 / 0.07);
    --field-border: rgb(255 255 255 / 0.16);
    --glass: rgb(20 26 34 / 0.72);
    --glass-rim: inset 0 0.5px 0 rgb(255 255 255 / 0.14), inset 0 0 0 0.5px rgb(255 255 255 / 0.08);
    --shadow-shot: 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 100px -30px rgb(0 0 0 / 0.8);
    --shadow-float: 0 16px 40px -16px rgb(0 0 0 / 0.7), 0 0 0 0.5px rgb(255 255 255 / 0.1);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font: 400 16px / 1.55 var(--font);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(255 91 31 / 0.22);
}

.sprite {
  position: absolute;
  overflow: hidden;
}

.sr,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary-fill);
  color: var(--primary-ink);
  font-weight: 600;
  transition: top 150ms var(--ease-out);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: calc(920px + var(--gutter) * 2);
}

/* Theme-paired pictures */
.pic-night {
  display: none;
}

:root[data-theme="dark"] .pic-day {
  display: none;
}

:root[data-theme="dark"] .pic-night {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pic-day {
    display: none;
  }

  :root:not([data-theme="light"]) .pic-night {
    display: block;
  }
}

/* Type */
.eyebrow,
.readout {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 600;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 600;
}

.h4 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.lead {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-3);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.section-head--center {
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

/* Buttons and fields */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.006em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease-out),
    transform 90ms var(--ease-out),
    box-shadow 150ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary-fill);
  color: var(--primary-ink);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out);
}

.icon-btn:hover {
  background: var(--hairline);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sun {
  display: none;
}

:root[data-theme="dark"] .i-sun {
  display: block;
}

:root[data-theme="dark"] .i-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .i-moon {
    display: none;
  }
}

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
}

.dot--iris {
  background: var(--iris);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--iris) 22%, transparent);
}

.dot--held {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--held);
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 10px 12px 0;
  pointer-events: none;
}

.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--max) + 24px);
  height: 56px;
  margin: 0 auto;
  padding: 0 10px 0 16px;
  border-radius: 16px;
  color: var(--ink-1);
  transition:
    background-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    backdrop-filter 220ms var(--ease-out);
}

.nav.is-over .nav__bar {
  color: #f4f6f9;
}

.nav.is-over .btn--primary {
  background: #f4f6f9;
  color: #0b0f14;
}

.nav.is-over .icon-btn:hover {
  background: rgb(255 255 255 / 0.1);
}

.nav:not(.is-over) .nav__bar {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  box-shadow: var(--glass-rim), var(--shadow-float);
}

.nav__brand {
  display: block;
  padding: 6px 0;
}

.lockup {
  height: 24px;
  width: calc(24px * 6457 / 1008);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.78;
  transition:
    opacity 150ms var(--ease-out),
    background-color 150ms var(--ease-out);
}

.nav__links a:hover {
  opacity: 1;
  background: var(--hairline);
}

:where(.nav.is-over) .nav__links a:hover {
  background: rgb(255 255 255 / 0.08);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Section menu, below 1024 px */
.menu {
  position: relative;
  display: none;
}

.menu summary {
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -84px;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink-1);
  box-shadow: var(--shadow-float);
}

.nav.is-over .menu__panel {
  background: #141a22;
  color: #f4f6f9;
  box-shadow:
    0 16px 40px -16px rgb(0 0 0 / 0.7),
    0 0 0 0.5px rgb(255 255 255 / 0.12);
}

.menu__panel a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
}

.menu__panel a:hover {
  background: var(--hairline);
}

.play .i-down {
  width: 16px;
  height: 16px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 1000px);
  padding: 120px 0 clamp(120px, 16vh, 200px);
  background: var(--night);
  color: var(--ink-1);
  overflow: hidden;
}

.hero__bg,
.hero__bg img {
  max-width: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__bg img {
  object-fit: cover;
  object-position: 68% 50%;
}

/* Push the instrument right so the headline sits on clear graphite */
@media (min-width: 641px) and (max-aspect-ratio: 19 / 10) {
  .hero__bg {
    width: 118%;
  }

  .hero__bg img {
    object-position: 0 46%;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 15 20 / 0.86) 0%, rgb(11 15 20 / 0.55) 34%, rgb(11 15 20 / 0) 62%),
    linear-gradient(180deg, rgb(11 15 20 / 0.5) 0%, rgb(11 15 20 / 0) 22%, rgb(11 15 20 / 0) 70%, rgb(11 15 20 / 0.9) 100%);
}

.hero__inner {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.hero__title {
  max-width: 11ch;
  font-size: clamp(48px, 6.1vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}

.hero__lead {
  max-width: 34ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__film {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 150ms var(--ease-out);
}

.hero__film:hover {
  color: var(--ink-1);
}

.play {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.2);
}

.play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  fill: currentColor;
}

/* Waitlist */
.waitlist {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.waitlist__row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--field-border);
  transition: box-shadow 150ms var(--ease-out);
}

.waitlist__row:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--field-border),
    0 0 0 3px rgb(255 91 31 / 0.28);
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.waitlist input::placeholder {
  color: var(--ink-3);
}

.waitlist .btn {
  height: 44px;
}

.waitlist__note {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-3);
}

.waitlist[data-state="error"] .waitlist__note {
  color: var(--signal-text);
}

.waitlist[data-state="done"] .waitlist__row {
  display: none;
}

.waitlist[data-state="done"] .waitlist__note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--field-border);
  color: var(--ink-1);
  font-size: 15px;
  text-align: left;
}

.waitlist[data-state="done"] .waitlist__note:focus {
  outline: none;
}

.waitlist[data-state="done"] .waitlist__note:focus-visible {
  outline: 2px solid var(--signal);
}

.waitlist[data-state="done"] .waitlist__note::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    var(--jade)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.waitlist__preview {
  grid-column: 2;
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}

.waitlist__legal {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
}

.waitlist[data-state="done"] .waitlist__legal {
  display: none;
}

.waitlist[data-busy] .btn {
  opacity: 0.6;
  pointer-events: none;
}

/* Product shot */
.product {
  position: relative;
  padding-bottom: clamp(72px, 10vw, 140px);
  background: linear-gradient(180deg, var(--night) 0, var(--night) clamp(140px, 22vw, 340px), var(--bg) clamp(140px, 22vw, 340px));
}

.product__frame {
  position: relative;
  margin-top: calc(clamp(96px, 14vh, 150px) * -1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-shot);
  background: var(--surface-2);
}

.readouts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 36px;
  font-size: 15px;
  color: var(--ink-3);
}

.readouts li {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.readouts .readout {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink-1);
}

.readouts .readout--signal {
  color: var(--signal-text);
}

.caption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

/* Statement */
.statement {
  padding: clamp(56px, 8vw, 120px) 0 clamp(80px, 11vw, 160px);
  text-align: center;
}

.statement .eyebrow {
  margin-bottom: 24px;
}

.statement__title {
  font-size: clamp(30px, 3.9vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

.statement__lead {
  max-width: 40ch;
  margin: 28px auto 0;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}

/* How it works */
.how {
  padding-bottom: clamp(80px, 10vw, 160px);
}

.how .section-head {
  margin-bottom: clamp(40px, 6vw, 96px);
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(40px, 6vw, 88px) 0;
  border-top: 1px solid var(--hairline);
}

.step__text {
  position: sticky;
  top: 22vh;
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.step__text > p:not(.step__num) {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
}

.step__num {
  color: var(--ink-3);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-4);
}

.step__shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-shot);
  background: var(--surface-2);
}

/* Crew */
.crew {
  position: relative;
  isolation: isolate;
  padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 8vw, 112px);
  background: radial-gradient(60% 40% at 50% 45%, rgb(255 91 31 / 0.05), transparent 70%), var(--night);
  color: var(--ink-1);
  overflow: hidden;
}

.crew__formation {
  position: relative;
  z-index: -1;
  width: 104vw;
  max-width: none;
  margin: clamp(-40px, -2vw, -16px) 0 0 calc(50% - 52vw);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 92%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 92%);
}

.crew__formation picture,
.crew__formation img {
  width: 100%;
  max-width: none;
}

.crew__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(-260px, -16vw, -80px);
}

.agent {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  box-shadow: var(--glass-rim);
}

.agent__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 0.5px var(--hairline-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.agent__call {
  padding: 5px 9px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  color: var(--ink-2);
}

.agent__name {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 600;
}

.agent p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.agent .agent__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-3);
}

.crew__foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 48px;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}

.crew__foot strong {
  color: var(--ink-1);
  font-weight: 600;
}

/* Safety */
.safety {
  padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 140px);
}

.safety,
.faq {
  border-top: 1px solid var(--hairline);
}

.annunciators {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px);
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}

.annunciators li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 16px;
  font-weight: 600;
}

.annunciators b {
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--ink-1);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.pillar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pillar__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--ink-1);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.safety__shot {
  margin-top: clamp(56px, 7vw, 96px);
}

.safety__note {
  margin-bottom: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}

.safety__shot picture {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hairline);
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}

.triptych b {
  display: block;
  color: var(--ink-1);
  font-weight: 600;
}

/* Film */
.film {
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--night);
  color: var(--ink-1);
}

.film__frame {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #070a0e;
  box-shadow: var(--shadow-shot);
}

.film__poster,
.film__poster img,
.film__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: start center;
  justify-items: center;
  gap: 16px;
  padding-top: 17%;
  border: 0;
  background: linear-gradient(180deg, rgb(11 15 20 / 0.35), rgb(11 15 20 / 0) 60%);
  color: #f4f6f9;
  cursor: pointer;
}

.play--large {
  width: 84px;
  height: 84px;
  background: rgb(20 26 34 / 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 0.5px 0 rgb(255 255 255 / 0.25),
    inset 0 0 0 0.5px rgb(255 255 255 / 0.16),
    0 20px 40px -20px rgb(0 0 0 / 0.6);
  transition: transform 220ms var(--spring-arrive);
}

.play--large svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

.film__play:hover .play--large {
  transform: scale(1.06);
}

.film__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.film[data-film="soon"] .film__play {
  cursor: default;
}

.film[data-film="soon"] .play--large {
  opacity: 0.55;
}

.film[data-film="soon"] .film__play:hover .play--large {
  transform: none;
}

/* FAQ */
.faq {
  padding: clamp(96px, 12vw, 160px) 0;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq .section-head {
  position: sticky;
  top: 120px;
}

.faq__list {
  border-top: 1px solid var(--hairline-strong);
}

.qa {
  border-bottom: 1px solid var(--hairline-strong);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  opacity: 0.6;
  transition: transform 220ms var(--ease-out);
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa p {
  max-width: 62ch;
  padding: 0 40px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Closing */
.closing {
  position: relative;
  isolation: isolate;
  padding: clamp(112px, 12vw, 168px) 0 clamp(300px, 34vw, 480px);
  background: var(--night);
  color: var(--ink-1);
  text-align: center;
  overflow: hidden;
}

.closing__bg {
  position: absolute;
  top: 16%;
  left: -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  z-index: -2;
  transform-origin: 50% 58%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
}

.closing__bg img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.closing__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 45% at 50% 28%, rgb(11 15 20 / 0.75), rgb(11 15 20 / 0) 70%);
}

.closing__inner {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.closing__title {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.closing__lead {
  max-width: 30ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}

.closing .waitlist {
  margin-top: 8px;
}

.closing .waitlist .waitlist__note,
.closing .waitlist .waitlist__legal {
  text-align: center;
  padding-left: 0;
}

/* Footer */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-3);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer__brand {
  display: grid;
  gap: 14px;
  color: var(--ink-1);
}

.footer__brand p {
  color: var(--ink-3);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--ink-2);
}

.footer__links a:hover {
  color: var(--ink-1);
}

.footer__fine {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}

/* Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms var(--ease-out),
    transform 700ms var(--spring-arrive);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .closing__bg {
  transform: rotate(-5deg) scale(1.04);
  transition: transform 1200ms var(--spring-level);
}

.js .closing.is-level .closing__bg {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    transform: none;
    transition: opacity 150ms linear;
  }

  .js .closing__bg {
    transform: none;
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav:not(.is-over) .nav__bar,
  .agent,
  .play--large {
    background: var(--surface-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .nav__links {
    display: none;
  }

  .menu {
    display: block;
  }

  .nav__tools {
    margin-left: auto;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .step__text {
    position: static;
  }

  .crew__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .annunciators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq .section-head {
    position: static;
  }
}

/* Phone */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  html {
    scroll-padding-top: 76px;
  }

  .nav {
    padding: 8px 8px 0;
  }

  .nav__bar {
    height: 52px;
    gap: 8px;
    padding: 0 6px 0 12px;
  }

  .lockup {
    height: 21px;
    width: calc(21px * 6457 / 1008);
  }

  .hero {
    align-items: flex-start;
    min-height: 0;
    padding: 104px 0 104vw;
  }

  .hero__bg {
    inset: auto 0 0;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  }

  .hero__bg img {
    position: static;
    height: auto;
  }

  .hero__veil {
    background: linear-gradient(
      180deg,
      rgb(11 15 20 / 0.9) 0%,
      rgb(11 15 20 / 0.7) 45%,
      rgb(11 15 20 / 0) 66%,
      rgb(11 15 20 / 0) 86%,
      rgb(11 15 20 / 0.9) 100%
    );
  }

  .hero__inner {
    gap: 20px;
  }

  .hero__title {
    font-size: clamp(44px, 12.4vw, 56px);
    letter-spacing: -0.038em;
  }

  .waitlist__row {
    flex-direction: column;
    padding: 0;
    gap: 10px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .waitlist__row:focus-within {
    box-shadow: none;
  }

  .waitlist input[type="email"] {
    flex: none;
    height: 52px;
    border-radius: 999px;
    background: var(--field);
    box-shadow: inset 0 0 0 1px var(--field-border);
  }

  .waitlist input[type="email"]:focus {
    box-shadow:
      inset 0 0 0 1px var(--field-border),
      0 0 0 3px rgb(255 91 31 / 0.28);
  }

  .waitlist .btn {
    height: 52px;
    width: 100%;
  }

  .waitlist__note,
  .waitlist__legal {
    padding-left: 0;
    text-align: center;
  }

  .hero .waitlist__note,
  .hero .waitlist__legal {
    text-align: left;
  }

  .product {
    background: linear-gradient(180deg, var(--night) 0, var(--night) 220px, var(--bg) 220px);
  }

  .product__frame {
    max-width: 340px;
    margin: -56px auto 0;
    border-radius: 28px;
  }

  .step__shot {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 24px;
  }

  .safety__shot picture {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 28px;
  }

  .menu__panel {
    right: -50px;
  }

  .readouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 340px;
    margin: 28px auto 0;
    font-size: 14px;
    text-align: left;
  }

  .readouts li {
    flex-direction: column;
    gap: 4px;
  }

  .step {
    padding: 40px 0;
  }

  .step__shot,
  .product__frame {
    box-shadow: var(--shadow-float);
  }

  .crew__formation {
    width: 160vw;
    margin: 8px 0 0 calc(50% - 80vw);
  }

  .crew__grid {
    margin-top: -48px;
  }

  .crew__foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .annunciators li {
    padding: 14px;
    font-size: 15px;
  }

  .triptych {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .film__frame {
    border-radius: 16px;
  }

  .play--large {
    width: 64px;
    height: 64px;
  }

  .qa summary {
    font-size: 17px;
    padding: 18px 0;
  }

  .qa p {
    padding-right: 0;
  }

  .closing {
    padding: 96px 0 92vw;
  }

  .closing__bg {
    top: 22%;
  }

  .closing__title {
    font-size: clamp(56px, 18vw, 80px);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__fine {
    flex-direction: column;
  }
}

/* Text links in fine print, and the privacy notice page */
.waitlist__legal a,
.footer__fine a,
.legal a {
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
}

.waitlist__legal a:hover,
.footer__fine a:hover,
.legal a:hover {
  color: var(--ink-1);
  text-decoration-color: currentColor;
}

/* Privacy notice page */
.legal {
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: calc(680px + var(--gutter) * 2);
  color: var(--ink-2);
}

.legal__home {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--ink-1);
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}

.legal__meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
}

.legal h2 {
  margin-top: 40px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-1);
}

.legal p + p,
.legal h2 + p {
  margin-top: 10px;
}

.legal__back {
  margin-top: 56px;
}
