/* =========================================================================
   THE LIVING LANDSCAPE — design system for kirtivardhansingh.com
   Parliament · Environment · Geography · Diplomacy · Documentation
   ========================================================================= */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --forest: #102C28;       /* Deep Forest Ink */
  --forest-2: #17372F;
  --moss: #526B50;
  --clay: #C66A45;         /* accent: rules, markers, large type */
  --clay-ink: #9A4A2A;     /* AA text on light grounds */
  --grass: #B5A16A;        /* highlight: labels on dark grounds */
  --terrain: #E6E0D1;
  --mist: #D9E1DC;
  --paper: #F5F1E8;
  --charcoal: #1B2020;
  --white: #FCFBF7;
  --muted: #69736F;
  --muted-ink: #58625E;    /* AA small text on every light ground */

  --text: var(--charcoal);
  --rule: rgba(16, 44, 40, .14);
  --rule-2: rgba(16, 44, 40, .3);
  --rule-dark: rgba(217, 225, 220, .16);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4.4vw, 64px);
  --maxw: 1320px;
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --fs-hero: clamp(2.5rem, 1.2rem + 4.6vw, 5.4rem);
  --fs-h1: clamp(2.35rem, 1.3rem + 3.6vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.25rem + 2.1vw, 3.1rem);
  --fs-h3: clamp(1.4rem, 1.15rem + .9vw, 1.85rem);
  --fs-lede: clamp(1.28rem, 1.08rem + .75vw, 1.7rem);
}

/* ---------- Gate: protected pages stay hidden until auth.js approves ---------- */
html[data-gate="protected"]:not(.is-authed) body { visibility: hidden; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--clay); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
::selection { background: var(--grass); color: var(--forest); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.band--ink :focus-visible, .band--charcoal :focus-visible, .site-footer :focus-visible, .drawer :focus-visible { outline-color: var(--grass); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--forest); color: var(--white); padding: 10px 16px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.skip: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; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(880px + var(--gutter) * 2); }
.wrap--mid { max-width: calc(1080px + var(--gutter) * 2); }

/* ---------- Type primitives ---------- */
.serif { font-family: var(--serif); }
.display { font-family: var(--serif); font-weight: 500; font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.012em; }
.h1 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.01em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.005em; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; }
.h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; line-height: 1.35; letter-spacing: -.005em; }
.lede { font-family: var(--serif); font-size: var(--fs-lede); line-height: 1.38; font-weight: 500; color: var(--forest); }
.band--ink .lede, .band--charcoal .lede { color: var(--white); }
em.acc, .display em, .h1 em, .h2 em { font-style: italic; color: var(--clay-ink); }
.band--ink .display em, .band--ink .h1 em, .band--ink .h2 em, .band--charcoal .h2 em { color: var(--grass); }

.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35em .7em; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); line-height: 1.5; }
.meta > span + span::before { content: "/"; margin-right: .7em; color: var(--clay); font-weight: 500; }
.band--ink .meta, .band--charcoal .meta, .site-footer .meta { color: var(--grass); }
.meta--clay { color: var(--clay-ink); }
.meta__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex: none; }

.prose { font-size: 1.0625rem; line-height: 1.78; max-width: 68ch; }
.prose > * + h2, .prose > * + h3 { margin-top: 1.7em; }
.prose h2 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; margin-bottom: .55em; color: var(--forest); }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: .5em; color: var(--forest); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--clay); }
.prose strong { font-weight: 700; color: var(--forest); }
.band--ink .prose, .band--charcoal .prose { color: rgba(252, 251, 247, .88); }
.band--ink .prose strong, .band--ink .prose h2, .band--ink .prose h3 { color: var(--white); }
.small { font-size: .875rem; line-height: 1.6; }
.muted { color: var(--muted-ink); }
.band--ink .muted, .band--charcoal .muted { color: rgba(217, 225, 220, .78); }

/* Source / citation line */
.src { display: block; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--rule-2); font-size: .8125rem; line-height: 1.55; color: var(--muted-ink); }
.src::before { content: "Source"; display: inline-block; margin-right: .7em; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-ink); padding-top: .15em; }
.src a { color: var(--forest); overflow-wrap: anywhere; }
.band--ink .src, .band--charcoal .src { color: rgba(217, 225, 220, .78); border-color: var(--rule-dark); }
.band--ink .src::before, .band--charcoal .src::before { color: var(--grass); }
.band--ink .src a, .band--charcoal .src a { color: var(--white); }

