/* =========================================================
   The Puerto Rico Charitable Trust for the Education of
   Young Musicians — homepage
   "Editorial warmth, island soul" — Gallery Inn salon mood:
   old paper, dark wood, candlelight, warm plaster.
   ========================================================= */

:root {
  /* Brand palette (from logo sheet) */
  --navy:       #0d1b3d;
  --navy-deep:  #081021;
  --gold:       #c8a24b;
  --gold-soft:  #d8bd80;
  --red:        #ce1126;
  --red-deep:   #a90d1e;
  --royal:      #0050a0;

  /* Aged-paper / plaster neutrals */
  --paper:      #f4ead6;
  --paper-2:    #efe2c9;
  --paper-3:    #e8d9ba;
  --espresso:   #2a2016;

  --ink:        #221c12;
  --ink-soft:   #5c5343;
  --cream-text: #f5ecda;

  --line:       rgba(42, 32, 22, 0.16);
  --line-gold:  rgba(200, 162, 75, 0.55);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --section-y: clamp(3.25rem, 6vw, 5.75rem);

  --shadow:    0 22px 60px -28px rgba(20, 14, 6, 0.55);
  --shadow-sm: 0 10px 30px -18px rgba(20, 14, 6, 0.5);

  /* Reusable film-grain (parchment tooth) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* Real parchment fiber + warm, uneven plaster mottling */
  background-image:
    url("../images/web/paper-texture.png"),
    radial-gradient(120% 80% at 12% 0%, rgba(216, 189, 128, 0.22), transparent 55%),
    radial-gradient(120% 90% at 100% 18%, rgba(176, 138, 74, 0.16), transparent 50%),
    radial-gradient(70% 55% at 82% 58%, rgba(150, 112, 62, 0.09), transparent 62%),
    radial-gradient(55% 45% at 22% 74%, rgba(120, 90, 50, 0.08), transparent 60%),
    radial-gradient(40% 30% at 60% 35%, rgba(232, 214, 176, 0.20), transparent 60%),
    radial-gradient(100% 120% at 50% 120%, rgba(120, 90, 50, 0.12), transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 760px 760px, auto, auto, auto, auto, auto, auto;
  background-attachment: fixed, scroll, scroll, scroll, scroll, scroll, scroll;
  line-height: 1.66;
  font-size: 1.12rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* contain the off-canvas mobile menu; keeps sticky header working */
}
/* Fixed paper-tooth overlay — very subtle, warm multiply (no gray speckle) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: var(--grain);
  background-size: 230px 230px;
  opacity: 0.035;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9999;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 500; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

/* Offset in-page anchor jumps so the sticky header never covers a heading */
section[id], footer[id], [id="top"] { scroll-margin-top: 104px; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  letter-spacing: -0.005em;
  color: var(--navy);
}
.lede {
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Kicker label with hairline rules */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "IM Fell English SC", var(--serif);
  text-transform: none;
  letter-spacing: 0.14em;
  font-size: 1rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 1.3rem;
}
.kicker__rule { width: clamp(24px, 5vw, 52px); height: 1px; background: var(--line-gold); display: inline-block; }
.kicker--light { color: var(--gold-soft); }
.kicker--light .kicker__rule { background: rgba(216, 189, 128, 0.6); }

.section-head { max-width: 780px; margin-bottom: clamp(1.7rem, 3.2vw, 2.6rem); }
.section-head.center { margin-inline: auto; }
.section-head .display { margin-bottom: 0.7rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.95em 1.8em;
  border-radius: 1px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--sm { padding: 0.62em 1.2em; font-size: 0.78rem; }
.btn--lg { padding: 1.1em 2.4em; font-size: 0.98rem; }
.btn--solid { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(206, 17, 38, .8); }
.btn--solid:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(206, 17, 38, .9); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); }
.btn--ghost-light { border-color: rgba(245, 236, 218, 0.55); color: var(--cream-text); }
.btn--ghost-light:hover { background: var(--cream-text); color: var(--espresso); border-color: var(--cream-text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 234, 214, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header::after { /* gold hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold) 20%, var(--line-gold) 80%, transparent);
  opacity: 0.7;
}
.site-header.is-scrolled {
  background: rgba(244, 234, 214, 0.95);
  box-shadow: 0 8px 30px -20px rgba(20, 14, 6, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 112px;
  transition: min-height .3s ease;
}
.site-header.is-scrolled .header-inner { min-height: 84px; }
.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 80px; width: auto;
  transition: height .3s ease;
  filter: drop-shadow(0 1px 1px rgba(42, 32, 22, 0.12));
}
.site-header.is-scrolled .brand img { height: 60px; }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  margin: 0; padding: 0;
}
.nav-menu a:not(.btn) {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--navy);
  transition: color .2s ease;
  position: relative;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-menu a:not(.btn):hover { color: var(--gold); }
.nav-menu a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding-left: clamp(0.5rem, 1.5vw, 1.2rem); border-left: 1px solid var(--line); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 880px);
  display: flex;
  align-items: flex-end;
  color: var(--cream-text);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  background-image: url("../images/web/music-room.jpg");
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.08);
  animation: heroZoom 22s ease-out forwards;
  z-index: -3;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 70% 25%, rgba(0,0,0,0) 30%, rgba(8,6,3,0.5) 100%),
    linear-gradient(180deg, rgba(8,6,3,0.55) 0%, rgba(8,6,3,0.12) 28%, rgba(10,7,3,0.55) 66%, rgba(8,6,3,0.92) 100%);
}
.hero__overlay::after { /* warm candlelight cast + fade into paper */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 50% at 30% 80%, rgba(200,140,60,0.18), transparent 70%),
    linear-gradient(180deg, transparent 78%, var(--paper) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: 0.10; mix-blend-mode: overlay; pointer-events: none;
}
.hero__content {
  position: relative;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: 7rem;
  max-width: 960px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  letter-spacing: -0.012em;
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero__title em { color: var(--gold-soft); font-weight: 500; }
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 620px;
  color: rgba(245, 236, 218, 0.94);
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(245,236,218,0.5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--gold-soft); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { opacity: .3; transform: translateY(0);} 50% { opacity: 1; transform: translateY(8px);} }

/* ---------- Mission ---------- */
.mission .display { margin: 0.4rem 0 1.6rem; }
.dropcap::first-letter {
  font-family: "IM Fell English", var(--serif);
  font-weight: 400;
  font-size: 4.6em;
  line-height: 0.62;
  float: left;
  margin: 0.06em 0.11em 0 0;
  color: #5b4424;                                   /* aged sepia ink */
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.55);   /* faint letterpress lift */
}

/* ---------- Ledger / impact — real deckled archival paper strip ---------- */
.ledger { padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.ledger .container { max-width: min(1560px, 94vw); padding-inline: 0; }   /* wide archival band, runs well past body text */
.ledger__paper {
  position: relative;
  /* seamless, lightened, shallow deckled paper strip (real texture) */
  background: url("../images/web/torn-paper-strip.png") center / cover no-repeat;
  aspect-ratio: 1600 / 256;        /* wide + shallow; matches the asset, no deckle cropping */
  display: flex;
  align-items: center;
  /* barely-there shadow — a strip resting on the chart, not a sticker */
  filter: drop-shadow(0 3px 8px rgba(40, 28, 12, 0.11));
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(2.2rem, 7vw, 6rem);
}
.ledger__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.ledger__item { padding: 0.5rem clamp(1rem, 3vw, 2.5rem); }
.ledger__item + .ledger__item { border-left: 1px solid rgba(74, 54, 28, 0.28); }
.ledger__num {
  display: block;
  font-family: "IM Fell English", var(--serif);   /* same old-world face as the drop-cap "F" */
  font-weight: 400;
  font-size: clamp(3.6rem, 6.2vw, 5.2rem);
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}
.ledger__num::after {                       /* small gold rule under each figure */
  content: ""; display: block; width: 40px; height: 2px;
  background: var(--gold); margin: 0.6rem auto 0;
}
.ledger__label {
  font-family: var(--serif);                /* refined, readable serif (Cormorant) */
  font-size: clamp(1.22rem, 1.55vw, 1.46rem);
  font-weight: 600;
  color: #3a2f1c;
  max-width: 20ch; margin-inline: auto; display: block; line-height: 1.3;
}

/* ---------- Antique nautical-chart + aged-paper surfaces ---------- */
.mission, .support-ways, .archive, .ledger,
.calendar, .team-grid, .campeche, .instagram { position: relative; }
.mission > .container, .support-ways > .container, .archive > .container,
.calendar > .container, .team-grid > .container,
.campeche > .container, .instagram > .container { position: relative; z-index: 2; }

/* San Juan Harbor chart underlay — intentional, never wallpaper:
   soft behind dense text (Mission), present in What We Support, strong in Archive. */
.mission::before, .support-ways::before, .archive::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../images/web/chart-sanjuan.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.mission::before      { background-position: 88% 8%;  opacity: 0.09; }  /* faint compass rose, top-right */
.support-ways::before { background-position: 12% 60%; opacity: 0.16; }  /* coastline, behind cards */
.archive::before      { background-position: 50% 78%; opacity: 0.30; background-size: 118%; }  /* FEATURE: cartouche + compass */

/* Sheet-music secondary underlay (= mission/performance) — only where the map
   is absent. One LARGE, cropped-in archival score fragment passing under the
   section: full-bleed staff lines, faint sepia, multiply so the paper drops
   away, with soft top/bottom fades so there are no hard rectangular edges.
   Different crop/scale/position per section (no tiling). */
.calendar::before, .team-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.calendar::before {
  background-image: url("../images/web/sheet-band-2.jpg");
  background-size: cover;            /* large, cropped-in staves spanning the width */
  background-position: 70% center;
  opacity: 0.15;
}
.team-grid::before {
  background-image: url("../images/web/sheet-band-1.jpg");
  background-size: cover;
  background-position: 24% 66%;      /* different region/position from Calendar */
  opacity: 0.14;
}

/* Warm, smooth tonal aging + linen/vellum weave — no specks, no grime */
.mission::after, .support-ways::after, .archive::after,
.calendar::after, .team-grid::after, .campeche::after, .instagram::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(120, 92, 54, 0.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg,  rgba(120, 92, 54, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(60% 55% at 18% 18%, rgba(150, 112, 62, 0.06), transparent 62%),
    radial-gradient(55% 60% at 86% 80%, rgba(150, 112, 62, 0.05), transparent 60%),
    radial-gradient(140% 130% at 50% 45%, transparent 60%, rgba(96, 66, 32, 0.12) 100%);
  background-size: auto, auto, cover, cover, cover;
}

/* ---------- Programs ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,252,245,0.5), rgba(244,234,214,0.2)),
    var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.7rem, 2.6vw, 2.4rem);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card::before { /* gold top accent that grows on hover */
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .4s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.card:hover::before { width: 100%; }
.card__num {
  font-family: "IM Fell English", var(--serif);
  font-weight: 400;
  font-size: 2.1rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.15;
}
.card p { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.55; margin: 0; }

/* ---------- Founder (cinematic) ---------- */
.founder {
  position: relative;
  color: var(--cream-text);
  padding-block: clamp(3rem, 5.5vw, 4.75rem);
  overflow: hidden;
  isolation: isolate;
}
.founder__bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../images/web/ceiling-beams.jpg");
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.founder__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(10,7,3,0.55), rgba(8,6,3,0.86) 100%),
    linear-gradient(180deg, rgba(8,6,3,0.7), rgba(8,6,3,0.78));
}
.founder__content { max-width: 840px; text-align: center; margin-inline: auto; }
.founder__portrait {
  width: 104px; height: 104px; margin: 0 auto 1.8rem;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); padding: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 18px 40px -18px rgba(0,0,0,0.8);
}
.founder__portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.founder__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.36;
  color: var(--cream-text);
  margin: 0 0 1.8rem;
  position: relative;
}
.founder__quote::before {
  content: "\201C"; font-family: var(--serif); font-style: normal;
  font-size: 3.4em; line-height: 0; color: var(--gold);
  opacity: 0.5; display: block; height: 0.4em;
}
.founder__attr {
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold-soft); margin: 0;
}
.founder__attr span {
  display: block; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.72rem; color: rgba(245,236,218,0.7); margin-top: 0.5rem;
}

