/* =========================================================
   Fundación Presidente Rafael F. Bonnelly Fondeur
   Shared stylesheet — editorial / archival hi-fi
   ========================================================= */

/* Tokens — default "classical" palette */
:root {
  /* Inks */
  --ink:        #15171c;
  --ink-soft:   #2b2e36;
  --gris:       #595e6d;
  --gris-soft:  #8a8e9b;

  /* Institutional */
  --navy:       #0a1d3a;
  --navy-2:     #16315a;
  --navy-deep:  #061328;

  /* Brass (gold) */
  --brass:      #b0843a;
  --brass-2:    #c69d54;
  --brass-soft: #e3cb96;

  /* Papers */
  --ivory:      #f4ecd9;
  --paper:      #faf4e3;
  --cream:      #fbf7ec;
  --bone:       #e8dec5;
  --rule:       #d8cdaf;

  /* Accent */
  --caoba:      #6b1e1b;
  --caoba-soft: #8a3a2f;

  /* Layout */
  --maxw:       1240px;
  --pad-x:      clamp(20px, 5vw, 64px);
  --pad-y:      clamp(56px, 7vw, 112px);
  --gap:        clamp(20px, 2.4vw, 32px);

  --radius:     6px;
  --radius-lg:  14px;
  --shadow:     0 24px 60px -20px rgba(10, 29, 58, .25), 0 2px 6px rgba(10, 29, 58, .06);
  --shadow-sm:  0 1px 2px rgba(10, 29, 58, .06), 0 6px 18px -8px rgba(10, 29, 58, .12);

  --font-display: 'Newsreader', 'GT Sectra', 'Source Serif 4', Georgia, serif;
  --font-text:    'IBM Plex Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Palette: archival sepia */
:root[data-palette="sepia"] {
  --ink:        #1f1610;
  --ink-soft:   #382a1d;
  --gris:       #6b5942;
  --navy:       #2a1d10;
  --navy-2:     #3a2818;
  --navy-deep:  #1a1108;
  --brass:      #a87a3a;
  --brass-2:    #c19656;
  --ivory:      #efe3c8;
  --paper:      #f5ead0;
  --cream:      #f9efd6;
  --bone:       #ddc89c;
  --rule:       #cab692;
  --caoba:      #6b2818;
}

/* Palette: civic stone (modern restrained) */
:root[data-palette="stone"] {
  --ink:        #15171c;
  --ink-soft:   #2b2e36;
  --gris:       #4f5360;
  --navy:       #1d2024;
  --navy-2:     #2b2f37;
  --navy-deep:  #0d0f12;
  --brass:      #8c6a2e;
  --brass-2:    #a78343;
  --brass-soft: #d4be8a;
  --ivory:      #ece8dd;
  --paper:      #f4f0e4;
  --cream:      #f6f3e8;
  --bone:       #d6d0bf;
  --rule:       #c0b9a4;
  --caoba:      #6b1e1b;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Typography ------------------------------------------------ */
.serif, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--ink);
}
h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 480; letter-spacing: -0.022em; }
h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.018em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }

.display-xl {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(56px, 9.5vw, 152px);
  line-height: .92;
  letter-spacing: -0.034em;
  font-feature-settings: "ss01";
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
}

.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
}

p { max-width: 68ch; color: var(--ink-soft); }
p.wide { max-width: none; }

/* Container ------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--pad-y) 0; }
.section-tight { padding: clamp(32px, 4vw, 56px) 0; }

/* Topbar ribbon --------------------------------------------- */
.topbar {
  background: var(--navy-deep);
  color: var(--brass-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.topbar .topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 11px var(--pad-x);
  display: flex; justify-content: space-between; gap: 24px;
}
.topbar a { color: inherit; opacity: .8; }
.topbar a:hover { opacity: 1; color: var(--brass-2); }

/* Header / nav ---------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--ivory) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--pad-x);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .seal {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-soft);
  border: 1px solid var(--brass);
}
.brand .seal svg { width: 30px; height: 30px; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; letter-spacing: -.012em; color: var(--ink);
  line-height: 1.1; display: block;
}
.brand-text span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--gris); text-transform: uppercase;
}
.nav-links {
  list-style: none; display: flex; gap: 4px; justify-self: center;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink); background: color-mix(in oklab, var(--brass-soft) 38%, transparent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-brass {
  background: var(--brass);
  color: var(--navy-deep);
  font-weight: 600;
}
.btn-brass:hover { background: var(--brass-2); transform: translateY(-1px); }
.btn-outline {
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost { color: var(--ink-soft); padding: 13px 0; }
.btn-ghost:hover { color: var(--ink); }
.btn.on-dark { color: var(--paper); }
.btn.on-dark.btn-outline { border-color: rgba(255,255,255,.4); }
.btn.on-dark.btn-outline:hover { background: var(--paper); color: var(--navy-deep); border-color: var(--paper); }

/* Hero ------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(80px, 10vw, 160px) 0 clamp(96px, 12vw, 200px);
}
.hero.short { padding: clamp(64px, 7vw, 112px) 0 clamp(72px, 8vw, 128px); }
.hero::before {
  /* paper grain & gold radial */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 86% 18%, rgba(176,132,58,.30), transparent 60%),
    radial-gradient(48% 38% at 8% 92%, rgba(176,132,58,.16), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--brass-2); }
