/* =========================================================================
   swiss.css: Swiss International Style layer (loaded after styles.css)
   Rules here restyle text, headings, navigation and new graphic elements.
   PROTECTED ELEMENTS (maps, charts, diagrams, tables) are isolated in
   section 0 so they keep their original look. Do not add rules that target
   them anywhere else in this file.
   ========================================================================= */

/* ---------- 0. Protected elements: keep their original appearance ---------- */
/* They read the original tokens from styles.css (--paper, --ink, --serif ...),
   which are left untouched. Here we only restore what they used to inherit
   from <body>: background, text colour, font and line-height. */
#figTimeline, #figTypes, #figBank, #figTri, #figLenses,
#mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow,
#expertCards, .finding__fig, #figGeorgia, #corpusBox {
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.62 var(--sans);
  letter-spacing: normal;
  text-transform: none;
  font-synthesis: weight style small-caps;
}

/* ---------- 1. Tokens ---------- */
:root {
  --s-bg: #F5F5F2;
  --s-ink: #111111;
  --s-red: #E30613;
  --s-font: "Inter Tight", "BPG Typewriter A", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --s-gap: 24px;
  --s-rule: 6px;
  --s-p: .12;                 /* needle position, set by swiss.js while scrolling */
}
:root[data-theme="dark"] { --s-bg: #111111; --s-ink: #F5F5F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s-bg: #111111; --s-ink: #F5F5F2; } }

/* ---------- 2. Base ---------- */
body { background: var(--s-bg); color: var(--s-ink); font-family: var(--s-font); }
::selection { background: var(--s-red); color: #fff; }
:focus-visible { outline: 3px solid var(--s-red); outline-offset: 3px; }
a:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* small uppercase labels */
.label:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), .dots__head:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), .hero__meta:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), .hero__facts dt:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), .chapter__head > .label:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) {
  font: 600 12px/1.3 var(--s-font); letter-spacing: .14em; text-transform: uppercase; color: var(--s-ink);
}