/* ---------- Archive (gallery) ---------- */
.archive__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
}
.archive__item { margin: 0; }
.archive__item--feature { grid-column: span 2; grid-row: span 2; }
.archive__frame {
  position: relative;
  background: linear-gradient(180deg, #fffdf8, var(--paper-2));
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
}
.archive__frame img {
  width: 100%; height: 100%; min-height: 200px; object-fit: cover;
  filter: saturate(0.92) brightness(0.98);
  transition: transform .6s ease, filter .4s ease;
}
.archive__item--feature .archive__frame img { min-height: 420px; }
.archive__item:hover .archive__frame img { transform: scale(1.05); filter: saturate(1.05) brightness(1.02); }
.archive__item figcaption {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
  padding: 0.7rem 0.2rem 0;
  display: flex; align-items: baseline; gap: 0.6rem;
}
.plate {
  font-family: "IM Fell English SC", var(--serif);
  text-transform: none; letter-spacing: 0.05em; font-size: 0.8rem; font-weight: 400;
  color: var(--gold); border: 1px solid var(--line-gold); padding: 0.15em 0.55em; border-radius: 1px;
  white-space: nowrap;
}

/* ---------- Calendar / upcoming performances ---------- */
.events { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.4rem); max-width: 880px; margin-inline: auto; }
.event {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(255,252,245,0.55), rgba(244,234,214,0.22)), var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.3rem, 2.4vw, 1.8rem) clamp(1.4rem, 3vw, 2.2rem);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-gold); }
.event__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-width: 100px; padding: 0.8rem 0.9rem; border: 1px solid var(--line-gold); background: rgba(13,27,61,0.03);
}
.event__mon { font-family: "IM Fell English SC", var(--serif); letter-spacing: 0.06em; font-size: 0.92rem; color: var(--gold); }
.event__day { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); line-height: 1.05; }
.event__title { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; color: var(--navy); margin: 0 0 0.3rem; line-height: 1.1; }
.event__meta { font-family: "IM Fell English SC", var(--serif); font-size: 1.05rem; letter-spacing: 0.03em; color: var(--gold); margin: 0 0 0.55rem; }
.event__desc { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.5; margin: 0; }
.calendar__note { text-align: center; margin-top: clamp(2rem, 4vw, 2.8rem); }
.calendar__note p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--navy); margin-bottom: 1.1rem; }