.hero .eyebrow::before { background: var(--brass-2); }
.hero h1 { color: var(--paper); }
.hero .lead { color: color-mix(in oklab, var(--paper) 85%, transparent); }

.hero-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 28px;
  color: var(--brass-soft);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Type-driven monument hero variant */
.hero-monument .display-xl { color: var(--paper); }
.hero-monument .display-xl em {
  font-style: italic; font-weight: 380; color: var(--brass-soft);
}

/* Quote pulled-up panel ------------------------------------- */
.quote-panel {
  margin-top: -68px;
  position: relative; z-index: 5;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow);
}
.quote-panel .mark {
  font-family: var(--font-display); font-weight: 400;
  color: var(--brass);
  font-size: 110px; line-height: 0.8;
  display: block; margin-bottom: -28px;
}
.quote-panel h2 { max-width: 22ch; }
.quote-panel .attribution {
  margin-top: 22px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
}
.quote-panel .attribution::before {
  content: ""; width: 32px; height: 1.5px; background: var(--brass);
}

/* Two-column editorial -------------------------------------- */
.grid-2 {
  display: grid; gap: clamp(36px, 5vw, 80px);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.grid-2.lead-right { grid-template-columns: 1.05fr .95fr; }

/* Portrait monument card ------------------------------------ */
.portrait {
  position: relative;
  background: linear-gradient(155deg, var(--navy-2), var(--navy-deep));
  color: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 540px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.portrait::before {
  /* inner gold frame */
  content: ""; position: absolute; inset: 18px;
  border: 1px solid rgba(227,203,150,.32);
  border-radius: 4px; pointer-events: none;
}
.portrait::after {
  /* corner ornaments + grain */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(38% 28% at 50% 28%, rgba(227,203,150,.18), transparent 65%),
    radial-gradient(circle at 50% 86%, rgba(227,203,150,.08), transparent 60%);
  pointer-events: none; z-index: 0;
}
.portrait .silhouette {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  width: 78%; max-width: 380px; opacity: .85;
  z-index: 1;
}
.portrait .meta {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 28px;
  border-top: 1px solid rgba(227,203,150,.28);
}
.portrait .meta .name {
  font-family: var(--font-display); font-size: clamp(26px, 2vw, 32px);
  font-weight: 480; letter-spacing: -.012em; line-height: 1.05;
}
.portrait .meta .title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-soft);
}
.portrait .meta .dates {
  margin-top: 8px;
  font-family: var(--font-display); font-style: italic;
  color: color-mix(in oklab, var(--brass-soft) 70%, var(--paper));
}
.portrait .crest {
  position: absolute; top: 28px; left: 28px; z-index: 2;
  width: 56px; height: 56px;
}
.portrait .ribbon {
  position: absolute; top: 28px; right: 28px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-soft);
}

/* Section: dark panel --------------------------------------- */
.section-dark {
  background: var(--navy-deep);
  color: var(--paper);
  position: relative;
  isolation: isolate;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 88% 12%, rgba(176,132,58,.22), transparent 65%),
    radial-gradient(40% 50% at 6% 88%, rgba(176,132,58,.10), transparent 65%);
  z-index: -1; pointer-events: none;
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: color-mix(in oklab, var(--paper) 78%, transparent); }
.section-dark .eyebrow { color: var(--brass-2); }
.section-dark .eyebrow::before { background: var(--brass-2); }
.section-dark .rule { background: rgba(227,203,150,.2); }

