/* =========================================================================
   LOUD URBAN CHOIR — Design System & Site Styles
   Black + deep brown (#371307) dominant palette, warm ivory for readability.
   Editorial, cinematic, uncluttered. Fraunces (display) + Inter (body).
   ========================================================================= */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --black: #0a0807;
  --black-soft: #15110d;
  --black-elevated: #1c1611;
  --brown: #371307;
  --brown-deep: #220b04;
  --brown-light: #5c2712;
  --brown-glow: #7a3417;
  --ivory: #f5eee3;
  --ivory-dim: #cdbfac;
  --ivory-faint: #8c7e6d;
  --ink: #1a1510;
  --ember: #c4874a;
  --ember-soft: #e0b482;

  --line-on-dark: rgba(245, 238, 227, 0.14);
  --line-on-dark-strong: rgba(245, 238, 227, 0.26);
  --line-on-light: rgba(26, 21, 16, 0.12);

  /* Typography */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1360px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 88px;

  /* Motion */
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 260ms;
  --dur-med: 620ms;
  --dur-slow: 1000ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

/* Visible focus ring everywhere, no outline removal without replacement */
:focus-visible {
  outline: 2px solid var(--ember-soft);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--ivory);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout utilities ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--black { background: var(--black); }
.section--brown {
  background: var(--brown-deep);
  background: linear-gradient(175deg, var(--brown-deep) 0%, var(--brown) 62%, var(--brown-light) 100%);
}
.section--soft { background: var(--black-soft); }
.section--ivory { background: var(--ivory); color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.section--ivory .eyebrow { color: var(--brown); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.6rem, 3.2vw + 2rem, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(2.1rem, 2vw + 1.6rem, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(1.4rem, 1vw + 1.1rem, 1.9rem);
  line-height: 1.18;
}
.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.5rem);
  line-height: 1.5;
  color: var(--ivory-dim);
}
.section--ivory .lede { color: var(--brown-light); }
p.body-copy, .body-copy {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ivory-dim);
  max-width: 62ch;
}
.section--ivory .body-copy { color: #4a3a2c; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ivory); color: var(--ink); }
.btn-primary:hover { background: var(--ember-soft); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line-on-dark-strong);
}
.btn-outline:hover { border-color: var(--ivory); background: rgba(245,238,227,0.06); transform: translateY(-2px); }
.section--ivory .btn-outline { color: var(--ink); border-color: var(--line-on-light); }
.section--ivory .btn-outline:hover { background: rgba(26,21,16,0.05); }
.btn-ghost {
  padding: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ember);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--ember-soft); }