/* Evergreen schedule module */
.calendar__panel {
  max-width: 760px; margin-inline: auto; text-align: center;
  background: linear-gradient(180deg, rgba(255,252,245,0.6), rgba(244,234,214,0.28)), var(--paper);
  border: 1px solid var(--line-gold);
  padding: clamp(2rem, 4.5vw, 3.4rem) clamp(1.5rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-sm);
}
.calendar__lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); line-height: 1.25; margin: 0 0 1rem; }
.calendar__body { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--ink-soft); line-height: 1.6; max-width: 58ch; margin: 0 auto 1.8rem; }
.calendar__panel .btn { font-size: 1.05rem; padding: 1.2em 2.8em; }
.calendar__hint { font-family: "IM Fell English SC", var(--serif); letter-spacing: 0.06em; font-size: 1.05rem; color: var(--gold); margin: 1.1rem 0 0; }

/* ---------- Team / people ---------- */
.team-grid { background: rgba(232, 217, 186, 0.16); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); max-width: 940px; margin-inline: auto; }
.person { margin: 0; text-align: center; }
/* whole-card profile link (Trustees & Guest Artists) */
.person__link { display: block; color: inherit; text-decoration: none; }
.person__link:hover .person__name { color: var(--gold); }
.person__ext { font-size: 0.62em; color: var(--gold); margin-left: 0.22em; vertical-align: middle; opacity: 0.85; }
.person__frame {
  background: linear-gradient(180deg, #fffdf8, var(--paper-2)); padding: 8px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; overflow: hidden;
}
.person__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.94); transition: transform .5s ease; }
.person:hover .person__frame img { transform: scale(1.04); }
.person__name { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--navy); line-height: 1.1; }
.person__role { display: block; font-family: "IM Fell English SC", var(--serif); font-size: 0.9rem; letter-spacing: 0.05em; color: var(--gold); margin-top: 0.3rem; }