/* ---------- Links & buttons ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-size: .9rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--forest); padding: 6px 0; border-bottom: 1px solid currentColor; }
.link-arrow::after { content: ""; width: 18px; height: 10px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--ext::after { transform: rotate(-45deg); }
.link-arrow--ext:hover::after { transform: rotate(-45deg) translateX(3px); }
.band--ink .link-arrow, .band--charcoal .link-arrow { color: var(--white); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 12px 24px; border: 1px solid var(--forest); background: var(--forest); color: var(--white); font-size: .9rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; border-radius: var(--radius); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--moss); border-color: var(--moss); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--white); }
.btn--clay { background: var(--clay-ink); border-color: var(--clay-ink); }
.btn--clay:hover { background: var(--forest); border-color: var(--forest); }

/* ---------- Header (sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245, 241, 232, .94); border-bottom: 1px solid var(--rule); transition: box-shadow .3s, background .3s; }
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .site-header { background: rgba(245, 241, 232, .82); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); }
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(16, 44, 40, .35); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--forest); min-width: 0; }
.brand__mark { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--forest); color: var(--grass); display: grid; place-items: center; overflow: hidden; }
.brand__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.brand__mark b { position: relative; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; color: var(--white); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; line-height: 1.05; letter-spacing: .005em; white-space: nowrap; }
.brand__meta { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); white-space: nowrap; margin-top: 3px; }

.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__trigger, .nav__link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; background: none; cursor: pointer; font-size: .86rem; font-weight: 600; letter-spacing: .01em; color: var(--forest); text-decoration: none; border-radius: 40px; transition: background .2s; }
.nav__trigger::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.nav__trigger:hover, .nav__link:hover, .nav__trigger[aria-expanded="true"] { background: rgba(16, 44, 40, .07); }
.nav__trigger.is-current, .nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--clay); border-radius: 40px 40px 0 0; }
.nav__link--contact { margin-left: 8px; border: 1px solid var(--forest); padding: 0 18px; }
.nav__link--contact:hover { background: var(--forest); color: var(--white); }
.nav__link--contact[aria-current="page"] { background: var(--forest); color: var(--white); box-shadow: none; border-radius: 40px; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(16, 44, 40, .35); }
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 56px; padding-block: 40px 44px; }
.mega__intro { position: relative; padding-right: 24px; border-right: 1px solid var(--rule); }
.mega__intro .h3 { color: var(--forest); margin: 12px 0 12px; }
.mega__intro p { font-size: .92rem; color: var(--muted-ink); max-width: 34ch; }
.mega__links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; align-content: start; }
.mega__links a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--forest); transition: padding .25s var(--ease), color .2s; }
.mega__links a:hover { padding-left: 8px; }
.mega__links a[aria-current="page"] .mega__title { color: var(--clay-ink); }
.mega__num { grid-row: span 2; font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--clay-ink); line-height: 1.5; }
.mega__title { font-weight: 700; font-size: .98rem; line-height: 1.35; }
.mega__desc { font-size: .8rem; color: var(--muted-ink); line-height: 1.5; }

.menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 18px; border: 1px solid var(--forest); border-radius: 40px; background: transparent; cursor: pointer; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); flex: none; }
.menu-btn__icon { position: relative; width: 18px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 4.25px; transform: rotate(-45deg); }

.drawer { position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h); z-index: 99; overflow-y: auto; overscroll-behavior: contain; background: var(--forest) url("../images/ui/contours-tall-dark.svg") right top / 520px auto no-repeat; color: var(--white); padding: 20px 0 48px; }
.drawer[hidden] { display: none; }
.drawer__group { padding: 18px 0 10px; border-bottom: 1px solid var(--rule-dark); }
.drawer__group .meta { margin-bottom: 6px; }
.drawer__list { list-style: none; }
.drawer__list a { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; color: var(--white); }
.drawer__list a[aria-current="page"] { color: var(--grass); }
.drawer__list a span { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--grass); min-width: 22px; }
.drawer__foot { padding-top: 24px; font-size: .9rem; color: rgba(217, 225, 220, .82); }
.drawer__foot a { color: var(--white); }
body.drawer-open { overflow: hidden; }

@media (min-width: 1180px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .drawer { display: none !important; }
}
@media (max-width: 520px) {
  :root { --header-h: 66px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.22rem; }
  .brand__meta { display: none; }
  .menu-btn { padding: 0 14px; }
  .menu-btn__label { display: none; }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
}

/* ---------- Bands / surfaces ---------- */
.band { position: relative; padding-block: clamp(64px, 9vw, 136px); }
.band--tight { padding-block: clamp(48px, 6vw, 88px); }
.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--terrain { background: var(--terrain); }
.band--mist { background: var(--mist); }
.band--ink { background: var(--forest); color: var(--white); }
.band--charcoal { background: var(--charcoal); color: var(--white); }
.band--moss { background: var(--moss); color: var(--white); }
.contours { position: relative; isolation: isolate; }
.contours::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../images/ui/contours-light.svg") center / cover no-repeat; }
.band--ink.contours::before, .band--charcoal.contours::before, .contours--dark::before { background-image: url("../images/ui/contours-dark.svg"); }
.contours--right::before { background-position: right center; background-size: 1200px auto; }

svg.contour { color: currentColor; }
svg.contour path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .draw-contours svg.contour path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
  .js .draw-contours.is-in svg.contour path { stroke-dashoffset: 0; }
  .js .draw-contours.is-in svg.contour path:nth-child(3n) { transition-delay: .25s; }
  .js .draw-contours.is-in svg.contour path:nth-child(3n+1) { transition-delay: .5s; }
}

/* Section heading pattern: number + label + rule */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head__label { display: flex; align-items: center; gap: 14px; }
.sec-head__label::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
.band--ink .sec-head__label::after, .band--charcoal .sec-head__label::after { background: var(--rule-dark); }
.sec-head__num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--clay-ink); }
.band--ink .sec-head__num, .band--charcoal .sec-head__num { color: var(--grass); }
.sec-head .h2 { max-width: 20ch; color: var(--forest); }
.band--ink .sec-head .h2, .band--charcoal .sec-head .h2, .band--moss .sec-head .h2 { color: var(--white); }
.sec-head p { max-width: 62ch; color: var(--muted-ink); font-size: 1.05rem; }
.band--ink .sec-head p, .band--charcoal .sec-head p { color: rgba(217, 225, 220, .85); }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
  .sec-head--split .sec-head__label { grid-column: 1 / -1; }
}

/* ---------- Figures (images are never distorted or face-cropped) ---------- */
.fig { position: relative; }
.fig img { width: 100%; height: auto; }
.fig__mat { position: relative; background: var(--terrain); display: grid; place-items: center; overflow: hidden; }
.fig__mat img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.fig__mat--ink { background: var(--forest); }
.fig__mat--mist { background: var(--mist); }
.fig figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding-top: 12px; font-size: .8125rem; line-height: 1.55; color: var(--muted-ink); }
.fig figcaption .meta { grid-column: 1 / -1; font-size: .64rem; }
.fig figcaption .cap { grid-column: 1 / -1; }
.band--ink .fig figcaption, .band--charcoal .fig figcaption { color: rgba(217, 225, 220, .8); }
.fig--framed { padding: 10px; background: var(--white); box-shadow: 0 1px 0 var(--rule), 0 24px 50px -30px rgba(16, 44, 40, .45); }
.fig--framed figcaption { padding: 12px 4px 4px; }
.img-reveal { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js .img-reveal img { transform: scale(1.04); opacity: 0; transition: transform 1.4s var(--ease), opacity .9s var(--ease); }
  .js .img-reveal.is-in img { transform: none; opacity: 1; }
}

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="2"] { transition-delay: .1s; }
  .js [data-reveal="3"] { transition-delay: .2s; }
  .js [data-reveal="4"] { transition-delay: .3s; }
}

