/* ==========================================================================
   Giuseppe Valditara — editorial design system
   Palette: Inchiostro (aubergine ink), Carta (parchment), Cotto (terracotta),
   Rame (copper), Grafite, Avorio. Type: Bodoni Moda / Hanken Grotesk / Plex Mono
   ========================================================================== */

:root {
  --ink: #24152A;
  --ink-2: #321E38;
  --ink-3: #4A2F4C;
  --carta: #F2EADB;
  --paper: #F8F3E9;
  --avorio: #FCFAF5;
  --cotto: #9E432B;
  --cotto-soft: #E7CDBE;
  --rame: #B0743F;
  --rame-lt: #DDAA78;
  --grafite: #2F2A2C;
  --muted: #645A57;
  --muted-on-ink: #CDBFC8;
  --rule: rgba(36, 21, 42, .16);
  --rule-strong: rgba(36, 21, 42, .38);
  --rule-ink: rgba(242, 234, 219, .18);

  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-body: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  --fs-small: .875rem;
  --fs-meta: .75rem;
  --fs-h1: clamp(2.4rem, 1.6rem + 3.6vw, 4.9rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.1vw, 3.25rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  --fs-lede: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);

  --gutter: clamp(1rem, .5rem + 2.4vw, 2.5rem);
  --wrap: 1320px;
  --sec-y: clamp(4rem, 2.6rem + 6vw, 9rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--paper);
  color: var(--grafite);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--cotto); outline-offset: 3px; }
.sec--ink :focus-visible, .site-footer :focus-visible, .ph--ink :focus-visible { outline-color: var(--rame-lt); }
::selection { background: var(--cotto); color: var(--avorio); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--carta); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 920px; }
.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-block: calc(var(--sec-y) * .6); }
.sec--paper { background: var(--paper); }
.sec--carta { background: var(--carta); }
.sec--avorio { background: var(--avorio); }
.sec--ink { background: var(--ink); color: var(--carta); }
.sec--ink2 { background: var(--ink-2); color: var(--carta); }
.sec--cotto { background: var(--cotto); color: var(--avorio); }
.sec + .sec--paper.sec--ruled, .sec--ruled { border-top: 1px solid var(--rule); }

.grid { display: grid; gap: var(--gutter); grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 900px) {
  .g-5-7 { grid-template-columns: 5fr 7fr; }
  .g-7-5 { grid-template-columns: 7fr 5fr; }
  .g-4-8 { grid-template-columns: 4fr 8fr; }
  .g-8-4 { grid-template-columns: 8fr 4fr; }
  .g-3-9 { grid-template-columns: 3fr 9fr; }
  .g-6-6 { grid-template-columns: 1fr 1fr; }
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
  .g-2 { grid-template-columns: repeat(2, 1fr); }
  .al-center { align-items: center; }
  .al-end { align-items: end; }
  .sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3.g-t2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; color: inherit; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; letter-spacing: .01em; line-height: 1.35; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--cotto); }
.sec--ink h2 em, .sec--ink h1 em, .ph--ink h1 em, .sec--ink2 h2 em { color: var(--rame-lt); }
.sec--cotto h2 em { color: var(--carta); }
p { text-wrap: pretty; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h3 { margin-top: 2em; }
.prose h4 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--cotto); }
.sec--ink .prose li::marker { color: var(--rame-lt); }
.prose a, .link { color: var(--cotto); text-decoration: underline; text-decoration-color: rgba(158, 67, 43, .4); }
.prose a:hover, .link:hover { text-decoration-color: currentColor; }
.sec--ink .prose a, .sec--ink .link { color: var(--rame-lt); text-decoration-color: rgba(221, 170, 120, .45); }
.cols-2 { columns: 2 22rem; column-gap: calc(var(--gutter) * 1.5); }
.cols-2 > * { break-inside: avoid; }
.cols-2 > p + p { margin-top: 1.1em; }