/* buttons: flat blocks */
.btn:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { border: 2px solid var(--s-ink); border-radius: 0; font: 700 13px/1 var(--s-font); letter-spacing: .1em; text-transform: uppercase; padding: 16px 22px; color: var(--s-ink); background: transparent; }
.btn:hover:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { background: var(--s-ink); color: var(--s-bg); }
.btn--solid:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { background: var(--s-red); border-color: var(--s-red); color: #fff; }
.btn--solid:hover:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { background: var(--s-ink); border-color: var(--s-ink); color: var(--s-bg); }
.btn--quiet:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { border-color: var(--s-ink); color: var(--s-ink); }

/* ---------- 3. Top bar ---------- */
.bar { background: var(--s-bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 2px solid var(--s-ink); }
.bar__progress { height: 4px; bottom: -2px; }
.bar__progress span { background: var(--s-red); }
.bar__name { font: 800 15px/1 var(--s-font); letter-spacing: -.01em; text-transform: none; }
.bar__nav { font: 600 12px/1 var(--s-font); letter-spacing: .12em; }
.theme, .bar__lang { border: 2px solid var(--s-ink); border-radius: 0; color: var(--s-ink); font-weight: 700; padding: 7px 10px; }
.theme:hover, .bar__lang:hover { background: var(--s-ink); color: var(--s-bg); border-color: var(--s-ink); }
.menu__list { border: 2px solid var(--s-ink); box-shadow: none; background: var(--s-bg); }
.menu__list a { font: 600 16px/1.3 var(--s-font); }
.menu__list span { font: 700 12px/1.6 var(--s-font); color: var(--s-red); }

/* ---------- 4. Brussels to Moscow line (restyled; moves with scroll) ---------- */
.bar__pole .pole__end, .hero__pole .pole__end { font: 800 11px/1 var(--s-font); letter-spacing: .14em; color: var(--s-ink); }
.bar__pole .pole__end--e, .hero__pole .pole__end--e { color: var(--s-red); }
.bar__pole .pole__track, .hero__pole .pole__track { background: none; }
.bar__pole .pole__track::before { height: 2px; margin-top: -1px; background: var(--s-ink); }
.hero__pole .pole__track { height: 40px; }
.hero__pole .pole__track::before { height: 6px; margin-top: -3px; background: linear-gradient(90deg, var(--s-ink) 0 calc(var(--s-p) * 100%), color-mix(in srgb, var(--s-ink) 25%, transparent) 0); }
.bar__pole .pole__mark, .hero__pole .pole__mark { left: calc(var(--s-p) * 100%) !important; transition: left .25s linear; }
.bar__pole .pole__mark i { width: 10px; height: 10px; border-radius: 50%; transform: none; background: var(--s-red); }
.hero__pole .pole__mark i { width: 28px; height: 28px; border-radius: 50%; transform: none; background: var(--s-red); }
.hero__pole .pole__mark b { bottom: 36px; font: 800 14px/1 var(--s-font); letter-spacing: .12em; text-transform: uppercase; color: var(--s-red); -webkit-text-stroke: 0; }
.hero__pole .pole__end--w { color: var(--s-ink); }
@media (prefers-reduced-motion: reduce) { .bar__pole .pole__mark, .hero__pole .pole__mark { transition: none; } }

/* ---------- 5. Contents sidebar ---------- */
.dots__head { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 4px solid var(--s-ink); }
.dots a { border-left: 0; padding: 8px 0; color: var(--s-ink); opacity: .55; }
.dots a span { grid-template-columns: 40px 1fr; font: 600 14px/1.25 var(--s-font); }
.dots a em { font: 800 12px/1.5 var(--s-font); color: var(--s-ink); }
.dots a:hover { opacity: 1; }
.dots a.is-active { opacity: 1; border-left: 0; padding-left: 0; }
.dots a.is-active em { color: var(--s-red); }
.dots a.is-active span { font-weight: 800; }

/* ---------- 6. Hero: full-screen poster ---------- */
.hero { position: relative; overflow: hidden; max-width: none; padding-left: var(--gut); padding-right: var(--gut); }
.hero__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.hero__meta { border-top: var(--s-rule) solid var(--s-ink); border-bottom: 0; padding: 14px 0 0; color: var(--s-ink); }
.hero__meta span + span::before { content: "/"; color: var(--s-red); margin: 0 .8em; }
.hero__titleblock { margin-top: clamp(28px, 6vh, 72px); }
.hero__title {
  font: 800 clamp(44px, 7.4vw, 118px)/.92 var(--s-font) !important; letter-spacing: -.025em !important;
  max-width: 11ch; text-wrap: balance;
}
.hero__title em { font-style: normal; font-weight: 400; color: var(--s-ink); }
.hero__title .moscow { color: var(--s-red); }
.hero__sub { margin-top: 24px; max-width: 30ch; font: 400 clamp(19px, 1.8vw, 26px)/1.3 var(--s-font); color: var(--s-ink); }
.hero__abstract { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-gap); }
.hero__abstract .label { grid-column: 1 / 4; color: var(--s-red); }
.hero__hook { grid-column: 4 / 11; font: 600 clamp(20px, 2vw, 28px)/1.3 var(--s-font); max-width: 34ch; }
.hero__facts { border-top: 2px solid var(--s-ink); border-bottom: 0; }
.hero__facts div + div { border-left: 2px solid var(--s-ink); }
.hero__facts dd { font: 700 18px/1.25 var(--s-font); }
.hero__title { position: relative; }
@media (max-width: 760px) {
  .hero__abstract { grid-template-columns: 1fr; }
  .hero__abstract .label, .hero__hook { grid-column: auto; }
  .hero__meta span + span::before { content: none; }
  .hero__title { max-width: none; border-bottom: 12px solid var(--s-red); padding-bottom: 18px; }
  /* compact top bar */
  .bar { column-gap: 10px; }
  .bar__name { font-size: 14px; }
  .bar__nav { gap: 8px; font-size: 11px; letter-spacing: .06em; }
  .theme, .bar__lang { padding: 5px 7px; font-size: 11px; }
  .bar__pole .pole__end { font-size: 9px; }
}

/* hero: red circle with the four faces (one halftone image, clipped to the circle) */
:root { --s-disc: #E8473F; }
.sw-disc { position: absolute; z-index: 0; right: 0; top: 30px; width: min(31vw, 450px); aspect-ratio: 1; margin: 0;
  border-radius: 50%; background: var(--s-disc); overflow: hidden; }
.sw-collage { display: block; width: 100%; height: 100%; }
.sw-ring { display: none; }
/* white bar covering Ivanishvili's eyes (position from tools/collage.py) */
.sw-bar { position: absolute; left: 63.3%; top: 50.9%; width: 17.2%; height: 4.6%; background: #FFFFFF; transform: rotate(-11deg); transform-origin: center; }
@media (max-width: 760px) { .sw-disc { position: relative; right: auto; width: min(88vw, 440px); margin: 28px auto 0; } }
.hero__titleblock { position: relative; z-index: 1; }
.sw-credits { margin-top: 14px; font-size: 13px; line-height: 1.5; }
@media (max-width: 760px) {
  .sw-disc { position: relative; right: auto; top: auto; width: min(88vw, 440px); margin: 32px auto 0; }
}

/* Georgian page: BPG Typewriter has one weight, keep it thickened */
/* no fake bold (it makes Georgian letters collide); thicken with a fine outline instead */
html:lang(ka) { font-synthesis: none; }
:lang(ka) .label:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .hero__meta:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .hero__facts:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .dots:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .bar__name:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .hero__hook:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .btn:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .bar__nav:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { -webkit-text-stroke: .35px currentColor; }
:lang(ka) .dots a.is-active span { -webkit-text-stroke: .7px currentColor; }
:lang(ka) .hero__title { -webkit-text-stroke: 2px currentColor; letter-spacing: .01em !important; line-height: 1.12 !important; }
:lang(ka) .label:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .hero__meta, :lang(ka) .hero__facts dt, :lang(ka) .dots__head { letter-spacing: .04em; line-height: 1.6; }
:lang(ka) .dots a span { line-height: 1.55; }
:lang(ka) .hero__hook, :lang(ka) .hero__sub { line-height: 1.5; }
.ai-note { background: transparent; border-left: 4px solid var(--s-red); color: var(--s-ink); font-family: var(--s-font); }
.ai-note a { color: var(--s-red); }

/* ---------- 7. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sw-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .sw-in.is-seen { opacity: 1; transform: none; }
}

/* ---------- 8. Chapters: headings, text, numbers (01, 02, 03 ...) ---------- */
/* Note: --off is left untouched because the findings figures use it for their width. */
.chapter__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-gap); align-items: start;
  padding: 28px 0 0; border-top: var(--s-rule) solid var(--s-ink);
}
.chapter__head::before { display: none; }
.chapter__num {
  position: static; grid-column: 1 / 5; grid-row: 1 / span 3; margin: 0;
  font: 800 clamp(72px, 12vw, 210px)/.8 var(--s-font) !important; letter-spacing: -.05em; color: var(--s-red); font-style: normal;
}
.chapter__num::before { content: none; }
.chapter__head > .label { grid-column: 5 / 13; }
.chapter__head h2 {
  grid-column: 5 / 13; margin-top: 10px; max-width: none;
  font: 800 clamp(38px, 5.6vw, 92px)/.95 var(--s-font) !important; letter-spacing: -.03em !important;
}
.inshort {
  grid-column: 5 / 12; margin-top: clamp(24px, 3vw, 40px); padding: 0; border: 0; max-width: 34ch;
  font: 600 clamp(21px, 2.2vw, 30px)/1.25 var(--s-font) !important; font-style: normal; color: var(--s-ink);
}
.inshort .label { color: var(--s-red); margin-bottom: 10px; }

/* body text: columns 5 to 11 of the 12-column grid */
.prose { margin-left: calc((100% + var(--s-gap)) / 12 * 4); max-width: 68ch; font: 400 18px/1.65 var(--s-font); }
.chapter__head + .prose > p:first-child::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.h3:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), .prose .h3:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { font: 800 clamp(24px, 2.4vw, 34px)/1.1 var(--s-font); letter-spacing: -.02em; }
.rq {
  margin: 1.6em 0 !important; padding: 20px 0 0; border-top: var(--s-rule) solid var(--s-red); border-bottom: 0;
  text-align: left; font: 800 clamp(26px, 3vw, 44px)/1.08 var(--s-font) !important; font-style: normal; letter-spacing: -.02em;
}
.rq .label { color: var(--s-red); margin-bottom: 12px; }
.plain li:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *)::before { width: 12px; height: 4px; top: .6em; background: var(--s-red); }