/* ---------- Breadcrumb + page folio ---------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--muted-ink); }
.crumbs li + li::before { content: "—"; margin-right: 10px; color: var(--clay); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--forest); }
.band--ink .crumbs, .hero-dark .crumbs { color: rgba(217, 225, 220, .78); }
.band--ink .crumbs [aria-current], .hero-dark .crumbs [aria-current] { color: var(--white); }
.folio { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--clay-ink); }
.folio b { font-style: normal; font-weight: 600; font-size: 1.6rem; color: var(--forest); }
.hero-dark .folio, .band--ink .folio { color: var(--grass); }
.hero-dark .folio b, .band--ink .folio b { color: var(--white); }
.pagetop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: clamp(24px, 3vw, 40px); }

/* ---------- Facts list ---------- */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); }
.facts > div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts > div:first-child { border-top: 1px solid var(--rule-2); }
.facts dt { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink); padding-top: .25em; }
.facts dd { font-size: .98rem; line-height: 1.5; color: var(--forest); font-weight: 600; }
.facts dd small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted-ink); margin-top: 2px; }
.band--ink .facts > div { border-color: var(--rule-dark); }
.band--ink .facts dt { color: var(--grass); }
.band--ink .facts dd { color: var(--white); }
.band--ink .facts dd small { color: rgba(217, 225, 220, .78); }

/* ---------- Stat figures ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--rule-2); }
.stat { padding: 26px 24px 24px 0; border-bottom: 1px solid var(--rule); }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(2.3rem, 1.8rem + 1.8vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--forest); letter-spacing: -.01em; }
.stat__num small { font-size: .45em; margin-left: .15em; color: var(--clay-ink); font-style: italic; }
.stat__label { display: block; margin-top: 12px; font-size: .88rem; line-height: 1.5; color: var(--charcoal); max-width: 28ch; }
.stat__src { display: block; margin-top: 8px; font-size: .72rem; color: var(--muted-ink); }
.stat__src a { color: inherit; }
.band--ink .stats { border-color: var(--rule-dark); }
.band--ink .stat { border-color: var(--rule-dark); }
.band--ink .stat__num { color: var(--white); }
.band--ink .stat__num small { color: var(--grass); }
.band--ink .stat__label { color: rgba(252, 251, 247, .88); }
.band--ink .stat__src { color: rgba(217, 225, 220, .7); }
@media (min-width: 700px) { .stat { padding-right: 28px; padding-left: 0; } .stats .stat + .stat { padding-left: 28px; border-left: 1px solid var(--rule); } .band--ink .stats .stat + .stat { border-left-color: var(--rule-dark); } }
@media (max-width: 699px) { .stats .stat + .stat { border-left: 0; padding-left: 0; } }

/* ---------- Record entries (DATE / POSITION / CONTEXT / SOURCE) ---------- */
.record { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.record__date { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--forest); line-height: 1.2; }
.record__date small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink); margin-top: 6px; }
.record__title { font-family: var(--sans); font-size: 1.12rem; font-weight: 700; color: var(--forest); line-height: 1.35; margin-bottom: 8px; }
.record__kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; font-size: .95rem; }
.record__kv > div { display: grid; grid-template-columns: 124px 1fr; gap: 12px; }
.record__kv dt { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); padding-top: .35em; }
.record__kv dd { color: var(--charcoal); line-height: 1.6; }
@media (min-width: 820px) { .record { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 480px) { .record__kv > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Tags / chips / filters ---------- */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border: 1px solid var(--rule-2); border-radius: 30px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); background: transparent; white-space: nowrap; }
.tag--clay { border-color: rgba(154, 74, 42, .45); color: var(--clay-ink); }
.tag--moss { background: var(--moss); border-color: var(--moss); color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filters { display: grid; gap: 14px; padding: 20px 0; border-block: 1px solid var(--rule-2); margin-bottom: 8px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); min-width: 78px; }
.chip { min-height: 38px; padding: 6px 14px; border: 1px solid var(--rule-2); border-radius: 40px; background: transparent; font-size: .82rem; font-weight: 600; color: var(--forest); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.filters__count { font-size: .82rem; color: var(--muted-ink); }
.is-filtered-out { display: none !important; }
.empty-note { padding: 28px 0; color: var(--muted-ink); }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--rule-2); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 32px; height: 32px; border: 1px solid var(--rule-2); border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; color: var(--forest); transition: transform .3s var(--ease), background-size .3s; }
.acc details[open] > summary::after { background-size: 12px 1.5px, 1.5px 0; transform: rotate(180deg); }
.acc__title { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); font-weight: 600; line-height: 1.2; color: var(--forest); }
.acc__sub { display: block; margin-top: 6px; font-family: var(--sans); font-size: .82rem; color: var(--muted-ink); font-weight: 500; }
.acc__body { padding: 0 0 30px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { font-size: .92rem; }
.table caption { text-align: left; padding-bottom: 12px; font-size: .78rem; color: var(--muted-ink); }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.table thead th { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink); border-bottom: 1px solid var(--rule-2); }
.table td:first-child { font-weight: 700; color: var(--forest); }
.table .num { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .table--stack td { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 4px 0; border: 0; }
  .table--stack td::before { content: attr(data-label); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); padding-top: .3em; }
}

/* ---------- Pull quote / note ---------- */
.note { position: relative; padding: 24px 26px 24px 28px; background: var(--white); border-left: 3px solid var(--clay); font-size: .95rem; line-height: 1.65; }
.note__label { display: block; margin-bottom: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-ink); }
.band--white .note { background: var(--paper); }
.band--ink .note { background: rgba(252, 251, 247, .05); color: rgba(252, 251, 247, .9); border-left-color: var(--grass); }
.band--ink .note__label { color: var(--grass); }