.lede { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.45; font-weight: 400; }
.dropcap::first-letter {
  font-family: var(--f-display); float: left; font-size: 4.6em; line-height: .8;
  padding: .06em .12em 0 0; color: var(--cotto); font-weight: 500;
}
.eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cotto); display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; line-height: 1.4;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--plain::before { display: none; }
.sec--ink .eyebrow, .ph--ink .eyebrow, .sec--ink2 .eyebrow { color: var(--rame-lt); }
.sec--cotto .eyebrow { color: var(--carta); }
.meta { font-family: var(--f-mono); font-size: var(--fs-meta); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec--ink .meta, .sec--ink2 .meta { color: var(--muted-on-ink); }
.muted { color: var(--muted); }
.sec--ink .muted, .sec--ink2 .muted, .ph--ink .muted, .panel--ink .muted, .sec--ink .meta, .ph--ink .meta { color: var(--muted-on-ink); }
.sec-num {
  font-family: var(--f-display); font-style: italic; font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem); line-height: .85;
  color: transparent; -webkit-text-stroke: 1px var(--rame); display: block;
}
.sec-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.75rem); }
.sec-head h2 { max-width: 20ch; }
.sec-head .lede { margin-top: 1.25rem; max-width: 46ch; }
.sec-head--split { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(248, 243, 233, .94);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand-role { margin-top: .3rem; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: none; }
.nav > ul { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border: 0; background: none; cursor: pointer;
  font-family: var(--f-body); font-size: .92rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; color: var(--ink);
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 1px; background: var(--cotto);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-item.is-active > .nav-link { color: var(--cotto); }
.nav-link svg { width: 10px; height: 10px; transition: transform .25s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: -1rem; min-width: 300px; background: var(--avorio);
  border: 1px solid var(--rule); box-shadow: 0 24px 48px -24px rgba(36, 21, 42, .35);
  padding: .75rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-panel.is-wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; column-gap: .5rem; }
.nav-item.is-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel a {
  display: grid; grid-template-columns: 2.1rem 1fr; gap: .25rem; padding: .65rem .75rem; text-decoration: none; color: var(--ink);
  font-size: .93rem; font-weight: 500; line-height: 1.3; border-radius: 2px;
}
.nav-panel a span:first-child { font-family: var(--f-mono); font-size: .7rem; color: var(--cotto); padding-top: .2rem; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--carta); }
.nav-panel a[aria-current="page"] { background: var(--carta); color: var(--cotto); }
.nav-cta { margin-left: .5rem; }

.menu-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--rule-strong); background: transparent;
  cursor: pointer; flex: none;
}
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); color: var(--carta); z-index: 99;
  overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem var(--gutter) 3rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-menu h2 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rame-lt); margin: 1.75rem 0 .5rem; font-weight: 400; }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu a {
  display: flex; gap: 1rem; align-items: baseline; padding: .8rem 0; min-height: 48px; text-decoration: none;
  font-family: var(--f-display); font-size: 1.35rem; border-bottom: 1px solid var(--rule-ink);
}
.mobile-menu a span { font-family: var(--f-mono); font-size: .7rem; color: var(--rame-lt); min-width: 1.5rem; }
.mobile-menu a[aria-current="page"] { color: var(--rame-lt); }

@media (min-width: 1180px) {
  .nav { display: block; }
  .menu-btn, .mobile-menu { display: none; }
}
@media (max-width: 420px) {
  .brand-role { display: none; }
  .brand-name { font-size: 1.1rem; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; padding: .8rem 1.4rem; text-decoration: none;
  font-family: var(--f-body); font-size: .92rem; font-weight: 600; letter-spacing: .04em; border: 1px solid currentColor;
  transition: background .25s, color .25s, border-color .25s; cursor: pointer; background: transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--carta); }
.btn--solid:hover { background: var(--cotto); border-color: var(--cotto); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--carta); border-color: var(--ink); }
.sec--ink .btn--ghost, .ph--ink .btn--ghost { color: var(--carta); }
.sec--ink .btn--ghost:hover { background: var(--carta); color: var(--ink); }
.btn--copper { background: var(--rame-lt); border-color: var(--rame-lt); color: var(--ink); }
.btn--copper:hover { background: var(--carta); border-color: var(--carta); }
.arrow-link {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--cotto);
  border-bottom: 1px solid currentColor; padding-bottom: .2rem;
}
.sec--ink .arrow-link, .sec--ink2 .arrow-link { color: var(--rame-lt); }
.arrow-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; opacity: .75; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs [aria-current] { opacity: 1; }

