:root {
  --ink: #050b10;
  --ink-soft: #09151e;
  --ice: #dceaf0;
  --ice-muted: #9aabb4;
  --flame: #f28b52;
  --ember: #ffb06f;
  --line: rgba(216, 235, 241, 0.16);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display-size: clamp(4.5rem, 10.8vw, 10.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ice);
  background:
    radial-gradient(circle at 82% 8%, rgba(242, 139, 82, 0.08), transparent 24rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::selection {
  color: var(--ink);
  background: var(--ember);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.grain {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-light {
  position: fixed;
  z-index: 2;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(242, 139, 82, 0.09), transparent 64%);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.4rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.24em;
}

.wordmark svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: var(--ember);
  stroke-width: 1;
}

.site-header nav {
  display: flex;
  gap: 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav a {
  color: var(--ice-muted);
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--ice);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--ice);
  background: transparent;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-nav {
  position: absolute;
  z-index: 30;
  top: 4.8rem;
  right: 1.25rem;
  left: 1.25rem;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(5, 11, 16, 0.96);
  backdrop-filter: blur(1rem);
}

.mobile-nav[hidden] {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-content: center;
  padding: 9rem 5vw 5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  z-index: -4;
  inset: -7%;
  width: 114%;
  height: 114%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.1) brightness(0.68);
  animation: hero-drift 17s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 16, 0.92) 0%, rgba(5, 11, 16, 0.46) 52%, rgba(5, 11, 16, 0.3) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 28%, transparent 74%, rgba(5, 11, 16, 0.6) 100%);
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 8.33vw 8.33vw;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-status {
  position: absolute;
  top: 7rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ice-muted);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  width: 0.47rem;
  height: 0.47rem;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 0 rgba(242, 139, 82, 0.6);
  animation: pulse 2s infinite;
}

.status-divider {
  width: 2.2rem;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  max-width: 62rem;
  padding-top: 3rem;
}