/* ---------- Chapter pager ---------- */
.pager { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule-2); background: var(--white); }
.pager a { display: grid; gap: 6px; padding: 36px var(--gutter); text-decoration: none; color: var(--forest); transition: background .3s; }
.pager a:hover { background: var(--terrain); }
.pager a + a { border-top: 1px solid var(--rule); }
.pager__dir { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); }
.pager__title { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 500; line-height: 1.1; }
.pager__title i { font-size: .6em; color: var(--clay-ink); margin-right: .3em; }
.pager__next { text-align: right; }
@media (min-width: 760px) { .pager { grid-template-columns: 1fr 1fr; } .pager a + a { border-top: 0; border-left: 1px solid var(--rule); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--forest); color: rgba(252, 251, 247, .86); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/ui/contours-dark.svg") right -200px top -120px / 1400px auto no-repeat; }
.footer__top { display: grid; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--rule-dark); }
.footer__statement { font-family: var(--serif); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.08; color: var(--white); max-width: 18ch; }
.footer__statement em { color: var(--grass); }
.footer__note { font-size: .9rem; max-width: 46ch; color: rgba(217, 225, 220, .8); }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding-block: 48px; border-bottom: 1px solid var(--rule-dark); }
.footer__col h2 { font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--grass); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__col a { text-decoration: none; font-size: .92rem; color: rgba(252, 251, 247, .88); }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__contact { grid-column: 1 / -1; display: grid; gap: 6px; font-size: .95rem; }
.footer__contact strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.footer__contact a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(181, 161, 106, .6); justify-self: start; }
.footer__contact a:hover { border-bottom-color: var(--white); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(217, 225, 220, .35); color: var(--white); transition: background .25s, color .25s, border-color .25s; }
.social__btn svg { width: 18px; height: 18px; }
a.social__btn:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
.social__btn--pending { opacity: .55; cursor: default; }
.social__note { margin-top: 10px; font-size: .75rem; color: rgba(217, 225, 220, .7); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding-block: 26px 30px; font-size: .8rem; color: rgba(217, 225, 220, .78); }
.footer__bottom a { color: var(--white); }
.footer__lock { background: none; border: 0; padding: 0; cursor: pointer; font-size: .8rem; color: rgba(217, 225, 220, .78); text-decoration: underline; text-underline-offset: .22em; }
.footer__lock:hover { color: var(--white); }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr); }
  .footer__contact { grid-column: auto; align-content: start; }
}

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

/* ---------- HOME: split editorial hero ---------- */
.hero-home { position: relative; background: var(--paper); }
.hero-home__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-home__text { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero-home__text .display { color: var(--forest); max-width: 13ch; }
.hero-home__lede { font-size: 1.08rem; line-height: 1.7; color: var(--charcoal); max-width: 52ch; }
.hero-home__roles { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule-2); max-width: 560px; }
.hero-home__roles li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; font-weight: 600; color: var(--forest); line-height: 1.45; }
.hero-home__roles li span { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--clay-ink); }
.hero-home__visual { position: relative; background: var(--forest); color: var(--mist); overflow: hidden; display: grid; place-items: center; padding: 56px 28px 72px; min-height: 480px; }
.hero-home__visual svg.contour { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .2; }
.hero-home__portrait { position: relative; width: min(100%, 440px); }
.hero-home__portrait img { width: 100%; height: auto; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.hero-home__portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(181, 161, 106, .55); pointer-events: none; }
.hero-home__caption { position: relative; margin-top: 30px; font-size: .78rem; color: rgba(217, 225, 220, .8); max-width: 440px; }
.hero-home__vertical { position: absolute; top: 50%; right: 18px; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: .64rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--grass); }
.hero-home__corner { position: absolute; left: 24px; top: 22px; font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grass); }
@media (min-width: 1000px) {
  .hero-home__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .hero-home__text { padding-right: 56px; }
  .hero-home__visual { margin-right: calc(var(--gutter) * -1); padding: 72px 64px 80px; }
}
@media (min-width: 1440px) { .hero-home__visual { margin-right: calc((100vw - var(--maxw)) / -2); } }

/* Home: profile */
.profile-intro { display: grid; gap: 48px; }
.profile-intro__big { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.24; color: var(--forest); font-weight: 500; }
.profile-intro__big em { color: var(--clay-ink); }
@media (min-width: 960px) { .profile-intro { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 80px; align-items: start; } }

/* Horizontal timeline */
.htl { position: relative; }
.htl__track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 28px; scrollbar-width: thin; scrollbar-color: var(--moss) transparent; cursor: grab; }
.htl__track:active { cursor: grabbing; }
.htl__track::-webkit-scrollbar { height: 6px; }
.htl__track::-webkit-scrollbar-thumb { background: var(--moss); border-radius: 6px; }
.htl__item { position: relative; scroll-snap-align: start; padding: 64px 32px 8px 0; }
.htl__item::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--rule-2); }
.htl__item::after { content: ""; position: absolute; left: 0; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--terrain); border: 2px solid var(--forest); }
.htl__item--key::after { background: var(--clay); border-color: var(--clay); }
.htl__year { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--forest); }
.htl__role { margin-top: 12px; font-size: .95rem; font-weight: 700; color: var(--forest); line-height: 1.4; }
.htl__text { margin-top: 8px; font-size: .88rem; line-height: 1.6; color: var(--charcoal); }
.htl__controls { display: flex; gap: 8px; }
.htl__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--forest); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--forest); transition: background .2s, color .2s; }
.htl__btn:hover { background: var(--forest); color: var(--white); }
.htl__btn svg { width: 16px; height: 16px; }

/* Home: three domains */
.domain { display: grid; gap: 40px; align-items: center; }
.domain + .domain { margin-top: clamp(72px, 10vw, 140px); }
.domain__num { font-family: var(--serif); font-size: clamp(4rem, 3rem + 4vw, 7.5rem); line-height: .8; font-weight: 500; color: transparent; -webkit-text-stroke: 1px var(--clay); }
.domain__title { margin: 14px 0 18px; color: var(--forest); }
.domain__body p { color: var(--charcoal); max-width: 56ch; }
.domain__list { list-style: none; margin: 22px 0 26px; display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 520px; }
.domain__list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--rule); font-size: .92rem; position: relative; }
.domain__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 1px; background: var(--clay); }
@media (min-width: 960px) {
  .domain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .domain--rev .domain__media { order: 2; }
}
.domain__media--stamp { position: relative; }
.domain__media--stamp::after { content: attr(data-stamp); position: absolute; right: -10px; bottom: -22px; padding: 12px 16px; border: 1.5px solid var(--clay-ink); color: var(--clay-ink); background: var(--mist); font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-4deg); line-height: 1.5; max-width: 220px; }
.band--ink .domain__title, .band--ink .domain__body p { color: var(--white); }
.band--ink .domain__body p { color: rgba(252, 251, 247, .86); }
.band--ink .domain__list { border-color: var(--rule-dark); }
.band--ink .domain__list li { border-color: var(--rule-dark); color: rgba(252, 251, 247, .9); }

