/* =====================================================================
   Sgt. Pepe World — Sub-pages styling (timeline, fund, initiative, gallery)
   ===================================================================== */
@import url('colors_and_type.css');

* { box-sizing: border-box; min-width: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
html, body { margin: 0; background: var(--bone); color: var(--burgundy-ink); }
body { font-family: var(--font-body); font-weight: 300; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }

a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--orange-stamp); }

.eyebrow {
  font-family: var(--font-ui); font-weight: 700; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-stamp);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:''; width: 28px; height: 2px; background: currentColor; }

.btn {
  font-family: var(--font-ui); font-weight: 700;
  font-size: 25px; letter-spacing: 0.06em; text-transform: lowercase;
  padding: 13px 22px; border-radius: 999px;
  border: 3.5px solid var(--burgundy);
  background: var(--burgundy); color: var(--bone);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  box-shadow: 4px 4px 0 0 var(--burgundy);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--burgundy); }
.btn.ghost { background: transparent; color: var(--burgundy); }
.btn.gold { background: var(--gold); color: var(--burgundy); }
.btn.bone { background: var(--bone); color: var(--burgundy); border-color: var(--bone); box-shadow: 3px 3px 0 0 var(--bone); }

.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 9px; border: 1.5px dashed var(--burgundy);
  border-radius: 4px; color: var(--burgundy);
  background: rgba(243,227,201,0.45);
}
.stamp.on-dark { color: var(--bone); border-color: var(--bone); background: rgba(243,227,201,0.06); }
.stamp.solid { background: var(--burgundy); color: var(--bone); border-style: solid; }
.stamp.orange { background: var(--orange-stamp); color: var(--bone); border-color: var(--burgundy); border-style: solid; }

/* ---------- nav (new spec — big logo + center pill + 2 socials) ---------- */
.nav {
  position: fixed; top: 16px; left: 24px; right: 24px;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.menu-toggle { display: none; }
.nav .mark { display: flex; align-items: center; text-decoration: none; transition: transform 200ms; }
.nav .mark:hover { transform: scale(1.04); }
.nav .mark img { height: 58px; width: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); }
.nav .links-wrap { display: flex; justify-content: center; }
.nav .links {
  display: flex; align-items: center; gap: 4px;
  background: rgba(243,227,201,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 2px solid var(--burgundy);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px -10px rgba(33,16,15,0.25);
}
.nav .link {
  font-family: var(--font-ui);
  font-weight: 400; font-size: 14px; letter-spacing: 0.06em;
  color: var(--burgundy); padding: 10px 18px; border-radius: 999px;
  text-decoration: none; text-transform: capitalize;
  transition: color 180ms, background 180ms; white-space: nowrap;
}
.nav .link:hover { color: var(--orange-stamp); }
.nav .link.active { background: var(--burgundy); color: var(--bone); }
.nav .icons { display: flex; gap: 10px; }
.nav .icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: #2a1416; display: grid; place-items: center;
  color: var(--bone); font-size: 18px; text-decoration: none;
  transition: transform 200ms, background 200ms;
  border: 2px solid #2a1416;
}
.nav .icon-btn svg { width: 20px; height: 20px; fill: var(--bone); }
.nav .icon-btn:hover { transform: scale(1.05); background: var(--orange-stamp); border-color: var(--orange-stamp); }
@media (max-width: 1100px) {
  .nav .link { padding: 8px 12px; font-size: 12px; }
  .nav .mark img { height: 52px; }
}
@media (max-width: 900px) {
  .nav { top: 14px; left: 14px; right: 14px; justify-content: flex-end; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 3px solid var(--burgundy);
    background: var(--bone);
    box-shadow: 4px 4px 0 0 var(--burgundy);
    pointer-events: auto;
    z-index: 102;
    overflow: hidden;
  }
  .menu-toggle img { width: 40px; height: 40px; object-fit: contain; transition: transform 220ms var(--ease-out); }
  .nav.menu-open .menu-toggle img { transform: rotate(90deg) scale(0.92); }
  .nav-shell {
    position: fixed;
    top: 14px;
    right: 14px;
    width: min(370px, calc(100vw - 28px));
    padding: 82px 20px 22px;
    border: 3px solid var(--burgundy);
    border-radius: 16px;
    background: var(--bone);
    box-shadow: 8px 8px 0 0 var(--burgundy);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 240ms;
  }
  .nav.menu-open .nav-shell { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .nav .mark { justify-content: center; }
  .nav .mark img { height: 68px; }
  .nav .links-wrap { display: flex; }
  .nav .links { flex-direction: column; border: 0; box-shadow: none; background: var(--bone); padding: 0; width: 100%; }
  .nav .link { text-align: center; font-size: 17px; padding: 13px; }
  .nav .icons { justify-content: center; }
  .nav .icon-btn { width: 53px; height: 53px; }
  .nav .icon-btn svg { width: 23px; height: 23px; }
}

/* ---------- masthead ---------- */
.masthead {
  padding: 160px 32px 80px;
  background: var(--bone-warm);
  border-bottom: 3px solid var(--burgundy);
  position: relative; overflow: hidden;
}
.masthead .grain-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(33,16,15,0.16) 1px, transparent 1px);
  background-size: 4px 4px; mix-blend-mode: multiply; opacity: 0.3;
}
.masthead .crumbs {
  font-family: var(--font-ui); font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.masthead .crumbs a { color: var(--fg-muted); text-decoration: none; }
.masthead .crumbs a:hover { color: var(--orange-stamp); }
.masthead h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.03em;
  line-height: 0.92; text-transform: uppercase;
  color: var(--burgundy); margin: 0;
  max-width: 16ch;
}
.masthead .lead {
  margin-top: 28px; max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--fg-muted);
  line-height: 1.25;
}
.masthead .meta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
.tl-page .masthead .meta-row,
.gallery-page .masthead .meta-row { display: none; }

