/* ============================================================
   Trinity Church — Legacy
   Heritage, celebratory, 50 years
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg: #FBF8F2;
  --bg-alt: #F2ECE0;
  --bg-deep: #1A1D2B;
  --ink: #1A1D2B;
  --ink-soft: #55596B;
  --ink-faint: #8B8FA0;
  --on-deep: #FBF8F2;
  --on-deep-soft: rgba(251,248,242,.70);
  --accent: #B08D3F;
  --accent-ink: #1A1D2B;
  --accent-soft: rgba(176,141,63,.14);
  --line: rgba(26,29,43,.16);
  --line-deep: rgba(251,248,242,.20);
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: 0 22px 56px -30px rgba(26,29,43,.32);
  --maxw: 1180px;
  --pad: clamp(4.5rem, 9vw, 8rem);
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
  /* The church's logo mark is white-on-transparent; invert it on light themes
     so it does not vanish into the page. */
  --logo-invert: 1;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.4rem; z-index: 999; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; }
p { text-wrap: pretty; }
em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: block;
}
.eyebrow.on-dark { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--pad); }
.section.tight { padding-block: calc(var(--pad) * .58); }
.section.deep { background: var(--bg-deep); color: var(--on-deep); }
.section.deep .lede, .section.deep .muted { color: var(--on-deep-soft); }
.section.alt { background: var(--bg-alt); }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.05fr .95fr; align-items: end; gap: 3rem; }
  .section-head.center { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin-inline: auto; }
}

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .g2 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-body);
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn .ar { transition: transform .22s ease; }
.btn:hover .ar { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.btn-light { background: var(--on-deep); color: var(--bg-deep); border-color: var(--on-deep); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn-ghost-light { border-color: var(--line-deep); color: var(--on-deep); }
.btn-ghost-light:hover { background: var(--on-deep); color: var(--bg-deep); border-color: var(--on-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .93rem;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 2px;
  transition: gap .2s ease;
}
.text-link:hover { gap: .8rem; }

/* ---------- header ---------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600;
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 4px; font-weight: 600;
}

.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: .2rem; }
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .3rem;
  padding: .6rem .85rem; border-radius: var(--radius);
  font-size: .89rem; font-weight: 600; letter-spacing: .005em;
  color: var(--ink); transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link .chev { width: 9px; height: 9px; opacity: .55; transition: transform .2s ease; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: .6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mega.wide { min-width: 620px; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega-grid { display: grid; gap: .15rem; }
.mega.wide .mega-grid { grid-template-columns: 1fr 1fr; gap: .15rem 1rem; }
.mega-link {
  display: block; padding: .62rem .8rem; border-radius: var(--radius);
  transition: background .16s ease;
}
.mega-link:hover { background: var(--accent-soft); }
.mega-link strong { display: block; font-size: .89rem; font-weight: 600; }
.mega-link span { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: 2px; line-height: 1.35; }
.mega-head {
  padding: .7rem .8rem .35rem; font-size: .66rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.header-actions .btn { padding: .65rem 1.1rem; font-size: .82rem; }
@media (max-width: 1079px) { .header-actions .btn { display: none; } }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .28s ease, opacity .2s ease;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- mobile drawer ---------- */

.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  transform: translateX(100%);
  /* Hidden (not merely offset) when closed, so it cannot contribute to the
     document's scroll width and create a phantom horizontal scrollbar. */
  visibility: hidden;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility .34s;
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
}
body.menu-open .drawer { transform: translateX(0); visibility: visible; }
body.menu-open { overflow: hidden; }
@media (min-width: 1080px) { .drawer { display: none; } }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter); min-height: var(--header-h);
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.drawer-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.3rem;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem var(--gutter) 2.5rem; -webkit-overflow-scrolling: touch; }
.drawer-group { border-bottom: 1px solid var(--line); }
.drawer-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0; font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 500; text-align: left; letter-spacing: -0.012em;
}
.drawer-toggle .pm { font-family: var(--font-body); font-size: 1.35rem; color: var(--accent); transition: transform .25s ease; }
.drawer-group.open .pm { transform: rotate(45deg); }
.drawer-sub { display: grid; gap: .1rem; max-height: 0; overflow: hidden; transition: max-height .34s ease; }
.drawer-group.open .drawer-sub { max-height: 900px; }
.drawer-sub a { padding: .68rem 0 .68rem 1rem; font-size: .97rem; color: var(--ink-soft); border-left: 2px solid var(--line); }
.drawer-sub a:hover, .drawer-sub a:focus { color: var(--accent); border-left-color: var(--accent); }
.drawer-sub li:last-child a { padding-bottom: 1.3rem; }
.drawer-flat { display: block; padding: 1.05rem 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.012em; }
.drawer-cta { display: grid; gap: .6rem; margin-top: 2rem; }
.drawer-cta .btn { justify-content: center; }
.drawer-meta { margin-top: 2.5rem; font-size: .88rem; color: var(--ink-soft); display: grid; gap: .45rem; }
.drawer-meta a { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--bg-deep); color: var(--on-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(8,9,12,.92) 0%, rgba(8,9,12,.78) 42%, rgba(8,9,12,.30) 72%, rgba(8,9,12,.18) 100%),
    linear-gradient(to top, rgba(8,9,12,.72) 0%, transparent 55%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter) clamp(4rem, 9vh, 7rem);
  /* Bounded in px as well as vh: on very tall windows an unbounded vh height
     forces object-fit:cover to crop straight into the subject's face. */
  min-height: clamp(560px, 88vh, 880px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-copy { max-width: 42rem; }
.hero h1 { color: var(--on-deep); }
.hero .lede { color: var(--on-deep-soft); margin-top: 1.5rem; max-width: 34rem; }
.hero .eyebrow { color: var(--on-deep); opacity: .8; }

/* Badge row sits above the headline and never overlaps it. */
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-deep);
  background: rgba(255,255,255,.06);
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-deep);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-badge.live .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Service-times strip, in normal flow below the hero — never floating over it. */
.hero-strip {
  position: relative; z-index: 2;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-deep);
}
.hero-strip-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 780px) { .hero-strip-inner { grid-template-columns: repeat(3, 1fr); } }
.hero-strip-cell {
  padding: 1.6rem 0; color: var(--on-deep);
  border-top: 1px solid var(--line-deep);
}
@media (min-width: 780px) {
  .hero-strip-cell { border-top: 0; padding: 1.9rem 1.5rem 1.9rem 0; }
  .hero-strip-cell + .hero-strip-cell { border-left: 1px solid var(--line-deep); padding-left: 1.5rem; }
}
.hero-strip-cell .k { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hero-strip-cell .v { font-family: var(--font-display); font-size: 1.7rem; margin-top: .4rem; }
.hero-strip-cell .m { font-size: .84rem; color: var(--on-deep-soft); margin-top: .25rem; }

/* Page hero — smaller, for interior pages. Two-column on desktop, stacked on mobile. */
.phero { position: relative; background: var(--bg-deep); color: var(--on-deep); overflow: hidden; }
.phero-media { position: absolute; inset: 0; z-index: 0; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }
.phero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(8,9,12,.93) 0%, rgba(8,9,12,.74) 48%, rgba(8,9,12,.34) 100%);
}
.phero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) clamp(3.2rem, 8vh, 5.5rem);
  min-height: clamp(380px, 46vh, 560px); display: flex; flex-direction: column; justify-content: flex-end;
}
.phero h1 { color: var(--on-deep); font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.phero .lede { color: var(--on-deep-soft); margin-top: 1.2rem; max-width: 40rem; }
.phero .eyebrow { color: var(--on-deep); opacity: .8; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; color: var(--on-deep-soft); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--on-deep); }
.crumbs .sep { opacity: .45; }