/* Home: Gonda immersive */
.gonda-teaser { display: grid; gap: 48px; }
.gonda-teaser__map { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; color: var(--grass); }
.gonda-teaser__map svg { width: 100%; height: 100%; }
@media (min-width: 960px) { .gonda-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; } }

/* Responsibilities register */
.register { list-style: none; border-top: 1px solid var(--rule-2); counter-reset: reg; }
.register li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); counter-increment: reg; }
.register li::before { content: counter(reg, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--clay-ink); line-height: 1.2; }
.register__title { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.9rem); font-weight: 600; line-height: 1.15; color: var(--forest); }
.register__meta { grid-column: 2; font-size: .9rem; color: var(--muted-ink); }
@media (min-width: 900px) { .register li { grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr); align-items: baseline; } .register__meta { grid-column: 3; } }

/* News list */
.newslist { list-style: none; display: grid; border-top: 1px solid var(--rule-2); }
.newslist li { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.newslist time { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); }
.newslist h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; line-height: 1.4; color: var(--forest); }
.newslist h3 a { text-decoration: none; }
.newslist h3 a:hover { text-decoration: underline; }
.newslist p { font-size: .92rem; color: var(--charcoal); }
.newslist .src { margin-top: 4px; }
@media (min-width: 900px) { .newslist li { grid-template-columns: 170px minmax(0, 1fr); } .newslist li > :not(time) { grid-column: 2; } }

/* Documentary strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.strip > .fig { scroll-snap-align: start; }
@media (min-width: 760px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* Archive tiles */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule-dark); }
.tile { position: relative; display: grid; gap: 10px; padding: 32px 0; border-bottom: 1px solid var(--rule-dark); text-decoration: none; color: var(--white); }
.tile__num { font-family: var(--serif); font-style: italic; color: var(--grass); font-size: 1.1rem; }
.tile__title { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; font-weight: 500; }
.tile__desc { font-size: .9rem; color: rgba(217, 225, 220, .82); max-width: 34ch; }
.tile__arrow { position: absolute; right: 0; top: 34px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(217, 225, 220, .35); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); }
.tile__arrow svg { width: 16px; height: 16px; }
.tile:hover .tile__arrow { background: var(--grass); color: var(--forest); transform: rotate(-45deg); border-color: var(--grass); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--rule-dark); } .tile:nth-child(even) { padding-left: 48px; } .tile:nth-child(odd) .tile__arrow { right: 48px; } }
@media (min-width: 1180px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile { padding: 40px 28px 44px !important; border-right: 1px solid var(--rule-dark); } .tile:first-child { padding-left: 0 !important; } .tile:last-child { border-right: 0; } .tile .tile__arrow { position: static; margin-top: 18px; } }

/* ---------- Generic page hero ---------- */
.page-hero { position: relative; padding-block: 0 clamp(48px, 7vw, 96px); }
.page-hero .h1 { color: var(--forest); max-width: 16ch; }
.page-hero__lede { margin-top: 26px; max-width: 60ch; }
.hero-dark { background: var(--forest); color: var(--white); }
.hero-dark .h1 { color: var(--white); }
.hero-dark .lede { color: var(--white); }
.hero-dark .muted { color: rgba(217, 225, 220, .82); }

/* ABOUT: biography + sticky profile panel */
.about-hero { display: grid; gap: 40px; padding-top: 40px; }
.about-hero__name { font-family: var(--serif); font-size: clamp(3rem, 1.6rem + 6vw, 7.2rem); line-height: .92; font-weight: 500; color: var(--forest); letter-spacing: -.02em; }
.about-hero__name span { display: block; font-style: italic; color: var(--clay-ink); }
@media (min-width: 960px) { .about-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 72px; } }
.bio { display: grid; gap: 56px; }
.bio__panel { align-self: start; background: var(--white); padding: 28px; border: 1px solid var(--rule); }
.bio__panel-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.bio__panel-head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 35%; flex: none; background: var(--terrain); }
.bio__panel-head strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--forest); }
.bio__chapter { display: grid; gap: 14px 40px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.bio__chapter + .bio__chapter { padding-top: 48px; }
.bio__chapter:last-child { border-bottom: 0; }
.bio__chapter-num { font-family: var(--serif); font-size: 3.4rem; line-height: .9; color: var(--clay); font-weight: 500; font-style: italic; }
.bio__chapter h2 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; color: var(--forest); margin-bottom: 14px; }
@media (min-width: 1000px) {
  .bio { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 80px; }
  .bio__panel { position: sticky; top: calc(var(--header-h) + 28px); order: 2; }
  .bio__chapter { grid-template-columns: 90px minmax(0, 1fr); }
}
.about-portrait { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-portrait { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 72px; } }

/* EARLY LIFE: strata */
.strata-hero { position: relative; overflow: hidden; background: var(--terrain); padding-bottom: 0; }
.strata-hero__text { padding-bottom: clamp(48px, 7vw, 96px); }
.strata-layers { display: block; width: 100%; height: clamp(90px, 12vw, 180px); }
.stratum { position: relative; display: grid; gap: 24px 64px; padding-block: clamp(56px, 7vw, 104px); }
.stratum__label { display: grid; gap: 10px; align-content: start; }
.stratum__id { font-family: var(--serif); font-size: clamp(3.4rem, 2.4rem + 3.5vw, 6rem); line-height: .85; font-style: italic; font-weight: 500; color: var(--clay); }
.stratum__era { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-ink); }
.stratum__title { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.08; color: var(--forest); margin-bottom: 20px; }
@media (min-width: 960px) { .stratum { grid-template-columns: 260px minmax(0, 1fr); } }
.strata-band { position: relative; }
.strata-band + .strata-band::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 C150 1 300 13 450 7 S750 1 900 7 S1100 13 1200 7' fill='none' stroke='%23102C28' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.core-sample { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border: 1px solid var(--rule-2); background: var(--white); }
.core-sample > div { padding: 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.core-sample dt { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: 8px; }
.core-sample dd { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--forest); line-height: 1.2; }
.core-sample dd small { display: block; margin-top: 6px; font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--muted-ink); line-height: 1.5; }