.page-section { padding: 96px 32px; position: relative; }
.wrap { max-width: 1280px; margin: 0 auto; }
.wrap-md { max-width: 980px; margin: 0 auto; }
.wrap-tight { max-width: 720px; margin: 0 auto; }

/* ---------- Timeline page ---------- */
.tl-page { background: var(--bone); }
.tl-yearnav {
  position: fixed; top: 86px; left: 0; right: 0; z-index: 95;
  background: rgba(243,227,201,0.95);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--burgundy);
  border-bottom: 1.5px solid var(--burgundy);
  padding: 14px 32px;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.tl-page #timeline-root {
  padding-top: 74px;
}
.tl-yearnav .year-pill {
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  background: transparent; color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  text-decoration: none;
  transition: all 200ms var(--ease-out);
}
.tl-yearnav .year-pill:hover, .tl-yearnav .year-pill.active {
  background: var(--burgundy); color: var(--bone);
  transform: translate(-1px,-1px);
  box-shadow: 2px 2px 0 0 var(--burgundy);
}

.year-block {
  padding: 80px 32px 120px;
  position: relative;
}
.year-block + .year-block { border-top: 1px solid var(--border-faint); }
.year-block .y-head {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  max-width: 1280px; margin: 0 auto 56px;
  flex-wrap: wrap;
}
.year-block h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(80px, 14vw, 220px); letter-spacing: -0.04em;
  line-height: 0.85; color: var(--burgundy); margin: 0;
}
.year-block .y-summary {
  font-family: var(--font-editorial); font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--burgundy);
  max-width: 38ch;
  text-align: right;
}
.year-items {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 100px 1fr; gap: 0;
}
.year-items .item {
  display: contents;
}
.year-items .month {
  font-family: var(--font-display); font-weight: 900;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-stamp);
  padding: 24px 0;
  border-top: 1.5px solid var(--burgundy);
}
.year-items .card {
  padding: 24px 0 24px 24px;
  border-top: 1.5px solid var(--burgundy);
  display: grid; grid-template-columns: 1fr 200px; gap: 32px; align-items: start;
}
.year-items .card h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--burgundy);
  margin: 0 0 8px;
  line-height: 1.05;
}
.year-items .card p { font-size: 14px; line-height: 1.55; margin: 0; max-width: 56ch; color: var(--fg-muted); }
.year-items .card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.year-items .card .tags .stamp { font-size: 9px; padding: 4px 7px; }
.year-items .card .pic {
  border: 2px solid var(--burgundy);
  border-radius: 8px;
  background: var(--g, linear-gradient(135deg, var(--gold), var(--orange-stamp)));
  box-shadow: 4px 4px 0 0 var(--burgundy);
  display: grid; place-items: center;
  color: var(--burgundy); font-family: var(--font-display); font-weight: 900;
  font-size: 28px; text-transform: uppercase; letter-spacing: -0.01em;
  overflow: hidden;
}
.year-items .card .pic img {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}
.year-items .card .timeline-action {
  margin-top: 18px;
}
.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1.5px dashed var(--burgundy);
  border-radius: 4px;
  color: var(--burgundy);
  background: rgba(243,227,201,0.45);
  box-shadow: none;
  text-decoration: none;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.timeline-link:hover {
  background: var(--burgundy);
  color: var(--bone);
  transform: translateY(-1px);
}

