/* ==========================================================================
   sjaishankar.com — THE DIPLOMATIC ATLAS
   Design system + page compositions. Breakpoints live in responsive.css.
   ========================================================================== */

/* ---------- 01. Tokens ---------- */
:root {
  --obsidian: #101418;
  --ink: #18242B;
  --atlantic: #274C5B;
  --slate-blue: #486875;
  --oxide: #9E5145;
  --brass: #B99A5D;
  --paper: #F1EDE4;
  --porcelain: #FAF9F5;
  --mist: #E3E8E8;
  --charcoal: #20272B;
  --muted: #647176;
  --muted-strong: #4F5B60;   /* muted slate, darkened for small text on light grounds (AA) */
  --white: #FFFFFF;

  --on-dark: #E9E5DC;
  --on-dark-muted: #A4B0B4;
  --rule-light: rgba(32, 39, 43, .14);
  --rule-dark: rgba(241, 237, 228, .14);
  --brass-soft: rgba(185, 154, 93, .35);

  --f-serif: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 02. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxide); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--obsidian); }

:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; border-radius: 1px; }
.on-dark :focus-visible, .sec--ink :focus-visible, .sec--deep :focus-visible, .masthead :focus-visible,
.index-panel :focus-visible, .colophon :focus-visible { outline-color: var(--brass); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--brass); color: var(--obsidian);
  font: 600 13px/1 var(--f-sans); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 03. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 920px; }
.wrap--wide { max-width: 1480px; }
.sec { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.sec--ink { background: var(--obsidian); color: var(--on-dark); }
.sec--deep { background: var(--ink); color: var(--on-dark); }
.sec--atlantic { background: var(--atlantic); color: var(--on-dark); }
.sec--paper { background: var(--paper); }
.sec--porcelain { background: var(--porcelain); }
.sec--mist { background: var(--mist); }
.sec--ink a:hover, .sec--deep a:hover, .sec--atlantic a:hover { color: var(--brass); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }

/* ---------- 04. Type ---------- */
.kicker, .mono, .coord, .meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.5;
}
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--muted-strong); font-weight: 500; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.kicker--plain::before { display: none; }
.sec--ink .kicker, .sec--deep .kicker, .sec--atlantic .kicker, .on-dark .kicker { color: var(--brass); }
.coord { color: var(--brass); letter-spacing: .12em; white-space: nowrap; }
.coord--light { color: var(--oxide); }
.meta { color: var(--muted-strong); letter-spacing: .12em; }
.sec--ink .meta, .sec--deep .meta, .sec--atlantic .meta { color: var(--on-dark-muted); }

.display { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; line-height: .92; }
.h-xl { font-family: var(--f-serif); font-size: clamp(44px, 7vw, 104px); line-height: .96; letter-spacing: -.012em; }
.h-lg { font-family: var(--f-serif); font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; }
.h-md { font-family: var(--f-serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; }
.h-sm { font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.h-md em, .h-lg em, .h-xl em { font-style: italic; color: var(--oxide); }
.sec--ink .h-md em, .sec--ink .h-lg em, .sec--ink .h-xl em,
.sec--deep .h-md em, .sec--deep .h-lg em, .sec--deep .h-xl em,
.sec--atlantic .h-lg em, .sec--atlantic .h-xl em { color: var(--brass); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--charcoal); max-width: 62ch; }
.sec--ink .lede, .sec--deep .lede, .sec--atlantic .lede { color: var(--on-dark); }
.prose { max-width: 68ch; }
.prose p + h3, .prose ul + h3 { margin-top: 1.8em; }
.prose h3 { font-family: var(--f-serif); font-size: 26px; margin-bottom: .5em; }
.prose ul { padding-left: 1.1em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.muted { color: var(--muted-strong); }
.sec--ink .muted, .sec--deep .muted, .sec--atlantic .muted { color: var(--on-dark-muted); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Source attribution */
.src {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  margin-top: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--muted-strong);
}
.src::before { content: "SOURCE"; color: var(--oxide); letter-spacing: .16em; font-weight: 500; }
.src a { color: inherit; }
.sec--ink .src, .sec--deep .src, .sec--atlantic .src { color: var(--on-dark-muted); }
.sec--ink .src::before, .sec--deep .src::before, .sec--atlantic .src::before { color: var(--brass); }

.tag {
  display: inline-block; padding: 3px 8px; border: 1px solid currentColor;
  font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--atlantic); white-space: nowrap;
}
.tag--oxide { color: var(--oxide); }
.tag--brass { color: var(--brass); }
.tag--slate { color: var(--slate-blue); }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px; border: 1px solid currentColor;
  font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.btn::after { content: "→"; font-family: var(--f-sans); letter-spacing: 0; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn--brass { color: var(--obsidian); background: var(--brass); border-color: var(--brass); }
.btn--brass:hover { background: var(--paper); border-color: var(--paper); color: var(--obsidian); }
.btn--ghost { color: var(--on-dark); border-color: rgba(233, 229, 220, .4); }
.btn--ghost:hover { color: var(--brass); border-color: var(--brass); }
.btn--ink { color: var(--porcelain); background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: var(--oxide); border-color: var(--oxide); color: var(--white); }
.link-arrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow::after { content: " →"; }

/* ---------- 05. Masthead (sticky) ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(16, 20, 24, .94);
  color: var(--on-dark);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow .3s var(--ease);
}
.masthead.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.masthead__bar {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; flex-shrink: 0; }
.brand__name { font-family: var(--f-serif); font-size: 25px; line-height: 1; letter-spacing: .01em; color: var(--porcelain); }
.brand__sub { font: 500 9.5px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.brand:hover .brand__name { color: var(--brass); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; list-style: none; gap: 2px; }
.primary-nav a {
  position: relative; display: block; padding: 10px 11px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-muted); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--oxide); transform: scale(0); transition: transform .25s var(--ease);
}
.primary-nav a:hover { color: var(--porcelain); }
.primary-nav a[aria-current="page"] { color: var(--porcelain); }
.primary-nav a[aria-current="page"]::after { transform: scale(1); background: var(--brass); }

.masthead__coord {
  padding-left: 18px; border-left: 1px solid var(--rule-dark);
  font: 500 10.5px/1.35 var(--f-mono); letter-spacing: .12em; color: var(--on-dark-muted); text-transform: uppercase;
  white-space: nowrap;
}
.masthead__coord b { display: block; font-weight: 500; color: var(--brass); }

.index-toggle {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  height: 40px; padding: 0 14px 0 16px; margin-left: 4px;
  border: 1px solid var(--rule-dark); background: transparent; cursor: pointer;
  font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--porcelain);
  transition: border-color .2s, color .2s;
}
.index-toggle:hover { border-color: var(--brass); color: var(--brass); }
.index-toggle__icon { position: relative; width: 20px; height: 10px; }
.index-toggle__icon::before, .index-toggle__icon::after {
  content: ""; position: absolute; left: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), width .3s var(--ease), top .3s var(--ease);
}
.index-toggle__icon::before { top: 0; width: 20px; }
.index-toggle__icon::after { top: 8px; width: 13px; }
.index-toggle[aria-expanded="true"] .index-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.index-toggle[aria-expanded="true"] .index-toggle__icon::after { top: 4px; width: 20px; transform: rotate(-45deg); }

/* Coordinate hairline — the site's signature rule */
.masthead__scale {
  height: 7px;
  background:
    linear-gradient(var(--brass-soft), var(--brass-soft)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(185, 154, 93, .5) 0 1px, transparent 1px 12px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, rgba(185, 154, 93, .8) 0 1px, transparent 1px 120px) left bottom / 100% 7px no-repeat;
}
.masthead__progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--oxide); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- 06. Index panel (full navigation, desktop + mobile) ---------- */
.index-panel {
  position: fixed; inset: 0; z-index: 55;
  padding-top: calc(var(--header-h) + 7px);
  background: var(--obsidian); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease), opacity .3s, visibility 0s linear .55s;
}
.index-panel.is-open {
  visibility: visible; opacity: 1; clip-path: inset(0 0 0 0);
  transition: clip-path .55s var(--ease), opacity .2s, visibility 0s;
}
.index-panel__inner { padding-block: clamp(28px, 5vw, 64px) 48px; }
.index-panel__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px;
  padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--rule-dark);
}
.index-panel__title { font-family: var(--f-serif); font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.index-list {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px);
}
.index-list li { border-bottom: 1px solid var(--rule-dark); }
.index-list a {
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: baseline;
  padding: 14px 0; text-decoration: none; color: var(--on-dark);
}
.index-list .n { grid-row: span 2; font: 500 11px/1 var(--f-mono); color: var(--brass); letter-spacing: .1em; }
.index-list .t { font-family: var(--f-serif); font-size: 23px; line-height: 1.15; transition: color .2s, transform .3s var(--ease); }
.index-list .d { font: 400 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.index-list a:hover .t { color: var(--brass); transform: translateX(4px); }
.index-list a[aria-current="page"] .t { color: var(--brass); font-style: italic; }
.index-list a[aria-current="page"] .n::after { content: " ●"; color: var(--oxide); }
.index-panel__foot {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
  margin-top: 36px; font: 400 11px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted);
}
body.index-open { overflow: hidden; }

