:root {
  --ink: #eef1f7;
  --muted: #aeb6c8;
  --surface: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.13);
  --bg: #080b12;
  --vision: #75e0d1;
  --fiction: #c59cff;
  --wonder: #ffd27a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(62,106,169,.22), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(114,58,154,.20), transparent 32rem),
    linear-gradient(180deg, #0a0e17 0%, var(--bg) 62%, #05070b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.quiet-link {
  color: var(--muted);
  text-underline-offset: .25rem;
}
main, footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}
.hero, .start-hero {
  padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 9vw, 7rem);
  max-width: 900px;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
}
h1, h2, strong { letter-spacing: -.045em; }
h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: .92;
}
h2 {
  margin: .25rem 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
}
.hero-copy, .start-hero > p:not(.eyebrow):not(.start-rule) {
  max-width: 700px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}
.start-rule {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 750;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.4rem;
}
.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}
.button.primary {
  color: #08100f;
  background: var(--vision);
  border-color: transparent;
}
.button.secondary { background: var(--surface); }
.door-preview { padding: 2rem 0 8rem; }
.section-heading {
  max-width: 650px;
  margin-bottom: 2rem;
}
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.section-heading p:last-child { color: var(--muted); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.door-card {
  min-height: 320px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.door-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.085);
}
.door-card.vision:hover { border-color: var(--vision); }
.door-card.fiction:hover { border-color: var(--fiction); }
.door-card.wonder:hover { border-color: var(--wonder); }
.door-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.door-label { margin-top: auto; font-size: .8rem; font-weight: 800; letter-spacing: .14em; }
.door-card.vision .door-label { color: var(--vision); }
.door-card.fiction .door-label { color: var(--fiction); }
.door-card.wonder .door-label { color: var(--wonder); }
.door-card strong { font-size: 1.8rem; line-height: 1.05; }
.door-card > span:last-child { color: var(--muted); }
.door-tabs {
  position: sticky;
  top: .75rem;
  z-index: 5;
  margin: 0 0 2rem;
  padding: .55rem;
  display: flex;
  gap: .4rem;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,11,18,.88);
  backdrop-filter: blur(14px);
}
.door-tabs a {
  padding: .55rem .8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.door-tabs a:hover { color: var(--ink); background: var(--surface); }
.path {
  scroll-margin-top: 6rem;
  min-height: 620px;
  margin: 1rem 0;
  padding: clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(1rem, 5vw, 5rem);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
}
.path-index {
  color: var(--muted);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 250;
}
.path-content { max-width: 780px; }
.path-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.2rem;
}
blockquote {
  margin: 2rem 0;
  padding: 1.4rem 0 1.4rem 1.4rem;
  border-left: 3px solid var(--line);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.25;
  font-weight: 720;
}
.path-vision blockquote { border-color: var(--vision); }
.path-fiction blockquote { border-color: var(--fiction); }
.path-wonder blockquote { border-color: var(--wonder); }
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}
.signal-row span {
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem;
}
.closing {
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
}
.closing h2 { margin-inline: auto; }
.closing .button { margin-top: 1.2rem; }
footer {
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer p { margin: 0; }

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
  .door-card { min-height: 230px; }
  .path { grid-template-columns: 1fr; min-height: auto; }
  .path-index { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .site-header { padding: 1rem 0; }
  .hero, .start-hero { padding-top: 4.5rem; }
  .door-tabs {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door-card { transition: none; }
}
