:root {
  --ink: #1b242c;
  --navy: #1b2b3a;
  --blue: #355d7a;
  --risk: #a23b3b;
  --risk-wash: #f8eded;
  --muted: #65717b;
  --line: #d8dfe4;
  --wash: #f4f6f7;
  --paper: #ffffff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  min-height: 72px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 800;
}
nav { display: flex; gap: 25px; }
nav a, .header-link { color: #47545e; font-size: .88rem; font-weight: 700; text-decoration: none; }
nav a:hover, .header-link:hover { color: var(--blue); }
.header-link { justify-self: end; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 105px 28px 72px;
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 60px;
  align-items: end;
}
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 {
  grid-column: 2;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}
.hero p { grid-column: 2; max-width: 790px; margin: 12px 0 0; color: #53606a; font-size: 1.15rem; }

.snapshot { max-width: var(--max); margin: 0 auto; padding: 0 28px 64px; display: grid; grid-template-columns: repeat(4, 1fr); }
.snapshot div { padding: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.snapshot div + div { border-left: 1px solid var(--line); }
.snapshot span, .headline-result span { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.snapshot strong { display: block; margin-top: 6px; color: var(--navy); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }

.section { max-width: var(--max); margin: 0 auto; padding: 88px 28px; border-top: 1px solid var(--line); }
.section.shaded { max-width: none; padding-left: max(28px, calc((100vw - var(--max)) / 2 + 28px)); padding-right: max(28px, calc((100vw - var(--max)) / 2 + 28px)); background: var(--wash); }
.section-heading { max-width: 800px; margin-bottom: 46px; }
.section-heading.compact { margin-bottom: 0; }
.section-heading h2, .closing h2 {
  margin: 10px 0 18px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.4vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.section-heading p, .closing p { color: #4f5d67; font-size: 1.04rem; }
.opening { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: end; }
.opening .section-heading { margin-bottom: 0; }
.headline-result { border-top: 2px solid var(--navy); }
.headline-result div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: end; }
.headline-result strong { grid-row: 1 / 3; grid-column: 2; color: var(--navy); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 500; }
.headline-result small { color: var(--muted); }
.headline-result .stress strong { color: var(--risk); }

.mandate-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); border-left: 1px solid var(--line); }
.mandate-grid article { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.mandate-grid span { color: var(--risk); font-family: Georgia, serif; font-size: 1.15rem; }
.mandate-grid h3, .lessons h3 { margin: 9px 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 1.32rem; font-weight: 500; line-height: 1.2; }
.mandate-grid p, .lessons p { margin: 0; color: var(--muted); font-size: .92rem; }

.exhibit { margin: 0; }
.exhibit.wide { max-width: 1080px; margin: 50px auto 0; padding: 12px; border: 1px solid var(--line); }
.exhibit img { width: 100%; height: auto; }
.exhibit figcaption { padding-top: 12px; color: var(--muted); font-size: .86rem; }
.subsection { margin-top: 90px; padding-top: 70px; border-top: 1px solid var(--line); }
.model-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 76px; }
.parameter-table { border-top: 2px solid var(--navy); }
.matrix-title { padding: 16px 0 10px; color: var(--navy); font-weight: 800; }
.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
.matrix th, .matrix td { padding: 10px 12px; border: 1px solid var(--line); text-align: right; }
.matrix th:first-child { text-align: left; }
.parameter-table dl { margin: 26px 0 0; }
.parameter-table dl div { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.parameter-table dt { color: var(--muted); }
.parameter-table dd { margin: 0; color: var(--navy); font-weight: 750; text-align: right; }
.chart-grid { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 54px 38px; }
.chart-grid .exhibit { padding-top: 18px; border-top: 1px solid var(--line); }

.technical { border-top: 3px solid var(--navy); }
.formula-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.formula-grid article { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formula-grid span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.formula-grid code { display: block; margin: 14px 0; padding: 16px; overflow-x: auto; background: var(--navy); color: white; font-family: "Cascadia Code", Consolas, monospace; font-size: .96rem; white-space: nowrap; }
.formula-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.diagnostics { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostics div { padding: 18px 20px; }
.diagnostics div + div { border-left: 1px solid var(--line); }
.diagnostics span { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.diagnostics strong { display: block; margin-top: 5px; color: var(--navy); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }

.mechanism { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }
.mechanism div { position: relative; padding: 28px 28px 30px 0; }
.mechanism div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.mechanism span { color: var(--risk); font-family: Georgia, serif; font-size: 1.25rem; }
.mechanism strong, .mechanism small { display: block; }
.mechanism strong { margin: 7px 0 5px; color: var(--navy); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.mechanism small { color: var(--muted); font-size: .88rem; }
.table-wrap { margin-top: 48px; overflow-x: auto; border-top: 2px solid var(--navy); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; }
td:nth-child(2), .stress-table th:not(:first-child), .stress-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.stress-table .combined { background: var(--risk-wash); }
.stress-table .combined td { color: #792c2c; font-weight: 800; }
.result-note { margin-top: 28px; padding: 23px 26px; border-left: 4px solid var(--risk); background: var(--wash); }
.result-note strong { color: var(--navy); }
.result-note p { margin: 3px 0 0; color: #4f5d67; }
.comparison-table table { min-width: 930px; }
.comparison-table td:nth-child(2) { text-align: left; white-space: normal; }
.comparison-table td:first-child { color: var(--navy); font-weight: 800; }
.validation { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.validation-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.validation-list article { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.validation-list h3 { margin: 0 0 8px; color: var(--navy); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.validation-list p { margin: 0; color: var(--muted); font-size: .9rem; }

.lessons { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); border-left: 1px solid var(--line); }
.lessons article { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.closing { max-width: var(--max); margin: 0 auto; padding: 90px 28px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; border-top: 1px solid var(--line); }
.closing h2 { margin-bottom: 0; }
.closing p { align-self: end; margin-bottom: 0; }
.closing a { color: var(--blue); font-weight: 800; }
footer { max-width: var(--max); margin: 0 auto; padding: 28px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 72px; }
  .hero h1, .hero p { grid-column: 1; }
  .snapshot { grid-template-columns: 1fr 1fr; }
  .opening, .model-layout, .closing, .validation { grid-template-columns: 1fr; gap: 38px; }
  .mandate-grid, .mechanism { grid-template-columns: 1fr 1fr; }
  .lessons { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 3.35rem; }
  .snapshot, .mandate-grid, .mechanism, .chart-grid, .lessons, .formula-grid, .diagnostics, .validation-list { grid-template-columns: 1fr; }
  .snapshot div + div, .mechanism div + div { border-left: 0; border-top: 0; }
  .mechanism div + div { padding-left: 0; }
  .diagnostics div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding-top: 64px; padding-bottom: 64px; }
  footer { flex-direction: column; }
}