/* ---------- Fund blog page ---------- */
.fund-page { background: var(--soft-gray); }
.fund-page .masthead { background: var(--soft-gray); border-color: var(--burgundy); }
.fund-grid-page {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1280px; margin: 0 auto;
}
.fund-grid-page .featured { grid-column: 1 / 3; grid-row: 1 / 3; }
.fund-articles {
  grid-template-columns: 1fr;
  max-width: 980px;
  gap: 28px;
}
.fund-articles .article-card,
.fund-articles .article-card.featured {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.fund-articles .article-card .pic,
.fund-articles .article-card.featured .pic {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  border-bottom: 2px solid var(--burgundy);
  border-right: 0;
}
.fund-articles .article-card .body {
  min-height: 0;
}
.article-card {
  border: 2.5px solid var(--burgundy);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bone);
  box-shadow: 5px 5px 0 0 var(--burgundy);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.article-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 0 var(--burgundy); }
.article-card .pic {
  aspect-ratio: 16/10;
  background: var(--g, linear-gradient(135deg, var(--gold), var(--orange-stamp)));
  border-bottom: 2px solid var(--burgundy);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.02em;
  color: var(--burgundy); text-transform: uppercase;
  position: relative;
}
.article-card .pic img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.article-card.featured .pic { aspect-ratio: 16/8; }
.article-card .badge-top { position: absolute; top: 14px; left: 14px; }
.article-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.article-card .meta {
  font-family: var(--font-ui); font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted);
}
.article-card h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--burgundy); margin: 0;
}
.article-card.featured h3 { font-size: clamp(26px, 3vw, 44px); }
.article-card p { font-size: 14px; line-height: 1.25; margin: 0; color: var(--fg-muted); }
.article-card .read-more {
  font-family: var(--font-ui); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange-stamp); margin-top: auto;
}

.proposal-box {
  margin-top: 80px;
  border: 2.5px solid var(--burgundy);
  border-radius: 18px;
  background: var(--bone);
  padding: 56px;
  text-align: center;
  box-shadow: 8px 8px 0 0 var(--burgundy);
  max-width: 980px; margin-left: auto; margin-right: auto;
}
.proposal-box h2 { font-size: clamp(32px, 4vw, 56px); margin: 14px 0 14px; }
.proposal-box p { max-width: 52ch; margin: 0 auto 22px; line-height: 1.25; }

/* ---------- Initiative (article) page ---------- */
.initiative-page { background: var(--bone); }
.article-hero {
  padding: 160px 32px 80px;
  background: linear-gradient(135deg, var(--purple), var(--burgundy));
  color: var(--bone);
  position: relative; overflow: hidden;
}
.article-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(243,227,201,0.08) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.article-hero .wrap-md { position: relative; z-index: 2; }
.article-hero .crumbs { color: rgba(243,227,201,0.6); margin-bottom: 24px;
  font-family: var(--font-ui); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.article-hero .crumbs a { color: rgba(243,227,201,0.6); text-decoration: none; }
.article-hero .crumbs a:hover { color: var(--gold); }
.article-hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 6.5vw, 96px); letter-spacing: -0.03em;
  line-height: 0.92; text-transform: uppercase;
  color: var(--bone); margin: 0;
  max-width: 18ch;
}
.article-hero .lead {
  margin-top: 28px; max-width: 60ch;
  font-size: clamp(15px, 1.7vw, 20px);
  color: rgba(243,227,201,0.85);
}
.article-hero .meta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
  font-family: var(--font-ui); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(243,227,201,0.7);
}
.article-hero .meta-row span { display: inline-flex; gap: 6px; align-items: center; }
.article-hero .meta-row span::before { content:''; width:6px; height:6px; background: var(--gold); border-radius: 50%; }