/* ---------- 07. Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; font: 400 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; color: inherit; opacity: .75; }
.crumbs a:hover { opacity: 1; color: var(--brass); }
.crumbs [aria-current] { opacity: 1; }

/* ---------- 08. Figures (never crop — natural aspect ratio) ---------- */
.fig { margin: 0; }
.fig__frame { position: relative; background: var(--ink); }
.fig__frame img { width: 100%; height: auto; }
.fig--mat .fig__frame { padding: clamp(8px, 1.2vw, 14px); background: var(--white); box-shadow: 0 1px 0 var(--rule-light), 0 18px 40px -28px rgba(16, 20, 24, .45); }
.fig figcaption, .fig__cap {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline;
  margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted-strong);
}
.fig figcaption .coord, .fig__cap .coord { grid-row: span 2; font-size: 10.5px; }
.fig figcaption .credit { font: 400 10.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.fig figcaption.no-coord { grid-template-columns: 1fr; }
.sec--ink .fig figcaption, .sec--deep .fig figcaption, .sec--atlantic .fig figcaption { color: var(--on-dark-muted); }
/* corner ticks */
.ticks { position: relative; }
.ticks::before, .ticks::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--brass); pointer-events: none; z-index: 2;
}
.ticks::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.ticks::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

/* ---------- 09. Atlas (inline SVG cartography) ---------- */
.atlas { position: relative; }
.atlas svg { width: 100%; height: auto; overflow: hidden; }
.atlas .grat { fill: none; stroke: currentColor; stroke-width: .5; opacity: .22; vector-effect: non-scaling-stroke; }
.atlas .grat--major { opacity: .38; stroke-dasharray: 2 3; }
.atlas .land { fill: currentColor; fill-opacity: .07; stroke: currentColor; stroke-opacity: .5; stroke-width: .7; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.atlas .route { fill: none; stroke: var(--brass); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.atlas .route--oxide { stroke: var(--oxide); }
.atlas .route--dash { stroke-dasharray: 3 4; }
.atlas .city circle { fill: var(--brass); }
.atlas .city .halo { fill: none; stroke: var(--brass); stroke-width: .8; opacity: .6; vector-effect: non-scaling-stroke; }
.atlas .city--origin circle { fill: var(--oxide); }
.atlas .city--origin .halo { stroke: var(--oxide); }
.atlas .city text { font: 500 8.5px var(--f-mono); letter-spacing: .1em; fill: currentColor; text-transform: uppercase; }
.atlas .city text.c { font-size: 6.5px; fill: var(--brass); opacity: .95; }
.atlas .lbl-lat { font: 400 7px var(--f-mono); fill: currentColor; opacity: .5; letter-spacing: .08em; }
[data-draw] .route { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
[data-draw].is-drawn .route { transition: stroke-dashoffset 2.4s var(--ease); stroke-dashoffset: 0; }
[data-draw].is-drawn .route--dash { stroke-dasharray: 3 4; stroke-dashoffset: 0; }
[data-draw] .city { opacity: 0; transition: opacity .6s ease .8s; }
[data-draw].is-drawn .city { opacity: 1; }
.atlas .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* Region hotspots positioned over an atlas */
.hotspots { position: absolute; inset: 0; list-style: none; pointer-events: none; }
.hotspot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.hotspot a, .hotspot button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px;
  background: rgba(16, 20, 24, .78); border: 1px solid rgba(185, 154, 93, .45); cursor: pointer;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark);
  text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s;
}
.hotspot a::before, .hotspot button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px rgba(185, 154, 93, .22); }
.hotspot a:hover, .hotspot button:hover, .hotspot button[aria-selected="true"] { background: var(--brass); color: var(--obsidian); border-color: var(--brass); }
.hotspot a:hover::before, .hotspot button:hover::before, .hotspot button[aria-selected="true"]::before { background: var(--oxide); box-shadow: none; }