/* ---------- cards ---------- */

.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  height: 100%;
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
a.card:hover .card-media img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  padding: .3rem .65rem; border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.card-body h3 { margin-bottom: .1rem; }
.card-body p { font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
.card-foot { margin-top: auto; padding-top: .9rem; font-size: .84rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: .4rem; }

.card.on-deep { background: transparent; border-color: var(--line-deep); }
.card.on-deep .card-body p { color: var(--on-deep-soft); }

/* numbered feature card */
.numcard { padding: 1.9rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); height: 100%; background: var(--bg); }
.numcard .n { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); line-height: 1; margin-bottom: 1rem; display: block; }
.numcard h3 { margin-bottom: .55rem; }
.numcard p { font-size: .93rem; color: var(--ink-soft); }
.section.deep .numcard { background: transparent; border-color: var(--line-deep); }
.section.deep .numcard p { color: var(--on-deep-soft); }

/* ---------- split feature ---------- */

.split { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse .split-media { order: -1; }
@media (max-width: 899px) { .split.reverse .split-media { order: 0; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 4 / 3; }
.split-copy h2 { margin-bottom: 1.2rem; }

/* Caption pinned inside the image, with its own gradient so text stays legible. */
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 3.5rem 1.4rem 1.3rem;
  background: linear-gradient(to top, rgba(8,9,12,.88), transparent);
  color: #fff;
}
.media-caption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.media-caption span { font-size: .82rem; opacity: .8; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 2rem 1.4rem; text-align: center; }
.section.deep .stats { background: var(--line-deep); border-color: var(--line-deep); }
.section.deep .stat { background: var(--bg-deep); }
.stat .n { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); line-height: 1; }
.stat .l { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .7rem; color: var(--ink-soft); font-weight: 600; }
.section.deep .stat .l { color: var(--on-deep-soft); }