/* ---------- Page heroes ---------- */
.ph { position: relative; padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.ph .crumbs { margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.ph h1 { max-width: 16ch; }
.ph .lede { margin-top: 1.5rem; max-width: 40ch; }
.ph--ink { background: var(--ink); color: var(--carta); }
.ph--ink .crumbs { color: var(--muted-on-ink); }
.ph--carta { background: var(--carta); }
.ph-index {
  font-family: var(--f-mono); font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
}
.ph--ink .ph-index { border-color: var(--rule-ink); color: var(--muted-on-ink); }
.ph-index b { font-weight: 500; color: var(--cotto); }
.ph--ink .ph-index b { color: var(--rame-lt); }

/* Typographic hero with large outline numeral */
.ph-type { display: grid; gap: 2rem; }
.ph-type .ph-numeral {
  font-family: var(--f-display); font-style: italic; font-size: clamp(6rem, 3rem + 14vw, 17rem); line-height: .78;
  color: transparent; -webkit-text-stroke: 1px var(--rame); user-select: none;
}
@media (min-width: 900px) { .ph-type { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Figures (never crop: natural ratio, contain) ---------- */
.fig { position: relative; }
.fig img { width: 100%; height: auto; object-fit: contain; object-position: center; background: var(--carta); }
.fig figcaption {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; line-height: 1.55; color: var(--muted);
  margin-top: .85rem; display: flex; gap: .75rem;
}
.fig figcaption::before { content: ""; width: 18px; height: 1px; background: var(--rame); margin-top: .55rem; flex: none; }
.sec--ink .fig figcaption, .ph--ink .fig figcaption, .sec--ink2 .fig figcaption { color: var(--muted-on-ink); }
.fig--frame { padding: clamp(.6rem, .4rem + .8vw, 1.1rem); background: var(--avorio); border: 1px solid var(--rule); }
.fig--frame img { background: transparent; }
.fig--offset::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid var(--rame); z-index: -1;
}
.fig--offset { isolation: isolate; z-index: 0; }
.fig--portrait { max-width: 520px; }
.fig--narrow { max-width: 440px; }
.fig--center { margin-inline: auto; }
@media (max-width: 899px) { .fig--offset::before { inset: .75rem -.6rem -.75rem .6rem; } }

/* ---------- Pull quote / statement ---------- */
.pull { position: relative; padding-top: 3.5rem; }
.pull::before {
  content: "\201C"; position: absolute; top: -.6rem; left: -.15rem; font-family: var(--f-display); font-size: 7rem; line-height: 1;
  color: var(--rame);
}
.pull blockquote p { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.6rem); line-height: 1.25; font-weight: 400; font-style: italic; }
.pull figcaption { margin-top: 1.5rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pull figcaption a { color: inherit; }
.pull--center { text-align: center; max-width: 960px; margin-inline: auto; }
.pull--center::before { left: 50%; transform: translateX(-50%); }

/* ---------- Statistics ---------- */
.stat { border-top: 1px solid var(--rule-strong); padding-top: 1.1rem; }
.sec--ink .stat, .sec--ink2 .stat { border-color: var(--rule-ink); }
.stat-num { font-family: var(--f-display); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); line-height: 1; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.stat-num small { font-size: .45em; letter-spacing: 0; margin-left: .1em; }
.sec--ink .stat-num, .sec--ink2 .stat-num { color: var(--carta); }
.stat-label { margin-top: .6rem; font-size: .95rem; line-height: 1.5; max-width: 30ch; }
.stat-src { margin-top: .5rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); }
.sec--ink .stat-src, .sec--ink2 .stat-src { color: var(--muted-on-ink); }
.stat-src a { color: inherit; }
.stat--xl .stat-num { font-size: clamp(4.5rem, 2.5rem + 9vw, 11rem); line-height: .9; }

/* ---------- Vertical timeline ---------- */
.tl { position: relative; list-style: none; padding: 0; }
.tl::before { content: ""; position: absolute; left: 7.5rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--rule-strong); }
.tl > li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 2.25rem; padding-bottom: 2.6rem; position: relative; }
.tl > li::before {
  content: ""; position: absolute; left: calc(7.5rem - 5px); top: .55rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--cotto);
}
.tl > li.is-key::before { background: var(--cotto); }
.tl-date { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; color: var(--cotto); padding-top: .25rem; text-align: right; padding-right: 2.25rem; }
.tl-body h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.tl-body p { font-size: .98rem; line-height: 1.65; max-width: 62ch; }
.tl-body p + p { margin-top: .6rem; }
.sec--ink .tl::before { background: var(--rule-ink); }
.sec--ink .tl > li::before { background: var(--ink); border-color: var(--rame-lt); }
.sec--ink .tl > li.is-key::before { background: var(--rame-lt); }
.sec--ink .tl-date { color: var(--rame-lt); }
.sec--carta .tl > li::before { background: var(--carta); }
.sec--carta .tl > li.is-key::before { background: var(--cotto); }
@media (max-width: 640px) {
  .tl::before { left: 5px; }
  .tl > li { grid-template-columns: 1fr; padding-left: 2rem; }
  .tl > li::before { left: 0; }
  .tl-date { text-align: left; padding: 0 0 .35rem; }
}