/* ---------- 10. Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img .fig__frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js .reveal-img.is-in .fig__frame { clip-path: inset(0 0 0 0); }

/* ---------- 11. Page head (shared scaffold for interior pages) ---------- */
.phead { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(40px, 6vw, 80px); overflow: hidden; }
.phead .crumbs { margin-bottom: clamp(28px, 4vw, 52px); }
.phead__title { font-family: var(--f-serif); font-size: clamp(46px, 7.4vw, 112px); line-height: .94; letter-spacing: -.015em; }
.phead__title em { font-style: italic; }
.phead__lede { margin-top: 24px; }
.phead__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; }

/* ---------- 12. Ledger tables (register style) ---------- */
.ledger { width: 100%; font-size: 15px; }
.ledger caption { text-align: left; padding-bottom: 14px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); }
.ledger th {
  text-align: left; vertical-align: bottom; padding: 0 16px 12px 0;
  font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong);
  border-bottom: 1px solid var(--charcoal);
}
.ledger td { padding: 16px 16px 16px 0; vertical-align: top; border-bottom: 1px solid var(--rule-light); }
.ledger td:last-child, .ledger th:last-child { padding-right: 0; }
.ledger .date { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; color: var(--atlantic); }
.ledger .title { font-family: var(--f-serif); font-size: 21px; line-height: 1.25; }
.ledger a { text-decoration-color: var(--brass); }
.sec--ink .ledger th, .sec--deep .ledger th { color: var(--on-dark-muted); border-color: var(--on-dark-muted); }
.sec--ink .ledger td, .sec--deep .ledger td { border-color: var(--rule-dark); }
.sec--ink .ledger .date, .sec--deep .ledger .date { color: var(--brass); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 13. Footer / colophon ---------- */
.colophon { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.colophon__map { position: absolute; inset: auto 0 0 0; color: var(--on-dark); opacity: .07; pointer-events: none; }
.colophon__main {
  position: relative; display: grid; grid-template-columns: 1.3fr 2fr 1.2fr; gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(56px, 7vw, 96px) 48px;
}
.colophon__brand .brand__name { font-size: clamp(40px, 4vw, 56px); display: block; margin-bottom: 12px; }
.colophon__brand p { color: var(--on-dark-muted); font-size: 14px; max-width: 34ch; }
.colophon h2 { font: 500 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.colophon__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; list-style: none; }
.colophon__links a { display: block; padding: 5px 0; font-size: 14px; color: var(--on-dark); text-decoration: none; }
.colophon__links a:hover { color: var(--brass); }
.colophon address { font-style: normal; font-size: 15px; line-height: 1.8; }
.colophon address strong { font-family: var(--f-serif); font-weight: 400; font-size: 24px; display: block; margin-bottom: 6px; }
.colophon address a { text-decoration: none; }
.colophon address a:hover { color: var(--brass); }
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--rule-dark); color: var(--on-dark); transition: border-color .2s, color .2s, background .2s;
}
.social a:hover { border-color: var(--brass); color: var(--obsidian); background: var(--brass); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social-note { margin-top: 12px; font: 400 10.5px/1.5 var(--f-mono); letter-spacing: .06em; color: var(--on-dark-muted); max-width: 36ch; }
.colophon__bar {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
  padding-block: 22px 28px; border-top: 1px solid var(--rule-dark);
  font: 400 11px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted);
}
.colophon__bar a { color: var(--on-dark); }
.colophon__bar a:hover { color: var(--brass); }
.colophon__disclaimer { position: relative; padding-bottom: 8px; font-size: 12.5px; color: var(--on-dark-muted); max-width: 90ch; }
.end-session { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.end-session:hover { color: var(--brass); }

/* ==========================================================================
   PAGE COMPOSITIONS
   ========================================================================== */

/* ---------- HOME: world-atlas opening ---------- */
.hero-atlas { position: relative; background: var(--obsidian); color: var(--on-dark); overflow: hidden; }
.hero-atlas__map { position: absolute; inset: 0; color: var(--on-dark); opacity: .5; pointer-events: none; }
.hero-atlas__map .atlas { position: absolute; left: -4%; right: -4%; top: 50%; transform: translateY(-50%); }
.hero-atlas__map .land { fill-opacity: .035; stroke-opacity: .22; }
.hero-atlas__map .grat { opacity: .14; }
.hero-atlas__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  min-height: calc(100svh - var(--header-h) - 7px); padding-block: clamp(40px, 6vw, 72px);
}
.hero-atlas__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.hero-atlas__meta span { font: 500 11px/1 var(--f-mono); letter-spacing: .22em; color: var(--brass); }
.hero-atlas__meta span + span::before { content: "/"; margin-right: 18px; color: var(--on-dark-muted); }
.hero-atlas__name { font-family: var(--f-serif); font-size: clamp(76px, 12.4vw, 196px); line-height: .84; letter-spacing: -.02em; color: var(--porcelain); }
.hero-atlas__name span { display: block; }
.hero-atlas__name .initial { color: var(--brass); font-style: italic; }
.hero-atlas__office { margin-top: clamp(22px, 3vw, 36px); font-family: var(--f-serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; color: var(--porcelain); }
.hero-atlas__fact { margin-top: 10px; font-size: 16px; color: var(--on-dark-muted); }
.hero-atlas__ledger { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: clamp(28px, 3.4vw, 44px); padding-top: 20px; border-top: 1px solid var(--rule-dark); }
.hero-atlas__ledger dt { font: 500 10px/1.3 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-atlas__ledger dd { margin-top: 6px; font-family: var(--f-serif); font-size: 22px; color: var(--porcelain); }
.hero-atlas__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 40px); }
.plate { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.plate__frame {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: min(72svh, 700px); min-height: 420px;
  background: radial-gradient(120% 80% at 50% 100%, rgba(39, 76, 91, .75), rgba(24, 36, 43, .9) 60%, rgba(16, 20, 24, .95));
  border: 1px solid rgba(185, 154, 93, .3);
}
.plate__frame img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.plate__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font: 400 10.5px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.plate__cap b { font-weight: 500; color: var(--brass); }
.plate__axis { position: absolute; top: 0; bottom: 0; left: -34px; display: flex; flex-direction: column; justify-content: space-between; font: 400 9px/1 var(--f-mono); letter-spacing: .12em; color: var(--on-dark-muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 20px; font: 400 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 44px; height: 1px; background: var(--brass); transform-origin: left; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* Home: introduction + horizontal career route */
.intro-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.intro-split .h-lg { position: sticky; top: calc(var(--header-h) + 40px); }
.intro-cols { columns: 2; column-gap: 40px; }
.intro-cols p { break-inside: avoid; }
.route-h { position: relative; list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); }
.route-h::before { content: ""; position: absolute; left: 0; right: 0; top: 37px; height: 1px; background: linear-gradient(90deg, var(--brass), var(--oxide)); }
.route-h li { position: relative; padding: 0 14px 0 0; }
.route-h .yr { display: block; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--atlantic); height: 26px; }
.route-h .node { display: block; width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--brass); background: var(--paper); position: relative; }
.route-h .node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--brass); }
.route-h li:last-child .node { border-color: var(--oxide); }
.route-h li:last-child .node::after { background: var(--oxide); }
.route-h .place { display: block; margin-top: 18px; font-family: var(--f-serif); font-size: 23px; line-height: 1.1; }
.route-h .role { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted-strong); }
.route-h .coord { display: block; margin-top: 10px; font-size: 10px; color: var(--oxide); }