/* asides: a thick red rule instead of a box */
.aside, .limits {
  margin-left: calc((100% + var(--s-gap)) / 12 * 4); max-width: 68ch;
  background: transparent; border: 0; border-left: var(--s-rule) solid var(--s-red); padding: 4px 0 4px 28px;
}
.aside h3 { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--s-font); letter-spacing: -.02em; }
.aside p, .limits p { font: 400 17px/1.65 var(--s-font); }
.limits__lead { font: 700 clamp(20px, 2vw, 26px)/1.3 var(--s-font) !important; }
.aside .label, .limits .label { color: var(--s-red); }

.dims { border-top: 4px solid var(--s-ink); }
.dims div { border-bottom: 2px solid var(--s-ink); }
.dims dt { font: 800 20px/1.3 var(--s-font); }
.dims dd { font: 400 17px/1.5 var(--s-font); }

/* oversized key numbers (method) */
.sw-stats {
  margin: clamp(48px, 7vw, 88px) 0 0 calc((100% + var(--s-gap)) / 12 * 4);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--s-gap) * 1.5); border-top: var(--s-rule) solid var(--s-ink); padding-top: 18px;
}
.sw-stats b { display: block; font: 800 clamp(52px, 6.4vw, 112px)/.85 var(--s-font); letter-spacing: -.05em; color: var(--s-ink); }
.sw-stats div:first-child b { color: var(--s-red); }
.sw-stats span { display: block; margin-top: 12px; font: 600 12px/1.4 var(--s-font); letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 860px) {
  .chapter__head { grid-template-columns: 1fr; }
  .chapter__num, .chapter__head > .label, .chapter__head h2, .inshort { grid-column: 1; grid-row: auto; }
  .chapter__num { margin-bottom: 14px; }
  .prose, .aside, .limits, .sw-stats { margin-left: 0; }
  .sw-stats { grid-template-columns: 1fr 1fr 1fr; }
}