/* ---------- Meet Campeche ---------- */
.campeche__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.campeche__photo { position: relative; margin: 0 clamp(0px, 2vw, 26px) 0 0; }
.campeche__photo > .archive__frame { box-shadow: var(--shadow); }
.campeche__photo > .archive__frame > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; min-height: 0; }
/* small framed snapshot of Campeche at the piano, tucked in the corner */
.campeche__inset {
  position: absolute; right: -22px; bottom: -26px; width: 44%; margin: 0;
  transform: rotate(-1.6deg);
}
.campeche__inset .archive__frame { box-shadow: var(--shadow); }
.campeche__inset img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; min-height: 0; }
.campeche__text .display { margin: 0.3rem 0 1.1rem; }
.campeche__text .btn { margin-top: 0.7rem; }

/* ---------- Team subsections ---------- */
.people-group + .people-group { margin-top: clamp(2.4rem, 5vw, 3.8rem); }
.people-label {
  text-align: center; font-family: "IM Fell English SC", var(--serif);
  letter-spacing: 0.06em; color: var(--gold); font-size: 1.15rem; margin: 0 0 1.4rem;
}
.people--guests { grid-template-columns: repeat(3, 1fr); max-width: 1040px; }
.people--guests .person__name { font-size: 1.2rem; }
.people--guests .person__frame img { aspect-ratio: 4 / 5; }

