/* Soul Not Found, one-page site.
   Every value below comes from design/soul-not-found-design-system-brand-tokens.json (theme mode NITE,
   extracted 2026-10-07T21:26Z).
   Desktop and Mobile sizes from the "sizes" collection are interpolated with clamp() between a 390 px
   and a 1440 px viewport. */

:root {
  /* swatch */
  --neutral-100: #e4e8e9;
  --neutral-200: #c5cdcf;
  --neutral-300: #a7b2b5;
  --neutral-400: #8a989c;
  --neutral-500: #6d7f84;
  --neutral-600: #52666c;
  --neutral-700: #374f56;
  --neutral-800: #1e3840;
  --neutral-900: #03232b;
  --primary-100: #90ffff;
  --primary-300: #5fede5;
  --primary-500: #03d1ca;
  --primary-700: #00726d;
  --primary-900: #001d1d;
  --secondary-300: #ff68c1;
  --secondary-500: #d7038c;
  --red: #db6363;

  /* theme, NITE mode */
  --theme-background: var(--neutral-900);
  --theme-text: var(--neutral-300);
  --theme-text-heading: var(--neutral-100);
  --theme-border: var(--neutral-500);
  --logo-mark-01: var(--secondary-500);
  --logo-mark-02: var(--primary-500);
  --button-primary-background: var(--primary-500);
  --button-primary-background-hover: var(--primary-300);
  --button-primary-text: var(--neutral-900);
  --button-secondary-border: var(--primary-500);
  --button-secondary-text: var(--neutral-100);
  --button-secondary-background-hover: var(--primary-700);
  --button-secondary-border-hover: var(--primary-700);
  --eyebrow-primary-background: var(--neutral-100);
  --eyebrow-primary-text: var(--neutral-900);
  --eyebrow-secondary-border: var(--neutral-500);
  --eyebrow-secondary-text: var(--neutral-100);
  --text-link-text: var(--primary-300);
  --text-link-text-hover: var(--primary-100);

  /* typography families: all three resolve to Azeret Mono since the 2026-10-07 token update */
  --font-01: "Azeret Mono", ui-monospace, monospace;
  --font-02: "Azeret Mono", ui-monospace, monospace;
  --font-03: "Azeret Mono", ui-monospace, monospace;

  /* sizes: Mobile -> Desktop */
  --border-width-main: clamp(1.5px, 1.31px + 0.048vw, 2px);
  --radius-small: 3px;
  --radius-main: 6px;
  --site-margin: clamp(16px, 4.11px + 3.048vw, 48px);
  --site-gutter: 16px;
  --space-1: clamp(4px, 2.51px + 0.381vw, 8px);
  --space-2: clamp(8px, 6.51px + 0.381vw, 12px);
  --space-3: clamp(12px, 10.51px + 0.381vw, 16px);
  --space-4: clamp(16px, 13.03px + 0.762vw, 24px);
  --space-5: clamp(24px, 21.03px + 0.762vw, 32px);
  --space-6: clamp(28px, 23.54px + 1.143vw, 40px);
  --space-7: clamp(36px, 31.54px + 1.143vw, 48px);
  --space-8: clamp(40px, 31.09px + 2.286vw, 64px);
  --section-space-main: clamp(64px, 46.17px + 4.571vw, 112px);
  --section-space-large: clamp(88px, 61.26px + 6.857vw, 160px);

  --font-size-display: clamp(64px, 46.17px + 4.571vw, 112px);
  --font-size-h2: clamp(40px, 31.09px + 2.286vw, 64px);
  --font-size-h3: clamp(36px, 31.54px + 1.143vw, 48px);
  --font-size-h4: clamp(28px, 26.51px + 0.381vw, 32px);
  --font-size-h5: clamp(22px, 21.26px + 0.19vw, 24px);
  --font-size-text-l: clamp(18px, 17.26px + 0.19vw, 20px);
  --font-size-text-body: clamp(16px, 15.26px + 0.19vw, 18px);
  --font-size-text-s: clamp(14px, 13.26px + 0.19vw, 16px);
  --font-size-text-xs: clamp(10px, 9.26px + 0.19vw, 12px);

  --content-max: 1344px; /* 1440 frame less two 48 px margins */
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--theme-background);
  color: var(--theme-text);
  font-family: var(--font-01);
  font-size: var(--font-size-text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--text-link-text); text-underline-offset: 0.2em; }