/* ---------- Horizontal timeline (scroll-snap) ---------- */
.htl { position: relative; }
.htl-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 320px); gap: 0; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--rame) transparent;
  border-top: 1px solid var(--rule-strong);
}
.sec--ink .htl-track, .sec--ink2 .htl-track { border-color: var(--rule-ink); }
.htl-item { scroll-snap-align: start; padding: 1.75rem 1.75rem 0 0; position: relative; }
.htl-item::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--cotto); }
.sec--ink .htl-item::before, .sec--ink2 .htl-item::before { background: var(--rame-lt); }
.htl-item .meta { color: var(--cotto); }
.sec--ink .htl-item .meta, .sec--ink2 .htl-item .meta { color: var(--rame-lt); }
.htl-item h3 { font-size: 1.25rem; margin: .5rem 0 .6rem; }
.htl-item p { font-size: .95rem; line-height: 1.6; }
.htl-ctrl { display: flex; gap: .5rem; margin-top: 1.25rem; }
.htl-ctrl button {
  width: 48px; height: 48px; border: 1px solid currentColor; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.htl-ctrl button:hover { background: var(--ink); color: var(--carta); }
.sec--ink .htl-ctrl button:hover, .sec--ink2 .htl-ctrl button:hover { background: var(--carta); color: var(--ink); }
.htl-ctrl svg { width: 16px; height: 16px; }

/* ---------- Numbered index list ---------- */
.index-list { list-style: none; padding: 0; border-top: 1px solid var(--rule-strong); }
.index-list > li { border-bottom: 1px solid var(--rule); }
.index-list a, .index-list .il-row {
  display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.4rem 0; text-decoration: none;
  transition: padding .35s var(--ease), background .35s;
}
.index-list a:hover { padding-left: .75rem; background: linear-gradient(90deg, rgba(158, 67, 43, .06), transparent); }
.il-n { font-family: var(--f-mono); font-size: .75rem; color: var(--cotto); }
.il-t { font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.2; }
.il-t small { display: block; font-family: var(--f-body); font-size: .92rem; line-height: 1.55; color: var(--muted); margin-top: .35rem; max-width: 60ch; }
.il-arrow { width: 18px; height: 18px; color: var(--cotto); transition: transform .3s var(--ease); }
.index-list a:hover .il-arrow { transform: translateX(6px); }
.sec--ink .index-list { border-color: var(--rule-ink); }
.sec--ink .index-list > li { border-color: var(--rule-ink); }
.sec--ink .il-n, .sec--ink .il-arrow { color: var(--rame-lt); }
.sec--ink .il-t small { color: var(--muted-on-ink); }
@media (max-width: 560px) { .index-list a, .index-list .il-row { grid-template-columns: 2.25rem 1fr auto; } }

/* ---------- Tabs (interactive categories) ---------- */
.tabs-list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule-strong); }
.tabs-list button {
  background: none; border: 0; padding: 1rem 1.25rem; min-height: 48px; cursor: pointer; font-weight: 600; font-size: .92rem;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-align: left;
}
.tabs-list button[aria-selected="true"] { color: var(--ink); border-color: var(--cotto); }
.tabs-list button:hover { color: var(--ink); }
.sec--ink .tabs-list { border-color: var(--rule-ink); }
.sec--ink .tabs-list button { color: var(--muted-on-ink); }
.sec--ink .tabs-list button[aria-selected="true"], .sec--ink .tabs-list button:hover { color: var(--carta); border-color: var(--rame-lt); }
.tab-panel { padding-top: 2.25rem; }
.tab-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .tabs-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs-list button { white-space: nowrap; }
}