/* ---------- Latest from Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.5rem, 1.2vw, 0.9rem); }
.ig-tile { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); background: var(--paper-2); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); transition: transform .5s ease; }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0.7rem;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 12, 28, 0.78));
  opacity: 0.95; transition: opacity .25s ease;
}
.ig-tile:hover .ig-tile__overlay { opacity: 1; }
.ig-tile__handle { font-size: 0.82rem; letter-spacing: 0.02em; color: #fff; font-weight: 600; }
.ig-accounts { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Support CTA ---------- */
.support {
  position: relative;
  color: var(--cream-text);
  padding-block: clamp(3.75rem, 7vw, 5.5rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.support__bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../images/web/osj-umbrella.jpg");
  background-size: cover; background-position: center;
}
.support__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(13,27,61,0.72), rgba(8,12,28,0.9) 100%),
    linear-gradient(180deg, rgba(8,12,28,0.82), rgba(8,12,28,0.86));
}
.support__inner { max-width: 780px; margin-inline: auto; }
.support .display { color: #fff; margin-bottom: 1.2rem; }
.support .lede { color: rgba(245,236,218,0.9); margin-bottom: 2.2rem; }
.support__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.support__note {
  margin: 2rem 0 0; font-family: "IM Fell English SC", var(--serif);
  font-size: 0.95rem; text-transform: none; letter-spacing: 0.08em;
  color: rgba(245,236,218,0.6);
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(245,236,218,0.78); padding-top: clamp(3.5rem, 6vw, 5rem); position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), var(--gold) 50%, var(--royal)); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__col--brand { position: relative; }
.footer__seal {
  width: 118px; height: auto; margin-bottom: 1.1rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  opacity: 0.97;
}
.footer__name { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); line-height: 1.2; margin-bottom: 0.8rem; }
.footer__name em { color: var(--gold-soft); }
.footer__tag { color: var(--gold-soft); font-style: italic; font-family: var(--serif); font-size: 1.15rem; margin: 0; }
.footer__col h4 { font-family: "IM Fell English SC", var(--serif); text-transform: none; letter-spacing: 0.08em; font-size: 0.98rem; color: var(--gold); margin-bottom: 0.9rem; font-weight: 400; }
.footer__col p { font-size: 0.98rem; margin: 0; line-height: 1.7; }
.footer__col a { transition: color .2s ease; }
.footer__col a:hover { color: var(--paper); }
.footer__bar {
  border-top: 1px solid rgba(245,236,218,0.14);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem;
}
.footer__bar p { font-size: 0.78rem; color: rgba(245,236,218,0.5); margin: 0; }
.footer__legal { color: rgba(245,236,218,0.42); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .campeche__grid { grid-template-columns: 1fr; gap: 2rem; }
  .campeche__photo { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto;
    width: min(80vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem;
    background: var(--paper);
    background-image:
      radial-gradient(120% 60% at 100% 0%, rgba(200,162,75,0.18), transparent 60%);
    padding: 2rem var(--gutter);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a:not(.btn) { font-size: 0.95rem; }
  .nav-cta { padding-left: 0; border-left: 0; margin-top: 0.5rem; }
  .ledger__paper { aspect-ratio: auto; padding-block: clamp(2.6rem, 9vw, 3.4rem); }
  .ledger__grid { grid-template-columns: 1fr; gap: 0; }
  .ledger__item + .ledger__item { border-left: 0; border-top: 1px solid rgba(74, 54, 28, 0.22); }
  .ledger__item { padding-block: 1.4rem; }
  .archive__grid { grid-template-columns: repeat(2, 1fr); }
  .archive__item--feature { grid-column: span 2; grid-row: span 1; }
  .people { grid-template-columns: 1fr; max-width: 360px; }
  .people--guests { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
  .event { grid-template-columns: 1fr; text-align: center; gap: 0.9rem; }
  .event__date { flex-direction: row; gap: 0.5rem; min-width: 0; justify-self: center; padding: 0.5rem 1rem; }
  .campeche__inset { width: 40%; right: -8px; bottom: -14px; }
}

@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .archive__grid { grid-template-columns: repeat(2, 1fr); }  /* feature spans both for a full-width lead image */
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: clamp(1.95rem, 8vw, 3rem); max-width: none; }
}

/* ============================================================
   MOBILE-ONLY REFINEMENTS (phones, ~375–600px) — compact pass.
   Desktop/tablet above 600px is unchanged.
   ============================================================ */
@media (max-width: 600px) {
  /* tighten overall section rhythm */
  .section { padding-block: clamp(2.25rem, 7vw, 3.25rem); }
  .founder { padding-block: 2.75rem; }
  .support  { padding-block: 2.75rem; }

  /* --- Hero: much shorter on phones; crop toward piano/window/text --- */
  .hero { min-height: 52svh; min-height: 52vh; }
  .hero__media { background-position: 50% 68%; }
  .hero__content { padding-top: 3.25rem; padding-bottom: 2.25rem; }
  .hero__title { margin-bottom: 0.7rem; }
  .hero__lede { font-size: 1.02rem; line-height: 1.4; margin-bottom: 1.3rem; max-width: 100%; }
  .hero__actions { gap: 0.65rem; }

  /* --- Stat strip: compact 3-row ledger instead of a tall slab --- */
  .ledger { padding-block: clamp(1.6rem, 6vw, 2.4rem); }
  .ledger__paper { aspect-ratio: auto; padding: 1.1rem 1.35rem; display: block; }
  .ledger__grid { display: block; }
  .ledger__item { display: flex; align-items: baseline; gap: 0.85rem; text-align: left; padding: 0.7rem 0.1rem; }
  .ledger__item + .ledger__item { border-left: 0; border-top: 1px solid rgba(74, 54, 28, 0.22); }
  .ledger__num { font-size: 2.5rem; margin: 0; flex: 0 0 auto; min-width: 1.5ch; text-align: center; }
  .ledger__num::after { display: none; }      /* drop the gold underline in row mode */
  .ledger__label { text-align: left; margin: 0; max-width: none; font-size: 1.02rem; font-weight: 700; color: #2c2410; line-height: 1.25; }

  /* --- Upcoming Performances: drop the big white card, keep heading + CTA --- */
  .calendar__panel { background: none; border: 0; box-shadow: none; padding: 0; }
  .calendar__lead, .calendar__body { display: none; }
  .calendar__hint { margin-top: 0.9rem; }

  /* --- What We Support: compact 2×3 grid --- */
  .cards { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .card { padding: 1rem 0.85rem; }
  .card__num { font-size: 1.5rem; margin-bottom: 0.5rem; padding-bottom: 0.5rem; }
  .card h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
  .card p { font-size: 0.9rem; line-height: 1.4; }

  /* --- Team: trustees = swipe shelf; guests = compact 2-col grid --- */
  .people:not(.people--guests) {
    display: flex; max-width: none; gap: 0.8rem;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .people:not(.people--guests) .person { flex: 0 0 46%; scroll-snap-align: start; margin: 0; }
  .people--guests { grid-template-columns: repeat(2, 1fr); gap: 0.8rem 0.7rem; max-width: none; }
  .people--guests .person__frame img { aspect-ratio: 1 / 1; }   /* shorter guest cards */
  .person__frame { margin-bottom: 0.45rem; }
  .person__name { font-size: 1.02rem; }
  .person__role { font-size: 0.78rem; letter-spacing: 0.04em; margin-top: 0.15rem; }
  .team-grid .section-head { margin-bottom: 1.4rem; }
  .people-label { margin-bottom: 0.85rem; }
  .people-group + .people-group { margin-top: 1.5rem; }

  /* --- Campeche: text first, smaller main image, hide inset --- */
  .campeche__grid { display: flex; flex-direction: column; gap: 0.9rem; }
  .campeche__text { order: -1; }
  .campeche__photo { max-width: 232px; margin: 0 auto; }   /* image no longer dominates */
  .campeche__inset { display: none; }

  /* --- Moments / Archive: true one-at-a-time swipe carousel (peek next) --- */
  .archive .section-head { margin-bottom: 1.4rem; }
  .archive__grid {
    display: flex; grid-template-columns: none; gap: 0.75rem;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 7%;
    padding: 0 0 0.7rem;
    scrollbar-width: none;
  }
  .archive__grid::-webkit-scrollbar { display: none; }
  .archive__item, .archive__item--feature {
    flex: 0 0 86%; grid-column: auto; grid-row: auto; margin: 0;
    scroll-snap-align: center; scroll-snap-stop: always;
  }
  .archive__frame img,
  .archive__item--feature .archive__frame img { height: clamp(300px, 72vw, 360px); min-height: 0; }

  /* --- Footer: compact, centered, smaller seal --- */
  .footer { padding-top: 1.75rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.1rem; padding-bottom: 1.2rem; text-align: center; }
  .footer__seal { width: 62px; margin: 0 auto 0.55rem; }
  .footer__name { font-size: 1.12rem; margin-bottom: 0.4rem; }
  .footer__tag { font-size: 0.95rem; }
  .footer__col h4 { margin-bottom: 0.35rem; }
  .footer__col p { font-size: 0.95rem; line-height: 1.55; }
  .footer__bar { flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; padding-block: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