/* JOURNEY: vertical timeline */
.journey-hero { display: grid; gap: 32px; padding-top: 40px; }
@media (min-width: 960px) { .journey-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: end; } }
.vtl { position: relative; list-style: none; }
.vtl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--rule-2); }
.vtl__item { position: relative; padding: 0 0 56px 44px; }
.vtl__item::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--forest); background: var(--paper); }
.vtl__item--key::before { background: var(--clay); border-color: var(--clay); }
.vtl__item--loss::before { background: var(--paper); border-style: dashed; border-color: var(--muted); }
.vtl__year { font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 1.8vw, 3.6rem); line-height: .95; color: var(--forest); font-weight: 500; }
.vtl__card { margin-top: 16px; background: var(--white); border: 1px solid var(--rule); padding: clamp(20px, 2.4vw, 32px); }
.vtl__card .record__kv { margin-top: 0; }
@media (min-width: 1000px) {
  .vtl::before { left: 50%; }
  .vtl__item { width: 50%; padding: 0 64px 64px 0; }
  .vtl__item::before { left: auto; right: -8px; }
  .vtl__item:nth-child(even) { margin-left: 50%; padding: 0 0 64px 64px; }
  .vtl__item:nth-child(even)::before { right: auto; left: -7px; }
  .vtl__item:nth-child(odd) .vtl__year { text-align: right; }
}

/* MINISTERIAL: two-domain interface */
.twin { display: grid; gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
.twin__cell { background: var(--white); padding: clamp(28px, 3.5vw, 48px); display: grid; gap: 16px; align-content: start; }
.twin__cell--ink { background: var(--forest); color: var(--white); }
.twin__cell--ink .h3 { color: var(--white); }
.twin__cell .h3 { color: var(--forest); }
.twin__letter { font-family: var(--serif); font-size: 4.2rem; font-style: italic; line-height: .8; color: var(--clay); }
.twin__cell--ink .twin__letter { color: var(--grass); }
@media (min-width: 900px) { .twin { grid-template-columns: 1fr 1fr; } }
.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule-2); position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); }
.tabs__tab { position: relative; flex: 1 1 260px; display: grid; gap: 4px; text-align: left; padding: 20px 24px 20px 0; border: 0; background: none; cursor: pointer; color: var(--muted-ink); }
.tabs__tab b { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 600; color: inherit; line-height: 1.15; }
.tabs__tab span { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tabs__tab[aria-selected="true"] { color: var(--forest); }
.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 24px; bottom: -1px; height: 3px; background: var(--clay); }
.tabs__panel { padding-top: clamp(40px, 5vw, 72px); }
.tabs__panel[hidden] { display: none; }
.split-fig { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split-fig { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; } .split-fig--rev > :first-child { order: 2; } }

/* ENVIRONMENT: research publication */
.paper-hero { display: grid; gap: 36px; padding-top: 40px; }
.paper-hero__abstract { border-top: 3px double var(--forest); border-bottom: 1px solid var(--rule-2); padding: 22px 0; }
.paper-hero__abstract h2 { font-size: .7rem; font-family: var(--sans); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: 10px; }
.paper-hero__abstract p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--forest); font-weight: 500; }
@media (min-width: 1000px) { .paper-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: end; } }
.toc { list-style: none; counter-reset: toc; display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: flex; gap: 14px; padding: 10px 0; font-size: .9rem; text-decoration: none; color: var(--forest); font-weight: 600; }
.toc a::before { content: counter(toc) "."; font-family: var(--serif); font-style: italic; color: var(--clay-ink); min-width: 22px; font-weight: 500; }
.toc a:hover { color: var(--clay-ink); }
.paper { display: grid; gap: 48px; }
.paper__side { align-self: start; }
@media (min-width: 1100px) { .paper { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } .paper__side { position: sticky; top: calc(var(--header-h) + 28px); } }
.paper__section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); }
.paper__section:last-child { border-bottom: 0; margin-bottom: 0; }
.paper__section > .meta { margin-bottom: 14px; }
.paper__section > .h2 { color: var(--forest); margin-bottom: 24px; max-width: 22ch; }
.fig-num { font-weight: 800; color: var(--clay-ink); margin-right: .4em; }
.programmes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule); }
.programme { padding: 22px 22px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); display: grid; gap: 8px; align-content: start; }
.programme h3 { font-family: var(--sans); font-size: 1rem; font-weight: 800; color: var(--forest); line-height: 1.35; }
.programme p { font-size: .88rem; line-height: 1.6; color: var(--charcoal); }
.programme a { font-size: .78rem; font-weight: 700; color: var(--clay-ink); }

/* EXTERNAL AFFAIRS: diplomatic dossier */
.dossier-hero { position: relative; display: grid; gap: 40px; padding-top: 40px; }
@media (min-width: 1000px) { .dossier-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; } }
.passport { border: 1px solid rgba(217, 225, 220, .3); padding: 22px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 28px; }
.passport dt { font-size: .6rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--grass); }
.passport dd { font-size: .92rem; font-weight: 600; color: var(--white); line-height: 1.4; margin-top: 4px; }
.mrz { margin: 0; padding: 12px 24px 14px; border: 1px solid rgba(217, 225, 220, .3); border-top: 1px dashed rgba(217, 225, 220, .25); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .72rem; letter-spacing: .12em; color: rgba(217, 225, 220, .6); overflow-wrap: anywhere; border-top: 1px dashed rgba(217, 225, 220, .25); padding-top: 12px; }
.engagements { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.engagement { display: grid; gap: 14px 40px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.engagement__where { display: grid; gap: 6px; align-content: start; }
.engagement__country { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); font-weight: 600; line-height: 1.1; color: var(--forest); }
.engagement__date { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
@media (min-width: 900px) { .engagement { grid-template-columns: 280px minmax(0, 1fr); } }
.visa-stamp { display: inline-block; padding: 8px 12px; border: 1.5px solid var(--moss); color: var(--moss); font-size: .6rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; border-radius: 3px; transform: rotate(-2deg); justify-self: start; }

/* GONDA: landscape */
.landscape-hero { position: relative; overflow: hidden; }
.landscape-hero__river { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; color: var(--grass); opacity: .5; pointer-events: none; }
.landscape-hero__river svg { width: 100%; height: 100%; }
.landscape-hero .wrap { position: relative; }
.landscape-hero__title { font-family: var(--serif); font-size: clamp(3.6rem, 2rem + 8vw, 10rem); line-height: .86; font-weight: 500; color: var(--white); letter-spacing: -.02em; margin-top: 28px; }
.landscape-hero__title span { display: block; font-size: .28em; letter-spacing: .01em; font-style: italic; color: var(--grass); line-height: 1.2; margin-top: 18px; }
.split-note { display: grid; gap: 2px; background: var(--rule-2); border: 1px solid var(--rule-2); }
.split-note > div { background: var(--white); padding: 28px; }
.split-note > div:first-child { background: var(--terrain); }
@media (min-width: 860px) { .split-note { grid-template-columns: 1fr 1fr; } }
.segments { list-style: none; counter-reset: seg; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--rule-dark); }
.segments li { counter-increment: seg; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--rule-dark); }
.segments li::before { content: counter(seg, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; color: var(--grass); margin-bottom: 8px; }
.segments b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--white); line-height: 1.1; }
.segments span { font-size: .8rem; color: rgba(217, 225, 220, .8); }
.mosaic { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule); }
.mosaic > article { padding: 28px 26px 30px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.mosaic h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--forest); margin: 10px 0 10px; line-height: 1.15; }
.mosaic p { font-size: .92rem; line-height: 1.65; }