/* ---------- Status chips (policy classification) ---------- */
.status {
  display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .3rem .6rem; border: 1px solid currentColor; line-height: 1.2; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--law { color: #2F6B4F; }
.status--impl { color: #8A5A16; }
.status--pilot { color: #5C4A8C; }
.status--prop { color: var(--cotto); }
.status--hist { color: var(--muted); }
.sec--ink .status--law { color: #9ED2B4; }
.sec--ink .status--impl { color: #E9C27F; }
.sec--ink .status--pilot { color: #C9B8F0; }
.sec--ink .status--prop { color: #F0B39E; }
.sec--ink .status--hist { color: var(--muted-on-ink); }

/* ---------- Policy ledger (rows with status) ---------- */
.ledger { border-top: 1px solid var(--rule-strong); }
.ledger-row { display: grid; gap: .75rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.ledger-row h3 { font-size: 1.45rem; }
.ledger-row .meta { margin-top: .5rem; }
.ledger-row p { font-size: 1rem; }
.ledger-row p + p { margin-top: .7rem; }
.ledger-row .status { align-self: start; justify-self: start; }
@media (min-width: 900px) { .ledger-row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) minmax(9.5rem, auto); } .ledger-row .status { justify-self: end; } }
.sec--ink .ledger { border-color: var(--rule-ink); }
.sec--ink .ledger-row { border-color: var(--rule-ink); }

/* ---------- Note panels / aside ---------- */
.note { border-left: 2px solid var(--cotto); padding: .25rem 0 .25rem 1.5rem; }
.note p { font-size: .98rem; }
.note .meta { display: block; margin-bottom: .5rem; color: var(--cotto); }
.sec--ink .note { border-color: var(--rame-lt); }
.panel { background: var(--avorio); border: 1px solid var(--rule); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.panel--carta { background: var(--carta); border-color: transparent; }
.panel--ink { background: var(--ink); color: var(--carta); border: 0; }
.panel h3 { margin-bottom: .85rem; }

/* ---------- Comparison bars ---------- */
.bars { display: grid; gap: 1.4rem; }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 1rem; align-items: center; }
.bar-row .bar-label { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.bar-track { position: relative; height: 34px; background: rgba(36, 21, 42, .07); }
.sec--ink .bar-track, .sec--ink2 .bar-track { background: rgba(242, 234, 219, .09); }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; background: var(--ink-3); display: flex; align-items: center; justify-content: flex-end;
  padding-right: .6rem; font-family: var(--f-mono); font-size: .78rem; color: var(--avorio); width: var(--w);
  transform-origin: left; transition: transform 1.1s var(--ease);
}
.bar-fill--accent { background: var(--cotto); }
.sec--ink .bar-fill, .sec--ink2 .bar-fill { background: #6E5170; }
.sec--ink .bar-fill--accent, .sec--ink2 .bar-fill--accent { background: var(--rame); color: var(--ink); }
.js .reveal .bar-fill { transform: scaleX(0); }
.js .reveal.is-in .bar-fill { transform: scaleX(1); }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule-strong); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.data caption { text-align: left; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); padding: .75rem 0; caption-side: bottom; }
table.data th, table.data td { text-align: left; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
table.data td.num { font-family: var(--f-display); font-size: 1.2rem; white-space: nowrap; }
table.data tr.hl td { color: var(--cotto); font-weight: 600; }
.sec--ink table.data th, .sec--ink table.data td { border-color: var(--rule-ink); }
.sec--ink table.data th, .sec--ink table.data caption { color: var(--muted-on-ink); }
.sec--ink table.data tr.hl td { color: var(--rame-lt); }

/* ---------- Sources (refined reference treatment) ---------- */
.sources { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--rule); padding-top: 1rem; }
.sources summary {
  cursor: pointer; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  list-style: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
}
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: "+"; font-size: 1rem; color: var(--cotto); width: 1rem; }
.sources[open] summary::before { content: "\2013"; }
.sources ol { margin-top: .75rem; padding-left: 1.4rem; font-size: .85rem; line-height: 1.6; color: var(--muted); columns: 2 26rem; column-gap: 3rem; }
.sources li { break-inside: avoid; margin-bottom: .5rem; }
.sources a { color: inherit; word-break: break-word; }
.sec--ink .sources { border-color: var(--rule-ink); }
.sec--ink .sources summary, .sec--ink .sources ol { color: var(--muted-on-ink); }
sup.ref a { font-family: var(--f-mono); font-size: .65em; color: var(--cotto); text-decoration: none; margin-left: .1em; }

/* ---------- Related / cross links ---------- */
.related { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem 1.5rem 1.75rem 0; text-decoration: none; border-bottom: 1px solid var(--rule);
  transition: background .3s;
}
@media (min-width: 760px) { .related a + a { padding-left: 1.5rem; border-left: 1px solid var(--rule); } }
.related a:hover { background: rgba(158, 67, 43, .05); }
.related .meta { color: var(--cotto); }
.related strong { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.related span:last-child { font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--carta); padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.75rem; }
.f-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule-ink); }
@media (min-width: 900px) { .f-top { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; } }
.f-name { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.1; }
.f-role { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rame-lt); margin-top: .6rem; }
.f-head { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: .9rem; }
.f-contact p { line-height: 1.5; }
.f-contact p + p { margin-top: .3rem; }
.f-contact a { text-decoration: none; border-bottom: 1px solid var(--rule-ink); display: inline-block; padding: .25rem 0; }
.f-contact a:hover { border-color: var(--rame-lt); color: var(--rame-lt); }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a {
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--rule-ink); color: var(--carta);
  transition: background .25s, color .25s, border-color .25s;
}
.social a:hover { background: var(--rame-lt); color: var(--ink); border-color: var(--rame-lt); }
.social svg { width: 18px; height: 18px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; color: var(--muted-on-ink); }
.f-bottom a { color: var(--carta); }
.f-bottom a:hover { color: var(--rame-lt); }
.f-bottom button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: var(--muted-on-ink); font-size: .82rem; }
.f-bottom button:hover { color: var(--rame-lt); }
.f-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; }
.f-links a { text-decoration: none; padding: .2rem 0; }
.f-links a:hover { color: var(--rame-lt); }