/* ---------- accordion ---------- */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { font-family: var(--font-body); font-size: 1.4rem; color: var(--accent); flex-shrink: 0; transition: transform .25s ease; }
.acc details[open] summary .pm { transform: rotate(45deg); }
.acc .acc-body { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 54rem; }

/* ---------- calendar ---------- */

.cal-tools { display: grid; gap: 1rem; }
@media (min-width: 900px) { .cal-tools { grid-template-columns: repeat(2, 1fr); } }
.cal-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; background: var(--bg);
}
.section.deep .cal-card { background: transparent; border-color: var(--line-deep); }
.cal-card h3 { font-size: 1.15rem; }
.cal-card p { font-size: .9rem; color: var(--ink-soft); }
.section.deep .cal-card p { color: var(--on-deep-soft); }
.cal-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.cal-btns .btn { padding: .6rem 1rem; font-size: .8rem; }

.month { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.month-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--bg-alt);
}
.month-head h3 { font-size: 1.3rem; }
.month-nav { display: flex; gap: .4rem; }
.month-nav button {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.month-nav button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-dow {
  padding: .7rem .3rem; text-align: center; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
.month-cell {
  min-height: 86px; padding: .45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .8rem; position: relative;
}
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell.pad { background: var(--bg-alt); opacity: .5; }
.month-cell .d { font-weight: 600; color: var(--ink-faint); font-size: .78rem; }
.month-cell.today .d { background: var(--accent); color: var(--accent-ink); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.month-ev {
  display: block; margin-top: .28rem; padding: .18rem .35rem;
  background: var(--accent-soft); border-left: 2px solid var(--accent);
  font-size: .68rem; line-height: 1.25; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.month-ev:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 700px) {
  .month-cell { min-height: 58px; padding: .3rem .2rem; }
  .month-ev { font-size: 0; padding: 0; height: 5px; margin-top: .2rem; border-left: 0; background: var(--accent); border-radius: 2px; }
}

.ev-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ev-row { background: var(--bg); padding: 1.2rem 1.3rem; display: grid; gap: .9rem; align-items: center; }
@media (min-width: 780px) { .ev-row { grid-template-columns: 110px 1fr auto; gap: 1.5rem; } }
.ev-date { text-align: center; border-right: 1px solid var(--line); padding-right: 1rem; }
@media (max-width: 779px) { .ev-date { text-align: left; border-right: 0; padding-right: 0; display: flex; gap: .6rem; align-items: baseline; } }
.ev-date .m { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.ev-date .d { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.ev-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.ev-body p { font-size: .88rem; color: var(--ink-soft); }
.ev-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; color: var(--ink-faint); margin-top: .5rem; }
.ev-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.ev-actions .btn { padding: .55rem .9rem; font-size: .78rem; }

/* ---------- video ---------- */

.video-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-hero .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .82; transition: opacity .3s ease, transform .6s ease; }
.video-hero:hover .thumb { opacity: 1; transform: scale(1.02); }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
}
.play-btn {
  width: clamp(60px, 8vw, 84px); height: clamp(60px, 8vw, 84px); border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 12px 40px rgba(0,0,0,.4);
  transition: transform .28s ease;
}
.video-hero:hover .play-btn { transform: scale(1.09); }
.play-btn svg { width: 40%; height: 40%; margin-left: 8%; }
.video-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 4rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  color: #fff;
}
.video-cap strong { display: block; font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.5rem); }
.video-cap span { font-size: .82rem; opacity: .75; }

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- team ---------- */

.team-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.person h3 { font-size: 1.05rem; margin-top: 1rem; }
.person p { font-size: .82rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; margin-top: .2rem; }

/* ---------- timeline ---------- */

