:root {
  --paper: #f8f7f4;
  --paper-soft: #efeee9;
  --ink: #050507;
  --muted: #6d6b69;
  --hairline: rgba(5, 5, 7, 0.12);
  --hairline-strong: rgba(5, 5, 7, 0.22);
  --magenta: #e31c73;
  --coral: #ff5a4f;
  --orange: #ffad3d;
  --violet: #4d4ee8;
  --night: #06070d;
  --night-soft: #10111a;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(5, 5, 7, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 7, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 88px, 88px 100%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.progress-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: rgba(5, 5, 7, 0.06);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--magenta), var(--orange), var(--violet));
  transform-origin: left;
  transition: width 120ms linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px max(32px, calc((100vw - var(--max)) / 2 + 32px)) 20px;
  background: rgba(248, 247, 244, 0.74);
  border-bottom: 1px solid rgba(5, 5, 7, 0.06);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-meta,
.section-index,
.eyebrow,
.footer {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-weight: 700;
}

.brand span + span {
  color: var(--muted);
  font-weight: 500;
}

.brand span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 14px 2px 0;
  border-radius: 999px;
  background: var(--coral);
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--magenta);
}

.hero {
  position: relative;
  min-height: 80svh;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 32px 54px;
}

.hero-art {
  position: absolute;
  inset: 80px -8vw 0 auto;
  width: 62vw;
  max-width: 980px;
  min-width: 580px;
  background:
    linear-gradient(90deg, rgba(248, 247, 244, 0.98), rgba(248, 247, 244, 0.22) 40%, rgba(248, 247, 244, 0.7)),
    url("./assets/stories-sequence.webp") center / cover no-repeat;
  opacity: 0.56;
  filter: saturate(0.92);
  mask-image: linear-gradient(90deg, transparent 0%, black 24%, black 74%, transparent 100%);
}

.hero-ring {
  position: absolute;
  right: -18rem;
  top: 9rem;
  width: 38rem;
  aspect-ratio: 1;
  border: 44px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(132deg, var(--magenta), var(--coral), var(--orange), rgba(255, 173, 61, 0.22)) border-box;
  opacity: 0.92;
}

.eyebrow {
  margin: 0 0 34px;
  color: var(--magenta);
  font-weight: 700;
}

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

h1,
h2 {
  max-width: 760px;
  font-weight: 670;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 30px;
  font-size: 5.4rem;
  line-height: 0.96;
}

h1 span,
.beta-copy h2 span {
  color: var(--magenta);
}

.hero-copy {
  max-width: 620px;
  color: #2b2a29;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.primary-link {
  color: #fff;
  border-color: transparent;
  background: var(--ink);
}

.primary-link::after,
.secondary-link::after {
  content: "->";
  margin-left: 12px;
}

.primary-link:hover,
.secondary-link:hover,
.primary-link:focus-visible,
.secondary-link:focus-visible {
  transform: translateY(-1px);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--magenta);
}

.secondary-link {
  color: var(--ink);
  background: rgba(248, 247, 244, 0.54);
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 32px;
  color: #565453;
  border-top: 1px solid var(--hairline);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.hero-meta span + span::before {
  content: "/";
  margin: 0 18px;
  color: rgba(5, 5, 7, 0.28);
}

.intro-strip {
  display: grid;
  place-items: start center;
  min-height: 28svh;
  padding: 44px 32px 68px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.36);
}

.intro-strip p {
  max-width: 880px;
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.34;
  font-weight: 560;
  text-align: center;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
  max-width: var(--max);
  min-height: 106svh;
  margin: 0 auto;
  padding: 96px 32px;
  border-bottom: 1px solid var(--hairline);
  opacity: 0.28;
  transform: translateY(28px);
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

.story-section.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story-section.reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.story-section.reverse .section-copy {
  order: 2;
}

.story-section.reverse .section-piece {
  order: 1;
}

.section-copy {
  max-width: 470px;
}

.section-index {
  margin-bottom: 26px;
  color: var(--magenta);
  font-weight: 750;
}

.section-copy h2 {
  margin-bottom: 24px;
  font-size: 3rem;
  line-height: 1.04;
}

.section-copy p:not(.section-index) {
  color: #333130;
  font-size: 1.05rem;
  line-height: 1.72;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  border-top: 1px solid var(--hairline-strong);
  padding-top: 10px;
  color: #555250;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-piece {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(5, 5, 7, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 24px 70px rgba(5, 5, 7, 0.08);
}

.section-piece::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, transparent 72%, rgba(5, 5, 7, 0.04));
}