.hairline { height: 1px; background: var(--line-on-dark); border: 0; margin: 0; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-group] [data-reveal] { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Intro loader ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}
#intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, var(--brown) 0%, var(--brown-deep) 48%, var(--black) 85%);
  opacity: 0.9;
}
#intro .intro-mark {
  position: relative;
  width: min(46vw, 280px);
  opacity: 0;
  transform: scale(0.92);
  animation: intro-in 1100ms var(--ease) 120ms forwards;
}
#intro .intro-line {
  position: relative;
  margin-top: 1.6rem;
  width: 64px;
  height: 1px;
  background: var(--line-on-dark-strong);
  overflow: hidden;
  margin-inline: auto;
}
#intro .intro-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ember-soft);
  transform: translateX(-100%);
  animation: intro-sweep 1400ms var(--ease) 260ms forwards;
}
#intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes intro-in { to { opacity: 1; transform: scale(1); } }
@keyframes intro-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  #intro .intro-mark { animation-duration: 1ms; opacity: 1; transform: none; }
  #intro .intro-line::after { animation-duration: 1ms; }
}
body.intro-locked { overflow: hidden; height: 100vh; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 1.4rem;
  transition: padding var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
  /*
   * Always-on scrim, independent of the scroll-triggered .is-solid state.
   * A hero image's own content can be light in places (e.g. a cream
   * curtain backdrop), which would otherwise leave the logo/toggle with
   * no reliable contrast until the visitor scrolls. This guarantees both
   * stay legible over any hero image, on every page, from the first frame.
   */
  background: linear-gradient(180deg, rgba(10,8,7,0.45) 0%, rgba(10,8,7,0.08) 100%);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-solid {
  background: rgba(10, 8, 7, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 0.9rem;
  border-color: var(--line-on-dark);
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.primary-nav { display: none; }
@media (min-width: 980px) {
  .primary-nav { display: flex; align-items: center; gap: 2.4rem; }
  .primary-nav a {
    position: relative;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ivory-dim);
    padding-block: 0.4rem;
    transition: color var(--dur-fast) var(--ease);
  }
  .primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--ember-soft);
    transition: right var(--dur-med) var(--ease);
  }
  .primary-nav a:hover { color: var(--ivory); }
  .primary-nav a:hover::after { right: 0; }
  .primary-nav a[aria-current="page"] { color: var(--ivory); }
  .primary-nav a[aria-current="page"]::after { right: 0; background: var(--ember); }
}

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-actions .btn-primary { display: none; }
@media (min-width: 740px) {
  .header-actions .btn-primary { display: inline-flex; padding: 0.7rem 1.5rem; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  gap: 5px;
  border-radius: 50%;
  /* Own backdrop so the icon reads clearly over any hero image, not just
     whatever the page behind it happens to render at this exact spot. */
  background: rgba(10, 8, 7, 0.38);
  border: 1px solid var(--line-on-dark);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-toggle:hover { background: rgba(10, 8, 7, 0.55); }
.site-header.is-solid .nav-toggle { background: transparent; border-color: transparent; }
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ivory);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Mobile menu ----------
 * Structure: a self-contained panel with its own STATIONARY top bar (logo +
 * one close control) and a SEPARATE scrollable region below it for nav/
 * contact/socials/CTA. z-index sits above .site-header so this panel fully
 * covers the real header while open — there is deliberately only one
 * logo and one close control visible at a time, never two overlapping sets.
 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 510;
  background: var(--brown-deep);
  background: linear-gradient(165deg, var(--black) 0%, var(--brown-deep) 55%, var(--brown) 120%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(1.1rem, calc(env(safe-area-inset-top) + 0.6rem));
  padding-bottom: 1.1rem;
  padding-left: max(var(--gutter), calc(env(safe-area-inset-left) + var(--gutter)));
  padding-right: max(var(--gutter), calc(env(safe-area-inset-right) + 1rem));
  min-height: var(--header-h);
}
.mobile-menu-brand { display: flex; align-items: center; }
.mobile-menu-brand img { height: 28px; width: auto; }
.mobile-menu-close {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  color: var(--ivory);
  background: rgba(245,238,227,0.06);
}
.mobile-menu-close svg { width: 18px; height: 18px; }
.mobile-menu-close:hover { background: rgba(245,238,227,0.14); }

.mobile-menu-scroll {
  flex: 1 1 auto;
  min-height: 0; /* required so this flex child can actually scroll instead of growing to fit its content */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  padding-top: 0.5rem;
  padding-bottom: max(var(--gutter), calc(env(safe-area-inset-bottom) + 1.5rem));
  padding-left: max(var(--gutter), calc(env(safe-area-inset-left) + var(--gutter)));
  padding-right: max(var(--gutter), calc(env(safe-area-inset-right) + var(--gutter)));
}

.mobile-menu-nav { display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; }
.mobile-menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 500;
  padding-block: 0.3rem;
  color: var(--ivory-dim);
  opacity: 0;
  transform: translateY(14px);
  transition: color var(--dur-fast) var(--ease), opacity 560ms var(--ease), transform 560ms var(--ease);
}
.mobile-menu.is-open .mobile-menu-nav a { opacity: 1; transform: translateY(0); }
.mobile-menu-nav a:hover, .mobile-menu-nav a[aria-current="page"] { color: var(--ivory); }

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid var(--line-on-dark);
  flex-shrink: 0;
}
.mobile-menu-contact a, .mobile-menu-contact span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--ivory-dim);
  line-height: 1.4;
}
.mobile-menu-contact a:hover { color: var(--ivory); }
.mobile-menu-contact svg { width: 16px; height: 16px; color: var(--ember-soft); flex-shrink: 0; }
.mobile-menu-address { color: var(--ivory-faint) !important; }