/* Home: world view */
.worldview__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.worldview__map { position: relative; color: var(--on-dark); }
.worldview__legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; font: 400 10.5px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.worldview__legend i { display: inline-block; width: 18px; height: 1px; vertical-align: middle; margin-right: 8px; background: var(--brass); }
.worldview__legend i.dot { width: 7px; height: 7px; border-radius: 50%; }
.worldview__legend i.ox { background: var(--oxide); }
.region-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 40px; border-top: 1px solid var(--rule-dark); }
.region-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); text-decoration: none; font-family: var(--f-serif); font-size: 21px; }
.region-list a span { font: 400 10px/2.4 var(--f-mono); letter-spacing: .12em; color: var(--brass); }

/* Home: current diplomacy */
.current { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.current__aside .fig { margin-top: 32px; }
.current__note { margin-top: 20px; font-size: 13.5px; color: var(--muted-strong); max-width: 40ch; }

/* Home: section index */
.toc { list-style: none; columns: 2; column-gap: clamp(32px, 5vw, 80px); counter-reset: toc; }
.toc li { break-inside: avoid; border-top: 1px solid var(--rule-light); }
.toc a { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; text-decoration: none; }
.toc .n { font: 500 11px/1 var(--f-mono); color: var(--oxide); }
.toc .t { font-family: var(--f-serif); font-size: 24px; line-height: 1.15; }
.toc .d { display: block; font-family: var(--f-sans); font-size: 13.5px; color: var(--muted-strong); margin-top: 4px; }
.toc .c { font: 400 10px/1 var(--f-mono); letter-spacing: .08em; color: var(--muted-strong); white-space: nowrap; }
.toc a:hover .t { color: var(--oxide); }

/* ---------- ABOUT: biographical dossier ---------- */
.dossier-head { background: var(--paper); }
.dossier-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.file-label { display: inline-flex; gap: 0; border: 1px solid var(--charcoal); font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 28px; }
.file-label span { padding: 9px 12px; }
.file-label span + span { border-left: 1px solid var(--charcoal); background: var(--charcoal); color: var(--paper); }
.stamp { width: 150px; height: 150px; color: var(--oxide); transform: rotate(-12deg); opacity: .85; }
.stamp text { font: 600 10.5px var(--f-mono); letter-spacing: .28em; fill: currentColor; }
.stamp .big { font: 400 26px var(--f-serif); letter-spacing: .02em; }
.dossier { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.dossier__card { position: sticky; top: calc(var(--header-h) + 28px); background: var(--white); border: 1px solid var(--rule-light); padding: 16px; box-shadow: 0 24px 48px -36px rgba(16, 20, 24, .5); }
.dossier__card .fig figcaption { font-size: 12px; }
.dossier__facts { margin-top: 18px; border-top: 1px solid var(--charcoal); }
.dossier__facts div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rule-light); font-size: 14px; line-height: 1.45; }
.dossier__facts dt { font: 500 10px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); }
.dossier__body section { padding-bottom: clamp(36px, 4vw, 56px); margin-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--rule-light); }
.dossier__body section:last-child { border-bottom: 0; margin-bottom: 0; }
.dossier__sno { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.dossier__sno span { font: 500 12px/1 var(--f-mono); color: var(--oxide); letter-spacing: .1em; }
.edu-steps { list-style: none; border-left: 1px solid var(--brass); margin: 20px 0 0 6px; }
.edu-steps li { position: relative; padding: 0 0 18px 26px; }
.edu-steps li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--oxide); }
.edu-steps b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.edu-steps span { font-size: 14px; color: var(--muted-strong); }
.register td .coord { color: var(--oxide); font-size: 10.5px; }

/* ---------- EARLY LIFE: archival document composition ---------- */
.archive-ground {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(32, 39, 43, .035) 0 1px, transparent 1px 32px),
    radial-gradient(120% 60% at 20% 0%, rgba(185, 154, 93, .10), transparent 60%);
}
.sheet {
  position: relative; background: var(--porcelain); padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 1px 0 rgba(32, 39, 43, .08), 0 30px 60px -40px rgba(16, 20, 24, .45);
  border: 1px solid rgba(32, 39, 43, .08);
}
.sheet--offset { transform: rotate(-.6deg); }
.sheet__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 2px solid var(--charcoal); font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.sheet__stamp { position: absolute; right: clamp(16px, 4vw, 48px); top: clamp(56px, 7vw, 88px); padding: 8px 14px; border: 2px solid var(--oxide); color: var(--oxide); font: 600 12px/1 var(--f-mono); letter-spacing: .2em; transform: rotate(8deg); opacity: .8; }
.archive-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.prints { position: relative; display: flex; justify-content: center; gap: 0; padding: 24px 0; }
.print { position: relative; background: var(--white); padding: 10px 10px 38px; box-shadow: 0 20px 40px -24px rgba(16, 20, 24, .55); width: 46%; max-width: 230px; }
.print:first-child { transform: rotate(-4deg) translateY(10px); z-index: 1; }
.print:last-child { transform: rotate(3deg); margin-left: -8%; }
.print img { width: 100%; height: auto; }
.print figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-strong); }
.print::before, .print::after { content: ""; position: absolute; width: 30px; height: 30px; background: rgba(185, 154, 93, .55); clip-path: polygon(0 0, 100% 0, 0 100%); }
.print::before { top: 2px; left: 2px; }
.print::after { bottom: 30px; right: 2px; transform: rotate(180deg); }
.index-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 36px; }
.index-card {
  position: relative; padding: 22px 22px 24px; background: var(--white);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(39, 76, 91, .14) 27px 28px);
  background-position: 0 58px; border-top: 3px solid var(--oxide);
  box-shadow: 0 16px 34px -26px rgba(16, 20, 24, .5);
}
.index-card:nth-child(2) { transform: rotate(.5deg); }
.index-card:nth-child(3) { transform: rotate(-.4deg); }
.index-card .coord { color: var(--oxide); font-size: 10px; }
.index-card h3 { font-family: var(--f-serif); font-size: 26px; line-height: 1.12; margin: 10px 0 12px; }
.index-card ul { list-style: none; }
.index-card li { font-size: 15px; line-height: 28px; }
.index-card li::before { content: "— "; color: var(--brass); }
.omission { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 22px 24px; border: 1px dashed var(--muted); font-size: 14.5px; }
.omission b { font: 600 11px/1.6 var(--f-mono); letter-spacing: .16em; color: var(--oxide); text-transform: uppercase; }