.manifesto-hero {
  padding: 130px 0 0;
  background: #debd79;
  border-bottom: 3px solid var(--burgundy);
  overflow: hidden;
}
.manifesto-hero img {
  width: 100%;
  margin: 0 auto;
}
.manifesto-inner h1 span {
  display: inline-block;
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.02em;
}
.manifesto-inner ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  line-height: 1.25;
}

.article-body {
  padding: 80px 32px 120px;
  background: var(--bone);
}
.article-body .article-inner {
  max-width: 720px; margin: 0 auto;
  display: grid; gap: 32px;
}
.article-body p { font-size: 17px; line-height: 1.25; margin: 0; max-width: 62ch; }
.article-body h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--burgundy);
  margin: 32px 0 0;
}
.article-body h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--burgundy);
  margin: 24px 0 0;
}
.article-body blockquote {
  font-family: var(--font-editorial); font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3;
  color: var(--burgundy);
  border-left: 3px solid var(--burgundy);
  padding-left: 24px;
  margin: 32px 0;
  max-width: 32ch;
}
.article-body .pull-image {
  aspect-ratio: 16/9;
  background: var(--g, linear-gradient(135deg, var(--gold), var(--orange-stamp)));
  border: 2.5px solid var(--burgundy);
  border-radius: 14px;
  box-shadow: 6px 6px 0 0 var(--burgundy);
  display: grid; place-items: center;
  color: var(--burgundy); font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3vw, 56px); letter-spacing: -0.02em; text-transform: uppercase;
  position: relative;
  margin: 40px 0;
  overflow: hidden;
}
.article-body .pull-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body .pull-image .cap {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-ui); font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--bone); padding: 5px 9px; border-radius: 4px;
  border: 1.5px solid var(--burgundy);
}
.article-body .img-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 24px 0;
}
.article-body .img-row .pull-image { margin: 0; aspect-ratio: 1; font-size: 32px; }

/* Expandable */
.article-body details {
  border: 2px solid var(--burgundy);
  border-radius: 12px;
  background: var(--bone-warm);
  padding: 18px 22px;
  margin: 18px 0;
}
.article-body details summary {
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  text-transform: uppercase; letter-spacing: -0.01em;
  cursor: pointer; color: var(--burgundy);
}
.article-body details p { margin-top: 14px; font-size: 15px; }

/* ---------- One-on-one masonry gallery ---------- */
.gallery-page { background: var(--bone); padding-bottom: 80px; }
.gallery-page .masthead { background: var(--gold); border-color: var(--burgundy); }
.masonry {
  column-count: 4; column-gap: 16px;
  padding: 0 32px;
  max-width: 1400px; margin: 64px auto 0;
}
.masonry .tile {
  break-inside: avoid;
  margin-bottom: 16px;
  border: 2.5px solid var(--burgundy);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--g, linear-gradient(135deg, var(--gold), var(--orange-stamp)));
  position: relative;
  box-shadow: 4px 4px 0 0 var(--burgundy);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.masonry .tile:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 0 var(--burgundy); }
.masonry .tile .body {
  display: grid; place-items: center;
  padding: 32px 18px;
  color: var(--burgundy);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 4vw, 64px); letter-spacing: -0.02em; text-transform: uppercase;
  min-height: 200px;
}
.masonry .tile .body.gallery-image {
  padding: 0;
  background: var(--bone);
  min-height: 0 !important;
}
.masonry .tile .body.gallery-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.masonry .tile .info {
  background: var(--bone); padding: 12px 14px;
  border-top: 2px solid var(--burgundy);
}
.masonry .tile .info .t {
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--burgundy);
}
.masonry .tile .info .o {
  font-family: var(--font-ui); font-weight: 500; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted);
  margin-top: 2px;
}