.section-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beta-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
  min-height: 92svh;
  padding: 96px max(32px, calc((100vw - var(--max)) / 2 + 32px));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 70% 40%, rgba(227, 28, 115, 0.16), transparent 30%),
    var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.beta-art {
  position: absolute;
  inset: 0;
  opacity: 0.58;
}

.beta-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 13, 0.98) 0%, rgba(6, 7, 13, 0.9) 38%, rgba(6, 7, 13, 0.36) 100%),
    linear-gradient(180deg, transparent, rgba(6, 7, 13, 0.68));
}

.beta-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.beta-copy h2 {
  margin-bottom: 26px;
  font-size: 4.2rem;
  line-height: 1.02;
}

.beta-copy p:not(.eyebrow) {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.72;
}

.primary-link.dark {
  margin-top: 28px;
  color: var(--night);
  background: #fff;
}

.primary-link.dark:hover,
.primary-link.dark:focus-visible {
  color: #fff;
  background: var(--magenta);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 13, 0.56);
  backdrop-filter: blur(18px);
}

.modal-backdrop[hidden] {
  display: none;
}

.access-modal {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid rgba(5, 5, 7, 0.14);
  border-radius: 8px;
  padding: 38px;
  background:
    linear-gradient(rgba(5, 5, 7, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 7, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 58px, 58px 100%;
  box-shadow: 0 30px 90px rgba(5, 5, 7, 0.28);
}

.access-modal h2 {
  margin-bottom: 24px;
  font-size: 2.15rem;
  line-height: 1.05;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 1.2rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--magenta);
  border-color: rgba(227, 28, 115, 0.32);
}

.access-form {
  display: grid;
  gap: 18px;
}

.access-form label {
  display: grid;
  gap: 8px;
}

.access-form label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.access-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.access-form input:focus {
  border-color: rgba(227, 28, 115, 0.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(227, 28, 115, 0.1);
}

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

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status.success {
  color: #147044;
}

.form-status.error {
  color: #a1254d;
}

.footer {
  display: flex;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 42px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .topbar {
    padding: 22px 24px 16px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    padding: 78px 24px 44px;
  }

  h1 {
    max-width: 560px;
    font-size: 4rem;
  }

  .hero-art {
    inset: 220px -28vw 0 auto;
    width: 86vw;
    min-width: 0;
  }

  .hero-ring {
    right: -20rem;
    top: 13rem;
  }

  .hero-meta,
  .intro-strip,
  .story-section,
  .beta-section,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .story-section,
  .story-section.reverse {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 74px;
    padding-bottom: 74px;
  }

  .story-section.reverse .section-copy,
  .story-section.reverse .section-piece {
    order: initial;
  }

  .section-copy {
    max-width: 680px;
  }

  .section-copy h2 {
    font-size: 2.45rem;
  }

  .beta-section {
    grid-template-columns: 1fr;
    min-height: 78svh;
  }

  .beta-copy h2 {
    font-size: 3.2rem;
  }
}

@media (max-width: 620px) {
  body {
    background-size: 100% 72px, 72px 100%;
  }

  .topbar {
    position: relative;
    padding: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand span + span {
    display: none;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-inner {
    padding: 64px 18px 38px;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  h1 {
    font-size: 2.72rem;
    line-height: 1;
  }

  .hero-copy,
  .section-copy p:not(.section-index),
  .beta-copy p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hero-art {
    inset: auto -42vw 0 6vw;
    width: 132vw;
    height: 36vh;
    opacity: 0.36;
    mask-image: linear-gradient(180deg, transparent 0%, black 24%, black 84%, transparent 100%);
  }

  .hero-ring {
    right: -15rem;
    top: 19rem;
    width: 26rem;
    border-width: 30px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    padding: 20px 18px;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .intro-strip {
    min-height: auto;
    padding: 52px 18px;
  }

  .intro-strip p {
    font-size: 1.28rem;
    text-align: left;
  }

  .story-section,
  .story-section.reverse {
    padding: 58px 18px;
  }

  .section-copy h2 {
    font-size: 2rem;
  }

  .section-piece {
    border-radius: 6px;
  }

  .signal-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .beta-section {
    padding: 70px 18px;
  }

  .beta-copy h2 {
    font-size: 2.4rem;
  }

  .footer {
    gap: 12px;
    flex-direction: column;
    padding: 22px 18px 34px;
  }

  .modal-backdrop {
    padding: 18px;
    align-items: end;
  }

  .access-modal {
    padding: 32px 20px 22px;
  }

  .access-modal h2 {
    font-size: 1.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .story-section {
    opacity: 1;
    transform: none;
  }
}