/* ---------- DIPLOMATIC CAREER: world route timeline ---------- */
.career-head { background: var(--ink); color: var(--on-dark); }
.career-head .atlas { color: var(--on-dark); margin-top: clamp(28px, 4vw, 56px); }
.career-head .atlas .land { fill-opacity: .05; stroke-opacity: .3; }
.career-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.career-map { position: sticky; top: calc(var(--header-h) + 24px); color: var(--charcoal); }
.career-map .atlas .land { fill-opacity: .05; stroke-opacity: .35; }
.career-map .city { opacity: .35; transition: opacity .4s; }
.career-map .city.is-active { opacity: 1; }
.career-map .city.is-active circle:not(.halo) { fill: var(--oxide); }
.career-map .city text { fill: var(--charcoal); }
.career-map__readout { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; margin-top: 12px; border-top: 1px solid var(--charcoal); font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.career-map__readout b { color: var(--oxide); font-weight: 500; }
.postings { list-style: none; position: relative; }
.postings::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: repeating-linear-gradient(180deg, var(--brass) 0 6px, transparent 6px 10px); }
.posting { position: relative; padding: 0 0 clamp(40px, 5vw, 64px) 44px; }
.posting::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--porcelain); border: 1px solid var(--brass); transition: background .3s, border-color .3s; }
.posting.is-active::before { background: var(--oxide); border-color: var(--oxide); }
.posting__top { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.posting__period { font: 500 13px/1 var(--f-mono); color: var(--atlantic); letter-spacing: .06em; }
.posting h2 { font-family: var(--f-serif); font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; margin: 10px 0 6px; }
.posting__role { font-size: 17px; font-weight: 500; }
.posting__grid { display: grid; grid-template-columns: 150px 1fr; gap: 12px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-light); font-size: 15px; }
.posting__grid dt { font: 500 10.5px/1.7 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); }
.posting .fig { margin-top: 22px; max-width: 360px; }

/* ---------- FOREIGN SECRETARY: institutional research layout ---------- */
.fs-head { background: var(--mist); }
.fs-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.key-legend { display: grid; gap: 1px; background: var(--charcoal); border: 1px solid var(--charcoal); }
.key-legend div { padding: 18px 20px; background: var(--porcelain); }
.key-legend b { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
.key-legend b::before { content: ""; width: 12px; height: 12px; }
.key-legend .k-office b::before { background: var(--atlantic); }
.key-legend .k-role b::before { background: var(--oxide); }
.key-legend p { margin: 0; font-size: 14px; color: var(--muted-strong); }
.research { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); }
.research__body .para { position: relative; padding-left: 52px; margin-bottom: 1.3em; }
.research__body .para::before { content: attr(data-p); position: absolute; left: 0; top: 4px; font: 500 11px/1 var(--f-mono); color: var(--muted-strong); letter-spacing: .06em; }
.research__notes { font-size: 13.5px; color: var(--muted-strong); border-top: 2px solid var(--charcoal); padding-top: 18px; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); }
.research__notes ol { padding-left: 20px; }
.research__notes li { margin-bottom: 12px; }
.orgchart { display: grid; gap: 14px; margin: 36px 0; }
.orgchart .tier { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative; }
.orgchart .tier + .tier::before { content: ""; position: absolute; top: -14px; left: 50%; width: 1px; height: 14px; background: var(--charcoal); }
.orgchart .box { padding: 12px 18px; border: 1px solid var(--charcoal); background: var(--porcelain); font-size: 14px; text-align: center; min-width: 180px; }
.orgchart .box small { display: block; font: 400 10px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); }
.orgchart .box--fs { background: var(--atlantic); color: var(--white); border-color: var(--atlantic); }
.orgchart .box--fs small { color: var(--mist); }
.attrib { display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.attrib::before { content: ""; width: 9px; height: 9px; }
.attrib--office { color: var(--atlantic); }
.attrib--office::before { background: var(--atlantic); }
.attrib--role { color: var(--oxide); }
.attrib--role::before { background: var(--oxide); }
.split-table td:nth-child(3) { border-left: 3px solid var(--oxide); padding-left: 14px; }
.split-table td:nth-child(2) { border-left: 3px solid var(--atlantic); padding-left: 14px; }

/* ---------- EAM: global-policy editorial ---------- */
.eam-head { background: var(--obsidian); color: var(--on-dark); padding-bottom: 0; }
.eam-head__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.eam-head .dateline { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 16px 0; margin-top: 32px; border-block: 1px solid var(--rule-dark); font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.eam-head .dateline b { color: var(--brass); font-weight: 500; }
.eam-head .fig { position: relative; top: clamp(24px, 4vw, 56px); }
.eam-after-head { padding-top: clamp(80px, 10vw, 140px); }
.pull { font-family: var(--f-serif); font-size: clamp(26px, 3vw, 42px); line-height: 1.2; border-left: 2px solid var(--oxide); padding-left: clamp(18px, 3vw, 36px); max-width: 30ch; }
.office-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--charcoal); }
.office-cols > div { padding: 22px 24px 0 0; }
.office-cols > div + div { padding-left: 24px; border-left: 1px solid var(--rule-light); }
.office-cols h3 { font: 600 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; color: var(--atlantic); }
.year-rail { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; border-top: 1px solid var(--rule-dark); }
.year-rail li { scroll-snap-align: start; padding: 24px 24px 8px 0; border-right: 1px solid var(--rule-dark); margin-right: 24px; }
.year-rail .y { font-family: var(--f-serif); font-size: 56px; line-height: 1; color: var(--brass); }
.year-rail ul { list-style: none; margin-top: 14px; }
.year-rail ul li { padding: 0 0 12px; border: 0; margin: 0; font-size: 14.5px; line-height: 1.5; }
.year-rail ul li b { display: block; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.year-rail a { color: var(--on-dark); }
.theme-index { border-top: 1px solid var(--charcoal); }
.theme { border-bottom: 1px solid var(--rule-light); }
.theme summary { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; }
.theme summary::-webkit-details-marker { display: none; }
.theme summary .n { font: 500 12px/1 var(--f-mono); color: var(--oxide); }
.theme summary .t { font-family: var(--f-serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.theme summary .pm { width: 28px; height: 28px; border: 1px solid var(--charcoal); border-radius: 50%; position: relative; }
.theme summary .pm::before, .theme summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin: -.5px 0 0 -5px; background: currentColor; transition: transform .3s var(--ease); }
.theme summary .pm::after { transform: rotate(90deg); }
.theme[open] summary .pm::after { transform: rotate(0); }
.theme summary:hover .t { color: var(--oxide); }
.theme__body { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; padding: 0 0 28px; font-size: 15.5px; }
.theme__body > div:first-child { grid-column: 2; }
.theme__body h3 { font: 600 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); margin-bottom: 8px; }

/* ---------- INDIA & THE WORLD: interactive atlas ---------- */
.world-atlas { background: var(--ink); color: var(--on-dark); }
.world-atlas__map { position: relative; color: var(--on-dark); margin-top: clamp(24px, 3vw, 40px); }
.world-atlas__map .land { fill-opacity: .06; stroke-opacity: .42; }
.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.region-tabs button {
  padding: 10px 14px; border: 1px solid var(--rule-dark); background: transparent; cursor: pointer;
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark);
}
.region-tabs button:hover { border-color: var(--brass); color: var(--brass); }
.region-tabs button[aria-selected="true"] { background: var(--brass); color: var(--obsidian); border-color: var(--brass); }
.region-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--rule-light); }
.js .region-panel[hidden] { display: none; }
.region-panel__aside .coord { color: var(--oxide); }
.region-panel__aside h2 { font-family: var(--f-serif); font-size: clamp(40px, 5vw, 72px); line-height: .98; margin: 12px 0 16px; }
.region-panel__aside .fig { margin-top: 24px; }
.region-facets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.region-facets section { border-top: 1px solid var(--charcoal); padding-top: 14px; }
.region-facets h3 { font: 600 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--atlantic); margin-bottom: 10px; }
.region-facets p, .region-facets li { font-size: 15.5px; }
.region-facets ul { padding-left: 1.1em; }
.region-facets .wide { grid-column: 1 / -1; }