.mobile-menu-bottom {
  margin-top: auto;
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  flex-shrink: 0;
}
.mobile-menu .socials { display: flex; gap: 1.1rem; }
.mobile-menu .socials a { font-size: 0; }
.mobile-menu .socials svg { width: 20px; height: 20px; color: var(--ivory-dim); }

/* Compact booking CTA — deliberately its own small, content-sized style,
   not the oversized nav-link typography above. */
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 44px;
  padding: 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--ivory);
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mobile-cta:hover, .mobile-cta:focus-visible { background: var(--ember-soft); border-color: var(--ember-soft); transform: translateY(-1px); }

@media (min-width: 980px) { .mobile-menu { display: none; } }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,8,7,0.92) 0%, rgba(10,8,7,0.45) 42%, rgba(10,8,7,0.25) 65%, rgba(10,8,7,0.55) 100%),
    linear-gradient(100deg, rgba(10,8,7,0.55) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3rem, 7vh, 5rem);
}
.hero-eyebrow { color: var(--ember-soft); margin-bottom: 1.6rem; }
.hero-title {
  font-size: clamp(3rem, 5vw + 1.6rem, 7.2rem);
  max-width: 16ch;
}
.hero-title em { font-style: italic; color: var(--ember-soft); font-weight: 420; }
.hero-sub {
  margin-top: 1.6rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  color: var(--ivory-dim);
}
.hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2.2rem;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.7rem;
  color: var(--ivory-dim);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (min-width: 720px) { .hero-scroll-cue { display: flex; } }
.hero-scroll-cue .line { width: 1px; height: 38px; background: var(--line-on-dark-strong); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--ember-soft);
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue { to { top: 100%; } }

.hero-sound-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 2.2rem;
  z-index: 3;
}
@media (min-width: 720px) { .hero-sound-toggle { right: auto; left: var(--gutter); } }
.media-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark-strong);
  background: rgba(10,8,7,0.4);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.media-control:hover { background: rgba(245,238,227,0.12); transform: translateY(-2px); border-color: var(--ivory); }
.media-control svg { width: 18px; height: 18px; }

/* ---------- Overview ---------- */
.overview-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid.flip { direction: rtl; }
  .overview-grid.flip > * { direction: ltr; }
}
.overview-media { position: relative; }
.overview-media img { width: 100%; height: auto; border-radius: 2px; }
.overview-media .frame-tag {
  position: absolute;
  bottom: -1.4rem;
  left: -1.4rem;
  background: var(--ivory);
  color: var(--ink);
  padding: 0.9rem 1.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 220px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  display: none;
}
@media (min-width: 640px) { .overview-media .frame-tag { display: block; } }
.overview-text h2 { margin-top: 0.9rem; }
.overview-text .lede { margin-top: 1.4rem; }
.overview-text .body-copy { margin-top: 1.1rem; }
.overview-text .btn { margin-top: 2.2rem; }

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 54ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head h2 { margin: 0; }
.section-head .body-copy { max-width: 58ch; }