/* PARLIAMENTARY WORK: archive */
.archive-hero { display: grid; gap: 28px; padding-top: 40px; }
@media (min-width: 1000px) { .archive-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: end; } }
.entries { list-style: none; }
.entry { display: grid; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.entry__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.entry__date { font-size: .78rem; font-weight: 700; color: var(--muted-ink); letter-spacing: .04em; }
.entry h3 { font-size: 1.06rem; font-weight: 700; color: var(--forest); line-height: 1.4; }
.entry p { font-size: .93rem; color: var(--charcoal); }
@media (min-width: 900px) { .entry { grid-template-columns: 200px minmax(0, 1fr); } .entry > :not(.entry__side) { grid-column: 2; } .entry__side { grid-row: 1 / span 4; } }

/* PUBLIC ISSUES: library */
.library { display: grid; gap: 40px; }
.library__index { align-self: start; }
.library__index ul { list-style: none; border-top: 1px solid var(--rule-2); }
.library__index a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.library__index a span { color: var(--muted-ink); font-weight: 500; font-size: .8rem; }
.library__index a:hover { color: var(--clay-ink); }
@media (min-width: 1100px) { .library { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; } .library__index { position: sticky; top: calc(var(--header-h) + 28px); } }
.brief { padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--rule); margin-bottom: 24px; scroll-margin-top: calc(var(--header-h) + 20px); }
.brief__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.brief .h3 { color: var(--forest); margin-bottom: 18px; }
.brief__grid { display: grid; gap: 22px 36px; }
.brief__grid h3 { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: 8px; }
.brief__grid p, .brief__grid li { font-size: .93rem; line-height: 1.65; }
.brief__grid ul { padding-left: 1.1em; }
@media (min-width: 900px) { .brief__grid { grid-template-columns: 1fr 1fr; } .brief__grid .span-2 { grid-column: 1 / -1; } }

/* FIELD ENGAGEMENTS: documentary */
.doc-hero { position: relative; padding-top: 40px; }
.doc-hero .h1 { max-width: 18ch; }
.docu { display: grid; gap: 28px; padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.docu:last-child { border-bottom: 0; }
.docu__plate { background: var(--charcoal); padding: clamp(10px, 2vw, 28px); }
.docu__plate img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; margin-inline: auto; }
.docu__text { display: grid; gap: 14px 64px; }
.docu__title { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; color: var(--forest); line-height: 1.15; }
@media (min-width: 960px) { .docu__text { grid-template-columns: 300px minmax(0, 1fr); } .docu__plate--half { max-width: 72%; } .docu--right .docu__plate--half { margin-left: auto; } }

/* SPEECHES: transcript archive */
.transcripts { list-style: none; border-top: 2px solid var(--forest); }
.transcript { border-bottom: 1px solid var(--rule); }
.transcript summary { list-style: none; display: grid; gap: 8px 32px; padding: 26px 0; cursor: pointer; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript__date { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
.transcript__title { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); font-weight: 600; line-height: 1.18; color: var(--forest); }
.transcript__where { font-size: .85rem; color: var(--muted-ink); }
.transcript__toggle { justify-self: start; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); border-bottom: 1px solid var(--clay); }
.transcript__toggle::after { content: "Read summary +"; }
.transcript[open] .transcript__toggle::after { content: "Close −"; }
.transcript__body { padding: 0 0 32px; display: grid; gap: 20px; }
@media (min-width: 900px) {
  .transcript summary { grid-template-columns: 180px minmax(0, 1fr) 140px; align-items: start; }
  .transcript__toggle { justify-self: end; }
  .transcript__body { grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; }
  .transcript__body > * { grid-column: 2; }
}

/* DOCUMENTS: library */
.doclist { list-style: none; border-top: 1px solid var(--rule-2); }
.doc { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.doc__icon { width: 44px; height: 56px; border: 1px solid var(--rule-2); background: var(--white); position: relative; display: grid; place-items: end center; padding-bottom: 6px; font-size: .56rem; font-weight: 800; letter-spacing: .1em; color: var(--clay-ink); }
.doc__icon::before { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; background: linear-gradient(225deg, var(--paper) 50%, var(--rule-2) 50%); }
.doc__body { display: grid; gap: 6px; }
.doc__title { font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: var(--forest); }
.doc__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted-ink); }
.doc__desc { font-size: .9rem; color: var(--charcoal); }
.doc__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 900px) { .doc { grid-template-columns: 56px minmax(0, 1fr) 200px; align-items: start; } .doc__actions { grid-column: 3; justify-content: flex-end; } }