/* ---------- BILATERAL: country dossier ---------- */
.bilat-head { background: var(--porcelain); border-bottom: 1px solid var(--rule-light); }
.bilat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.directory { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 4px; }
.directory label { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-strong); margin-bottom: 8px; }
.directory input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--charcoal); background: var(--white);
  font: 15px/1.2 var(--f-sans); color: var(--charcoal);
}
.directory h2 { margin: 22px 0 6px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--oxide); }
.directory ul { list-style: none; }
.directory a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-light); text-decoration: none; font-size: 15px; }
.directory a span { font: 400 10px/2 var(--f-mono); color: var(--muted-strong); letter-spacing: .06em; }
.directory a { position: relative; }
.directory a[aria-current="true"] { color: var(--oxide); font-weight: 600; padding-left: 16px; }
.directory a[aria-current="true"]::before { content: "▸"; position: absolute; left: 0; top: 9px; }
.directory .empty { font-size: 14px; color: var(--muted-strong); padding: 10px 0; }
.country { padding-bottom: clamp(48px, 6vw, 88px); margin-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--rule-light); }
.js .country[hidden] { display: none; }
.js .country { border-bottom: 0; margin-bottom: 0; }
.country__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; padding-bottom: 20px; border-bottom: 2px solid var(--charcoal); }
.country__head h2 { font-family: var(--f-serif); font-size: clamp(44px, 6vw, 88px); line-height: .95; }
.country__head .framework { grid-column: 1 / -1; font-size: 15px; color: var(--muted-strong); }
.country__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: 32px; }
.country__grid section { margin-bottom: 28px; }
.country__grid h3 { font: 600 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--atlantic); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-light); }
.milestones { list-style: none; }
.milestones li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--rule-light); font-size: 15px; }
.milestones b { font: 500 12.5px/1.6 var(--f-mono); color: var(--oxide); font-weight: 500; }
.srclist { list-style: none; font-size: 14px; }
.srclist li { padding: 6px 0; border-bottom: 1px solid var(--rule-light); }
.srclist a::after { content: " ↗"; font-size: 12px; }

/* ---------- MULTILATERAL: forum matrix ---------- */
.multi-head { background: var(--atlantic); color: var(--on-dark); }
.multi-head__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.multi-head__figs { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: end; }
.matrix { width: 100%; border: 1px solid var(--charcoal); font-size: 14.5px; }
.matrix th, .matrix td { padding: 14px 16px; border: 1px solid var(--rule-light); vertical-align: top; text-align: left; }
.matrix thead th { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.matrix tbody th { font-family: var(--f-serif); font-weight: 400; font-size: 22px; line-height: 1.15; background: var(--paper); min-width: 160px; }
.matrix tbody th small { display: block; font: 400 10px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-strong); margin-top: 4px; }
.matrix tbody tr:hover td { background: rgba(185, 154, 93, .08); }
.matrix .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--oxide); margin-right: 6px; }
.forum-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.forum-note { padding: 28px 0; border-top: 1px solid var(--rule-light); }
.forum-note h3 { font-family: var(--f-serif); font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.forum-note .coord { color: var(--oxide); font-size: 10px; }

/* ---------- GLOBAL SOUTH: southern hemisphere composition ---------- */
.south-head { background: linear-gradient(180deg, var(--atlantic) 0%, var(--ink) 100%); color: var(--on-dark); overflow: hidden; }
.south-head .atlas { color: var(--on-dark); margin-top: clamp(20px, 3vw, 40px); }
.south-head .atlas .land { fill-opacity: .08; stroke-opacity: .5; }
.equator-label { font: 500 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.south-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.summits { list-style: none; counter-reset: s; }
.summits li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule-light); }
.summits .ord { font-family: var(--f-serif); font-size: 52px; line-height: .9; color: var(--oxide); }
.summits h3 { font-family: var(--f-serif); font-size: 25px; line-height: 1.15; margin-bottom: 4px; }
.instruments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
.instruments > div { background: var(--ink); padding: 24px 22px; }
.instruments h3 { font-family: var(--f-serif); font-size: 26px; line-height: 1.1; margin: 10px 0 10px; color: var(--porcelain); }
.instruments p { font-size: 14.5px; color: var(--on-dark-muted); margin: 0; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--charcoal); }
.stat__n { font-family: var(--f-serif); font-size: clamp(48px, 5vw, 72px); line-height: .9; color: var(--atlantic); grid-row: span 3; }
.stat__l { font-size: 15.5px; font-weight: 500; }
.stat__p, .stat__s { font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); }