/* ---------- Music / releases ---------- */
.release-grid { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .release-grid { grid-template-columns: repeat(2, 1fr); } }
.release-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--black-soft);
  border: 1px solid var(--line-on-dark);
}
.release-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.release-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.release-card:hover .release-art img { transform: scale(1.045); }
.release-body { padding: 1.6rem 1.7rem 1.9rem; }
.release-body h3 { font-size: 1.5rem; }
.release-meta { margin-top: 0.35rem; color: var(--ivory-faint); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.release-links { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-on-dark-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ivory-dim);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.pill-link svg { width: 15px; height: 15px; }
.pill-link:hover { color: var(--ivory); border-color: var(--ember-soft); background: rgba(196,135,74,0.1); }

/* ---------- Video features ---------- */
.video-grid { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-grid--six { grid-template-columns: 1fr; }
@media (min-width: 640px) { .video-grid--six { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .video-grid--six { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--black-soft);
  cursor: pointer;
  border: 0;
  width: 100%;
  display: block;
  text-align: left;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease), filter var(--dur-med) var(--ease); }
.video-card:hover img { transform: scale(1.06); filter: brightness(0.75); }
.video-card .video-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,8,7,0.9) 0%, rgba(10,8,7,0.1) 55%);
}
.video-card .video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ivory);
  line-height: 1.3;
}
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(245,238,227,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: var(--ivory); }
.video-card .play-btn svg { width: 20px; height: 20px; color: var(--brown); margin-left: 3px; }
.video-embed-wrap { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--black); }
.video-embed-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Marquee ---------- */
.marquee-section { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); overflow: hidden; background: var(--black-soft); }
.marquee-heading { display: flex; align-items: center; gap: 1.4rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); padding-inline: var(--gutter); flex-wrap: wrap; }
.marquee-heading h2 { white-space: nowrap; }
.marquee-controls { margin-left: auto; display: flex; align-items: center; gap: 0.8rem; }
.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
:root {
  --marquee-gap: clamp(1rem, 2vw, 1.75rem);
  --marquee-h: clamp(240px, 36vw, 560px);
}
.marquee-track {
  display: flex;
  gap: 0; /* spacing is owned by each .marquee-sequence so both halves are pixel-identical in width */
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee-track.is-paused { animation-play-state: paused; }
/*
 * Two identical sequence groups, each carrying its own trailing margin equal
 * to the internal gap. That makes both sequences exactly the same rendered
 * width (image widths + internal gaps + one boundary gap each), so
 * translateX(-50%) of the two-sequence track lands exactly one sequence
 * (including its boundary spacing) to the left — a mathematically seamless
 * loop regardless of each image's natural width.
 */
.marquee-sequence {
  display: flex;
  flex: 0 0 auto;
  gap: var(--marquee-gap);
  margin-right: var(--marquee-gap);
}
.marquee-cell {
  flex: 0 0 auto;
  height: var(--marquee-h);
  width: auto;
  position: relative;
}
.marquee-cell img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain; /* show the full supplied composition — never crop or stretch */
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-fallback-note { display: none; padding-inline: var(--gutter); margin-top: 1rem; color: var(--ivory-faint); font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.5rem; }
  .marquee-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-fallback-note { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line-on-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid {
  display: grid;
  gap: 2.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr; gap: 2.4rem; } }
.footer-brand img { width: auto; height: auto; max-width: 140px; margin-bottom: 1.3rem; }
.footer-brand p { color: var(--ivory-faint); font-size: 0.92rem; line-height: 1.7; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--ivory-dim); font-size: 0.95rem; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--ember-soft); }
.footer-socials { display: flex; gap: 1rem; margin-top: 1.4rem; }
.footer-socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-socials svg { width: 16px; height: 16px; color: var(--ivory-dim); }
.footer-socials a:hover { border-color: var(--ember-soft); background: rgba(196,135,74,0.08); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 3.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-on-dark);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  color: var(--ivory-faint);
  font-size: 0.82rem;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .body-copy { margin-inline: auto; margin-top: 1.2rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 2.4rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.page-hero .bg-image { position: absolute; inset: 0; z-index: 0; }
.page-hero .bg-image img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg-image::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,8,7,0.55) 0%, rgba(10,8,7,0.88) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 1.3rem; max-width: 56ch; }
.page-hero--plain { background: var(--brown-deep); background: linear-gradient(170deg, var(--black) 0%, var(--brown-deep) 70%, var(--brown) 130%); }

