:root {
  --bg: #0b0f0d;
  --bg-soft: #101613;
  --panel: #131b17;
  --panel-2: #17211c;
  --ink: #f3f0e7;
  --muted: #aeb8b0;
  --line: rgba(243, 240, 231, .13);
  --line-strong: rgba(243, 240, 231, .24);
  --accent: #b8d8b5;
  --accent-bright: #d8ecd4;
  --warm: #d9caa8;
  --max: 1280px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 6%, rgba(94, 132, 102, .14), transparent 26rem),
    linear-gradient(180deg, #0b0f0d 0%, #0c110e 36%, #0b0f0d 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--accent); color: #0b0f0d; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(11, 15, 13, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand, .footer-brand {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand { font-size: 1.15rem; }
.nav { display: flex; gap: 30px; }
.nav a, .nav-cta { font-size: .83rem; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav-cta { justify-self: end; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }

.section-shell {
  width: min(calc(100% - 56px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 820px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
  padding-block: 112px 90px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
}

h1, h2, h3 { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; margin: 0; }
h1 {
  max-width: 780px;
  font-size: clamp(3.7rem, 6.7vw, 7.3rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 600;
}
h2 {
  max-width: 900px;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 600;
}
h3 { font-size: 1.2rem; letter-spacing: -.025em; font-weight: 600; }

.hero-lede {
  max-width: 730px;
  margin: 36px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.5;
  color: #d6dbd6;
}
.hero-support { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #0b0f0d; }
.button-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.button-light { background: #0b0f0d; color: var(--ink); }

.hero-visual { min-width: 0; }
.trace-cycle { display: block; width: 100%; height: auto; overflow: visible; }
.cycle-shell { fill: #0d120f; stroke: var(--line); stroke-width: 1.2; }
.cycle-ring { fill: none; stroke: rgba(216,236,212,.2); stroke-width: 1.2; }
.cycle-path { fill: none; stroke: rgba(184,216,181,.62); stroke-width: 1.3; stroke-linecap: round; }
.cycle-node rect { fill: rgba(11,15,13,.95); stroke: var(--line-strong); stroke-width: 1.1; }
.cycle-node text { fill: #d8ded8; font-size: 17px; font-weight: 500; }
.cycle-core circle { fill: var(--ink); filter: drop-shadow(0 0 28px rgba(216,236,212,.12)); }
.cycle-core text { fill: #0b0f0d; }
.cycle-kicker { font-size: 13px; letter-spacing: 4px; font-weight: 600; }
.cycle-title { font-size: 26px; font-weight: 700; letter-spacing: -.6px; }

.opening-statement { padding: 80px 0 150px; }
.opening-statement p { max-width: 1040px; margin: 0; font-family: "Manrope"; font-size: clamp(2rem, 4.2vw, 4.35rem); line-height: 1.12; letter-spacing: -.047em; color: #e4e7e1; }

.evidence, .signal, .role, .difference, .cohort, .global, .ecosystem, .connect, .closing { padding-block: 120px; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1fr 2.1fr; column-gap: 60px; align-items: start; }
.section-intro .eyebrow { grid-column: 1; }
.section-intro h2 { grid-column: 2; }
.section-intro > p:not(.eyebrow) { grid-column: 2; max-width: 760px; color: var(--muted); margin: 26px 0 0; font-size: 1.08rem; }

.evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 72px; }
.evidence-card { min-width: 0; min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.evidence-card strong { font-family: "Manrope"; font-size: clamp(2.3rem, 4vw, 4.2rem); letter-spacing: -.06em; color: var(--accent-bright); }
.evidence-card p { margin: auto 0 20px; color: #ced4cf; }
.evidence-card a { color: var(--muted); font-size: .76rem; text-decoration: none; border-top: 1px solid var(--line); padding-top: 14px; }
.evidence-card a:hover { color: var(--ink); }
.source-note { max-width: 900px; margin: 28px 0 0 auto; color: var(--muted); font-size: .92rem; }

.signal-copy { max-width: 910px; margin-left: auto; }
.signal-copy > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.stack-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 76px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stack-stage { padding: 28px 24px 34px; min-height: 245px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.stack-stage:last-child { border-right: 0; }
.stack-stage span { color: var(--accent); font-size: .7rem; letter-spacing: .1em; }
.stack-stage h3 { margin-top: 68px; }
.stack-stage p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.context-band { margin-top: 18px; padding: 28px 30px; border-radius: 18px; background: var(--panel); display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.context-band p { margin: 0; color: #d4d9d4; }
.context-links { display: grid; align-content: start; gap: 8px; }
.context-links a { color: var(--accent); font-size: .8rem; text-decoration: none; }
.context-links a:hover { color: var(--accent-bright); }

.role-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; margin-top: 72px; }
.role-narrative p { margin: 0 0 24px; color: #d0d6d1; font-size: 1.08rem; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-grid > div { padding: 26px; min-height: 210px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid span { color: var(--accent); font-size: .7rem; }
.method-grid h3 { margin-top: 44px; }
.method-grid p { color: var(--muted); font-size: .87rem; margin: 10px 0 0; }

.difference { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: center; }
.difference-copy > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.difference-copy strong { color: var(--ink); }
.ownership-card { padding: 32px; background: var(--ink); color: #0b0f0d; border-radius: var(--radius); }
.ownership-card p { font-family: "Manrope"; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.035em; margin: 0 0 28px; }
.ownership-card span { display: block; padding: 10px 0; border-top: 1px solid rgba(11,15,13,.16); font-size: .85rem; }

.cohort { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: start; }
.cohort-copy p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.cohort-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cohort-panel > div { display: grid; grid-template-columns: 110px 1fr; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cohort-panel span { font-family: "Manrope"; font-size: 2.6rem; letter-spacing: -.05em; color: var(--accent-bright); }
.cohort-panel p { margin: 0; color: var(--muted); font-size: .88rem; }
.cohort-panel a { display: block; padding: 22px 24px; text-decoration: none; font-weight: 600; font-size: .85rem; }
.cohort-panel a:hover { background: var(--panel); }

.global { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.global-visual { min-height: 420px; display: grid; place-items: center; background: radial-gradient(circle at 52% 49%, rgba(184,216,181,.08), transparent 31%); }
.global-visual svg { width: 100%; height: auto; }
.globe-ring { fill: none; stroke: rgba(243,240,231,.16); stroke-width: 1; }
.globe-line { fill: none; stroke: rgba(243,240,231,.12); stroke-width: 1; }
.network-line { fill: none; stroke: rgba(184,216,181,.5); stroke-width: 1; stroke-dasharray: 4 8; }
.network-node { fill: var(--accent); }
.network-node.key { fill: var(--ink); }
.global-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

.ecosystem-flow { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ecosystem-flow > div { padding: 26px 28px 32px; min-height: 175px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ecosystem-flow > div:nth-child(3n) { border-right: 0; }
.ecosystem-flow > div:nth-child(n+4) { border-bottom: 0; }
.ecosystem-flow strong { font-family: "Manrope"; font-size: 1.05rem; }
.ecosystem-flow p { color: var(--muted); font-size: .88rem; margin: 18px 0 0; }

.connect-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; padding: 56px; border-radius: 28px; background: var(--accent-bright); color: #0b0f0d; }
.connect-panel .eyebrow { color: #31513a; }
.connect-panel h2 { font-size: clamp(2.1rem, 3.6vw, 4rem); }
.connect-panel > p { margin: 8px 0 0; color: #284032; }
.connect-panel .button { grid-column: 2; width: max-content; margin-top: -74px; align-self: end; }

.closing { padding-bottom: 150px; }
.closing h2 { max-width: 1120px; }
.closing > p:last-child { max-width: 780px; margin: 32px 0 0 auto; color: var(--muted); font-size: 1.02rem; }

.site-footer { padding-block: 40px 56px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 50px; align-items: flex-start; }
.footer-brand { font-size: 1.15rem; }
.footer-top p { color: var(--muted); font-size: .78rem; margin: 5px 0 0; }
.footer-partners { display: flex; gap: 14px 22px; flex-wrap: wrap; justify-content: flex-end; align-items: center; font-size: .74rem; }
.footer-partners span { color: var(--muted); width: 100%; text-align: right; }
.footer-partners strong { font-weight: 500; color: #d7ddd8; }
.footer-note { margin: 38px 0 0; color: #727c75; font-size: .7rem; max-width: 900px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-links a { color: #c8d0ca; font-size: .76rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note-secondary { margin-top: 10px; }

.policy-main { padding: 86px 0 120px; }
.policy-shell { width: min(calc(100% - 56px), 920px); margin-inline: auto; }
.policy-header { padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.policy-header h1 { max-width: 860px; font-size: clamp(3rem, 6vw, 5.5rem); }
.policy-header p { max-width: 740px; margin: 24px 0 0; color: var(--muted); font-size: 1.06rem; }
.policy-section { padding: 42px 0; border-bottom: 1px solid var(--line); }
.policy-section h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin-bottom: 18px; }
.policy-section h3 { margin-top: 30px; font-size: 1rem; }
.policy-section p, .policy-section li { color: #c7cec8; }
.policy-section ul { padding-left: 20px; }
.policy-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px 26px; }
.policy-grid dt { color: var(--muted); }
.policy-grid dd { margin: 0; color: #dfe3df; }
.policy-callout { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: #d5dbd6; }
.policy-callout strong { color: var(--accent-bright); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero, .difference, .cohort, .global { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { max-width: 650px; width: 100%; margin-inline: auto; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro h2, .section-intro > p:not(.eyebrow) { grid-column: 1; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .stack-flow { grid-template-columns: 1fr; }
  .stack-stage { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 60px 1fr 1.2fr; align-items: center; gap: 20px; }
  .stack-stage:last-child { border-bottom: 0; }
  .stack-stage h3 { margin: 0; }
  .stack-stage p { margin: 0; }
  .context-band, .role-layout, .connect-panel { grid-template-columns: 1fr; }
  .connect-panel .button { grid-column: 1; margin-top: 0; }
  .ecosystem-flow { grid-template-columns: 1fr 1fr; }
  .ecosystem-flow > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .ecosystem-flow > div:nth-child(2n) { border-right: 0; }
  .ecosystem-flow > div:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .ecosystem-flow > div:nth-child(n+5) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card { min-height: 225px; }
  .policy-grid { grid-template-columns: 1fr; gap: 4px; }
  .policy-grid dd { margin-bottom: 14px; }
}

@media (max-width: 680px) {
  .site-header { padding: 16px 20px; }
  .nav-cta { font-size: .72rem; }
  .section-shell { width: min(calc(100% - 36px), var(--max)); }
  .hero { padding-top: 72px; gap: 48px; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  h2 { font-size: clamp(2.15rem, 10vw, 3.2rem); }
  .opening-statement { padding: 40px 0 100px; }
  .evidence, .signal, .role, .difference, .cohort, .global, .ecosystem, .connect, .closing { padding-block: 90px; }
  .evidence-grid, .method-grid, .ecosystem-flow { grid-template-columns: 1fr; }
  .method-grid { border-left: 0; }
  .method-grid > div { border-left: 1px solid var(--line); }
  .evidence-card { min-height: 240px; }
  .stack-stage { grid-template-columns: 45px 1fr; }
  .stack-stage p { grid-column: 2; }
  .context-band { padding: 24px; gap: 24px; }
  .difference { gap: 42px; }
  .connect-panel { padding: 32px 26px; gap: 28px; }
  .footer-top { flex-direction: column; }
  .footer-partners { justify-content: flex-start; }
  .footer-partners span { text-align: left; }
  .ecosystem-flow > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .ecosystem-flow > div:last-child { border-bottom: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