a:hover { color: var(--text-link-text-hover); }

:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 3px; }

/* selected text: button-primary pair (primary-500 ground, neutral-900 text); the hero title's
   cyan and magenta glow is dropped while selected so the letters stay readable */
::selection { background: var(--primary-500); color: var(--neutral-900); text-shadow: none; }
.hero-title::selection, .statement::selection, .h2::selection { background: var(--secondary-500); color: var(--neutral-100); }

.skip {
  position: absolute; left: var(--site-margin); top: -100px; z-index: 50;
  padding: var(--space-2) var(--space-3);
  background: var(--neutral-100); color: var(--neutral-900);
  font-family: var(--font-03); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
}
.skip:focus { top: var(--space-3); }

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

/* ---------- type ---------- */

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: 6px 10px 5px;
  border-radius: var(--radius-small);
  font-family: var(--font-03);
  font-size: var(--font-size-text-xs);
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow-primary { background: var(--eyebrow-primary-background); color: var(--eyebrow-primary-text); }
.eyebrow-secondary { border: 1px solid var(--eyebrow-secondary-border); color: var(--eyebrow-secondary-text); }

.h2 {
  margin: 0 0 var(--space-4);
  color: var(--theme-text-heading);
  font-family: var(--font-02);
  font-weight: 400;
  font-size: var(--font-size-h3);
  line-height: 1.1;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  max-width: 38em;
  font-size: var(--font-size-text-l);
  line-height: 1.5;
}

/* ---------- buttons ---------- */
/* Buttons, the close control and the email field take 3 px corners cut square (a bevel), the chip-edge look.
   corner-shape is new (Chrome and Edge 139+); other browsers ignore it and show a plain 3 px rounding. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: var(--border-width-main) solid transparent;
  border-radius: var(--radius-small); corner-shape: bevel;
  font-family: var(--font-03);
  font-size: var(--font-size-text-s);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: var(--button-primary-background);
  border-color: var(--button-primary-background);
  color: var(--button-primary-text);
}
.btn-primary:hover { background: var(--button-primary-background-hover); border-color: var(--button-primary-background-hover); color: var(--button-primary-text); }
/* secondary: frosted glass, so the outline reads over the moving video without hiding it */
.btn-secondary {
  background: rgba(3, 35, 43, 0.28); /* neutral-900 at 28 % */
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--button-secondary-border);
  color: var(--button-secondary-text);
}
.btn-secondary:hover { background: var(--button-secondary-background-hover); border-color: var(--button-secondary-border-hover); color: var(--neutral-100); }
.btn-small { min-height: 40px; padding: 0 var(--space-4); font-size: var(--font-size-text-xs); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--site-margin);
  background: linear-gradient(to bottom, rgba(3, 35, 43, 0.85), rgba(3, 35, 43, 0));
  transition: background-color 200ms ease, opacity 300ms ease;
}
.nav.is-scrolled { background: rgba(3, 35, 43, 0.92); backdrop-filter: blur(8px); }