/* ---------- About: story blocks ---------- */
.story-block { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 860px) { .story-block { grid-template-columns: repeat(3, 1fr); } }
.story-card {
  padding: 2rem 1.9rem;
  border: 1px solid var(--line-on-dark);
  border-left: 2px solid var(--ember);
  background: var(--black-soft);
}
.story-card h3 { margin-bottom: 0.9rem; }
.story-card p { color: var(--ivory-dim); font-size: 0.98rem; line-height: 1.7; }

.milestone-block { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .milestone-block { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.milestone-text p { color: var(--ivory-dim); font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.3rem; }
.milestone-media img { width: 100%; height: auto; border-radius: 4px; }

/* ---------- Growth stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  text-align: center;
}
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-figure { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 4rem); font-weight: 560; color: var(--ivory); }
.stat-label { margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-faint); }
.stats-footnote { margin-top: 2.4rem; text-align: center; font-size: 0.82rem; color: var(--ivory-faint); }
.growth-quote {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 24ch;
  margin-inline: auto;
}

/* ---------- Member directory ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
@media (min-width: 640px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .member-grid { grid-template-columns: repeat(4, 1fr); } }
.member-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--black-soft);
}
.member-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.member-card:hover img, .member-card:focus-within img { transform: scale(1.06); }
.member-card .scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,8,7,0.92) 0%, rgba(10,8,7,0) 55%); }
.member-card .member-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; }
.member-card .member-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--ivory); }
.member-card .member-real { font-size: 0.74rem; color: var(--ivory-faint); margin-top: 0.15rem; }
.member-card button.bio-trigger {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
}

/* Member bio dialog */
.member-dialog {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.member-dialog.is-open { opacity: 1; visibility: visible; }
.member-dialog .dialog-backdrop { position: absolute; inset: 0; background: rgba(10,8,7,0.82); backdrop-filter: blur(6px); }
.member-dialog .dialog-panel {
  position: relative;
  max-width: 760px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--black-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr;
  transform: translateY(16px);
  transition: transform var(--dur-med) var(--ease);
}
@media (min-width: 640px) { .member-dialog .dialog-panel { grid-template-columns: 0.8fr 1.2fr; } }
.member-dialog.is-open .dialog-panel { transform: translateY(0); }
.member-dialog .dialog-media { aspect-ratio: 3/4; }
.member-dialog .dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.member-dialog .dialog-body { padding: 2rem; }
.member-dialog .dialog-body .member-real { color: var(--ivory-faint); font-size: 0.85rem; margin-top: 0.3rem; margin-bottom: 1.2rem; }
.member-dialog .dialog-body p { color: var(--ivory-dim); line-height: 1.75; font-size: 0.98rem; }
.dialog-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,8,7,0.5); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
}
.dialog-close:hover { background: rgba(10,8,7,0.8); }
.dialog-close svg { width: 16px; height: 16px; }

/* ---------- Events ---------- */
.events-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.event-grid { display: grid; gap: 1.8rem; }
@media (min-width: 720px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .event-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card {
  border: 1px solid var(--line-on-dark);
  border-radius: 4px;
  overflow: hidden;
  background: var(--black-soft);
  display: flex;
  flex-direction: column;
}
.event-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.event-card:hover .event-media img { transform: scale(1.05); }
.event-status {
  position: absolute; top: 0.9rem; left: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10,8,7,0.65);
  backdrop-filter: blur(4px);
  color: var(--ivory);
}
.event-status.is-past { color: var(--ivory-faint); }
.event-status.is-tba { color: var(--ember-soft); }
.event-status.is-upcoming { color: var(--ember-soft); }
.event-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.event-date { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ember-soft); font-weight: 600; }
.event-venue { font-size: 0.88rem; color: var(--ivory-faint); }
.event-desc { font-size: 0.92rem; color: var(--ivory-dim); line-height: 1.6; margin-top: 0.2rem; }
.event-footer { margin-top: auto; padding-top: 1rem; }
.event-note {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  border: 1px solid var(--line-on-dark);
  padding: 0.55rem 1rem;
  border-radius: 999px;
}
.event-card.is-past { opacity: 0.68; }
.event-card.is-past .event-media img { filter: grayscale(0.5); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line-on-dark); }
.contact-detail:first-of-type { border-top: 1px solid var(--line-on-dark); }
.contact-detail svg { width: 20px; height: 20px; color: var(--ember); flex-shrink: 0; margin-top: 0.2rem; }
.contact-detail a, .contact-detail span { font-size: 1.02rem; color: var(--ivory); }
.contact-detail .label { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 0.25rem; }