.eyebrow,
.kicker {
  margin: 0 0 1.25rem;
  color: var(--ember);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.8rem;
  font-family: var(--serif);
  font-size: var(--display-size);
  font-weight: 400;
  line-height: 0.79;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

h1 em {
  color: var(--ember);
  font-weight: 400;
}

.hero-deck {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: #bac8cf;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #18100c;
  background: var(--ember);
}

.button-primary:hover {
  background: #ffc58d;
}

.button-ghost {
  border-color: var(--line);
  color: var(--ice);
  background: rgba(5, 11, 16, 0.28);
  backdrop-filter: blur(0.6rem);
}

.button-ghost:hover {
  border-color: rgba(220, 234, 240, 0.5);
}

.signal-card {
  position: absolute;
  right: 5vw;
  bottom: 5rem;
  width: min(19rem, 31vw);
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(4, 12, 18, 0.52);
  backdrop-filter: blur(1rem);
}

.signal-head,
.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-head {
  margin-bottom: 1.3rem;
  color: var(--ice-muted);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.signal-code {
  color: var(--ember);
}

.signal-row {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.signal-label {
  color: var(--ice-muted);
}

.signal-row strong {
  font-weight: 500;
}

.warm {
  color: var(--ember);
}

.waveform {
  display: flex;
  height: 2.1rem;
  align-items: center;
  gap: 0.28rem;
  padding-top: 0.8rem;
}

.waveform i {
  width: 1px;
  height: 30%;
  background: var(--flame);
  animation: waveform 1.4s ease-in-out infinite alternate;
}

.waveform i:nth-child(3n) {
  animation-delay: -0.4s;
}

.waveform i:nth-child(4n) {
  animation-delay: -0.9s;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ice-muted);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 3rem;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  animation: scroll-line 2s ease-in-out infinite;
}

.manifesto,
.world,
.episode,
.launch-panel {
  position: relative;
  padding: 8rem 5vw;
  border-top: 1px solid var(--line);
}

.section-index {
  margin-bottom: 4rem;
  color: var(--ice-muted);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.manifesto-main {
  display: grid;
  grid-template-columns: minmax(12rem, 0.6fr) minmax(20rem, 1.4fr);
  gap: 5vw;
}

.manifesto h2,
.world h2,
.episode h2,
.launch-panel h2 {
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.manifesto-copy {
  max-width: 34rem;
  color: #aabac2;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.signal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7rem;
  border-block: 1px solid var(--line);
}

.fact {
  min-height: 14rem;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact-number {
  display: block;
  margin-bottom: 3rem;
  color: var(--ember);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1;
}

.fact p {
  max-width: 15rem;
  margin: 0;
  color: var(--ice-muted);
}

.world {
  display: grid;
  grid-template-columns: minmax(20rem, 1.05fr) minmax(20rem, 0.95fr);
  align-items: center;
  gap: 6vw;
}

.world-image-wrap {
  position: relative;
}

.world-image-wrap::before {
  position: absolute;
  z-index: -1;
  top: -1rem;
  right: -1rem;
  width: 58%;
  height: 62%;
  border: 1px solid rgba(242, 139, 82, 0.28);
  content: "";
}

.world-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.1) brightness(0.72);
}

.world-caption {
  display: flex;
  justify-content: space-between;
  padding-top: 0.8rem;
  color: var(--ice-muted);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-copy .section-index {
  margin-bottom: 3rem;
}

.world-copy > p:not(.kicker) {
  max-width: 34rem;
  color: #aabac2;
}

.world-rules {
  margin: 3rem 0 0;
}

.world-rules div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.world-rules dt {
  color: var(--ember);
  font-family: var(--serif);
}

.world-rules dd {
  margin: 0;
  color: var(--ice);
}

.episode {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(18rem, 0.65fr);
  align-items: center;
  gap: 8vw;
  min-height: 90vh;
  overflow: hidden;
}

.episode::before {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: -12%;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 139, 82, 0.1), transparent 68%);
  content: "";
}

.episode-logline {
  max-width: 35rem;
  color: #aabac2;
  font-size: 1.08rem;
}

.text-link {
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  color: var(--ember);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link span {
  display: inline-block;
  margin-left: 0.6rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(0.35rem);
}

.poster {
  position: relative;
  width: min(30rem, 100%);
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.38);
  transform: rotate(1.4deg);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.poster:hover {
  transform: rotate(0deg) translateY(-0.5rem);
}

.poster img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.75);
}

.poster-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 16, 0.42), transparent 28%, transparent 62%, rgba(5, 11, 16, 0.8)),
    linear-gradient(90deg, rgba(5, 11, 16, 0.28), transparent);
}

.poster-top,
.poster-bottom {
  position: absolute;
  right: 1.2rem;
  left: 1.2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.poster-top {
  top: 1.2rem;
  color: var(--ice-muted);
}

.poster-bottom {
  bottom: 1.2rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.launch-panel {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(19rem, 0.7fr);
  align-items: end;
  gap: 8vw;
  padding-block: 7rem;
  background:
    linear-gradient(90deg, rgba(242, 139, 82, 0.06), transparent 45%),
    var(--ink-soft);
}

.launch-panel h2 {
  max-width: 40rem;
  margin-bottom: 0.8rem;
}

.launch-panel > div > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--ice-muted);
}

.signup-form label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ice-muted);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signup-row {
  display: flex;
  border-bottom: 1px solid rgba(220, 234, 240, 0.45);
}

.signup-row input {
  width: 100%;
  min-width: 0;
  padding: 1rem 0;
  border: 0;
  outline: 0;
  color: var(--ice);
  background: transparent;
}

.signup-row input::placeholder {
  color: #687a84;
}

.signup-row .button {
  align-self: center;
}

.form-note {
  margin: 0.7rem 0 0;
  color: #71838d;
  font-size: 0.66rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 3rem 5vw;
  border-top: 1px solid var(--line);
  color: var(--ice-muted);
  font-size: 0.66rem;
}