@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 800px)  { .masonry { column-count: 2; } }
@media (max-width: 520px)  { .masonry { column-count: 1; } }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(33,16,15,0.78);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  animation: fadein 200ms ease-out;
  overflow: auto;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bone);
  border: 3px solid var(--burgundy);
  border-radius: 18px;
  box-shadow: 12px 12px 0 0 var(--burgundy);
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
}
.modal .pic {
  background: var(--g, linear-gradient(135deg, var(--gold), var(--orange-stamp)));
  border-right: 2px solid var(--burgundy);
  display: grid; place-items: center;
  color: var(--burgundy); font-family: var(--font-display); font-weight: 900;
  font-size: clamp(80px, 12vw, 200px); letter-spacing: -0.04em; text-transform: uppercase;
  min-height: 480px;
}
.modal .pic.gallery-modal-image {
  background: var(--bone);
  padding: 0;
}
.modal .pic.gallery-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal .info { padding: 40px; }
.modal .info .stamp { margin-bottom: 18px; }
.modal .info h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--burgundy);
  margin: 0 0 8px;
}
.modal .info .owner {
  font-family: var(--font-ui); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-stamp);
  margin-bottom: 24px;
}
.modal .info p { font-size: 15px; line-height: 1.25; margin: 0 0 16px; max-width: 50ch; }
.modal .info .meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px;
  border-top: 1.5px solid var(--burgundy);
  padding-top: 22px;
}
.modal .info .meta-grid div {
  font-family: var(--font-ui); font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted);
}
.modal .info .meta-grid div strong {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  color: var(--burgundy); letter-spacing: -0.01em;
  margin-top: 4px;
}
.modal .close {
  position: absolute; top: 22px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--burgundy);
  background: var(--bone);
  color: var(--burgundy);
  font-family: var(--font-ui); font-weight: 700; font-size: 18px;
  cursor: pointer;
  z-index: 4;
}
.modal-wrap {
  position: relative;
  width: min(1100px, 100%);
}
.modal-wrap .modal {
  width: 100%;
}

@media (max-width: 800px) {
  .modal { grid-template-columns: 1fr; }
  .modal .pic { border-right: 0; border-bottom: 2px solid var(--burgundy); min-height: 320px; }
}

/* ---------- Footer (shared) ---------- */
.footer {
  background: var(--tactical-deep);
  color: var(--bone);
  padding: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 64px);
  position: relative;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer .mark img { height: 44px; }
.footer .desc { margin-top: 16px; max-width: 36ch; font-size: 13px; color: rgba(243,227,201,0.7); line-height: 1.55; }
.footer h4 { font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.footer a { color: var(--bone); text-decoration: none; display: block; padding: 5px 0; font-size: 13px; transition: color 180ms; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(243,227,201,0.18);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(243,227,201,0.55);
}
.footer-simple .footer-inner {
  display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  position: relative;
}
.footer-simple .left {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--bone);
}
.footer-simple .left img { height: 56px; width: auto; border-radius: 50%; }
.footer-simple .center {
  text-align: center;
}
.footer-simple .center img { height: 64px; width: auto; margin: 0 auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.footer-simple .right { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.footer-simple .right .icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #2a1416;
  display: grid; place-items: center;
  text-decoration: none;
  border: 2px solid #2a1416;
  transition: transform 200ms, background 200ms;
}
.footer-simple .right .icon-btn svg { width: 18px; height: 18px; fill: var(--bone); }
.footer-simple .right .icon-btn:hover { transform: scale(1.06); background: var(--orange-stamp); border-color: var(--orange-stamp); }
@media (max-width: 700px) {
  .footer-simple .footer-inner { display: flex; flex-direction: column; text-align: center; gap: 18px; justify-items: center; }
  .footer-simple .right { order: 1; justify-content: center; }
  .footer-simple .center { order: 2; }
  .footer-simple .left { order: 3; flex-direction: column; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tl-yearnav { top: 0; padding: 12px 12px; }
  .tl-page #timeline-root { padding-top: 96px; }
  .year-items { grid-template-columns: 60px 1fr; }
  .year-items .card { grid-template-columns: 1fr; gap: 18px; }
  .year-items .card .pic {
    width: 100%;
    min-height: 0;
    background: var(--bone);
    display: block;
  }
  .year-items .card .pic img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .fund-grid-page { grid-template-columns: 1fr; }
  .fund-grid-page .featured { grid-column: auto; grid-row: auto; }
  .fund-articles .article-card,
  .fund-articles .article-card.featured {
    grid-template-columns: 1fr;
  }
  .fund-articles .article-card .pic,
  .fund-articles .article-card.featured .pic {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--burgundy);
  }
  .fund-articles .article-card .body {
    min-height: auto;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .article-body .img-row { grid-template-columns: 1fr; }
  .btn { font-size: 18px; }
}