/* MEDIA: newsroom */
.newsroom-hero { border-bottom: 3px double var(--forest); padding-top: 40px; padding-bottom: 28px; }
.newsroom-hero__mast { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; border-bottom: 1px solid var(--rule-2); padding-bottom: 12px; margin-bottom: 28px; }
.newsgrid { display: grid; gap: 0; }
.newsgrid article { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.newsgrid article h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.18; color: var(--forest); }
.newsgrid article h3 a { text-decoration: none; }
.newsgrid article h3 a:hover { text-decoration: underline; }
.newsgrid article p { font-size: .92rem; }
.newsgrid .lead h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; }
@media (min-width: 960px) {
  .newsgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; }
  .newsgrid article { padding: 28px 28px 30px; border-right: 1px solid var(--rule); }
  .newsgrid article:nth-child(3n+1) { padding-left: 0; }
  .newsgrid article:nth-child(3n) { border-right: 0; padding-right: 0; }
  .newsgrid .lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 48px; border-right: 0; padding-right: 0; padding-left: 0; }
  .newsgrid .lead > * { grid-column: 1; }
  .newsgrid .lead > .lead__aside { grid-column: 2; grid-row: 1 / span 5; }
}

/* GALLERY: editorial masonry + lightbox */
.gallery-hero { padding-top: 40px; }
.masonry { columns: 1; column-gap: 20px; }
.masonry .g-item { break-inside: avoid; margin-bottom: 28px; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; column-gap: 28px; } }
.g-item button { display: block; width: 100%; padding: 0; border: 0; background: var(--terrain); cursor: zoom-in; position: relative; }
.g-item button img { width: 100%; height: auto; transition: opacity .3s; }
.g-item button:hover img { opacity: .9; }
.g-item figcaption { padding-top: 10px; font-size: .8rem; line-height: 1.5; color: var(--muted-ink); }
.g-item figcaption b { display: block; color: var(--forest); font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.g-feature { display: grid; gap: 28px; align-items: end; margin-bottom: 56px; }
@media (min-width: 960px) { .g-feature { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; } }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(16, 20, 20, .96); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 16px; color: var(--white); }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 12px 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { text-align: center; font-size: .88rem; color: rgba(217, 225, 220, .88); max-width: 70ch; margin-inline: auto; padding-bottom: 8px; }
.lightbox__btn { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 40px; border: 1px solid rgba(217, 225, 220, .4); background: transparent; color: var(--white); cursor: pointer; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.lightbox__btn:hover { background: var(--white); color: var(--forest); }
.lightbox__nav { display: flex; gap: 8px; }

/* CONTACT */
.contact { display: grid; gap: 56px; padding-top: 40px; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 96px; } }
.contact__card { display: grid; gap: 0; border-top: 1px solid var(--rule-2); margin-top: 36px; }
.contact__row { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact__row dt { font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-ink); }
.contact__row dd { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); font-weight: 600; color: var(--forest); line-height: 1.2; }
.contact__row dd a { text-decoration: none; background-image: linear-gradient(var(--clay), var(--clay)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; overflow-wrap: anywhere; }
.contact__row dd a:hover { color: var(--clay-ink); }
.form { background: var(--white); border: 1px solid var(--rule); padding: clamp(24px, 3.5vw, 48px); }
.form__grid { display: grid; gap: 22px 24px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--forest); }
.field label .req { color: var(--clay-ink); margin-left: 2px; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 1rem; color: var(--charcoal); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--forest); background: var(--white); box-shadow: 0 0 0 3px rgba(198, 106, 69, .28); }
.field [aria-invalid="true"] { border-color: var(--clay-ink); background: #FBF3EE; }
.field__hint { font-size: .78rem; color: var(--muted-ink); }
.field__error { font-size: .8rem; font-weight: 600; color: var(--clay-ink); min-height: 0; }
.field__error:empty { display: none; }
.field__error::before { content: "! "; font-weight: 800; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.form__status { margin-top: 20px; padding: 18px 20px; border-left: 3px solid var(--moss); background: var(--mist); font-size: .93rem; }
.form__status[hidden] { display: none; }
.form__status--error { border-left-color: var(--clay-ink); background: #FBF3EE; }
.form__status h3 { font-size: 1rem; font-weight: 800; color: var(--forest); margin-bottom: 6px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.grid-2 { display: grid; gap: 40px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .grid-2--wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.flow > * + * { margin-top: 1em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.rule-top { border-top: 1px solid var(--rule-2); padding-top: 24px; }

@media print {
  .site-header, .site-footer, .pager, .drawer { display: none !important; }
  html[data-gate="protected"] body { visibility: visible !important; }
}

/* ---------- Refinements ---------- */
.field { align-content: start; }
.btn { white-space: nowrap; }
.btn svg, .link-arrow svg { width: 18px; height: 10px; flex: none; }
.band--top { padding-top: 0; }
.twin__cell.twin__cell--ink .h3 { color: var(--white); }
.hero-dark .meta { color: var(--grass); }
.hero-dark .fig figcaption { color: rgba(217, 225, 220, .82); }
.hero-dark .src { color: rgba(217, 225, 220, .78); border-color: var(--rule-dark); }
.hero-dark .src::before { color: var(--grass); }
.hero-dark .src a, .hero-dark a { color: var(--white); }
.hero-dark .display em, .hero-dark .h1 em { color: var(--grass); }
.band--ink .fig figcaption .meta, .hero-dark .fig figcaption .meta { color: var(--grass); }
.g-feature__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-feature__btn img { width: 100%; height: auto; }
.band--charcoal .h1 em, .band--charcoal .display em { color: var(--grass); }
.band--ink .table th, .band--ink .table td { border-color: var(--rule-dark); }
.band--ink .table thead th { border-color: rgba(217, 225, 220, .3); }
.band--ink .table .muted { color: rgba(217, 225, 220, .7); }
.band--charcoal .lede { color: var(--white); }
.band--ink .stat__label a, .band--ink .prose a { color: var(--white); }
.hero-home__text .display { max-width: 17ch; font-size: clamp(2.4rem, 1.1rem + 3.9vw, 4.7rem); }
.domain__num { display: block; }
.domain__media--stamp::after { top: -16px; bottom: auto; right: -8px; }
.tile { align-content: start; }
.pager a:only-child { grid-column: 1 / -1; }
@media (max-width: 999px) { .hero-home__vertical { display: none; } .hero-home__portrait::before { inset: 12px -10px -12px 10px; } }
.prose h2.stratum__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.08; margin-bottom: 20px; }
.mega__intro p.h3 { font-size: var(--fs-h3); color: var(--forest); max-width: none; margin: 12px 0; }
.drawer .meta { color: var(--grass); }
