:root {
  color-scheme: dark;
  --ink: #e8e4d8;
  --muted: #9ba8a8;
  --gold: #d9b866;
  --gold-bright: #f0d58a;
  --cyan: #73c8c4;
  --night: #071014;
  --deep: #0b171b;
  --panel: rgba(10, 24, 28, 0.82);
  --line: rgba(217, 184, 102, 0.24);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(28, 105, 105, 0.17), transparent 32rem),
    linear-gradient(180deg, #071014 0%, #0a1418 48%, #071014 100%);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--ink); color: var(--night); padding: .7rem 1rem; }

.site-header {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 5.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.55rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-bright); transform: rotate(45deg); font-family: Inter, sans-serif; font-size: .72rem; }
.brand-mark::first-letter { transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: 1.75rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
.header-cta { border: 1px solid var(--line); padding: .6rem 1rem; color: var(--gold-bright); text-decoration: none; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

main { overflow: hidden; }
.hero {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 45rem;
  margin: 0 auto;
  padding: 7rem 0 6rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  position: relative;
}
.hero::before { content: ""; position: absolute; left: 58%; top: 12%; bottom: 8%; width: 1px; background: linear-gradient(transparent, var(--line), transparent); }
.hero-glow { position: absolute; right: -20rem; top: 4rem; width: 44rem; height: 44rem; border: 1px solid rgba(115,200,196,.13); border-radius: 50%; box-shadow: 0 0 0 6rem rgba(115,200,196,.025), 0 0 0 12rem rgba(217,184,102,.015); pointer-events: none; }
.eyebrow, .section-number { margin: 0 0 1.25rem; color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, blockquote { font-family: "Cormorant Garamond", Georgia, serif; }
h1 { margin: 0; max-width: 13ch; font-size: clamp(4rem, 8vw, 7.2rem); font-weight: 600; line-height: .86; letter-spacing: -.045em; }
h1 em { color: var(--gold-bright); font-weight: 500; }
.hero-lede { max-width: 39rem; margin: 2.25rem 0 0; color: #bac3c1; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; text-decoration: none; font-size: .86rem; font-weight: 600; }
.button-primary { background: var(--gold); color: #11150f; }
.button-primary:hover { background: var(--gold-bright); }
.button-quiet { border-bottom: 1px solid var(--line); color: var(--ink); }

.system-window { position: relative; padding: 1.25rem 1.4rem 1.5rem; background: linear-gradient(145deg, rgba(15,37,41,.92), rgba(6,17,21,.96)); border: 1px solid rgba(115,200,196,.3); box-shadow: 0 1.5rem 5rem rgba(0,0,0,.35); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.system-window::before, .system-window::after { content: ""; position: absolute; width: 2.5rem; height: 2.5rem; border-color: var(--gold); opacity: .55; }
.system-window::before { top: -.4rem; left: -.4rem; border-top: 1px solid; border-left: 1px solid; }
.system-window::after { right: -.4rem; bottom: -.4rem; border-right: 1px solid; border-bottom: 1px solid; }
.system-heading { display: flex; align-items: center; gap: .6rem; padding-bottom: 1rem; color: var(--cyan); border-bottom: 1px solid rgba(255,255,255,.08); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.pulse { width: .45rem; height: .45rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 1rem var(--cyan); }
.system-window dl { margin: 1.25rem 0; }
.system-window dl div { display: flex; justify-content: space-between; gap: 2rem; padding: .25rem 0; }
.system-window dt { color: #73888a; }
.system-window dd { margin: 0; color: #d8e0dd; }
.system-window .unresolved { color: var(--gold-bright); }
.system-divider { height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); opacity: .4; }
.system-label { margin: 1.2rem 0 .35rem; color: #71878a; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.system-event { margin: 0; color: var(--ink); font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-style: italic; }
.system-prompt { margin: 1.5rem 0 0; color: var(--cyan); font-size: .78rem; }

.manifesto, .memory-section, .enter-section { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 9vw, 9rem); padding: 7rem 0; border-top: 1px solid rgba(255,255,255,.08); }
h2 { margin: 0 0 1.5rem; font-size: clamp(2.65rem, 5vw, 4.7rem); font-weight: 600; line-height: .98; letter-spacing: -.025em; }
.manifesto > div { max-width: 45rem; }
.manifesto p:not(.section-number), .section-intro > p:last-child, .memory-copy > p, .development > p, .enter-section > div > p { color: #aeb9b7; font-size: 1.05rem; }

.path-section { padding: 7rem max(1.5rem, calc((100vw - var(--max)) / 2)); background: linear-gradient(90deg, rgba(14,32,36,.96), rgba(11,24,28,.8)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 48rem; }
.path-steps { list-style: none; padding: 4.5rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.path-steps li { min-height: 19rem; padding: 0 1.5rem 1rem; border-left: 1px solid var(--line); }
.path-steps li:first-child { padding-left: 0; border-left: 0; }
.step-number { display: block; color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.2rem; }
.path-steps h3 { margin: 2.2rem 0 .75rem; font-size: 2rem; font-weight: 600; }
.path-steps p { color: var(--muted); font-size: .91rem; }

.memory-section { grid-template-columns: 1fr 1fr; align-items: center; }
.memory-quote { position: relative; padding: 4rem 3rem; border: 1px solid var(--line); background: radial-gradient(circle at center, rgba(217,184,102,.09), transparent 70%); }
.sigil { display: block; color: var(--gold); font-size: 3rem; text-align: center; }
blockquote { margin: 2rem auto 0; max-width: 16ch; text-align: center; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; color: var(--gold-bright); }
.memory-copy ul { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.memory-copy li { color: #c6cfcc; }
.memory-copy li::before { content: "◇"; margin-right: .75rem; color: var(--cyan); }

.development { padding: 7rem max(1.5rem, calc((100vw - 54rem) / 2)); text-align: center; background: linear-gradient(rgba(7,16,20,.7), rgba(7,16,20,.9)), repeating-linear-gradient(135deg, rgba(115,200,196,.025) 0 1px, transparent 1px 1.2rem); border-block: 1px solid rgba(255,255,255,.08); }
.development h2 { max-width: 14ch; margin-inline: auto; }
.development > p:not(.eyebrow) { max-width: 48rem; margin: 0 auto; }
.text-link { display: inline-block; margin-top: 2rem; color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid var(--line); }

.enter-section { align-items: end; }
.enter-section > div:first-child { max-width: 43rem; }
.gate-status { justify-self: end; min-width: 18rem; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.gate-status span { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.gate-status strong { display: block; margin-top: .35rem; color: var(--gold-bright); font-family: ui-monospace, monospace; font-size: .9rem; }

footer { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; padding: 2.5rem 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .78rem; }
.footer-brand { font-size: 1rem; }
.footer-brand .brand-mark { width: 1.5rem; height: 1.5rem; }
.copyright { text-align: right; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero::before { display: none; }
  .system-window { max-width: 34rem; }
  .path-steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .path-steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .manifesto, .memory-section, .enter-section { grid-template-columns: 1fr; gap: 2rem; }
  .gate-status { justify-self: start; }
}

@media (max-width: 560px) {
  .site-header { width: min(calc(100% - 2rem), var(--max)); }
  .header-cta { display: none; }
  .hero, .manifesto, .memory-section, .enter-section, footer { width: min(calc(100% - 2rem), var(--max)); }
  .hero { min-height: auto; padding: 4rem 0; }
  h1 { font-size: clamp(3.45rem, 18vw, 5rem); }
  .path-section { padding-inline: 1rem; }
  .path-steps { grid-template-columns: 1fr; }
  .path-steps li, .path-steps li:nth-child(3) { min-height: auto; padding: 0 0 2rem; border-left: 0; border-bottom: 1px solid var(--line); }
  .path-steps h3 { margin-top: .75rem; }
  .memory-quote { padding: 3rem 1.2rem; }
  footer { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}

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