.wordmark {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin: 0;
  color: var(--theme-text-heading);
  font-family: var(--font-02);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark:hover { color: var(--theme-text-heading); }
.wordmark img { width: auto; height: clamp(28px, 24.28px + 0.952vw, 36px); }

/* ---------- hero: the teaser ---------- */

/* the hero and the dispatch ticker share the first screen: the ticker sits on its bottom edge */
.first-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.first-screen > .ticker { flex: none; }

.hero {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

.hero-poster,
.hero-media iframe {
  position: absolute;
  top: 50%; left: 50%;
  border: 0;
  transform: translate(-50%, -50%);
}
/* cover: a 16:9 frame big enough to fill the viewport in both directions */
.hero-poster { width: 100%; height: 100%; object-fit: cover; transition: opacity 1000ms ease; }
.hero-poster.is-gone { opacity: 0; } /* fades to the hero's black ground before the loop comes up */
.hero-media iframe {
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-media iframe.is-ready { opacity: 1; }

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(3, 35, 43, 0.96) 0%, rgba(3, 35, 43, 0.55) 38%, rgba(3, 35, 43, 0) 70%),
    linear-gradient(to right, rgba(3, 35, 43, 0.6) 0%, rgba(3, 35, 43, 0) 55%);
  transition: opacity 400ms ease;
}
.hero-scrim::after {
  /* faint scanlines over the loop, the system watching */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--site-margin));
  margin: 0 auto;
  padding: 140px var(--site-margin) var(--space-8);
  transition: opacity 400ms ease, transform 400ms ease;
}

.hero-title {
  position: relative;
  max-width: 14ch;
  margin: 0 0 var(--space-4);
  color: var(--theme-text-heading);
  font-family: var(--font-02);
  font-weight: 400;
  font-size: var(--font-size-h2);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: -2px 0 rgba(215, 3, 140, 0.55), 2px 0 rgba(3, 209, 202, 0.55);
}

.hero-lead {
  max-width: 34em;
  margin: 0 0 var(--space-5);
  color: var(--neutral-200);
  font-size: var(--font-size-text-l);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-meta {
  margin: var(--space-4) 0 0;
  color: var(--neutral-400);
  font-family: var(--font-03);
  font-size: var(--font-size-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-meta span { margin: 0 0.5em; color: var(--neutral-600); }

/* while the lightbox plays, the loop is stopped and the tongue sits behind it as a darkened still */
body.is-paused .hero-poster { filter: brightness(0.45) saturate(0.85); }
body.is-paused .nav { opacity: 0; pointer-events: none; } /* the lightbox's Close sits where Get updates was */

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.45); }
.lightbox[open] { animation: lightbox-in 240ms ease-out; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

/* app.js sets width, height, left and top in whole pixels; see sizeBox() for why */
.lightbox-frame { position: absolute; background: #000; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.lightbox-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.lightbox-close {
  position: absolute; top: var(--space-4); right: var(--site-margin);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; /* the X alone, on a 44 px hit area */
  border: 0; background: none; color: var(--neutral-100);
  cursor: pointer;
}
.lightbox-close svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.lightbox-close:hover { color: var(--primary-500); }

/* ---------- ticker: dispatch lines from the bible ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--neutral-800);
  background: var(--primary-900);
  padding: var(--space-3) 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
}
.ticker span {
  padding: 0 var(--space-6);
  color: var(--primary-300);
  font-family: var(--font-03);
  font-size: var(--font-size-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker span::before { content: "//"; margin-right: var(--space-3); color: var(--secondary-300); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { padding: var(--section-space-main) 0; }

.statement {
  max-width: 22ch;
  margin: 0 0 var(--space-6);
  color: var(--theme-text-heading);
  font-family: var(--font-01);
  font-weight: 500;
  font-size: var(--font-size-h3);
  line-height: 1.15;
}

.world-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7) var(--site-gutter);
  align-items: center;
  margin-bottom: var(--space-8);
}
.world-head > :first-child { grid-column: 1 / span 7; }
.world-figure { grid-column: 8 / span 5; margin: 0; }
.world-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-main);
}
.world-figure figcaption {
  margin-top: var(--space-2);
  color: var(--neutral-500);
  font-family: var(--font-03);
  font-size: var(--font-size-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--site-gutter);
}
.card {
  padding: var(--space-5);
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-main);
  background: linear-gradient(160deg, rgba(30, 56, 64, 0.55), rgba(3, 35, 43, 0));
}
.card p { margin: 0; font-size: var(--font-size-text-s); line-height: 1.6; }
.card-index {
  margin-bottom: var(--space-5) !important;
  color: var(--secondary-300);
  font-family: var(--font-03);
  font-size: var(--font-size-text-xs) !important;
  letter-spacing: 0.15em;
}
.card-title {
  margin: 0 0 var(--space-3);
  color: var(--theme-text-heading);
  font-family: var(--font-03);
  font-weight: 400;
  font-size: var(--font-size-h5);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.series { border-top: 1px solid var(--neutral-800); }
.series-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7) var(--site-gutter);
  align-items: start;
}
.series-grid > :first-child { grid-column: 1 / span 6; }
.formats { grid-column: 8 / span 5; margin: 0; display: grid; gap: var(--space-3); }
.format {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--neutral-600);
}
.format dt {
  margin-bottom: var(--space-2);
  color: var(--primary-300);
  font-family: var(--font-03);
  font-size: var(--font-size-text-s);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.format dd { margin: 0; font-size: var(--font-size-text-l); color: var(--neutral-200); }

/* ---------- sign-up ---------- */

.signup {
  border-top: 1px solid var(--neutral-800);
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(215, 3, 140, 0.14), rgba(215, 3, 140, 0) 70%),
    radial-gradient(50% 70% at 0% 0%, rgba(3, 209, 202, 0.10), rgba(3, 209, 202, 0) 70%);
  padding-bottom: var(--section-space-large);
}
.signup-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7) var(--site-gutter);
  align-items: end;
}
.signup-grid > :first-child { grid-column: 1 / span 6; }
.signup-form { grid-column: 7 / span 6; }

