:root {
  color-scheme: dark;
  --bg: #090a0a;
  --surface: #0d0f0f;
  --surface-raised: #111313;
  --text: #f1efe9;
  --muted: #999a96;
  --quiet: #656863;
  --line: #252827;
  --line-soft: #191b1a;
  --signal: #d6a85c;
  --signal-bright: #edc77f;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

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

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.nav-shell { height: 82px; display: flex; align-items: center; gap: 42px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .94rem; font-weight: 620; letter-spacing: -.01em; }

.brand-mark { width: 42px; height: 16px; overflow: visible; }
.brand-mark path { fill: none; stroke: #646762; stroke-width: 1; }
.brand-mark circle { fill: var(--signal); }

.nav-links { margin-left: auto; display: flex; gap: 34px; color: var(--muted); font-size: .79rem; }
.nav-links a, .footer-links a { transition: color .2s ease; }
.nav-links a:hover, .footer-links a:hover { color: var(--text); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  font-size: .78rem;
  font-weight: 620;
  letter-spacing: .01em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button-small { min-height: 39px; padding-inline: 16px; }
.button-outline { border-color: #353837; color: #d5d4cf; }
.button-outline:hover { border-color: #70736e; }
.button-primary { background: var(--text); color: var(--bg); }
.button-primary:hover { background: #d8d6cf; }
.button-quiet { padding-inline: 10px; color: #b7b8b3; }
.button-quiet:hover { color: var(--text); }
.button span { margin-left: 9px; }

.hero {
  min-height: 930px;
  padding-top: 190px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  grid-template-rows: 1fr auto auto;
  column-gap: 8vw;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-index, .data-label {
  margin: 0 0 27px;
  color: var(--signal-bright);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: clamp(4.4rem, 8vw, 7.8rem);
  font-weight: 470;
  letter-spacing: -.069em;
  line-height: .87;
}

.hero-body { max-width: 610px; margin-bottom: 35px; color: #b0b1ad; font-size: 1.08rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 13px; align-items: center; }

.observation { align-self: center; margin-top: 12px; }
.observation-meta { display: flex; justify-content: space-between; margin-bottom: 24px; color: #5f625f; font: 600 .61rem/1 monospace; letter-spacing: .13em; }
.observation-line { height: 1px; background: #3a3d3b; position: relative; }
.tick { position: absolute; top: -4px; width: 1px; height: 9px; background: #3a3d3b; }
.tick-one { left: 15%; } .tick-two { left: 42%; } .tick-three { left: 88%; }
.signal-dot { position: absolute; left: 68%; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal-bright); box-shadow: 0 0 18px rgba(214,168,92,.35); }
.signal-ring { position: absolute; left: calc(68% - 8px); top: -12px; width: 25px; height: 25px; border: 1px solid rgba(214,168,92,.25); border-radius: 50%; animation: breathe 3s ease-in-out infinite; }
.signal-label { margin: 22px 0 0 68%; color: #898b87; font-size: .73rem; white-space: nowrap; transform: translateX(-38%); }

@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .3; } 50% { transform: scale(1.18); opacity: .8; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .signal-ring { animation: none; } }

.principles { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles p { margin: 0; padding: 23px 0 18px; color: #d7d6d1; font-size: .83rem; border-right: 1px solid var(--line); }
.principles p:last-child { border: 0; padding-left: 31px; }
.principles p:nth-child(2) { padding-left: 31px; }
.principles span { margin-right: 18px; color: #60635f; font: .61rem monospace; }
.coverage-note { grid-column: 1 / -1; margin: 0; padding: 0 0 29px; color: #60635f; font-size: .68rem; }

.section { padding-block: 145px; }
.section-rule { border-top: 1px solid var(--line); }
.problem { display: grid; grid-template-columns: .75fr 2fr; gap: 40px; }
.section-index { color: #6d706c; }
h2 { margin-bottom: 32px; font-size: clamp(2.7rem, 5vw, 4.9rem); font-weight: 460; line-height: 1.04; letter-spacing: -.055em; }
.problem h2 { max-width: 900px; font-size: clamp(2.4rem, 4.7vw, 4.4rem); }
.section-copy { max-width: 680px; color: var(--muted); font-size: 1.04rem; }
.section-heading { display: grid; grid-template-columns: .75fr 2fr; gap: 40px; margin-bottom: 70px; }

.card-grid, .signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.card { min-height: 300px; padding: 30px 30px 32px; border: 1px solid var(--line); border-right: 0; display: flex; flex-direction: column; }
.card:last-child { border-right: 1px solid var(--line); }
.card-number { color: #5d605d; font: .67rem monospace; }
.card h3 { margin: auto 0 11px; font-size: 1.32rem; font-weight: 520; }
.card p, .signal-grid p { max-width: 290px; margin: 0; color: var(--muted); font-size: .89rem; }

.surfaced { padding-top: 80px; }
.signal-grid { gap: 22px; }
.signal-grid article { min-height: 270px; padding: 29px; background: var(--surface); border-top: 1px solid #303332; }
.signal-grid svg { width: 100%; margin-bottom: 62px; overflow: visible; }
.signal-grid .guide { fill: none; stroke: #292c2a; stroke-width: 1; stroke-dasharray: 3 5; }
.signal-grid .trace { fill: none; stroke: #b3a074; stroke-width: 1.4; }
.signal-grid .trace.muted { stroke: #3d413f; }
.signal-grid circle { fill: var(--signal); }
.signal-grid .bars { fill: none; stroke: #9b8b65; stroke-width: 3; }
.signal-grid h3 { margin-bottom: 10px; font-size: 1rem; font-weight: 540; }
.selectivity-note { margin: 30px 0 0; color: #858783; font-size: .78rem; }
.selectivity-note span { display: inline-block; width: 5px; height: 5px; margin-right: 12px; border-radius: 50%; background: var(--signal); vertical-align: 2px; }

.replay-section { background: var(--surface); border-block: 1px solid var(--line); }
.replay-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; margin-bottom: 65px; }
.replay-intro h2 { margin: 0; }
.replay-intro > p { max-width: 420px; margin: 0 0 9px; color: var(--muted); }
.replay-panel { border: 1px solid #303332; background: #0a0c0c; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.replay-header { min-height: 100px; padding: 24px 29px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 65px; }
.replay-header > div { display: flex; flex-direction: column; }
.replay-header .data-label { margin: 0 0 6px; color: #646763; font-size: .58rem; }
.replay-header strong { font: 500 .82rem monospace; }
.state-pill { margin-left: auto; padding: 7px 11px; border: 1px solid #37362f; color: #b5a47d; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.state-pill span { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }
.replay-chart { height: 340px; margin: 0 29px; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.replay-chart > svg { position: absolute; inset: 54px 0 35px 45px; width: calc(100% - 45px); height: 250px; overflow: visible; }
.chart-grid { fill: none; stroke: #202321; stroke-width: 1; stroke-dasharray: 3 6; }
.chart-area { fill: url(#area); }
.chart-line { fill: none; stroke: #aa966a; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.alert-line { stroke: #6b604a; stroke-width: 1; stroke-dasharray: 4 5; }
.alert-point { fill: var(--signal-bright); filter: drop-shadow(0 0 7px rgba(214,168,92,.45)); }
.chart-y-labels { position: absolute; z-index: 2; inset: 82px auto 45px 0; display: flex; flex-direction: column; justify-content: space-between; color: #545754; font: .57rem monospace; }
.chart-label { position: absolute; color: #747773; font: .56rem monospace; letter-spacing: .04em; }
.candidate-label { left: 31%; top: 70px; }
.alert-label { left: 51%; top: 70px; color: #a49168; }
.pre-label { left: 68px; bottom: 44px; }
.outcomes { display: grid; grid-template-columns: repeat(6, 1fr) 1.2fr 1.2fr; }
.outcomes > div { min-height: 82px; padding: 19px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.outcomes > div:last-child { border-right: 0; }
.outcomes span { color: #60635f; font: .59rem monospace; text-transform: uppercase; }
.outcomes strong { margin-top: 9px; color: #b7b8b3; font: 500 .74rem monospace; }
.outcomes .outcome-summary { background: #101211; }
.outcomes .outcome-summary strong { color: var(--signal-bright); }

.philosophy { position: relative; text-align: center; }
.philosophy-line { width: 1px; height: 105px; margin: -145px auto 55px; background: var(--line); position: relative; }
.philosophy-line span { position: absolute; bottom: 22px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.philosophy .section-index { margin-bottom: 39px; }
.philosophy h2 span { color: #777a76; }
.philosophy > p { max-width: 630px; margin: 0 auto 70px; color: var(--muted); font-size: 1.04rem; }
.precision-mark { max-width: 530px; margin: auto; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 22px; color: #888a86; font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; }
.precision-mark i { height: 1px; background: var(--line); }
.precision-mark b { color: var(--signal); font: 400 1rem serif; }

.final-cta { min-height: 500px; padding-block: 105px 120px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-mark { width: 120px; margin-bottom: 43px; overflow: visible; }
.final-mark path { fill: none; stroke: #444744; stroke-width: 1; }
.final-mark circle { fill: var(--signal); }
.final-cta h2 { margin-bottom: 43px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-shell { min-height: 160px; display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 40px; }
.footer-shell > p { margin: 0; color: #676a66; font-size: .72rem; }
.footer-links { display: flex; gap: 28px; color: #91938f; font-size: .72rem; }
.footer-shell .copyright { grid-column: 1 / -1; margin-top: -52px; text-align: right; font-size: .62rem; }

@media (max-width: 850px) {
  :root { --shell: min(100% - 36px, 680px); }
  .site-header { position: absolute; }
  .nav-shell { height: 72px; }
  .nav-links { display: none; }
  .nav-shell .button { margin-left: auto; }
  .hero { min-height: 850px; padding-top: 145px; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; gap: 65px; }
  .hero-body { font-size: 1rem; }
  .observation { width: 88%; margin-left: auto; }
  .principles { grid-template-columns: 1fr; }
  .principles p, .principles p:nth-child(2), .principles p:last-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .principles p:last-child { border-bottom: 0; }
  .coverage-note { padding-bottom: 24px; }
  .section { padding-block: 105px; }
  .problem, .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading { margin-bottom: 44px; }
  .card-grid, .signal-grid { grid-template-columns: 1fr; }
  .card { min-height: 210px; border-right: 1px solid var(--line); border-bottom: 0; }
  .card:last-child { border-bottom: 1px solid var(--line); }
  .signal-grid article { min-height: 235px; }
  .signal-grid svg { margin-bottom: 40px; }
  .replay-intro { grid-template-columns: 1fr; gap: 12px; }
  .replay-header { gap: 25px; }
  .outcomes { grid-template-columns: repeat(4, 1fr); }
  .outcomes > div:nth-child(4) { border-right: 0; }
  .outcomes > div { border-top: 1px solid var(--line); }
  .footer-shell { grid-template-columns: 1fr auto; padding-block: 35px; }
  .footer-shell > p { grid-column: 1 / -1; }
  .footer-shell .copyright { grid-column: 1 / -1; margin-top: 0; text-align: left; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 28px); }
  .nav-shell { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; }
  .nav-shell .button { min-height: 36px; padding-inline: 11px; font-size: .68rem; }
  h1 { font-size: clamp(3.8rem, 19vw, 5.2rem); }
  h2 { font-size: 2.7rem; }
  .hero { min-height: 900px; padding-top: 138px; gap: 54px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button-quiet { min-height: 40px; }
  .observation { width: 100%; }
  .signal-label { margin-left: 50%; transform: none; }
  .section { padding-block: 83px; }
  .replay-section .shell { width: 100%; }
  .replay-intro { padding-inline: 14px; }
  .replay-header { padding: 19px 15px; display: grid; grid-template-columns: 1fr 1fr; }
  .state-pill { margin: 0; grid-column: 1 / -1; justify-self: start; }
  .replay-chart { height: 290px; margin-inline: 14px; }
  .replay-chart > svg { top: 38px; }
  .candidate-label { left: 22%; }
  .alert-label { left: 52%; }
  .pre-label { left: 46px; }
  .outcomes { grid-template-columns: repeat(2, 1fr); }
  .outcomes > div, .outcomes > div:nth-child(4) { border-right: 1px solid var(--line); }
  .outcomes > div:nth-child(even) { border-right: 0; }
  .philosophy-line { margin-top: -83px; }
  .precision-mark { gap: 9px; }
  .footer-shell { grid-template-columns: 1fr; gap: 23px; }
  .footer-links { flex-direction: column; gap: 8px; }
}