/* ---------- PARLIAMENT: legislative archive ---------- */
.parl-head { background: var(--porcelain); border-bottom: 3px double var(--charcoal); }
.record-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--charcoal); margin-top: clamp(28px, 4vw, 48px); }
.record-strip div { padding: 18px 20px; }
.record-strip div + div { border-left: 1px solid var(--charcoal); }
.record-strip dt { font: 500 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-strong); }
.record-strip dd { font-family: var(--f-serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; margin-top: 8px; }
.docket { list-style: none; counter-reset: dk; }
.docket > li { counter-increment: dk; display: grid; grid-template-columns: 90px 150px minmax(0, 1fr); gap: 14px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule-light); }
.docket > li::before { content: "Nº " counter(dk, decimal-leading-zero); font: 500 12px/1.8 var(--f-mono); color: var(--oxide); }
.docket .date { font: 500 13px/1.8 var(--f-mono); color: var(--atlantic); }
.docket h3 { font-family: var(--f-serif); font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.procedure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: pr; }
.procedure > div { counter-increment: pr; padding-top: 18px; border-top: 1px solid var(--charcoal); }
.procedure > div::before { content: counter(pr, upper-roman) "."; display: block; font-family: var(--f-serif); font-size: 38px; line-height: 1; color: var(--oxide); margin-bottom: 12px; }
.procedure h3 { font: 600 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- SPEECHES: chronological transcript archive ---------- */
.speech-head { background: var(--obsidian); color: var(--on-dark); }
.speech-strip { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 20px 24px; margin-top: clamp(32px, 4vw, 56px); align-items: start; max-width: 1080px; }
.speech-strip .fig:first-child { grid-row: span 2; }
.archive-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; padding: 22px 0; border-bottom: 1px solid var(--charcoal); position: sticky; top: calc(var(--header-h) + 7px); background: var(--porcelain); z-index: 5; }
.archive-controls .field { display: grid; gap: 6px; }
.archive-controls label, .archive-controls legend { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-strong); }
.archive-controls input[type="search"], .archive-controls select {
  min-width: 240px; padding: 10px 12px; border: 1px solid var(--charcoal); background: var(--white); font: 15px/1.2 var(--f-sans); color: var(--charcoal); border-radius: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 12px; border: 1px solid var(--rule-light); font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; background: var(--white); }
.chip input:checked + span { background: var(--charcoal); color: var(--porcelain); border-color: var(--charcoal); }
.chip input:focus-visible + span { outline: 2px solid var(--oxide); outline-offset: 2px; }
.archive-count { margin-left: auto; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); }
.transcripts { list-style: none; }
.yr-group > h2 { position: sticky; top: calc(var(--header-h) + 90px); font-family: var(--f-serif); font-size: 64px; line-height: 1; color: var(--brass); padding-top: 28px; float: left; width: 140px; }
.yr-group > ol { list-style: none; margin-left: 160px; }
.yr-group::after { content: ""; display: block; clear: both; }
.transcript { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 24px; padding: 26px 0; border-bottom: 1px solid var(--rule-light); }
.transcript .date { font: 500 12.5px/1.7 var(--f-mono); color: var(--atlantic); }
.transcript h3 { font-family: var(--f-serif); font-size: 25px; line-height: 1.2; }
.transcript h3 a { text-decoration: none; }
.transcript h3 a:hover { text-decoration: underline; }
.transcript dl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 13.5px; color: var(--muted-strong); }
.transcript dt { display: inline; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
.transcript dd { display: inline; }
.transcript .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.no-results { padding: 40px 0; font-size: 16px; color: var(--muted-strong); }

/* ---------- BOOKS: editorial publishing layout ---------- */
.books-head { background: var(--paper); }
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding-block: clamp(64px, 8vw, 120px); }
.book + .book { border-top: 1px solid var(--rule-light); }
.book--rev .book__object { order: 2; }
.book__object { display: flex; justify-content: center; perspective: 1400px; }
.cover {
  position: relative; width: min(330px, 78vw); aspect-ratio: 2 / 3; padding: 34px 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: -18px 22px 40px -18px rgba(16, 20, 24, .55), inset 6px 0 0 rgba(255, 255, 255, .06), inset 10px 0 18px -12px rgba(0, 0, 0, .5);
  transform: rotateY(-14deg); transition: transform .8s var(--ease);
}
.cover:hover { transform: rotateY(-4deg); }
.cover--a { background: linear-gradient(160deg, var(--atlantic), var(--ink)); color: var(--porcelain); }
.cover--b { background: linear-gradient(160deg, var(--paper), #e3dccd); color: var(--charcoal); border: 1px solid rgba(32, 39, 43, .1); }
.cover__kicker { font: 500 10px/1.4 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.cover__title { font-family: var(--f-serif); font-size: 44px; line-height: .98; }
.cover--b .cover__title em { color: var(--oxide); }
.cover--a .cover__title em { color: var(--brass); }
.cover__rule { width: 60px; height: 2px; background: currentColor; opacity: .5; }
.cover__author { font: 500 12px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; }
.cover__note { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font: 400 10px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-strong); }
.book__colophon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--charcoal); margin: 26px 0; }
.book__colophon div { padding: 14px 16px 14px 0; }
.book__colophon div + div { padding-left: 16px; border-left: 1px solid var(--rule-light); }
.book__colophon dt { font: 500 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-strong); }
.book__colophon dd { font-family: var(--f-serif); font-size: 22px; margin-top: 4px; }
.book__title { font-family: var(--f-serif); font-size: clamp(38px, 4.4vw, 64px); line-height: 1; }
.book__title em { color: var(--oxide); }

/* ---------- POLICY & IDEAS: attribution lanes ---------- */
.policy-head { background: var(--mist); }
.lanes-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 48px); border: 1px solid var(--charcoal); }
.lanes-key div { padding: 18px 20px; background: var(--porcelain); }
.lanes-key div + div { border-left: 1px solid var(--charcoal); }
.lanes-key b { display: block; font: 600 11px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.lanes-key p { margin: 0; font-size: 14px; color: var(--muted-strong); }
.lane-a b { color: var(--atlantic); }
.lane-b b { color: var(--oxide); }
.lane-c b { color: var(--slate-blue); }
.policy-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 0; border-bottom: 1px solid var(--rule-light); }
.policy-row > * { padding: 26px 24px 26px 0; }
.policy-row > * + * { padding-left: 24px; border-left: 1px solid var(--rule-light); }
.policy-row h2 { font-family: var(--f-serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.policy-row h2 small { display: block; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); margin-bottom: 6px; }
.policy-row .lane-label { display: block; font: 600 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.policy-row .a .lane-label { color: var(--atlantic); }
.policy-row .b .lane-label { color: var(--oxide); }
.policy-row p, .policy-row li { font-size: 15px; }
.policy-row ul { list-style: none; }
.policy-row li { padding: 4px 0; }
.policy-row li::before { content: "↗ "; color: var(--oxide); }
.policy-table-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); border-bottom: 1px solid var(--charcoal); font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); }
.policy-table-head span { padding: 0 24px 12px 0; }
.policy-table-head span + span { padding-left: 24px; }