/* ---------- Ornament ---------- */
.rule-orn { display: flex; align-items: center; gap: 1rem; color: var(--rame); }
.rule-orn::before, .rule-orn::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .5; }
.grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 6) 100%; background-position: center; opacity: .5; }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
.draw-line { height: 1px; background: var(--rame); transform-origin: left; }
.js .reveal .draw-line, .js .draw-line.reveal { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.js .reveal.is-in .draw-line, .js .draw-line.reveal.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .bar-fill, .js .reveal .draw-line, .js .draw-line.reveal { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .site-footer .social, .htl-ctrl { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}

/* ---------- Forms ---------- */
.compose { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--rule-strong);
  padding: .85rem .75rem; min-height: 48px; border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cotto); box-shadow: 0 1px 0 var(--cotto); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--cotto); outline-offset: 2px; }
.form-msg { min-height: 1.4em; font-size: .9rem; color: var(--cotto); }

/* ---------- Filter bar ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter button {
  min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--rule-strong); background: transparent; cursor: pointer;
  font-size: .88rem; font-weight: 600; color: var(--ink);
}
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--carta); border-color: var(--ink); }
.filter button:hover { border-color: var(--ink); }
.filter [data-filter-status] { margin-left: auto; }

/* ---------- Gallery ---------- */
.gal { margin: 0; }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gal-open img { width: 100%; height: auto; object-fit: contain; margin-inline: auto; transition: transform .8s var(--ease), filter .5s; }
.gal-open:hover img { filter: brightness(1.04); }
.gal figcaption { margin-top: .9rem; font-size: .9rem; line-height: 1.5; display: flex; gap: .75rem; align-items: baseline; }
.gal figcaption .meta { color: var(--cotto); flex: none; }
.sec--ink2 .gal figcaption, .sec--ink .gal figcaption { color: var(--muted-on-ink); }
.sec--ink2 .gal figcaption .meta { color: var(--rame-lt); }
.gal--feature .gal-open img { max-width: 1100px !important; }
.gal--feature { display: grid; justify-items: center; }
.gal--feature figcaption { width: 100%; max-width: 1100px; }
.gal-strip { display: grid; gap: var(--gutter); align-items: start; }
@media (min-width: 760px) { .gal-strip { grid-template-columns: 1fr 1.15fr; } .gal-strip .gal:last-child { margin-top: 4rem; } }
.gal--portrait { border: 1px solid var(--rule); background: var(--avorio); padding: clamp(.6rem, .4rem + 1vw, 1.25rem); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(24, 13, 28, .92); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; margin: 0 auto; }
.lightbox p { color: var(--carta); text-align: center; margin-top: 1rem; }
.lb-close {
  position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border: 1px solid rgba(242,234,219,.4); background: transparent;
  color: var(--carta); font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.lb-close:hover { background: var(--carta); color: var(--ink); }

/* ---------- Home ---------- */
.hero { position: relative; background: var(--carta); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero .grid-lines { opacity: .45; }
.hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 700px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-name { font-size: clamp(3.2rem, 1.6rem + 7vw, 7.6rem); line-height: .92; letter-spacing: -.025em; font-weight: 500; max-width: none; }
.hero-name span { display: block; }
.hero-name span:last-child { font-style: italic; color: var(--cotto); padding-left: clamp(0rem, -2rem + 6vw, 4.5rem); }
.hero-role { font-family: var(--f-mono); font-size: clamp(.78rem, .7rem + .3vw, .92rem); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.hero-lede { margin-top: 1.25rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); }
.hero-meta dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cotto); }
.hero-meta dd { margin: .3rem 0 0; font-family: var(--f-display); font-size: 1.2rem; }
.hero-figure { justify-self: center; width: 100%; max-width: 470px; }
.hero-figure .fig { margin-inline: auto; }
.hero-figure .fig img { background: transparent; box-shadow: 0 40px 70px -40px rgba(36, 21, 42, .55); }
.hero-figure .fig::after { content: ""; position: absolute; left: -1.25rem; top: 12%; bottom: 14%; width: 1px; background: var(--rame); }
@media (max-width: 699px) { .hero-grid { gap: 0; } .hero-text { display: contents; } .hero-text > * { order: 4; } .hero-text > .eyebrow { order: 1; } .hero-text > .hero-name { order: 2; } .hero-figure { order: 3; max-width: 300px; justify-self: start; margin: 2rem 0 .5rem; } .hero-figure .fig::after { display: none; } .hero .grid-lines { display: none; } }