/* Card system ----------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brass-soft); }
.card .num {
  font-family: var(--font-display);
  font-weight: 400; font-size: 38px; line-height: 1; color: var(--brass);
  font-feature-settings: "lnum";
  margin-bottom: 6px;
}
.card .num.italic { font-style: italic; }
.card h3 { color: var(--ink); }
.card p { color: var(--gris); font-size: 15.5px; line-height: 1.55; }
.section-dark .card {
  background: color-mix(in oklab, var(--navy-2) 60%, transparent);
  border-color: rgba(227,203,150,.18);
  color: var(--paper);
}
.section-dark .card h3 { color: var(--paper); }
.section-dark .card p { color: color-mix(in oklab, var(--paper) 72%, transparent); }
.section-dark .card .num { color: var(--brass-2); }

.card.expand .arrow { color: var(--brass); }

/* Document-card (archive) ----------------------------------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.doc-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brass); }
.doc-card .doc-vis {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--bone), var(--paper));
  border-bottom: 1px solid var(--rule);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.doc-card .doc-vis::before {
  /* faint paper grain */
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(21,23,28,.03) 0 1px, transparent 1px 4px),
    radial-gradient(60% 50% at 50% 50%, transparent, rgba(21,23,28,.08));
  pointer-events: none;
}
.doc-card .doc-vis svg { position: relative; z-index: 1; max-width: 78%; max-height: 78%; }
.doc-card .doc-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.doc-card .doc-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
}
.doc-card .doc-meta .tag { color: var(--caoba); }
.doc-card h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; line-height: 1.2; letter-spacing: -.012em; color: var(--ink);
  margin-top: 2px;
}
.doc-card .doc-source {
  margin-top: auto; padding-top: 12px;
  font-size: 13px; color: var(--gris);
  border-top: 1px dashed var(--rule);
}

/* Filter chips */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.chip {
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: transparent;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brass); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--gris); margin-left: 8px;
}
.chip.active .count { color: var(--brass-soft); }

/* Timeline -------------------------------------------------- */
.timeline {
  position: relative;
  display: grid; gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 56px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item .when {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(22px, 1.8vw, 28px);
  color: var(--caoba);
  letter-spacing: -.012em;
  line-height: 1.1;
}
.timeline-item .when small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris); font-weight: 400; margin-top: 6px;
}
.timeline-item .dot {
  position: relative;
  width: 56px; height: 100%;
  display: grid; place-items: start center;
  padding-top: 12px;
}
.timeline-item .dot::before {
  content: ""; position: absolute; top: 12px; bottom: -32px; left: 50%;
  transform: translateX(-50%);
  width: 1px; background: var(--rule);
}
.timeline-item:last-child .dot::before { display: none; }
.timeline-item .dot .marker {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brass);
  position: relative; z-index: 1;
}
.timeline-item .dot .marker.major {
  background: var(--brass); border-color: var(--brass);
}
.timeline-item h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; line-height: 1.2; }
.timeline-item p { font-size: 16px; color: var(--ink-soft); }

/* Timeline inside dark sections — lift text to paper for legibility */
.section-dark .timeline-item p { color: color-mix(in oklab, var(--paper) 82%, transparent); }
.section-dark .timeline-item .when { color: var(--brass-2); }
.section-dark .timeline-item .when small { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.section-dark .timeline-item { border-bottom-color: rgba(227,203,150,.16); }
.section-dark .timeline-item .dot::before { background: rgba(227,203,150,.22); }
.section-dark .timeline-item .marker { background: var(--navy-deep); border-color: var(--brass-2); }
.section-dark .timeline-item .marker.major { background: var(--brass-2); border-color: var(--brass-2); }

/* Big CTA banner -------------------------------------------- */
.cta-banner {
  background: var(--navy-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(40px, 5vw, 72px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto;
  align-items: center; gap: 40px;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 96% 8%, rgba(176,132,58,.28), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(107,30,27,.42), transparent 60%);
  z-index: -1;
}
.cta-banner h2 { color: var(--paper); max-width: 22ch; }
.cta-banner p { color: color-mix(in oklab, var(--paper) 80%, transparent); max-width: 56ch; margin-top: 14px; }
.cta-banner .cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-banner .cta-actions .btn { justify-content: center; }
.cta-banner .ribbon {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-soft);
}

/* Page article ---------------------------------------------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article .article-header { margin-bottom: 48px; }
.article h2 {
  margin-top: 56px;
  margin-bottom: 14px;
  font-size: clamp(26px, 2.8vw, 36px);
}
.article h2:first-of-type { margin-top: 0; }
.article h2 .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 500;
}
.article p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 18px; max-width: none; }
.article p.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 480;
  float: left;
  line-height: .85;
  padding: 6px 12px 0 0;
  color: var(--ink);
}
.article ul { margin: 8px 0 24px 0; padding-left: 0; list-style: none; }
.article li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  color: var(--ink-soft);
}
.article li:last-child { border-bottom: 0; }
.article li::before {
  content: "§";
  position: absolute; left: 0; top: 10px;
  font-family: var(--font-display); font-style: italic;
  color: var(--brass); font-size: 18px;
}
.article blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--brass);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.35;
  background: var(--cream);
}
.article figure {
  margin: 36px 0;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.article figcaption {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gris);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.article-meta strong { color: var(--ink); font-weight: 500; }

/* Sidebar margin notes */
.article-with-side {
  display: grid; grid-template-columns: 1fr 240px; gap: 56px;
  max-width: 1080px; margin: 0 auto;
}
.article-with-side .article { max-width: none; }
.side-notes { position: sticky; top: 100px; align-self: start; }
.side-notes .note {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--gris);
  line-height: 1.55;
}
.side-notes .note strong {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--brass); text-transform: uppercase; font-weight: 600;
  margin-bottom: 6px;
}