/* ---------- DOCUMENTS: research repository ---------- */
.docs-head { background: var(--ink); color: var(--on-dark); }
.docs-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
.shelf div { background: var(--ink); padding: 16px; }
.shelf b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 38px; line-height: 1; color: var(--brass); }
.shelf span { font: 400 10px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.repo { width: 100%; font-size: 14.5px; }
.repo th { text-align: left; padding: 0 14px 12px 0; border-bottom: 1px solid var(--charcoal); font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); }
.repo td { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
.repo .docno { font: 500 11px/1.6 var(--f-mono); color: var(--oxide); white-space: nowrap; }
.repo .title { font-family: var(--f-serif); font-size: 20px; line-height: 1.25; }
.repo .date { font: 400 12.5px/1.6 var(--f-mono); white-space: nowrap; }
.repo .act { white-space: nowrap; }
.repo .act a { display: inline-block; margin-right: 10px; font: 500 10.5px/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.repo .act .na { font: 400 10.5px/1.6 var(--f-mono); color: var(--muted-strong); letter-spacing: .1em; }
.repo tr[hidden] { display: none; }

/* ---------- MEDIA: newsroom ---------- */
.news-masthead { background: var(--porcelain); border-bottom: 1px solid var(--charcoal); }
.news-masthead__name { font-family: var(--f-serif); font-size: clamp(56px, 11vw, 168px); line-height: .9; text-align: center; letter-spacing: -.02em; padding: 12px 0 18px; }
.news-masthead__rule { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 10px 0; border-block: 3px double var(--charcoal); font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.newsgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; }
.newsgrid > * { padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 40px) 0; }
.newsgrid > * + * { border-left: 1px solid var(--rule-light); padding-left: clamp(20px, 3vw, 40px); padding-right: 0; }
.desk { border-bottom: 1px solid var(--charcoal); }
.desk h2 { font: 600 11px/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--oxide); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.desk h2::after { content: ""; flex: 1; height: 1px; background: var(--rule-light); }
.channel { padding: 16px 0; border-bottom: 1px solid var(--rule-light); }
.channel:last-child { border-bottom: 0; }
.channel h3 { font-family: var(--f-serif); font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.channel h3 a { text-decoration: none; }
.channel h3 a:hover { text-decoration: underline; }
.channel .pub { font: 500 10px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--atlantic); }
.channel p { font-size: 15px; margin: 6px 0 0; }
.desk-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.desk-cols > div { padding: 0 24px 24px 0; }
.desk-cols > div + div { padding-left: 24px; border-left: 1px solid var(--rule-light); }

/* ---------- GALLERY: immersive visual archive ---------- */
.gallery-page { background: var(--obsidian); color: var(--on-dark); }
.gal-head { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 48px); }
.plate-full { margin: 0; }
.plate-full .fig__frame { background: var(--ink); }
.gal-row { display: grid; gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.gal-row--duo { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.gal-row--portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.gal-text { max-width: 44ch; }
.gal-text .h-md { margin-bottom: 16px; }
.gal-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.gal-strip > * { flex: 0 0 auto; width: min(420px, 78vw); scroll-snap-align: start; }
.gal-open { display: block; line-height: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-open:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.gal-timeline { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.gal-timeline li { padding-top: 18px; border-top: 1px solid var(--rule-dark); }
.gal-timeline .coord { font-size: 10px; }
.gal-timeline h3 { font-family: var(--f-serif); font-size: 24px; line-height: 1.15; margin: 8px 0 6px; color: var(--porcelain); }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr auto; background: rgba(10, 13, 16, .96); color: var(--on-dark); padding: 16px var(--gutter) 20px; }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.lightbox__bar button { padding: 10px 14px; border: 1px solid var(--rule-dark); background: transparent; color: var(--on-dark); cursor: pointer; font: inherit; letter-spacing: inherit; }
.lightbox__bar button:hover { border-color: var(--brass); color: var(--brass); }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 16px 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { text-align: center; font-size: 14px; color: var(--on-dark-muted); max-width: 80ch; margin: 0 auto; }

/* ---------- CONTACT: minimal communication interface ---------- */
.contact-page { background: var(--porcelain); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.contact__details { position: sticky; top: calc(var(--header-h) + 32px); }
.contact__line { padding: 20px 0; border-top: 1px solid var(--rule-light); }
.contact__line dt { font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-strong); margin-bottom: 10px; }
.contact__line dd { font-family: var(--f-serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; word-break: break-word; }
.contact__line dd a { text-decoration: none; }
.contact__line dd a:hover { color: var(--oxide); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 28px; }
.form .full { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; gap: 12px; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 10px; }
.field label .req { color: var(--oxide); }
.field input, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--charcoal); border-radius: 0; background: transparent;
  font: 17px/1.5 var(--f-sans); color: var(--charcoal); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; border: 1px solid var(--charcoal); padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--atlantic); box-shadow: 0 2px 0 0 var(--atlantic); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--atlantic); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--oxide); outline-offset: 4px; }
.field.has-error input, .field.has-error textarea { border-color: var(--oxide); }
.field .err { display: none; margin-top: 8px; font-size: 13.5px; color: #8A3F34; }
.field.has-error .err { display: flex; gap: 6px; }
.field.has-error .err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--oxide); color: var(--white); font: 700 11px/1 var(--f-sans); flex-shrink: 0; margin-top: 2px; }
.field .hint { margin-top: 6px; font-size: 12.5px; color: var(--muted-strong); }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.form__foot button { cursor: pointer; }
.form-status { grid-column: 1 / -1; padding: 20px 22px; border-left: 3px solid var(--atlantic); background: var(--mist); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: var(--oxide); background: #F4E6E2; }
.form-status h2 { font-family: var(--f-serif); font-size: 26px; margin-bottom: 6px; }
.form-status p:last-child { margin-bottom: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img .fig__frame { clip-path: none; }
  [data-draw] .route { stroke-dashoffset: 0; }
  [data-draw] .city { opacity: 1; }
  .cover { transform: none; }
}

/* ---------- Dark page-head context (text on ink / Atlantic grounds) ---------- */
.on-dark { color: var(--on-dark); }
.on-dark .lede { color: var(--on-dark); }
.on-dark .kicker { color: var(--brass); }
.on-dark .meta, .on-dark .muted { color: var(--on-dark-muted); }
.on-dark .src { color: var(--on-dark-muted); }
.on-dark .src::before { color: var(--brass); }
.on-dark .fig figcaption { color: var(--on-dark-muted); }
.on-dark a:hover { color: var(--brass); }
.multi-head .fig figcaption, .multi-head .meta { color: var(--on-dark); }
.multi-head .fig figcaption .credit { opacity: .8; }