/* Georgian: one-weight font, so headings get a fine outline and more line height */
:lang(ka) .chapter__head h2 { -webkit-text-stroke: 1.3px currentColor; letter-spacing: .01em !important; line-height: 1.15 !important; }
:lang(ka) .inshort { -webkit-text-stroke: .6px currentColor; line-height: 1.45 !important; }
:lang(ka) .rq { -webkit-text-stroke: .9px currentColor; line-height: 1.35 !important; letter-spacing: 0; }
:lang(ka) .h3:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .aside h3:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *), :lang(ka) .dims dt:not(:is(#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly, #figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox, #trade) *) { -webkit-text-stroke: .7px currentColor; line-height: 1.3; letter-spacing: 0; }
:lang(ka) .limits__lead { -webkit-text-stroke: .5px currentColor; line-height: 1.5 !important; }
:lang(ka) .sw-stats span { letter-spacing: .04em; -webkit-text-stroke: .35px currentColor; }

/* ---------- 9. 04.2 Checkpoints: four poster panels (above the unchanged interactive) ---------- */
.sw-cp { margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-gap); counter-reset: none; }
.sw-cp li { border-top: var(--s-rule) solid var(--s-ink); padding-top: 16px; min-height: 230px; display: flex; flex-direction: column; }
.sw-cp b { font: 800 clamp(72px, 9vw, 150px)/.8 var(--s-font); letter-spacing: -.05em; color: var(--s-red); }
.sw-cp .label { margin-top: auto; padding-top: 18px; }
.sw-cp h3 { margin-top: 8px; font: 800 clamp(18px, 1.6vw, 24px)/1.15 var(--s-font); letter-spacing: -.01em; }
.sw-cp li:last-child { background: #111; color: #F5F5F2; border-top-color: var(--s-red); padding: 16px 16px 18px; }
.sw-cp li:last-child .label { color: #F5F5F2; }
@media (max-width: 860px) { .sw-cp { grid-template-columns: 1fr 1fr; } .sw-cp li { min-height: 180px; } }
@media (max-width: 480px) { .sw-cp { grid-template-columns: 1fr; } }

/* ---------- 10. #law: the red protest poster (full width; figures inside keep their own panel) ---------- */
.deep {
  position: relative; margin-top: clamp(72px, 10vw, 130px); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  background: var(--s-red); color: #fff;
  box-shadow: 0 0 0 100vmax var(--s-red); clip-path: inset(0 -100vmax 0 calc(-1 * var(--gut)));
}
.deep__head { margin-left: 0; padding-top: 0; border-top: 0; max-width: none; }
.deep__head .label { color: #fff; }
.deep__head h3 { margin-top: 14px; max-width: 16ch; font: 800 clamp(44px, 7vw, 120px)/.95 var(--s-font) !important; letter-spacing: -.02em; color: #111; }
.deep .prose { color: #fff; font-weight: 500; }
.deep .prose a { color: #fff; }
.deep .h4 { color: #111; }

/* ---------- 11. 04.3 Experts: big quotes with a thick red rule ---------- */
.pulls { gap: clamp(28px, 4vw, 64px); }
.pull { border-left: 8px solid var(--s-red); padding-left: 24px; }
.pull p { font: 800 clamp(26px, 3.2vw, 46px)/1.08 var(--s-font) !important; letter-spacing: -.02em; text-wrap: balance; }
.pull footer { margin-top: 18px; padding-top: 0; border-top: 0; font: 600 12px/1.5 var(--s-font); letter-spacing: .12em; text-transform: uppercase; color: var(--s-ink); }
.split .h3 { border-top: 4px solid var(--s-ink); padding-top: 14px; }
.split p, .split li { font: 400 17px/1.6 var(--s-font); }

/* ---------- 12. 05 Findings: numbered blocks ---------- */
.findings { margin-top: clamp(48px, 7vw, 96px); }
.finding { border-top: var(--s-rule) solid var(--s-ink); }
.finding__n { font: 800 clamp(96px, 13vw, 220px)/.8 var(--s-font) !important; letter-spacing: -.06em; color: var(--s-red); }
@media (max-width: 980px) { .finding__n { position: static !important; display: block; font-size: 96px !important; line-height: .85 !important; margin-bottom: 20px; } .finding__body { grid-row: auto; } .finding > * { grid-column: 1 / -1 !important; } }
.finding__body h3 { font: 800 clamp(30px, 3.6vw, 54px)/1 var(--s-font) !important; letter-spacing: -.025em; }
.finding__body p { font: 400 18px/1.65 var(--s-font); }
.endcta { margin-top: 2em !important; }
.sw-corpus-label { margin: clamp(48px, 6vw, 72px) 0 10px calc((100% + var(--s-gap)) / 12 * 4); border-top: 4px solid var(--s-ink); padding-top: 12px; color: var(--s-red); max-width: calc(var(--col) + 120px); }
@media (max-width: 860px) { .sw-corpus-label { margin-left: 0; } }

/* ---------- 13. About ---------- */
.about__head { border-top: var(--s-rule) solid var(--s-ink); padding-top: 28px; }
.about__head h2 { font: 800 clamp(48px, 8vw, 132px)/.9 var(--s-font) !important; letter-spacing: -.04em; }
.portrait, .photo2 { background: none; }
.portrait img, .photo2 img { filter: grayscale(1) contrast(1.1); mix-blend-mode: normal; aspect-ratio: 4 / 5; object-fit: cover; }
.photo2 img { aspect-ratio: 1; }
.portrait::after, .photo2::after { content: none; }
.bio { font: 600 clamp(20px, 2vw, 28px)/1.35 var(--s-font); }
.contact a { font-weight: 700; }
.cv li { border-top: 2px solid var(--s-ink); }
.cv__when { font: 700 12px/1.6 var(--s-font); letter-spacing: .1em; text-transform: uppercase; color: var(--s-red); }
.cv__what { font: 800 19px/1.2 var(--s-font); }
.cv__where { font: 400 15px/1.45 var(--s-font); color: var(--s-ink); }
.skills li { border-top: 2px solid var(--s-ink); font: 500 16px/1.4 var(--s-font); }
.about .h3 { font: 800 22px/1.2 var(--s-font); letter-spacing: -.01em; }

/* ---------- 14. Footer: a black block ---------- */
.foot {
  margin-top: clamp(96px, 12vw, 160px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: 48px;
  background: #111; color: #F5F5F2; border-top: 8px solid var(--s-red);
  box-shadow: 0 0 0 100vmax #111; clip-path: inset(0 -100vmax -100vmax calc(-1 * var(--gut)));
  position: relative; z-index: 41;
}
.dots { z-index: 40; }
@media (min-width: 1280px) { .foot { clip-path: inset(0 -100vmax -100vmax 0); } }
.sw-foot-name { font: 800 clamp(48px, 9vw, 150px)/.9 var(--s-font); letter-spacing: -.045em; color: #F5F5F2; margin-bottom: clamp(32px, 5vw, 56px); }
.foot__grid { border-top: 2px solid #F5F5F2; color: #F5F5F2; font-family: var(--s-font); }
.foot .label { color: var(--s-red); }
.foot a { color: #F5F5F2; }
.foot .cite { color: #F5F5F2; font: 400 15px/1.55 var(--s-font); }
.foot .btn { border-color: #F5F5F2; color: #F5F5F2; }
.foot .btn:hover { background: #F5F5F2; color: #111; }
.foot__copy { color: #F5F5F2; font: 600 12px/1 var(--s-font); letter-spacing: .14em; }
.sw-credits { color: #F5F5F2; opacity: .85; }

/* Georgian: one-weight font gets a fine outline on the new headings */
:lang(ka) .sw-cp h3, :lang(ka) .finding__body h3, :lang(ka) .about__head h2, :lang(ka) .sw-foot-name { -webkit-text-stroke: 1px currentColor; letter-spacing: 0 !important; line-height: 1.2 !important; }
:lang(ka) .deep__head h3, :lang(ka) .pull p { -webkit-text-stroke: 1.1px currentColor; letter-spacing: 0 !important; line-height: 1.25 !important; }
:lang(ka) .bio, :lang(ka) .cv__what { -webkit-text-stroke: .5px currentColor; line-height: 1.5; }

/* ---------- 15. Charts, maps and diagrams in the Swiss palette ----------
   Same structure and data as before; only colour, rules and type change.
   General charts: black + Swiss red (red = Georgia / the key element).
   Maps: EU blue for Europe, Swiss red for Russia, plum (between the two) for Georgia,
   Belarus in its flag green, Hungary hatched in its flag red over EU blue. */
:root { --s-eu: #003399; --s-ge: #14213D; --s-by: #2F8A4C; --s-hu: #CE2939; --s-mid: #8C8C88; }
:root[data-theme="dark"] { --s-eu: #5C82F0; --s-ge: #D0DBF5; --s-by: #4FB46C; --s-hu: #F0505F; --s-mid: #8A8A86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s-eu: #5C82F0; --s-ge: #D0DBF5; --s-by: #4FB46C; --s-hu: #F0505F; --s-mid: #8A8A86; } }

#figTimeline, #figTypes, #figBank, #figTri, #figLenses, #mapScrolly, #figMatrix, #cpScrolly,
#figLaw, #figFlow, #expertCards, .finding__fig, #figGeorgia, #corpusBox {
  --ge: var(--s-red); --ru: var(--s-ink); --eu: var(--s-eu); --gold: var(--s-red);
  --serif: var(--s-font); --sans: var(--s-font);
}
#mapScrolly, #figGeorgia { --ge: var(--s-ge); --ru: var(--s-red); }

/* figure titles and captions */
.fig__title { border-bottom: 4px solid var(--s-ink); font-style: normal; font-weight: 700; letter-spacing: -.01em; }
.fig__title .label { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--s-red); }
.fig figcaption, .finding__fig figcaption { border-top: 2px solid var(--s-ink); }
:lang(ka) .fig__title { -webkit-text-stroke: .5px currentColor; }

/* Diagram A: three ways */
.type { border-top: 4px solid var(--s-ink); }
.type--key { border-top: 8px solid var(--s-red); }
.s { stroke-width: 2; } .s.k { stroke-width: 2.6; }
.type h3 { font-weight: 700; letter-spacing: -.01em; }
.type__tag { font: 800 12px/1.3 var(--s-font) !important; letter-spacing: .1em; text-transform: uppercase; }

/* Diagram B: bank run (open opponents and hidden doubts in red) */
.pp.is-out .pp__body { fill: var(--paper); stroke: var(--s-red); stroke-width: 2; }
.pp__priv { fill: var(--s-red); }
.pp__ring { stroke: var(--s-red); stroke-width: 2; }
#figBank .lg--out { border-color: var(--s-red) !important; }
#figBank .lg--dot { background: var(--s-red) !important; }
.bank__count { font-weight: 700; color: var(--s-ink); }
#figBank .btn, #figMatrix .btn { border: 2px solid var(--s-ink); border-radius: 0; font-weight: 700; }
#figBank .btn--solid { background: var(--s-red); border-color: var(--s-red); color: #fff; }
#figBank .btn--solid:hover { background: var(--s-ink); border-color: var(--s-ink); color: var(--paper); }

/* Diagram C: three methods (labels kept inside their circle) */
.tri__c { stroke-width: 2; }
.tri__lab b { font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; }
.tri__lab span { max-width: 92px; font-size: 11px; }
.tri__lab--1 { left: 26.5%; top: 29%; } .tri__lab--2 { left: 73.5%; top: 29%; } .tri__lab--3 { left: 50%; top: 81%; }

/* Five lenses and the law flow: the last step in red */
.lens { border-top: 4px solid var(--s-ink); }
.lens::before { border: 2px solid var(--s-ink); font-weight: 700; }
.lens:last-child::before { background: var(--s-red); border-color: var(--s-red); color: #fff; }
.lens h3, .flow h4 { font-weight: 700; letter-spacing: -.01em; }
.flow li { border-top-color: var(--s-ink); }
.flow li:nth-child(5) { border-top-color: var(--s-red); }
@media (max-width: 860px) { .flow li:nth-child(5) { border-left-color: var(--s-red); } }

/* matrix */
.mx thead th { font-weight: 700; color: var(--s-ink); border-bottom: 4px solid var(--s-ink); }
.mx thead th:last-child { color: var(--s-red); }
.mx th, .mx td { border-bottom-width: 2px; }
.mx tbody th { font-weight: 700; letter-spacing: -.01em; }
.dot--1 { border-width: 2px; } .dot--0 { border-width: 2px; }
.mx td:last-child .dot--1 { border-color: var(--s-red); background: linear-gradient(90deg, var(--s-red) 50%, transparent 50%); }

/* 04.2 checkpoints: current bar red, passed bars black, coming bars outlined */
.cp-panel { border-top: 4px solid var(--s-ink); border-bottom: 2px solid var(--s-ink); }
.cp-date { font-weight: 800; letter-spacing: -.04em; }
.cp-title, .cp-step__card h3 { font-weight: 700; }
.meter__bars i { border-width: 2px; }
.meter__bars i.on { background: var(--s-ink); border-color: var(--s-ink); }
.meter__bars i.on:not(:has(+ i.on)) { background: var(--s-red); border-color: var(--s-red); }
.quote { border-left: 6px solid var(--s-red); }

/* maps */
.c--eu, .hatch-bg { fill: color-mix(in srgb, var(--s-eu) 30%, var(--paper)); }
.c--ru { fill: color-mix(in srgb, var(--s-red) 82%, var(--land)); }
.c--by { fill: color-mix(in srgb, var(--s-by) 70%, var(--land)); }
.hatch-line { stroke: var(--s-hu); stroke-width: 2; }
.mlabel--eu { fill: var(--s-eu); }
#mapScrolly .lg--eu { background: color-mix(in srgb, var(--s-eu) 30%, var(--paper)); }
#mapScrolly .lg--ref { background: linear-gradient(90deg, color-mix(in srgb, var(--s-red) 82%, var(--land)) 0 34%, color-mix(in srgb, var(--s-by) 70%, var(--land)) 34% 67%, var(--s-hu) 67%); }
.step[data-id="belarus"] .step__tag { color: var(--s-by); }
.step[data-id="hungary"] .step__tag { color: var(--s-hu); }
.step__card { border-top: 4px solid var(--s-ink); }
.step__card h3 { font-weight: 700; }
.ge-land { stroke-width: 2.2; }

/* law table: FARA grey, Russia black, Georgia red, all heavy rules */
.law thead th { font-weight: 700; border-top: 6px solid var(--s-mid); border-bottom: 2px solid var(--s-ink); }
.law thead th:first-child { border-top-color: transparent; }
.law thead th:nth-child(3) { border-top-color: var(--s-ink); }
.law thead th:nth-child(4) { border-top-color: var(--s-red); color: var(--s-red); }
@media (max-width: 760px) { .law td { border-left-color: var(--s-mid); } .law td:nth-of-type(2) { border-left-color: var(--s-ink); } .law td:nth-of-type(3) { border-left-color: var(--s-red); } }

/* expert cards */
.card { border-top: 4px solid var(--s-ink); }
.card summary::after { color: var(--s-red); font-weight: 700; }
.card[open] { border-top-color: var(--s-red); }
.card__name { font-weight: 700; }
.card__date { font-weight: 700; color: var(--s-ink); }

/* findings figures: adaptation table, playbook, trade-off */
.adapt th { font-weight: 800; color: var(--s-ink); border-bottom: 4px solid var(--s-ink); }
.adapt th:last-child { color: var(--s-red); }
.adapt td { font-weight: 600; border-bottom-width: 2px; }
.adapt path, .pb__arrow path { stroke-width: 2; }
.pb__word { font-weight: 700; letter-spacing: -.02em; }
.pb__rows::after { border-width: 3px; border-color: var(--s-ink); }
.pb__row { border-bottom-width: 2px; }
.trade { border-top: 4px solid var(--s-ink); border-bottom: 2px solid var(--s-ink); }
.trade__side--cost .label { color: var(--s-red); }
.trade__beam path, .trade__beam rect { stroke-width: 2; }
.trade__beam rect:last-child { fill: var(--s-red); stroke: var(--s-red); }
.trade li { font-weight: 600; }

/* ---------- 16. Red #law band: figures sit on it as white sheets with room to breathe ---------- */
.deep .fig { padding: clamp(24px, 3.4vw, 48px); border: 10px solid var(--s-ink); }
.deep .fig + .fig { margin-top: clamp(48px, 6vw, 80px); }
.deep .fig figcaption { color: var(--ink-2); }
.deep .prose { margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- 17. Big chapter numbers with a decimal (04.1-04.3): smaller so they never touch the title ---------- */
#regimes .chapter__num, #checkpoints .chapter__num, #experts .chapter__num { font-size: clamp(60px, 8vw, 138px) !important; }
.chapter__head { column-gap: calc(var(--s-gap) * 1.5); }

/* ---------- 18. Contents sidebar: keep text and rule inside the margin ---------- */
@media (min-width: 1280px) {
  :root { --toc: 280px; }
  .dots { width: calc(var(--toc) - var(--gut) - 32px); }
  .dots a span { overflow-wrap: anywhere; }
}

/* ---------- 19. Footer buttons stay white on the black block (light and dark) ---------- */
.foot .btn, .foot .btn--quiet { border-color: #F5F5F2 !important; color: #F5F5F2 !important; background: transparent !important; }
.foot .btn:hover { background: #F5F5F2 !important; color: #111 !important; }
.foot .copied { color: #F5F5F2; }

/* ---------- 20. Georgian hero: the title stops before the red circle ---------- */
@media (min-width: 761px) {
  .hero__titleblock { padding-right: calc(min(31vw, 450px) + 32px); }
  :lang(ka) .hero__title { font-size: clamp(40px, 6vw, 96px) !important; max-width: none; }
}

/* ---------- 21. Body text fills the left columns: columns 1 to 10 of 12 ---------- */
@media (min-width: 861px) {
  .prose, .aside, .limits, .sw-stats, .sw-corpus-label { margin-left: 0; max-width: calc((100% + var(--s-gap)) / 12 * 10 - var(--s-gap)); }
  .prose { font-size: 20px; }
  .aside p, .limits p { font-size: 18px; }
}

/* ---------- 22. Georgia map: brutalist (navy Georgia, red Russia, red stripes on occupied land) ---------- */
#figGeorgia .nb { fill: color-mix(in srgb, var(--s-ink) 10%, var(--paper)); stroke: var(--paper); stroke-width: 1.5; }
#figGeorgia .nb--ru { fill: var(--s-red); }
#figGeorgia .ge-under { stroke: var(--s-ink); stroke-width: 7; }
#figGeorgia .ge-land { fill: var(--s-ge); stroke: var(--s-ink); stroke-width: 3; }
#figGeorgia .occ { stroke: var(--s-red); stroke-width: 3; }
#figGeorgia .occ-line { stroke: var(--s-red); stroke-width: 3; }
#figGeorgia .leader { stroke: var(--s-ink); stroke-width: 2; }
#figGeorgia .mlabel { font-family: var(--s-font); font-weight: 800; letter-spacing: .12em; }
#figGeorgia .mlabel--plain { letter-spacing: .02em; font-size: 14px; }
#figGeorgia .mlabel--onru { fill: #fff; stroke: none; font-size: 15px; letter-spacing: .2em; }
#figGeorgia .mlabel--plain.mlabel--onru { font-size: 14px; letter-spacing: .02em; }
#figGeorgia .mlabel--ge { fill: var(--paper); stroke: none; }
#figGeorgia .city--ge { fill: var(--paper); stroke: none; }
#figGeorgia .mlabel--sea { font-weight: 600; }
#figGeorgia .lg--occ { background: repeating-linear-gradient(45deg, var(--s-red) 0 3px, var(--s-ge) 3px 6px); border: 2px solid var(--s-red); }
#figGeorgia .lg--cap { background: var(--s-ge); }

/* ---------- 23. Mobile fixes ---------- */
/* Georgian has no capitals in BPG Typewriter: uppercasing turns letters into Mtavruli,
   which phones show as empty squares. Keep Georgian text in its normal form
   (English map labels inside the SVG maps stay uppercase). */
html:lang(ka) body *:not(svg, svg *) { text-transform: none !important; font-variant-caps: normal !important; }
/* five lenses on narrow screens: no top rule pressed against the heading */
@media (max-width: 860px) { .lens { border-top: 0; padding-top: 2px; } .lens + .lens { margin-top: 8px; } }
.meter__lab > * { min-width: 0; overflow-wrap: anywhere; }
/* footer labels stay red on the black block; Latin pole ends stay uppercase on the Georgian page */
.foot .label { color: var(--s-red) !important; }
html:lang(ka) .pole__end { text-transform: uppercase !important; }
.foot__grid { margin-top: 0; }
