:root {
  color-scheme: dark;
  --bg: #090a0e;
  --surface: #111218;
  --surface-soft: #17151e;
  --line: #292833;
  --text: #f6f3ef;
  --muted: #aaa5b1;
  --purple: #7c5cff;
  --green: #20db83;
  --coral: #ff6f6a;
  --teal: #1b6b6b;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 6%, rgba(84, 49, 116, 0.24), transparent 26rem),
    radial-gradient(circle at 8% 32%, rgba(16, 91, 91, 0.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 99;
  padding: .7rem 1rem;
  border-radius: .6rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.025em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 7px;
  border-radius: 10px;
  background: var(--text);
}

.brand-mark i { display: block; border-radius: 3px; }
.brand-mark i:nth-child(1) { background: var(--purple); }
.brand-mark i:nth-child(2) { background: var(--coral); }
.brand-mark i:nth-child(3) { background: var(--green); }
.brand-mark i:nth-child(4) { background: #15161c; }

nav { display: flex; gap: 1.5rem; }
nav a { color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--text); }

.archive-badge {
  justify-self: end;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cdc7d2;
  font-size: .78rem;
  font-weight: 650;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding: 5.5rem 0;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: #c1b6d0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.hero-lede {
  max-width: 720px;
  color: #c6c1c9;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .75rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { background: var(--text); color: var(--bg); }
.button-secondary { background: rgba(255, 255, 255, .035); }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.status-note { max-width: 720px; color: #8f8a94; font-size: .86rem; }

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 4vw, 2.5rem);
  border: 1px solid #393342;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(37, 22, 51, .95), rgba(15, 16, 21, .94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 12rem;
  height: 12rem;
  border: 2rem solid rgba(124, 92, 255, .08);
  border-radius: 50%;
}

.panel-kicker { color: var(--coral); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
blockquote { margin: 0 0 2rem; font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 750; line-height: 1.08; letter-spacing: -.045em; }

.principle-list { margin: 0; }
.principle-list div { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.principle-list dt { color: var(--purple); font-weight: 800; }
.principle-list dd { margin: 0; color: #d6d1db; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.proof-strip p { margin: 0; padding: 1.5rem; border-right: 1px solid var(--line); }
.proof-strip p:last-child { border-right: 0; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { margin-bottom: .25rem; }
.proof-strip span { color: var(--muted); font-size: .82rem; }

.story-section,
.architecture-section,
.evidence-section,
.closure-section,
.disclosure { padding: clamp(5rem, 11vw, 9rem) 0; }

.section-heading { display: grid; grid-template-columns: .55fr 1fr; column-gap: 4rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading .eyebrow { grid-row: 1 / span 2; }
.section-heading h2, .closure-section h2, .disclosure h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 5.3vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.section-heading > p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.03rem; }
.section-heading.compact { grid-template-columns: .4fr 1fr; }

.story-image { margin: 0; }
.story-image img { display: block; width: 100%; height: auto; border: 1px solid #34313c; border-radius: 1.5rem; background: #0c0d11; box-shadow: 0 26px 80px rgba(0, 0, 0, .28); }
.story-image figcaption { margin-top: .8rem; color: #77727c; font-size: .77rem; }

.privacy-section { position: relative; }
.privacy-section::before { content: ""; position: absolute; inset: 2rem calc(50% - 50vw); z-index: -1; background: linear-gradient(90deg, rgba(13, 54, 58, .22), rgba(9, 10, 14, 0)); }

.system-flow { display: grid; grid-template-columns: repeat(7, auto); align-items: stretch; margin-top: 3rem; }
.system-flow article { width: 245px; min-height: 210px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.system-flow span, .decision-grid span { color: var(--purple); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.system-flow h3, .decision-grid h3 { margin: .8rem 0 .55rem; font-size: 1.08rem; }
.system-flow p, .decision-grid p { margin-bottom: 0; color: var(--muted); font-size: .87rem; }
.flow-arrow { display: grid; place-items: center; width: 2.6rem; color: #64606a; }

.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.decision-grid article { padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 255, 255, .025); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 3rem 0; }
.metric-grid article { min-height: 170px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid #3a3443; border-radius: 1rem; background: var(--surface-soft); }
.metric-grid strong { color: var(--coral); font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.metric-grid span { margin: .35rem 0 .2rem; font-weight: 750; }
.metric-grid small { color: var(--muted); }
.metric-grid .metric-wide { grid-column: span 4; min-height: 130px; }
.metric-grid .metric-wide strong { color: var(--green); }

.evidence-image { margin-top: 3rem; }

.closure-section { border-top: 1px solid var(--line); }
.closure-section h2 { max-width: 900px; }
.closure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.closure-grid p, .disclosure p:last-child { color: var(--muted); font-size: 1.02rem; }

.disclosure { padding-top: 0; }
.disclosure h2 { max-width: 850px; font-size: clamp(2.1rem, 4vw, 3.7rem); }
.disclosure p:last-child { max-width: 820px; }

footer {
  min-height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: #7f7a84;
  font-size: .78rem;
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 660px; }
  .system-flow { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .system-flow article { width: auto; }
  .flow-arrow { display: none; }
  .decision-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header, main, footer { width: min(calc(100% - 1.5rem), var(--max)); }
  .site-header { min-height: 72px; gap: .8rem; }
  .archive-badge { max-width: 12rem; padding: .45rem .6rem; text-align: center; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero { min-height: auto; padding: 4.5rem 0; gap: 3rem; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip p:last-child { border-bottom: 0; }
  .section-heading, .section-heading.compact { display: block; }
  .section-heading .eyebrow { margin-bottom: 1rem; }
  .story-image img { border-radius: .8rem; }
  .system-flow, .decision-grid, .metric-grid, .closure-grid { grid-template-columns: 1fr; }
  .metric-grid .metric-wide { grid-column: auto; }
  footer { min-height: 130px; align-items: flex-start; justify-content: center; flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
