:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0b0b0a;
  --ink: #f7f2e8;
  --muted: #bdb6aa;
  --soft: #827b70;
  --line: rgba(214, 173, 92, 0.24);
  --line-soft: rgba(255, 255, 255, 0.09);
  --gold: #d6ad5c;
  --gold-2: #f1d78a;
  --signal: #a8ddd1;
  --panel: rgba(12, 12, 11, 0.82);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --pad: 1.25rem;
  --header: 4.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #050505 0%, #090908 46%, #050505 100%);
  background-size: 74px 74px, 74px 74px, auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.9));
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  color: #050505;
  background: var(--gold-2);
  border-radius: 0.35rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 0.24rem;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(214, 173, 92, 0.08);
}

.site-nav .nav-cta {
  color: #070604;
  background: var(--gold-2);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(10, 10, 9, 0.92);
  color: var(--ink);
}

.nav-toggle span:last-child,
.nav-toggle span:last-child::before,
.nav-toggle span:last-child::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

.nav-toggle span:last-child::before {
  transform: translateY(-0.42rem);
}

.nav-toggle span:last-child::after {
  transform: translateY(0.32rem);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding: 4rem var(--pad) 1.2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.signal-field,
.hero-rules {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.signal-field {
  opacity: 0.86;
}

.hero-rules {
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent 49.9%, rgba(214, 173, 92, 0.22) 50%, transparent 50.1%, transparent 100%),
    linear-gradient(180deg, transparent 0, transparent 70%, rgba(214, 173, 92, 0.14) 70.08%, transparent 70.16%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.kicker,
.section-label {
  margin: 0 0 1rem;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.88;
  letter-spacing: 0;
  color: var(--gold-2);
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-copy {
  width: min(100%, 42rem);
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.6rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #070604;
  background: var(--gold-2);
  border-color: var(--gold);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.event-ribbon {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-ribbon span {
  padding: 0.95rem 0.7rem;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 800;
}

.event-ribbon span:last-child {
  border-right: 0;
}

.section {
  position: relative;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5.6rem 0;
  scroll-margin-top: 6rem;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: start;
}

.statement,
.section-head h2,
.join-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.text-column p,
.output-card p,
.path-item p,
.join-panel p,
.day-list p {
  color: var(--muted);
}

.proof-strip {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.proof-strip span {
  min-height: 4rem;
  display: flex;
  align-items: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  color: var(--gold-2);
  font-weight: 800;
}

.proof-strip span:last-child {
  border-right: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.system-path,
.output-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.system-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.path-item {
  min-height: 18rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.path-number {
  color: var(--signal);
  font-weight: 800;
}

.path-item h3,
.output-card h3 {
  margin: 2.6rem 0 0.85rem;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.output-card {
  min-height: 16rem;
  padding: 1.35rem;
  background: var(--bg-2);
}

.output-card:hover,
.path-item:hover {
  background: rgba(214, 173, 92, 0.055);
}

.day-list {
  border-left: 1px solid var(--line);
}

.day-list p {
  margin: 0;
  padding: 0.8rem 0 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.day-list strong {
  color: var(--gold-2);
}

.join {
  width: min(100% - 2rem, 980px);
}

.join-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(214, 173, 92, 0.08), transparent 28%),
    rgba(8, 8, 7, 0.88);
}

.site-footer {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (min-width: 900px) {
  :root {
    --pad: 2rem;
  }

  .hero-title {
    font-size: 7.4rem;
  }

  .hero-copy {
    font-size: 1.14rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 4.5rem;
  }

  .brand {
    font-size: 1.35rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: grid;
    padding: 0.5rem;
    border: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.98);
    opacity: 0;
    transform: translateY(-0.5rem);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    min-height: calc(100svh - 4.5rem);
    padding-top: 3rem;
  }

  .hero-title {
    font-size: 3.65rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .event-ribbon,
  .proof-strip,
  .section-grid,
  .system-path,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .event-ribbon {
    margin-top: 2.5rem;
  }

  .event-ribbon span,
  .proof-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-ribbon span:last-child,
  .proof-strip span:last-child {
    border-bottom: 0;
  }

  .section {
    width: min(100% - 2rem, var(--max));
    padding: 4rem 0;
  }

  .section-grid {
    gap: 1.8rem;
  }

  .statement,
  .section-head h2,
  .join-panel h2 {
    font-size: 2.25rem;
  }

  .path-item,
  .output-card {
    min-height: auto;
  }

  .path-item h3,
  .output-card h3 {
    margin-top: 1.6rem;
  }

  .join-panel {
    padding: 1.3rem;
  }

  .hero-actions .button,
  .join-actions .button {
    width: 100%;
  }

  .site-footer {
    width: min(100% - 2rem, var(--max));
    flex-direction: column;
  }
}

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

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

  .signal-field {
    opacity: 0.22;
  }
}