.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; gap: .6rem 2rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
@media (min-width: 780px) { .tl-item { grid-template-columns: 160px 1fr; align-items: start; } }
.tl-year { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--accent); line-height: 1; }
.tl-body h3 { margin-bottom: .4rem; }
.tl-body p { color: var(--ink-soft); font-size: .95rem; }
.section.deep .tl-item { border-color: var(--line-deep); }
.section.deep .tl-body p { color: var(--on-deep-soft); }

/* ---------- pills / filters ---------- */

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.pill {
  padding: .5rem 1.05rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .84rem; font-weight: 600; transition: all .2s ease;
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .wrap { padding-block: clamp(3.5rem, 7vw, 6rem); text-align: center; }
.cta-band h2 { color: var(--accent-ink); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: color-mix(in srgb, var(--accent-ink) 84%, transparent); max-width: 46ch; margin: 1.2rem auto 0; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-light { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.cta-band .btn-light:hover { filter: brightness(.94); background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-ghost-light { border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); color: var(--accent-ink); }
.cta-band .btn-ghost-light:hover { background: var(--accent-ink); color: var(--accent); }

/* ---------- info rows ---------- */

.info-list { display: grid; gap: 0; }
.info-row { display: grid; gap: .3rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .info-row { grid-template-columns: 200px 1fr; align-items: baseline; } }
.info-row dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.info-row dd { margin: 0; color: var(--ink-soft); }
.section.deep .info-row { border-color: var(--line-deep); }
.section.deep .info-row dd { color: var(--on-deep-soft); }

/* ---------- map ---------- */

.map-embed { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */

.footer { background: var(--bg-deep); color: var(--on-deep); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer a { color: var(--on-deep-soft); transition: color .18s ease; }
.footer a:hover { color: var(--on-deep); }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-brand .brand-name { color: var(--on-deep); font-size: 1.4rem; }
.footer-brand p { color: var(--on-deep-soft); font-size: .92rem; margin-top: 1rem; max-width: 30ch; }
.footer h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: .55rem; font-size: .91rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.6rem; }
.socials a {
  width: 42px; height: 42px; border: 1px solid var(--line-deep); border-radius: var(--radius);
  display: grid; place-items: center; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-deep);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: var(--on-deep-soft);
}

/* ---------- mock banner ---------- */

.mockbar {
  background: var(--ink); color: var(--bg);
  font-size: .78rem; padding: .55rem var(--gutter); text-align: center;
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; align-items: center;
}
.mockbar a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.mockbar .tag { background: var(--accent); color: var(--accent-ink); padding: .12rem .5rem; border-radius: 999px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- prose ---------- */

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.2rem; }
.prose h3 { margin-top: 2.4rem; margin-bottom: .8rem; }
.prose ul { display: grid; gap: .7rem; margin-top: 1.2rem; }
.prose ul li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }


/* ---------- Legacy specifics ---------- */
/* Editorial rules, small caps and a gold hairline motif. */
h1, h2 { font-weight: 500; }
.eyebrow { color: var(--accent); font-weight: 700; }
/* Gold hairline above each section heading, tucked close to the eyebrow. */
.section-head { position: relative; row-gap: .4rem; }
.section-head::before {
  content: ''; display: block; width: 56px; height: 2px;
  background: var(--accent); grid-column: 1 / -1; margin-bottom: .2rem;
}
@media (min-width: 900px) { .section-head { row-gap: 1rem; } }
.card, .numcard, .month, .ev-list, .cal-card, .map-embed { border-radius: 0; }
.card { border-color: var(--line); }
.numcard { background: transparent; border-left: 2px solid var(--accent); }
.section.deep .numcard { border-left-color: var(--accent); }
.btn { border-radius: 0; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.person img { border-radius: 0; }
.split-media img, .split-media { border-radius: 0; }
.stat .n { font-weight: 500; }
.tl-year { font-weight: 600; }
.tl-item { border-top-width: 1px; }
.tl-item:first-child { border-top: 2px solid var(--accent); }
.hero-badge { border-radius: 0; }
.pill { border-radius: 0; }
.cta-band { background: var(--bg-deep); color: var(--on-deep); }
.cta-band h2 { color: var(--on-deep); }
.cta-band p { color: var(--on-deep-soft); }
.cta-band .btn-light { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta-band .btn-ghost-light { border-color: var(--line-deep); color: var(--on-deep); }
.cta-band .btn-ghost-light:hover { background: var(--on-deep); color: var(--bg-deep); }