/* Footer ---------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  color: color-mix(in oklab, var(--paper) 78%, transparent);
  padding: clamp(64px, 7vw, 96px) 0 32px;
  position: relative; isolation: isolate;
}
.footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 90% 20%, rgba(176,132,58,.16), transparent 65%);
  z-index: -1;
}
.footer .footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-2); margin-bottom: 18px; font-weight: 600;
}
.footer .brand-block .seal { width: 56px; height: 56px; margin-bottom: 18px; }
.footer .brand-block strong {
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  color: var(--paper); display: block; margin-bottom: 8px; line-height: 1.15; letter-spacing: -.01em;
  max-width: 22ch;
}
.footer .brand-block p { font-size: 14px; color: color-mix(in oklab, var(--paper) 70%, transparent); max-width: 36ch; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: var(--brass-2); }
.footer .copy {
  max-width: var(--maxw); margin: 56px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(227,203,150,.18);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: color-mix(in oklab, var(--paper) 50%, transparent);
}

/* Utility --------------------------------------------------- */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.flex { display: flex; gap: 12px; align-items: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.mb-s { margin-bottom: 16px; } .mb-m { margin-bottom: 28px; } .mb-l { margin-bottom: 48px; }
.text-center { text-align: center; }
.muted { color: var(--gris); }
.density-tight { --pad-y: clamp(40px, 5vw, 72px); --gap: 20px; }
.density-tight section { padding: var(--pad-y) 0; }
.density-tight .card { padding: 22px; }
.density-tight .article p { font-size: 16.5px; }

/* Numbered section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head .num-marker {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gris);
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats > div { padding: 28px 24px; border-right: 1px solid var(--rule); }
.stats > div:last-child { border-right: 0; }
.stats .big {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(38px, 4vw, 58px); line-height: 1; color: var(--ink); letter-spacing: -.022em;
}
.stats .big sup { font-size: .5em; color: var(--brass); font-weight: 480; }
.stats .label {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--gris); text-transform: uppercase;
}

/* Form ------------------------------------------------------ */
.form {
  display: grid; gap: 18px;
}
.form label {
  display: grid; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gris);
}
.form input, .form textarea, .form select {
  font: inherit;
  font-family: var(--font-text); font-size: 16px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.form textarea { min-height: 140px; resize: vertical; }

/* Contact options grid */
.contact-list { display: grid; gap: 0; }
.contact-list .row {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-list .row:first-child { border-top: 1px solid var(--rule); }
.contact-list .row .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
}
.contact-list .row .what {
  font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: -.01em;
}
.contact-list .row .desc { font-size: 14px; color: var(--gris); margin-top: 4px; }

/* Lightbox / modal ------------------------------------------ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in oklab, var(--navy-deep) 75%, transparent);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal .modal-card {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 760px; width: 100%;
  max-height: 88vh; overflow: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal .modal-card .close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gris);
}
.modal .modal-card .close:hover { background: var(--bone); color: var(--ink); }
.modal-art {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--bone), var(--paper));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: grid; place-items: center;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.modal-art::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(21,23,28,.03) 0 1px, transparent 1px 4px);
}

/* Fallback for failed drive image loads */
.img-fallback { background: var(--bone); display: grid; place-items: center; }
.img-fallback svg { width: 100%; height: 100%; }

/* Mobile ---------------------------------------------------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .grid-2, .grid-3, .grid-4, .doc-grid, .footer .footer-grid, .stats { grid-template-columns: 1fr !important; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-item .dot { display: none; }
  .quote-panel { margin-top: -36px; }
  .topbar { display: none; }
  .cta-banner { grid-template-columns: 1fr; }
  .article-with-side { grid-template-columns: 1fr; }
  .side-notes { position: static; }
  .contact-list .row { grid-template-columns: 1fr; gap: 6px; }
}