footer p {
  margin: 0;
}

.teaser-dialog {
  width: min(92vw, 34rem);
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ice);
  background: #02070b;
  box-shadow: 0 3rem 12rem rgba(0, 0, 0, 0.7);
}

.teaser-dialog::backdrop {
  background: rgba(1, 6, 9, 0.86);
  backdrop-filter: blur(0.8rem);
}

.teaser-stage {
  position: relative;
}

.teaser-dialog video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #02070b;
}

.teaser-overlay {
  position: absolute;
  inset: 8% 8% 17%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.teaser-slide {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.5rem;
  opacity: 0;
  text-align: center;
  transform: translateY(0.4rem);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.teaser-slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.teaser-slide::before {
  position: absolute;
  z-index: -1;
  inset: -1rem -2rem;
  background: radial-gradient(ellipse, rgba(1, 7, 11, 0.68), transparent 68%);
  content: "";
}

.teaser-kicker {
  color: var(--ember);
  font-size: clamp(0.52rem, 1.3vw, 0.7rem);
  font-weight: 650;
  letter-spacing: 0.18em;
}

.teaser-slide strong {
  color: var(--ice);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5.5vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
}

.teaser-slide .teaser-title {
  font-size: clamp(2.2rem, 7vw, 4.1rem);
  letter-spacing: -0.04em;
}

.teaser-title em {
  color: var(--ember);
  font-weight: 400;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  color: var(--ice);
  background: rgba(5, 11, 16, 0.72);
  cursor: pointer;
}

.dialog-caption {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  color: var(--ice-muted);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(-0.5%, -0.5%, 0);
  }
  to {
    transform: scale(1.08) translate3d(0.7%, 0.3%, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 139, 82, 0.5);
  }
  50% {
    box-shadow: 0 0 0 0.45rem rgba(242, 139, 82, 0);
  }
}

@keyframes waveform {
  to {
    height: 100%;
    opacity: 0.4;
  }
}

@keyframes scroll-line {
  0%,
  100% {
    transform: scaleX(0.35);
    opacity: 0.35;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 1.25rem;
  }

  .site-header nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 100svh;
    padding: 7.5rem 1.25rem 5rem;
  }

  .hero-status {
    top: 5.8rem;
    left: 1.25rem;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .hero-deck {
    max-width: 24rem;
  }

  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 28rem;
    margin-top: 4rem;
  }

  .scroll-cue {
    display: none;
  }

  .manifesto,
  .world,
  .episode,
  .launch-panel {
    padding: 5.5rem 1.25rem;
  }

  .section-index {
    margin-bottom: 2.5rem;
  }

  .manifesto-main,
  .world,
  .episode,
  .launch-panel {
    grid-template-columns: 1fr;
  }

  .manifesto-main {
    gap: 2rem;
  }

  .signal-facts {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .fact {
    min-height: 0;
    padding: 1.4rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .fact-number {
    margin-bottom: 1.2rem;
  }

  .world {
    gap: 4rem;
  }

  .world-copy .section-index {
    margin-bottom: 2rem;
  }

  .episode {
    gap: 4rem;
  }

  .poster {
    width: min(25rem, 88vw);
  }

  .launch-panel {
    gap: 3rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 520px) {
  :root {
    --display-size: clamp(3.7rem, 20vw, 5.6rem);
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(5, 11, 16, 0.7), rgba(5, 11, 16, 0.32)),
      linear-gradient(0deg, var(--ink) 0%, transparent 32%, transparent 70%, rgba(5, 11, 16, 0.72) 100%);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    justify-content: space-between;
  }

  .manifesto h2,
  .world h2,
  .episode h2,
  .launch-panel h2 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .signup-row {
    display: grid;
  }

  .signup-row .button {
    margin-bottom: 0.6rem;
  }

  .world-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