.form-grid { display: grid; gap: 1.3rem; }
.form-row { display: grid; gap: 1.3rem; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 0.55rem;
}
.field .required { color: var(--ember-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  color: var(--ivory);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ivory-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ember-soft);
  background: var(--black-elevated);
  outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field-error { color: #e3a07a; font-size: 0.8rem; margin-top: 0.4rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c4603a; }
.field-hint { font-size: 0.78rem; color: var(--ivory-faint); margin-top: 0.4rem; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 1.1rem 1.3rem;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}
.form-status.success { background: rgba(120, 169, 110, 0.12); border: 1px solid rgba(120,169,110,0.4); color: #a9d1a0; }
.form-status.error { background: rgba(196, 96, 58, 0.12); border: 1px solid rgba(196,96,58,0.4); color: #e3a07a; }

/* ---------- Articles ---------- */
.article-list { display: flex; flex-direction: column; }
.article-row {
  display: grid;
  gap: 1.8rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-on-dark);
  align-items: center;
}
@media (min-width: 760px) { .article-row { grid-template-columns: 0.42fr 0.58fr; gap: 3rem; } }
.article-row:first-child { padding-top: 0; }
.article-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.article-row:hover .article-thumb img { transform: scale(1.04); }
.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 0.8rem;
}
.article-row h2 { font-size: clamp(1.5rem, 2vw, 2.1rem); }
.article-row .excerpt { margin-top: 0.9rem; color: var(--ivory-dim); max-width: 56ch; }
.article-row .meta-row { margin-top: 1.1rem; display: flex; gap: 1rem; align-items: center; color: var(--ivory-faint); font-size: 0.82rem; }

.article-detail-hero { position: relative; }
.article-detail-hero img { width: 100%; max-height: 62vh; object-fit: cover; }
.article-meta-bar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  color: var(--ivory-faint); font-size: 0.86rem;
  margin-top: 1.4rem;
}
.article-meta-bar .dot::before { content: '·'; margin-right: 1rem; }
.article-prose { max-width: 70ch; margin-inline: auto; }
.article-prose .prose-lede { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.6; color: var(--ivory); margin-bottom: 1.8rem; }
.article-prose h3 { margin-top: 2.6rem; margin-bottom: 1rem; }
.article-prose p { color: var(--ivory-dim); line-height: 1.85; font-size: 1.04rem; margin-bottom: 1.3rem; }
.article-prose .prose-list { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article-prose .prose-list li { color: var(--ivory-dim); line-height: 1.8; font-size: 1.02rem; list-style: disc; margin-bottom: 0.5rem; }
.article-nav-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line-on-dark); }

/* ---------- Socials inline icons ---------- */
.icon-row { display: flex; gap: 1rem; align-items: center; }
.icon-row a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-on-dark); }
.icon-row svg { width: 16px; height: 16px; }

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.no-js .js-only { display: none !important; }

noscript .noscript-banner {
  display: block;
  background: var(--brown);
  color: var(--ivory);
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}
