:root {
  --ink: #102d35;
  --muted: #557077;
  --paper: #f7f4ec;
  --white: #fffefa;
  --navy: #073b4c;
  --blue: #126782;
  --teal: #0b6e69;
  --mint: #a8ddb5;
  --lime: #d8edb8;
  --yellow: #f6c453;
  --orange: #e8793e;
  --red: #c84a46;
  --line: rgba(16, 45, 53, .14);
  --shadow: 0 22px 60px rgba(7, 59, 76, .12);
  --radius: 26px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: -60px; left: 18px; padding: 10px 16px; background: var(--white); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  color: #e9f5ed;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled { height: 66px; background: rgba(6, 47, 60, .94); box-shadow: 0 10px 36px rgba(0, 0, 0, .15); backdrop-filter: blur(18px); }
.nav-shell { width: var(--shell); height: 100%; margin: auto; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: .08em; }
.brand-mark { width: 30px; height: 28px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 2px; }
.brand-mark i { display: block; border-radius: 2px 2px 0 0; }
.brand-mark i:nth-child(1) { height: 8px; background: #edf8b1; }
.brand-mark i:nth-child(2) { height: 13px; background: #c7e9b4; }
.brand-mark i:nth-child(3) { height: 18px; background: #7fcdbb; }
.brand-mark i:nth-child(4) { height: 23px; background: #2c7fb8; }
.brand-mark i:nth-child(5) { height: 28px; background: #253494; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: .86rem; font-weight: 650; color: rgba(240, 249, 244, .78); }
.site-nav a { transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: white; }
.nav-paper { border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; padding: 9px 16px; font-size: .83rem; font-weight: 750; }
.nav-paper:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle { display: none; margin-left: auto; color: white; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: transparent; padding: 6px 11px; }

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: #f8fff9;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(135deg, #062f3b 0%, #074956 52%, #0b6e69 100%);
  background-size: 54px 54px, 54px 54px, auto;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(to bottom, transparent, rgba(4,35,43,.38)); pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; }
.hero-glow-a { width: 420px; height: 420px; right: -120px; top: 110px; background: radial-gradient(circle, rgba(153,216,201,.42), transparent 67%); }
.hero-glow-b { width: 330px; height: 330px; left: 27%; bottom: -160px; background: radial-gradient(circle, rgba(246,196,83,.2), transparent 70%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 65px; min-height: 685px; padding-top: 100px; }
.hero-copy { min-width: 0; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { color: #b9e3cf; }
.eyebrow span { display: inline-block; width: 28px; height: 2px; margin: 0 9px 3px 0; background: var(--yellow); }
.hero h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.8rem, 5.8vw, 5.7rem); font-weight: 400; letter-spacing: -.055em; line-height: .93; }
.hero h1 em { color: #cdebbd; font-weight: 400; }
.hero h1 span { display: block; max-width: 660px; margin-top: 25px; padding-left: 17px; border-left: 2px solid var(--yellow); color: rgba(247,253,249,.88); font-size: clamp(1.25rem, 1.75vw, 1.72rem); letter-spacing: -.022em; line-height: 1.24; }
.hero-deck { max-width: 650px; margin: 17px 0 0; color: rgba(241,251,246,.68); font-size: 1rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 780; font-size: .9rem; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--yellow); box-shadow: 0 12px 28px rgba(246,196,83,.18); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(246,196,83,.27); }
.button-secondary { color: white; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.06); }
.authors { max-width: 100%; margin: 28px 0 0; color: rgba(241,251,246,.53); font-size: .75rem; line-height: 1.7; }

.hero-visual { position: relative; min-height: 455px; perspective: 900px; }
.map-card { position: absolute; width: 420px; right: 0; top: 28px; padding: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.27); backdrop-filter: blur(16px); transition: transform .55s cubic-bezier(.2,.75,.25,1), opacity .4s, filter .4s; }
.map-card-front { z-index: 2; background: rgba(251,255,249,.96); color: var(--ink); transform: rotate(1.7deg); }
.map-card-back { z-index: 1; color: #eaf6ef; background: rgba(22,84,95,.94); opacity: .68; filter: saturate(.78); transform: translate(-78px, -27px) rotate(-7deg) scale(.82); }
.hero-visual.switched .map-card-front { z-index: 1; opacity: .62; filter: saturate(.76); transform: translate(-78px, -27px) rotate(7deg) scale(.82); }
.hero-visual.switched .map-card-back { z-index: 2; opacity: 1; filter: none; transform: rotate(-1.4deg); }
.map-caption { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.map-caption b { color: var(--teal); }
.map-card-back .map-caption { color: rgba(235,248,240,.65); }
.map-card-back .map-caption b { color: #dff0a8; }
.map-mini { position: relative; height: 285px; overflow: hidden; border-radius: 18px; background-color: #e6efe5; clip-path: polygon(10% 10%, 35% 1%, 51% 8%, 67% 3%, 88% 13%, 98% 36%, 91% 55%, 96% 77%, 77% 94%, 54% 98%, 38% 91%, 18% 96%, 3% 74%, 7% 54%, 0 34%); }
.map-mini::before { content: ""; position: absolute; inset: 0; background:
    linear-gradient(27deg, transparent 46%, rgba(255,255,255,.8) 47% 48%, transparent 49%),
    linear-gradient(102deg, transparent 47%, rgba(255,255,255,.72) 48% 49%, transparent 50%),
    linear-gradient(160deg, transparent 48%, rgba(255,255,255,.65) 49% 50%, transparent 51%);
  background-size: 74px 63px, 92px 71px, 86px 58px; }
.map-sequential { background: linear-gradient(154deg, #edf8b1 2%, #c7e9b4 26%, #7fcdbb 50%, #2c7fb8 72%, #253494 98%); }
.map-random { background: conic-gradient(from 180deg at 45% 52%, #2c7fb8, #edf8b1, #253494, #7fcdbb, #c7e9b4, #225ea8, #edf8b1); opacity: .92; }
.legend-scale { display: grid; grid-template-columns: auto repeat(5, 1fr) auto; gap: 2px; align-items: center; margin-top: 13px; font-size: .62rem; color: var(--muted); }
.legend-scale i { height: 9px; }
.legend-scale i:nth-of-type(1) { background: #edf8b1; }.legend-scale i:nth-of-type(2) { background: #c7e9b4; }.legend-scale i:nth-of-type(3) { background: #7fcdbb; }.legend-scale i:nth-of-type(4) { background: #2c7fb8; }.legend-scale i:nth-of-type(5) { background: #253494; }
.legend-random { color: rgba(235,248,240,.64); }
.legend-random i:nth-of-type(1) { background: #2c7fb8; }.legend-random i:nth-of-type(2) { background: #edf8b1; }.legend-random i:nth-of-type(3) { background: #253494; }.legend-random i:nth-of-type(4) { background: #7fcdbb; }.legend-random i:nth-of-type(5) { background: #c7e9b4; }
.signal-card { position: absolute; z-index: 4; right: -18px; bottom: 18px; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; min-width: 194px; padding: 15px 18px; color: var(--ink); background: var(--yellow); border-radius: 16px; box-shadow: 0 18px 35px rgba(0,0,0,.2); transform: rotate(-2deg); }
.signal-card .pulse { grid-row: span 2; width: 11px; height: 11px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 7px rgba(11,110,105,.15); }
.signal-card strong { font-size: 1.5rem; line-height: 1; }
.signal-card small { margin-top: 3px; font-size: .62rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; }
.visual-toggle { position: absolute; z-index: 5; left: 8px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: #eff9f3; background: rgba(4,43,54,.86); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,.16); cursor: pointer; font-size: .68rem; font-weight: 780; letter-spacing: .03em; backdrop-filter: blur(12px); transition: background .2s, transform .2s; }
.visual-toggle:hover { background: rgba(11,110,105,.95); transform: translateY(-2px); }
.visual-toggle b { color: var(--yellow); font-size: 1rem; }
.metric-strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.metric-strip > div { display: flex; flex-direction: column; gap: 2px; padding: 27px 30px; border-right: 1px solid rgba(255,255,255,.16); }
.metric-strip > div:first-child { padding-left: 0; }
.metric-strip > div:last-child { border-right: 0; }
.metric-strip strong { font-family: Georgia, serif; color: #fff; font-size: 2rem; font-weight: 500; line-height: 1; }
.metric-strip span { color: rgba(240,251,245,.6); font-size: .71rem; text-transform: uppercase; letter-spacing: .11em; }

.section { padding: 112px 0; }
.section-heading { max-width: 850px; margin-bottom: 54px; }
.section-heading h2, .benchmark-copy h2, .ablation-intro h2, .adaptation-copy h2, .citation h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 4.7rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
.section-heading > p:last-child { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; }
.overview { background: var(--white); }
.hypothesis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hypothesis-card { position: relative; display: flex; flex-direction: column; min-height: 370px; overflow: hidden; padding: 30px; background: #f4f5ec; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.hypothesis-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-index { position: absolute; right: 24px; top: 20px; color: rgba(16,45,53,.18); font-family: Georgia, serif; font-size: 2.4rem; }
.hypothesis-card h3 { margin: 30px 0 9px; font-family: Georgia, serif; font-size: 1.62rem; font-weight: 500; }
.hypothesis-card p { margin: 0; color: var(--muted); }
.finding-tag { display: block; margin-top: auto; padding-top: 25px; color: var(--teal); font-size: .69rem; font-weight: 800; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; }
.palette { display: flex; width: 72%; margin-top: 22px; overflow: hidden; border-radius: 5px; }
.palette i { flex: 1; height: 28px; }
.palette-hue i:nth-child(1) { background:#fff7bc }.palette-hue i:nth-child(2) { background:#fec44f }.palette-hue i:nth-child(3) { background:#d95f0e }.palette-hue i:nth-child(4) { background:#c7e9b4 }.palette-hue i:nth-child(5) { background:#41b6c4 }.palette-hue i:nth-child(6) { background:#225ea8 }
.palette-order i:nth-child(1) { background:#edf8b1 }.palette-order i:nth-child(2) { background:#c7e9b4 }.palette-order i:nth-child(3) { background:#7fcdbb }.palette-order i:nth-child(4) { background:#41b6c4 }.palette-order i:nth-child(5) { background:#2c7fb8 }.palette-order i:nth-child(6) { background:#253494 }
.contrast-lines { display: grid; gap: 8px; width: 72%; margin-top: 18px; }
.contrast-lines span { height: 9px; border-radius: 5px; }
.contrast-lines span:nth-child(1) { background: linear-gradient(90deg, #e5f5e0, #a1d76a, #006d2c); }
.contrast-lines span:nth-child(2) { background: linear-gradient(90deg, #f7fcf5, #74c476, #00441b); }
.contrast-lines span:nth-child(3) { background: linear-gradient(90deg, #c7e9c0, #74c476, #238b45); }
.framework-figure { margin: 52px 0 0; padding: 12px; background: #eef1e7; border: 1px solid var(--line); border-radius: 24px; }
.framework-figure img { width: 100%; border-radius: 15px; }
.framework-figure figcaption { padding: 13px 10px 5px; color: var(--muted); font-size: .75rem; }

.benchmark { background: #edf2e9; }
.benchmark-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 84px; align-items: start; }
.benchmark-copy { position: sticky; top: 115px; }
.benchmark-copy > p:not(.kicker) { color: var(--muted); font-size: 1.04rem; }
.country-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.country-list span { padding: 7px 11px; border: 1px solid rgba(11,110,105,.22); border-radius: 999px; color: var(--teal); font-size: .7rem; font-weight: 750; }
.dimension-list { border-top: 1px solid var(--line); }
.dimension { display: grid; grid-template-columns: 45px 1fr auto; gap: 20px; align-items: start; min-height: 134px; padding: 25px 4px; border-bottom: 1px solid var(--line); }
.dimension-number { color: var(--teal); font-size: .7rem; font-weight: 800; }
.dimension h3 { margin: -4px 0 4px; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.dimension p { margin: 0; color: var(--muted); font-size: .88rem; }
.dimension > b { color: rgba(16,45,53,.18); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 400; }
.map-gallery { margin-top: 80px; padding: 12px; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.map-gallery img { width: 100%; border-radius: 14px; }
.gallery-label { display: flex; flex-wrap: wrap; gap: 8px; padding: 7px 4px 15px; }
.gallery-label span { padding: 5px 9px; color: var(--muted); background: var(--paper); border-radius: 7px; font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; }

.results { color: #e9f3ed; background: var(--navy); }
.section-heading-light .kicker { color: var(--mint); }
.section-heading-light > p:last-child { color: rgba(233,243,237,.62); }
.result-grid { display: grid; grid-template-columns: 1.18fr .91fr .91fr; gap: 16px; }
.result-card { min-height: 360px; padding: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.result-primary { background: #e9f2d5; color: var(--ink); }
.result-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; color: rgba(233,243,237,.56); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-primary .result-top { color: var(--teal); }
.result-top strong { color: var(--yellow); font-family: Georgia, serif; font-size: 2.4rem; font-weight: 500; letter-spacing: -.03em; line-height: .85; }
.result-primary .result-top strong { color: var(--orange); }
.result-top small { font-family: Inter, sans-serif; font-size: .7rem; }
.result-card h3 { margin: 42px 0 12px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.14; }
.result-card p { color: rgba(233,243,237,.66); font-size: .9rem; }
.result-primary p { color: var(--muted); }
.comparison-bars { margin-top: 30px; }
.comparison-bars div { display: grid; grid-template-columns: 85px 1fr 40px; gap: 10px; align-items: center; margin-top: 10px; font-size: .7rem; }
.comparison-bars i { position: relative; height: 8px; overflow: hidden; background: rgba(7,59,76,.1); border-radius: 10px; }
.comparison-bars i::before { content: ""; display: block; width: var(--value); height: 100%; background: var(--teal); border-radius: inherit; }
.comparison-bars div:nth-child(2) i::before { background: var(--orange); }
.range-track { position: relative; height: 9px; margin-top: 55px; background: rgba(255,255,255,.1); border-radius: 9px; }
.range-track i { position: absolute; left: 20%; right: 16%; height: 100%; background: linear-gradient(90deg, var(--mint), var(--yellow)); border-radius: inherit; }
.range-track span { position: absolute; top: 15px; font-size: .7rem; color: rgba(255,255,255,.7); }
.range-low { left: 17%; }.range-high { right: 12%; }
.contrast-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 30px; }
.contrast-stat span { padding: 11px 5px; text-align: center; background: rgba(168,221,181,.09); color: rgba(255,255,255,.6); font-size: .58rem; text-transform: uppercase; }
.contrast-stat b { display: block; color: var(--mint); font-family: Georgia, serif; font-size: 1.4rem; }
.contrast-stat .low b { color: #f2a068; }
.main-table-wrap { margin-top: 52px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.table-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 35px; align-items: end; padding: 29px 30px 24px; border-bottom: 1px solid rgba(255,255,255,.11); }
.table-heading .mini-kicker { margin-bottom: 7px; }
.table-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.table-heading > p { margin: 0; color: rgba(233,243,237,.56); font-size: .77rem; }
.table-scroll { overflow-x: auto; scrollbar-color: rgba(168,221,181,.45) rgba(255,255,255,.05); }
.main-results-table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .77rem; }
.main-results-table th, .main-results-table td { padding: 10px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.main-results-table th:first-child, .main-results-table td:first-child { position: sticky; left: 0; z-index: 1; width: 28%; text-align: left; background: #0d4859; }
.main-results-table thead th { color: #dff2e7; background: rgba(168,221,181,.09); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.main-results-table thead tr:first-child th:nth-child(2) { background: rgba(246,196,83,.12); }
.main-results-table thead tr:first-child th:nth-child(3) { background: rgba(127,205,187,.13); }
.main-results-table tbody td { color: rgba(238,247,242,.77); }
.main-results-table tbody tr:hover td { background-color: rgba(255,255,255,.055); }
.main-results-table tbody tr:hover td:first-child { background-color: #145263; }
.main-results-table .model-divider td { border-top: 2px solid rgba(246,196,83,.38); }
.main-results-table tfoot td { color: var(--navy); background: var(--yellow); border-color: rgba(7,59,76,.12); font-weight: 900; }
.main-results-table tfoot td:first-child { z-index: 2; background: var(--yellow); }
.table-note { margin: 0; padding: 15px 30px 18px; color: rgba(233,243,237,.5); font-size: .69rem; }
.evidence-stack { display: grid; gap: 18px; margin-top: 65px; }
.evidence-card { display: grid; grid-template-columns: .6fr 1.4fr; gap: 36px; align-items: center; padding: 20px; border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.evidence-reverse { grid-template-columns: 1.4fr .6fr; }
.evidence-reverse .evidence-copy { order: 2; }
.evidence-copy { padding: 20px; }
.mini-kicker { margin: 0 0 12px; color: var(--mint); font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.evidence-copy h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.12; }
.evidence-copy > p:last-child { color: rgba(233,243,237,.58); font-size: .88rem; }
.image-button { display: block; width: 100%; overflow: hidden; padding: 0; border: 0; border-radius: 17px; background: white; cursor: zoom-in; }
.image-button img { width: 100%; transition: transform .35s; }
.image-button:hover img { transform: scale(1.015); }

.design-principles { background: var(--white); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { min-height: 310px; padding: 28px; border-top: 4px solid var(--teal); background: var(--paper); }
.principle:nth-child(2) { border-top-color: var(--blue); }
.principle:nth-child(3) { border-top-color: var(--yellow); }
.principle > span { color: rgba(16,45,53,.2); font-family: Georgia, serif; font-size: 2.4rem; }
.principle h3 { margin: 65px 0 12px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.principle p { margin: 0; color: var(--muted); font-size: .88rem; }

.ablation { background: #e7efdf; }
.ablation-intro { max-width: 840px; }
.ablation-intro > p:last-child { max-width: 730px; color: var(--muted); }
.factorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 790px; margin: 58px auto; padding: 10px; gap: 10px; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 28px; }
.factorial-cell { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 145px; padding: 24px; background: rgba(255,255,255,.75); border-radius: 19px; }
.factorial-cell > span { align-self: end; color: var(--teal); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.factorial-cell strong { grid-row: span 2; font-family: Georgia, serif; font-size: 2.8rem; font-weight: 500; }
.factorial-cell small { align-self: start; color: var(--muted); }
.factorial-best { color: white; background: var(--teal); }
.factorial-best > span, .factorial-best small { color: rgba(255,255,255,.75); }
.ablation-evidence { display: grid; grid-template-columns: 1.35fr .65fr; gap: 45px; align-items: center; padding-top: 22px; }
.ablation-evidence h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.13; }
.ablation-evidence .mini-kicker { color: var(--teal); }
.ablation-evidence ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.ablation-evidence li { margin: 10px 0; }

.adaptation { color: white; background: #102d35; }
.adaptation-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: center; }
.adaptation-copy .kicker { color: var(--mint); }
.adaptation-copy p:not(.kicker) { color: rgba(255,255,255,.61); }
.adaptation-stat { display: flex; align-items: center; gap: 17px; margin-top: 34px; }
.adaptation-stat strong { color: var(--yellow); font-family: Georgia, serif; font-size: 2.8rem; font-weight: 500; }
.adaptation-stat span { padding-left: 17px; border-left: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.58); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.image-on-dark { padding: 8px; background: rgba(255,255,255,.07); }
.image-on-dark img { border-radius: 11px; }

.resources { background: var(--paper); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-card { display: grid; grid-template-columns: 55px 1fr auto; gap: 16px; align-items: center; min-height: 145px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; transition: transform .2s, box-shadow .2s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.resource-icon { display: grid; place-items: center; width: 50px; height: 50px; color: white; background: var(--teal); border-radius: 13px; font-size: .7rem; font-weight: 850; }
.resource-card:nth-child(2) .resource-icon { background: var(--navy); }
.resource-card:nth-child(3) .resource-icon { color: var(--ink); background: var(--yellow); }
.resource-card h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.24rem; font-weight: 500; }
.resource-card p { margin: 0; color: var(--muted); font-size: .75rem; }
.resource-card > b { color: var(--teal); }
.citation { display: grid; grid-template-columns: .4fr 1.6fr; gap: 50px; align-items: start; margin-top: 80px; padding-top: 62px; border-top: 1px solid var(--line); }
.citation h2 { font-size: 2.5rem; }
.code-wrap { position: relative; overflow: hidden; color: #dff1e8; background: var(--navy); border-radius: 20px; }
.code-wrap pre { margin: 0; padding: 28px 130px 28px 28px; overflow-x: auto; font: .75rem/1.75 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
.copy-button { position: absolute; right: 15px; top: 15px; padding: 8px 12px; color: #e8f5ee; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.17); border-radius: 9px; cursor: pointer; font-size: .7rem; }
.copy-button:hover { background: rgba(255,255,255,.14); }

footer { padding: 35px 0; color: rgba(255,255,255,.55); background: #062a35; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: .72rem; }
.brand-footer { color: white; }
.brand-footer .brand-mark { transform: scale(.8); transform-origin: left center; }

.lightbox { width: min(94vw, 1400px); max-width: none; padding: 40px 12px 12px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(3,24,30,.86); backdrop-filter: blur(6px); }
.lightbox button { position: absolute; right: 10px; top: 5px; width: 32px; height: 32px; color: var(--ink); background: transparent; border: 0; cursor: pointer; font-size: 1.6rem; }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal[data-delay="1"] { transition-delay: .1s; }.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav { position: fixed; top: 66px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 13px; color: white; background: #0a4352; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 10px; }
  .nav-toggle { display: block; }
  .nav-paper { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 140px; }
  .hero-visual { width: min(520px, 100%); min-height: 480px; margin: auto; }
  .metric-strip { margin-top: 20px; }
  .benchmark-layout, .adaptation-grid { grid-template-columns: 1fr; }
  .benchmark-copy { position: static; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-primary { grid-column: 1 / -1; }
  .table-heading { grid-template-columns: 1fr; gap: 8px; }
  .ablation-evidence { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .section { padding: 82px 0; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .hero-grid { padding-top: 115px; }
  .hero-visual { min-height: 400px; transform: scale(.86); transform-origin: center top; margin-bottom: -55px; }
  .map-card-front { width: 390px; right: 50%; transform: translateX(50%) rotate(1.7deg); }
  .map-card-back { left: 0; right: auto; }
  .signal-card { right: 0; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip > div { padding: 20px 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .metric-strip > div:first-child { padding-left: 12px; }
  .hypothesis-grid, .principle-grid, .result-grid { grid-template-columns: 1fr; }
  .result-primary { grid-column: auto; }
  .table-heading { padding: 22px; }
  .table-note { padding-inline: 22px; }
  .evidence-card, .evidence-reverse { grid-template-columns: 1fr; }
  .evidence-reverse .evidence-copy { order: 0; }
  .framework-figure { margin-inline: -6px; padding: 5px; border-radius: 15px; }
  .dimension { grid-template-columns: 35px 1fr; }
  .dimension > b { display: none; }
  .factorial-grid { grid-template-columns: 1fr; }
  .factorial-cell { min-height: 120px; }
  .citation { grid-template-columns: 1fr; }
  .code-wrap pre { padding: 72px 20px 24px; font-size: .67rem; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .hero-visual { transform: scale(.73); width: 120%; margin-left: -10%; margin-bottom: -110px; }
  .map-card-front { width: 380px; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
