:root {
  --ink: #17212b;
  --muted: #5e6a73;
  --navy: #17324d;
  --blue: #2f6b8a;
  --red: #a6423d;
  --gold: #b9882f;
  --line: #d8e0e6;
  --soft: #f3f6f8;
  --white: #ffffff;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  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;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.nav-links a { font-size: .88rem; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--navy); }

main { overflow: hidden; }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 5rem;
  align-items: end;
}
.eyebrow {
  margin-bottom: .9rem;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--navy); line-height: 1.13; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 500; letter-spacing: -.045em; }
h2 { margin: .2rem 0 1.1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 500; letter-spacing: -.035em; }
h3 { margin: 0 0 .45rem; font-size: 1rem; }
.lede { max-width: 760px; margin: 1.5rem 0 0; font-size: 1.18rem; color: #384650; }
.hero-side { border-top: 4px solid var(--red); padding-top: 1rem; }
.hero-side p { margin: 0; color: var(--muted); }
.hero-side strong { display: block; margin: .25rem 0 .4rem; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }

.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.metric-grid { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 1.55rem 1.4rem 1.55rem 0; border-right: 1px solid var(--line); }
.metric + .metric { padding-left: 1.4rem; }
.metric:last-child { border-right: 0; }
.metric-value { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; }
.metric-label { display: block; color: var(--muted); font-size: .82rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 5.8rem 1.5rem; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; margin-bottom: 2.5rem; }
.section-intro p { margin: .2rem 0 0; color: var(--muted); font-size: 1.05rem; }
.finding {
  border-left: 5px solid var(--red);
  padding: 1.3rem 0 1.3rem 1.6rem;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--navy);
}
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.panel { border-top: 2px solid var(--navy); padding-top: 1.1rem; }
.panel p { color: var(--muted); }
.chart { margin: 2.2rem 0; border: 1px solid var(--line); background: #fff; padding: 1rem; }
.caption { margin: .7rem .2rem .2rem; color: var(--muted); font-size: .83rem; }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--navy); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .9rem .8rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--navy); font-size: .77rem; letter-spacing: .03em; text-transform: uppercase; }
tr.highlight { background: #edf3f6; font-weight: 700; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; border-top: 1px solid var(--line); }
.method-grid article { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.method-grid span { display: block; margin-bottom: .4rem; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.method-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

.quote-list { border-top: 1px solid var(--line); }
.quote-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.quote-row strong { color: var(--red); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.quote-row p { margin: 0; }

.application { background: var(--navy); color: #edf3f6; }
.application .section { border: 0; }
.application h2, .application h3 { color: #fff; }
.application .eyebrow { color: #e2b55c; }
.application p { color: #c9d4dc; }
.application .panel { border-color: #7d91a3; }
.application .finding { color: #fff; border-color: #e2b55c; }

.closing { max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem 5rem; display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.button { display: inline-block; padding: .8rem 1.1rem; border: 1px solid var(--navy); color: var(--navy); text-decoration: none; font-weight: 700; }
footer { border-top: 1px solid var(--line); padding: 1.2rem 1.5rem; color: var(--muted); font-size: .78rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 820px) {
  .hero, .section-intro, .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 4.5rem; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .method-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding-left: 0; border-right: 0; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .quote-row { grid-template-columns: 1fr; gap: .35rem; }
  .closing, .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* Editorial article layout */
.article-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 6.25rem 1.5rem 2.5rem;
}
.article-kicker {
  margin-bottom: 1.1rem;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.article-header h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7.2vw, 5.9rem);
}
.standfirst {
  max-width: 800px;
  margin: 1.6rem 0 1.35rem;
  color: #34434e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.62rem);
  line-height: 1.45;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.byline span:first-child { color: var(--ink); font-weight: 750; }

.article-copy {
  max-width: 720px;
  margin: 0 auto;
}
.article-copy p {
  margin: 0 0 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.78;
}
.article-copy h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
}
.opening { padding: 1.75rem 1.5rem 2rem; }
.opening p:first-child {
  font-size: 1.22rem;
  line-height: 1.7;
}

.key-result {
  max-width: 920px;
  margin: 1.5rem auto 0;
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
}
.key-result div { padding-right: 2rem; border-right: 1px solid var(--line); }
.key-result .number {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  line-height: 1;
}
.key-result .label {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.key-result p { margin: 0; font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.65; }

.article-section { padding: 5.25rem 1.5rem; }
.article-section + .article-section { border-top: 1px solid var(--line); }
.article-figure {
  max-width: 760px;
  margin: 2.6rem auto 0;
}
.article-figure.wide,
.table-wrap.wide {
  width: calc(100% - 3rem);
  max-width: 1080px;
  margin: 2.75rem auto 0;
}
.article-figure img { width: 100%; }
figcaption {
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}
.table-wrap { border-top: 3px solid var(--navy); }
table { font-variant-numeric: tabular-nums; }
th, td { padding: .82rem .72rem; }
tr.highlight { background: #f0f3f5; }

.case-list { margin: 2rem 0 2.25rem; border-top: 2px solid var(--navy); }
.case { padding: 1.25rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.case span {
  display: block;
  margin-bottom: .45rem;
  color: var(--red);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.case p { margin: 0; font-size: 1rem; }

.context-section { background: #f5f3ee; }
.pullquote {
  max-width: 830px;
  margin: 3.5rem auto 0;
  padding: 1.6rem 0 0;
  border-top: 5px solid var(--gold);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.6vw, 2.65rem);
  line-height: 1.35;
}
.limits { background: var(--navy); color: #eef2f5; }
.limits h2 { color: #fff; }
.limits .article-copy p { color: #d6dfe5; }

.methods { padding: 4.75rem 1.5rem; background: var(--soft); }
.methods-inner { max-width: 1080px; margin: 0 auto; }
.methods-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  padding-bottom: 1.4rem;
  border-bottom: 3px solid var(--navy);
}
.methods-heading span {
  color: var(--red);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.methods-heading h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.25rem); }
.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
}
.methods-grid > div { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.methods-grid h3 { font-size: .95rem; }
.methods-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.62; }
.methods .article-figure { margin-top: 3rem; }

.article-end {
  max-width: 760px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
}
.article-end p { margin: 0 0 1.25rem; font-family: Georgia, serif; font-size: 1.12rem; }

@media (max-width: 820px) {
  .article-header { padding-top: 4.5rem; }
  .key-result { width: calc(100% - 3rem); grid-template-columns: 1fr; gap: 1rem; }
  .key-result div { padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .methods-heading { grid-template-columns: 1fr; gap: .5rem; }
  .methods-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .article-header { padding-bottom: 1.5rem; }
  .article-section { padding-top: 4rem; padding-bottom: 4rem; }
  .article-figure.wide, .table-wrap.wide { width: 100%; }
  .article-figure.wide figcaption { padding-left: .2rem; padding-right: .2rem; }
  .table-wrap.wide { width: calc(100% + 3rem); margin-left: -1.5rem; padding: 0 1rem; }
}