.home-facts { list-style: none; padding: 0; border-top: 1px solid var(--rule-strong); align-self: start; }
.home-facts li { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.home-facts .meta { color: var(--cotto); }
.home-facts strong { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.home-facts span:last-child { font-size: .92rem; color: var(--muted); }

.pull-tr { margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.6; max-width: 60ch; margin-inline: auto; }
.home-cols article { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.home-cols h3 { margin: .6rem 0 .8rem; }
.home-cols p { font-size: 1rem; }
.home-cols .meta { color: var(--cotto); }

.four-two { display: grid; grid-template-columns: 4fr auto 2fr; align-items: stretch; gap: .75rem; }
.ft-block { border: 1px solid var(--rule-ink); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.ft-4 { background: rgba(221, 170, 120, .14); border-color: var(--rame-lt); }
.ft-n { font-family: var(--f-display); font-size: clamp(4rem, 2.5rem + 6vw, 7.5rem); line-height: .9; color: var(--rame-lt); }
.ft-2 .ft-n { color: var(--carta); }
.ft-plus { align-self: center; font-family: var(--f-display); font-size: 2.5rem; color: var(--rame-lt); }
.ft-growth { grid-column: 1 / -1; margin-top: .5rem; font-size: .95rem; color: var(--muted-on-ink); }
.ft-growth b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; color: var(--carta); margin-right: .4rem; }
.four-two .meta { color: var(--muted-on-ink); }

.news-grid { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 900px) { .news-grid { grid-template-columns: 1.4fr 1fr 1fr; } .news-item + .news-item { border-left: 1px solid var(--rule); padding-left: 1.75rem; } }
.news-item { padding: 1.75rem 1.75rem 1.75rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.news-item .meta { color: var(--cotto); }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--cotto); }
.news-item p { font-size: .98rem; }
.news-item--lead h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.sec--ink sup.ref a, .sec--ink2 sup.ref a, .ph--ink sup.ref a, .panel--ink sup.ref a { color: var(--rame-lt); }
.sec--cotto sup.ref a { color: var(--carta); }
@media (min-width: 1180px) and (max-width: 1459px) {
  .brand-role { display: none; }
  .nav-link { padding: .6rem .6rem; font-size: .9rem; }
  .nav-link::after { left: .6rem; right: .6rem; }
}
.status { max-width: 100%; white-space: normal; }
.nav > ul > .nav-item:nth-last-child(2) .nav-panel { left: auto; right: -1rem; }
.nav-panel:not(.is-open *) { pointer-events: none; }
.nav-item.is-open .nav-panel { pointer-events: auto; }
.nav-panel.is-wide { left: 50%; transform: translate(-50%, -6px); }
.nav-item.is-open .nav-panel.is-wide { transform: translate(-50%, 0); }
