:root {
  --ink: #101828;
  --ink-soft: #26354b;
  --paper: #f5f7f4;
  --paper-deep: #e7efed;
  --slate: #e2eceb;
  --blue-paper: #d7e6ec;
  --line: #c8d4d4;
  --line-dark: #42566d;
  --muted: #5b6877;
  --women: #c84d78;
  --women-deep: #92375e;
  --men: #2d70a6;
  --men-deep: #19527e;
  --yellow: #e8bb3f;
  --teal: #1c8a83;
  --orange: #e36f4f;
  --display: 'DM Serif Display', Georgia, serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(1.15rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body, button, input { font-synthesis: none; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
ul { margin: 0; padding: 0; }

.skip-link { position: fixed; z-index: 20; top: .65rem; left: .75rem; padding: .6rem .9rem; background: var(--yellow); color: var(--ink); transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.site-header { position: sticky; z-index: 10; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 4.5rem; padding: .75rem var(--gutter); background: rgba(16, 24, 40, .96); color: #f5f7f4; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.site-mark { font-family: var(--mono); font-size: .73rem; font-weight: 500; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 2.4vw, 2rem); font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.site-nav a { text-decoration: none; opacity: .78; }
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.site-nav .language-link { color: var(--yellow); opacity: 1; }

.hero { position: relative; overflow: hidden; min-height: 0; padding: clamp(3rem, 5.5vw, 5.5rem) var(--gutter) 1rem; background: var(--ink); color: #f6f7f2; }
.hero::before { position: absolute; inset: 0; pointer-events: none; content: ''; opacity: .44; background-image: linear-gradient(rgba(231, 239, 237, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 239, 237, .045) 1px, transparent 1px); background-size: 4rem 4rem; mask-image: linear-gradient(90deg, #000 0%, transparent 88%); }
.hero-grid, .section-grid { position: relative; display: grid; grid-template-columns: minmax(260px, .78fr) minmax(480px, 1.22fr); gap: clamp(3rem, 8vw, 9rem); width: min(100%, var(--max)); min-width: 0; margin: 0 auto; }
.hero-grid { align-items: start; min-height: 0; }
.hero-copy { position: relative; z-index: 1; max-width: 610px; }
.eyebrow, .instrument-kicker, .visual-stamp, .visual-code, .source-type, .answer-card-label, .section-index { font-family: var(--mono); font-size: .69rem; font-weight: 500; letter-spacing: .095em; text-transform: uppercase; }
.eyebrow { color: var(--yellow); }
.hero h1 { max-width: 650px; margin-top: 1.2rem; font-size: clamp(3.5rem, 6vw, 6rem); }
.hero-standfirst { max-width: 600px; margin-top: 2rem; color: #cdd9dd; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; }
.hero-instruction, .section-jump { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.5rem; color: #f6f7f2; font-family: var(--mono); font-size: .75rem; letter-spacing: .03em; text-decoration: none; }
.hero-instruction { border-bottom: 1px solid rgba(232, 187, 63, .55); padding-bottom: .55rem; }
.instruction-mark { color: var(--yellow); font-size: 1.3rem; line-height: 1; }
.hero-visual-wrap { position: relative; z-index: 1; }
.hero-data-visual { position: relative; overflow: hidden; padding: clamp(1.2rem, 3vw, 2rem); background: var(--paper); color: var(--ink); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 18px 18px 0 rgba(232, 187, 63, .85); }
.hero-data-visual::after { position: absolute; right: -3rem; bottom: -4rem; width: 14rem; height: 14rem; content: ''; border: 1px solid rgba(28, 138, 131, .25); border-radius: 50%; box-shadow: 0 0 0 1.3rem rgba(28, 138, 131, .05), 0 0 0 2.6rem rgba(28, 138, 131, .04); }
.hero-visual-top, .hero-visual-bottom { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .075em; text-transform: uppercase; }
.hero-visual-top { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.visual-stamp { color: var(--teal); }
.visual-code { color: var(--muted); }
.hero-total { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 2rem 0 1.8rem; }
.hero-total div { display: grid; gap: .2rem; }
.hero-total strong { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .9; }
.hero-total span { color: var(--muted); font-family: var(--mono); font-size: .67rem; text-transform: uppercase; }
.hero-total-rule { display: flex !important; align-items: stretch; min-width: 120px; height: 1rem; gap: 3px; }
.hero-total-rule span { display: block; min-width: 0; height: 100%; }
.hero-total-women { width: 58%; background: var(--women); }
.hero-total-men { width: 42%; background: var(--men); }
.hero-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.hero-field { min-height: 7.6rem; padding: .95rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .52); }
.hero-field-education { border-top: 5px solid var(--orange); }
.hero-field-health { border-top: 5px solid var(--teal); }
.hero-field-ict { border-top: 5px solid var(--men); }
.hero-field-engineering { border-top: 5px solid var(--yellow); }
.hero-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.hero-field-head span { font-weight: 700; font-size: .78rem; }
.hero-field-head strong { font-family: var(--mono); font-size: .82rem; }
.mini-track { height: .55rem; margin-top: 1.1rem; background: #dce3e2; }
.mini-track span { display: block; width: 50%; height: 100%; background: var(--women); }
.hero-field-education .mini-track span { width: 80.1%; }
.hero-field-health .mini-track span { width: 75.6%; }
.hero-field-ict .mini-track span { width: 22.1%; background: var(--men); }
.hero-field-engineering .mini-track span { width: 28.3%; background: var(--men); }
.hero-field small { display: block; margin-top: .7rem; color: var(--muted); font-family: var(--mono); font-size: .61rem; }
.hero-visual-bottom { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.hero-note { display: none; }
.hero-footer { position: relative; display: flex; justify-content: space-between; width: min(100%, var(--max)); margin: 3rem auto 0; padding-top: 1rem; color: #8da2aa; border-top: 1px solid rgba(255, 255, 255, .2); font-family: var(--mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }

.section { scroll-margin-top: 5.5rem; padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); }
.scene-slate { background: var(--slate); }
.scene-cobalt { background: #163b62; color: #f4f6f2; }
.scene-paper { background: var(--paper); }
.section-grid { grid-template-columns: 4.5rem minmax(220px, .72fr) minmax(520px, 1.38fr); align-items: start; gap: clamp(1.25rem, 4vw, 4rem); }
.section-index { padding-top: .25rem; color: var(--teal); line-height: 1.45; }
.scene-cobalt .section-index, .scene-cobalt .eyebrow { color: var(--yellow); }
.section-intro { max-width: 470px; }
.section-intro h2 { margin-top: 1rem; font-size: clamp(2.4rem, 4.8vw, 4.5rem); }
.section-intro > p:not(.eyebrow) { margin-top: 1.35rem; color: var(--muted); font-size: 1rem; }
.scene-cobalt .section-intro > p:not(.eyebrow) { color: #c4d4df; }
.section-jump { color: var(--ink); border-bottom: 1px solid var(--teal); }
.scene-cobalt .section-jump { color: #f4f6f2; }

.lens-instrument, .counter-instrument, .decomposition-card { background: #fbfcf8; color: var(--ink); border: 1px solid rgba(16, 24, 40, .18); }
.lens-instrument { padding: clamp(1.2rem, 3vw, 2rem); }
.instrument-topline, .decomposition-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.instrument-kicker { display: block; color: var(--teal); }
.instrument-topline h3 { margin-top: .45rem; font-size: clamp(1.8rem, 3vw, 2.75rem); }
.instrument-switch { display: grid; grid-template-columns: auto auto; align-items: center; gap: .4rem; min-width: 13rem; }
.instrument-switch-label { grid-column: 1 / -1; color: var(--muted); font-family: var(--mono); font-size: .64rem; text-transform: uppercase; }
.country-button, .lens-tab { cursor: pointer; min-height: 2.75rem; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .77rem; }
.country-button { padding: .45rem .65rem; }
.country-button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lens-tabs { display: flex; gap: .45rem; min-width: 0; overflow-x: auto; margin: 2rem 0 .8rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.lens-tab { flex: 0 0 auto; padding: .65rem .95rem; font-weight: 700; }
.lens-tab.is-active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.instrument-help { margin: 0 0 1.6rem; color: var(--muted); font-size: .88rem; }
.panel-intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.panel-kicker, .field-list-head, .distribution-head { color: var(--teal); font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.panel-intro h4 { margin-top: .45rem; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.panel-intro p { max-width: 580px; margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.overall-reading { min-width: 10rem; text-align: right; }
.overall-reading strong, .counter-reading strong { display: block; color: var(--women-deep); font-family: var(--display); font-size: 3.8rem; line-height: .9; }
.overall-reading span, .counter-reading span { display: block; margin-top: .4rem; font-family: var(--mono); font-size: .67rem; text-transform: uppercase; }
.overall-reading small { display: block; margin-top: .6rem; color: var(--muted); font-family: var(--mono); font-size: .63rem; }
.overall-bar { display: flex; overflow: hidden; height: 1.8rem; margin-top: 1.6rem; background: #dfe6e4; }
.overall-bar span { display: block; width: var(--bar-width, 50%); transition: width .25s ease; }
.overall-bar-women { background: var(--women); }
.overall-bar-men { background: var(--men); }
.overall-legend, .within-legend, .distribution-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; color: var(--muted); font-family: var(--mono); font-size: .67rem; text-transform: uppercase; }
.overall-legend { justify-content: flex-end; }
.legend-dot, .legend-women i, .legend-men i, .ledger-dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .3rem; vertical-align: -.02rem; border-radius: 50%; }
.women-dot, .legend-women i { background: var(--women); }
.men-dot, .legend-men i { background: var(--men); }
.field-list-head, .distribution-head { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 0 .2rem .7rem; border-bottom: 1px solid var(--line); }
.field-list, .within-list, .distribution-list { display: grid; }
.field-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 1fr) 5.1rem; align-items: center; gap: 1rem; padding: .82rem .2rem; border-bottom: 1px solid #e0e6e3; }
.field-row-label, .within-row-label { display: grid; gap: .2rem; }
.field-row-label strong, .within-row-label strong, .distribution-label strong { font-size: .78rem; line-height: 1.3; }
.field-row-label small, .within-row-label small { color: var(--muted); font-family: var(--mono); font-size: .6rem; }
.field-row-track, .within-track { overflow: hidden; height: .7rem; background: #dfe6e4; }
.field-row-fill { display: block; width: var(--bar-width, 10%); height: 100%; background: var(--teal); transition: width .25s ease; }
.field-row-value { text-align: right; }
.field-row-value strong { display: block; font-family: var(--mono); font-size: .78rem; }
.field-row-value span { color: var(--muted); font-family: var(--mono); font-size: .59rem; text-transform: uppercase; }
.field-row.is-other { color: var(--muted); border-bottom-style: dashed; }
.field-row.is-other .field-row-fill { background: #8d999e; }

.within-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(170px, 1fr) minmax(180px, .95fr); align-items: center; gap: 1rem; padding: .82rem .2rem; border-bottom: 1px solid #e0e6e3; }
.within-track { display: flex; }
.within-track span { display: block; width: var(--bar-width, 50%); transition: width .25s ease; }
.within-women { background: var(--women); }
.within-men { background: var(--men); }
.within-values { display: grid; gap: .25rem; color: var(--muted); font-family: var(--mono); font-size: .65rem; text-align: right; text-transform: uppercase; }
.within-values strong { color: var(--ink); font-size: .72rem; }
.panel-footnote, .instrument-footnote { margin-top: 1.2rem; color: var(--muted); font-size: .74rem; }
.footnote-mark { display: inline-block; margin-right: .4rem; color: var(--teal); font-family: var(--mono); }

.distribution-row { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(300px, 1.25fr); gap: 1.4rem; align-items: center; padding: .8rem .2rem; border-bottom: 1px solid #e0e6e3; }
.distribution-ledger { display: grid; gap: .35rem; }
.distribution-line { display: grid; grid-template-columns: .7rem 4.5rem minmax(100px, 1fr) 3.4rem; align-items: center; gap: .4rem; color: var(--muted); font-family: var(--mono); font-size: .61rem; text-transform: uppercase; }
.distribution-line-women .ledger-dot { background: var(--women); }
.distribution-line-men .ledger-dot { background: var(--men); }
.distribution-track { overflow: hidden; height: .55rem; background: #dfe6e4; }
.distribution-track span { display: block; width: var(--bar-width, 10%); height: 100%; transition: width .25s ease; }
.distribution-line-women .distribution-track span { background: var(--women); }
.distribution-line-men .distribution-track span { background: var(--men); }
.distribution-line strong { color: var(--ink); font-size: .67rem; text-align: right; }
.distribution-row.is-other { color: var(--muted); border-bottom-style: dashed; }

.country-stack { display: grid; gap: 1.2rem; }
.decomposition-card, .counter-instrument { padding: clamp(1.2rem, 3vw, 2rem); }
.decomposition-head h3, .counter-instrument h3 { max-width: 580px; margin-top: .45rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.decomposition-head p { max-width: 630px; margin-top: .8rem; color: var(--muted); font-size: .9rem; }
.decomposition-net { min-width: 9rem; text-align: right; }
.decomposition-net strong { display: block; color: var(--teal); font-family: var(--display); font-size: 3.4rem; line-height: .9; }
.decomposition-net span, .effect-netline span { display: block; margin-top: .4rem; color: var(--muted); font-family: var(--mono); font-size: .61rem; text-transform: uppercase; }
.effect-list { display: grid; gap: .85rem; margin-top: 2rem; }
.effect-card { padding: 1rem 0; border-top: 1px solid var(--line); }
.effect-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.effect-card-head strong { font-size: 1.05rem; }
.effect-composition .effect-card-head strong { color: var(--orange); }
.effect-within .effect-card-head strong { color: var(--teal); }
.effect-track { overflow: hidden; height: .8rem; margin-top: .55rem; background: #e3e9e6; }
.effect-track span { display: block; width: var(--effect-width, 30%); height: 100%; }
.effect-composition .effect-track span { background: var(--orange); }
.effect-within .effect-track span { background: var(--teal); }
.effect-card p { max-width: 640px; margin-top: .7rem; color: var(--muted); font-size: .82rem; }
.effect-netline { display: flex; align-items: baseline; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.effect-netline strong { color: var(--ink); font-size: 1rem; }

.counter-instrument { background: #10283f; color: #f6f7f2; border-color: rgba(255, 255, 255, .2); }
.counter-instrument .instrument-kicker { color: var(--yellow); }
.counter-instrument .instrument-help, .counter-instrument .instrument-footnote { color: #b8cbd4; }
.counter-reading { min-width: 10rem; text-align: right; }
.counter-reading strong { color: var(--yellow); }
.counter-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.8rem; }
.counter-control { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .23); }
.control-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.control-head label { font-weight: 700; font-size: .8rem; }
.control-head output { color: var(--yellow); font-family: var(--mono); font-size: .75rem; }
.range { display: block; width: 100%; height: 2.8rem; margin: .55rem 0 .1rem; accent-color: var(--yellow); cursor: pointer; }
.range::-webkit-slider-runnable-track { height: .3rem; background: #557084; }
.range::-webkit-slider-thumb { width: 1.1rem; height: 1.1rem; margin-top: -.4rem; border: 3px solid var(--yellow); border-radius: 50%; background: var(--ink); appearance: none; }
.range::-moz-range-track { height: .3rem; background: #557084; }
.range::-moz-range-thumb { width: .8rem; height: .8rem; border: 3px solid var(--yellow); border-radius: 50%; background: var(--ink); }
.range-endpoints { display: flex; justify-content: space-between; color: #a8bec7; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.counter-control p { margin-top: .75rem; color: #b8cbd4; font-size: .76rem; }
.counter-axis { position: relative; height: 7rem; margin: 2rem 0 0; }
.counter-axis-line { position: absolute; top: 2.5rem; left: 0; right: 0; height: 2px; background: #557084; }
.counter-axis-point { position: absolute; top: 2.05rem; width: .9rem; height: .9rem; border: 2px solid #10283f; border-radius: 50%; background: var(--yellow); }
.point-eu { left: 0; }
.point-ro { right: 0; }
.counter-axis-label { position: absolute; top: 3.2rem; color: #b8cbd4; font-family: var(--mono); font-size: .63rem; text-transform: uppercase; }
.label-eu { left: 0; }
.label-ro { right: 0; }
.counter-axis-current { position: absolute; top: 1.6rem; left: var(--marker-position, 0%); width: 2.3rem; height: 2.3rem; margin-left: -1.15rem; border: 3px solid var(--yellow); border-radius: 50%; background: rgba(16, 40, 63, .8); transition: left .18s ease; }
.counter-axis-current::after { position: absolute; top: 100%; left: 50%; width: 1px; height: .9rem; content: ''; background: var(--yellow); }

.answer-section { padding-top: clamp(4.5rem, 9vw, 8rem); padding-bottom: clamp(4.5rem, 9vw, 8rem); }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.answer-card { min-height: 14rem; padding: 1.5rem; border: 1px solid var(--line); }
.answer-card-knows { background: #dbe9e5; }
.answer-card-does-not { background: #f3e7d7; }
.answer-card-label { color: var(--teal); }
.answer-card ul { display: grid; gap: .8rem; margin-top: 1.5rem; padding-left: 1.2rem; font-size: .88rem; }
.answer-callout { grid-column: 1 / -1; padding: 1.5rem 0 0; color: var(--women-deep); font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.15; }
.closing-band { scroll-margin-top: 5.5rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) var(--gutter); background: var(--ink); color: #f6f7f2; }
.closing-band > div { width: min(760px, 100%); }
.closing-band h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.4vw, 4.3rem); }
.closing-band a { flex: 0 0 auto; color: var(--yellow); font-family: var(--mono); font-size: .72rem; text-decoration: none; text-transform: uppercase; }

.sources-section { scroll-margin-top: 5.5rem; padding: clamp(4.5rem, 9vw, 8rem) var(--gutter); background: var(--paper-deep); }
.sources-wrap { width: min(100%, 980px); margin: 0 auto; }
.sources-heading { max-width: 760px; }
.sources-heading h2 { margin-top: 1rem; font-size: clamp(2.4rem, 5vw, 4.7rem); }
.sources-heading > p:not(.eyebrow) { margin-top: 1.2rem; color: var(--muted); }
.method-note { padding-left: 1rem; border-left: 3px solid var(--yellow); font-size: .86rem; }
.source-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.source-row { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.3rem; align-items: start; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.source-number { color: var(--teal); font-family: var(--mono); font-size: .75rem; }
.source-copy h3 { margin-top: .35rem; font-size: 1.45rem; }
.source-copy p { max-width: 640px; margin-top: .55rem; color: var(--muted); font-size: .82rem; }
.source-link { color: var(--ink); font-family: var(--mono); font-size: .65rem; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.source-link:hover { color: var(--women-deep); }
.inline-source { color: var(--teal); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--gutter) 2rem; background: var(--paper-deep); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .63rem; text-transform: uppercase; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--women-deep); }
.back-top { color: var(--ink); text-decoration: none; }
.back-top.is-enhanced { position: fixed; z-index: 8; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; gap: .4rem; padding: .7rem .8rem; background: var(--yellow); color: var(--ink); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; opacity: 0; pointer-events: none; transform: translateY(.7rem); transition: opacity .2s ease, transform .2s ease; }
.back-top.is-enhanced.is-near-footer { bottom: var(--footer-lift, 10rem); }
.back-top.is-enhanced.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.not-found { display: grid; place-items: center; min-height: 100vh; padding: 2rem; background: var(--ink); color: #f6f7f2; }
.not-found main { max-width: 35rem; }
.not-found h1 { margin-top: 1rem; font-size: clamp(3rem, 7vw, 5rem); }
.not-found p:not(.eyebrow) { margin-top: 1rem; color: #c7d5d9; }
.text-link { display: inline-block; margin-top: 2rem; color: var(--yellow); font-family: var(--mono); font-size: .75rem; text-decoration: none; text-transform: uppercase; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-grid { min-height: auto; }
  .hero-copy { max-width: 760px; }
  .hero-visual-wrap { width: min(100%, 760px); }
  .section-grid { grid-template-columns: 3.4rem minmax(220px, .72fr) minmax(420px, 1.28fr); }
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: .3rem; }
  .section-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-index { padding-top: 0; }
  .section-intro, .lens-instrument, .country-stack { width: min(100%, 760px); min-width: 0; }
  .scene-cobalt .section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { position: relative; min-height: 0; padding-top: 1rem; padding-bottom: 1rem; }
  .site-nav { gap: .45rem .9rem; font-size: .62rem; }
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: clamp(3.3rem, 15vw, 5.5rem); }
  .hero-total { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .hero-total-rule { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .hero-total div:last-child { text-align: right; }
  .hero-field-grid { gap: .55rem; }
  .hero-field { min-height: 7rem; padding: .75rem; }
  .hero-field-head { display: grid; gap: .25rem; }
  .hero-visual-bottom, .hero-footer { display: grid; gap: .35rem; }
  .hero-footer { margin-top: 2rem; }
  .instrument-topline, .decomposition-head, .panel-intro { display: grid; gap: 1.2rem; }
  .instrument-switch { width: 100%; }
  .overall-reading, .counter-reading, .decomposition-net { text-align: left; }
  .overall-legend { justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr 4.5rem; gap: .65rem; }
  .field-row-track { grid-column: 1 / -1; grid-row: 2; }
  .field-row-value { grid-column: 2; grid-row: 1; }
  .within-row { grid-template-columns: 1fr 4.2rem; gap: .65rem; }
  .within-track { grid-column: 1 / -1; grid-row: 2; }
  .within-values { grid-column: 2; grid-row: 1; }
  .distribution-row { grid-template-columns: 1fr; gap: .6rem; }
  .distribution-line { grid-template-columns: .7rem 4.1rem minmax(80px, 1fr) 3.1rem; }
  .counter-controls { grid-template-columns: 1fr; gap: 1.2rem; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-callout { grid-column: auto; }
  .closing-band { display: grid; align-items: start; }
  .source-row { grid-template-columns: 2rem 1fr; gap: .8rem; }
  .source-link { grid-column: 2; }
  .site-footer { display: grid; }
}

@media (max-width: 360px) {
  body { font-size: 15px; }
  .hero { padding-right: 1rem; padding-left: 1rem; }
  .section, .sources-section, .closing-band { padding-right: 1rem; padding-left: 1rem; }
  .hero h1 { font-size: 3.15rem; }
  .hero-field-grid { grid-template-columns: 1fr; }
  .hero-data-visual { box-shadow: 9px 9px 0 rgba(232, 187, 63, .85); }
  .lens-instrument, .counter-instrument, .decomposition-card { padding: 1rem; }
  .country-button { font-size: .68rem; }
  .distribution-line { grid-template-columns: .7rem 3.4rem minmax(65px, 1fr) 2.8rem; gap: .25rem; font-size: .56rem; }
  .back-top span { display: none; }
}

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