.label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--neutral-200);
  font-family: var(--font-03);
  font-size: var(--font-size-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field-row { display: flex; gap: var(--space-2); }
.input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: var(--border-width-main) solid var(--neutral-500);
  border-radius: var(--radius-small); corner-shape: bevel;
  background: rgba(0, 29, 29, 0.6);
  color: var(--neutral-100);
  font-family: var(--font-01);
  font-size: 16px; /* 16 px keeps iOS from zooming on focus */
}
.input::placeholder { color: var(--neutral-500); }
.input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(3, 209, 202, 0.25); }
.input[aria-invalid="true"] { border-color: var(--red); }

.status {
  min-height: 1.6em;
  margin: var(--space-3) 0 0;
  font-family: var(--font-03);
  font-size: var(--font-size-text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status.is-ok { color: var(--primary-300); }
.status.is-error { color: var(--red); }

.terms {
  margin: var(--space-2) 0 0;
  color: var(--neutral-400);
  font-size: var(--font-size-text-xs);
  line-height: 1.6;
}

.signup-form.is-busy button { opacity: 0.6; pointer-events: none; }

/* honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */

.footer { padding: var(--space-8) 0; border-top: 1px solid var(--neutral-800); }
/* text on the left, the tongue mark on the far right: the mirror of the nav logo at top left */
.footer-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); }
.footer-text { display: grid; gap: var(--space-3); min-width: 0; }
.footer-mark { flex: none; width: auto; height: clamp(48px, 40.57px + 1.905vw, 64px); }
.signoff {
  margin: 0;
  color: var(--neutral-200);
  font-family: var(--font-03);
  font-size: var(--font-size-text-s);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-meta { margin: var(--space-3) 0 0; color: var(--neutral-500); font-size: var(--font-size-text-xs); }
.footer-meta span { margin: 0 0.5em; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .world-figure img { aspect-ratio: 16 / 10; }
  .world-head > :first-child,
  .world-figure,
  .series-grid > :first-child,
  .formats,
  .signup-grid > :first-child,
  .signup-form { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .nav .btn-small { display: none; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
