/* ============================================================
   THE NAT — Design Tokens v2
   Real brand palette: deep dark teal + mint green, secondary
   crimson/olive accents. Dark mode is the primary brand expression.
   Typography: ABC Diatype (body) / ABC Diatype Extended (display).
   ============================================================ */

@font-face {
  font-family: 'ABC Diatype';
  src: url('./assets/fonts/ABCDiatype-Regular.woff2') format('woff2'),
       url('./assets/fonts/ABCDiatype-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABC Diatype';
  src: url('./assets/fonts/ABCDiatype-RegularItalic.woff2') format('woff2'),
       url('./assets/fonts/ABCDiatype-RegularItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'ABC Diatype Extended';
  src: url('./assets/fonts/ABCDiatypeExtended-Bold.woff2') format('woff2'),
       url('./assets/fonts/ABCDiatypeExtended-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABC Diatype Extended';
  src: url('./assets/fonts/ABCDiatypeExtended-BoldItalic.woff2') format('woff2'),
       url('./assets/fonts/ABCDiatypeExtended-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Type scale — fluid clamp() */
  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --text-2xl: clamp(2.1rem, 1.3rem + 3vw, 3.75rem);
  --text-3xl: clamp(2.75rem, 1.1rem + 5vw, 5.75rem);
  --text-hero: clamp(3rem, 0.4rem + 8.5vw, 8.75rem);

  /* Spacing — 4px system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius — mostly square-cornered, editorial, minimal rounding */
  --radius-sm: 0.2rem;
  --radius-md: 0.3rem;
  --radius-lg: 0.4rem;
  --radius-xl: 0.6rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1280px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'ABC Diatype Extended', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'ABC Diatype', 'Helvetica Neue', Arial, sans-serif;

  /* Raw brand hex reference (do not use directly in components — map via theme vars below) */
  --brand-teal-900: #062424;
  --brand-teal-800: #0C2325;
  --brand-mint: #B1FFBA;
  --brand-mint-soft: #CFFBCB;
  --brand-crimson: #BA2353;
  --brand-olive: #4E5931;
  --brand-cream: #FFFFFF;
  --brand-off-white: #F7F8F9;
  --brand-neutral: #F0F0F0;
  --brand-ink: #222222;
  --brand-ink-muted: #575760;
  --brand-ink-faint: #B2B2BE;
}

/* ---------------- DARK MODE (primary brand expression) ---------------- */
:root,
[data-theme='dark'] {
  --color-bg: var(--brand-teal-800);
  --color-surface: #0F2B2D;
  --color-surface-2: #123236;
  --color-surface-offset: var(--brand-teal-900);
  --color-surface-offset-2: #051c1c;
  --color-surface-dynamic: #163539;
  --color-divider: oklch(1 0 0 / 0.12);
  --color-border: oklch(1 0 0 / 0.16);

  --color-text: var(--brand-mint-soft);
  --color-text-muted: oklch(0.92 0.06 155 / 0.68);
  --color-text-faint: oklch(0.92 0.06 155 / 0.42);
  --color-text-inverse: var(--brand-teal-800);
  /* Fixed light text for use over photography — does not flip with theme */
  --color-on-media: #FFFFFF;
  --color-on-media-muted: oklch(1 0 0 / 0.82);

  --color-primary: var(--brand-mint);
  --color-primary-hover: var(--brand-mint-soft);
  --color-primary-active: #ffffff;
  --color-primary-highlight: oklch(0.9 0.25 150 / 0.14);

  --color-mint: var(--brand-mint);
  --color-mint-strong: var(--brand-mint-soft);
  --color-mint-hover: #ffffff;
  --color-mint-highlight: oklch(0.9 0.25 150 / 0.14);

  --color-crimson: var(--brand-crimson);
  --color-olive: #8fa15f;

  --color-warning: #d3a35c;
  --color-error: #e8909f;
  --color-success: var(--brand-mint);

  /* Full-bleed "band" sections (supported-by, stats, stewards) — must read as
     visually distinct from the page background, which is already teal-800 in dark mode. */
  --color-band-bg: #123236;
  --color-band-text: #FFFFFF;
  --color-band-text-muted: oklch(1 0 0 / 0.72);
  --color-band-border: oklch(1 0 0 / 0.16);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}

/* Single dark-theme brand expression — light mode removed as part of the
   fresh design rebuild (one consistent mood across the whole site). */

.band {
  background: var(--color-band-bg);
  color: var(--color-band-text);
}
.band .eyebrow, .band h2, .band h3 { color: var(--color-band-text); }
.band p { color: var(--color-band-text-muted); }
.band .logo-item, .band .stat, .band .quote-card { border-color: var(--color-band-border); color: oklch(1 0 0 / 0.85); }
.band .stat-label { color: var(--color-band-text-muted); }
.band .stat-num { color: var(--brand-mint); }
.band .quote-card blockquote { color: var(--color-band-text); }
.band .quote-attr { color: var(--color-band-text); }
.band .quote-attr span { color: var(--color-band-text-muted); }
.band .quote-mark { color: var(--brand-mint); }
.band--black { background: #050706; }

/* ============================================================
   Base Typography
   ============================================================ */

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: none;
}

h1 { letter-spacing: -0.035em; }

p, li {
  max-width: 66ch;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 400;
  color: var(--color-mint);
}

/* ============================================================
   Layout Utilities
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}

.wrap--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

main {
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-mint);
  color: var(--brand-teal-800);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* ============================================================
   Header / Nav — sticky, transparent-over-hero then solid-on-scroll
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-in-out), border-color 0.3s var(--ease-in-out), transform 0.3s var(--ease-in-out);
}
.site-header.is-scrolled {
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--color-divider);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(var(--space-3), 3vw, var(--space-6));
  padding-block: var(--space-5);
}

.logo-link {
  display: flex;
  align-items: center;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo-mark { height: 34px; width: auto; color: var(--color-text); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-2), 1.6vw, var(--space-5));
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  transition: mask-image 0.25s var(--ease-in-out), -webkit-mask-image 0.25s var(--ease-in-out);
}
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav a {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 0.62rem + 0.22vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-mint);
}

/* NAT GALA nav item — hover/focus dropdown revealing the 2025 recap and the
   2026 event, so the persistent nav can point to both without adding a
   second top-level item. Trigger still navigates directly (defaults to the
   2025 recap) so the flat-link behavior is preserved for pointer users who
   click straight through; touch users get a tap-to-reveal via app.js. */
.nav-dropdown-menu {
  position: fixed;
  transform: translate(-50%, 0);
  min-width: 168px;
  padding: var(--space-2);
  background: var(--color-surface-offset-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-interactive), transform var(--transition-interactive), visibility var(--transition-interactive);
  z-index: 500;
}
.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 8px);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-text);
  white-space: nowrap;
}
.nav-dropdown-menu a span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: oklch(1 0 0 / 0.06);
}
.nav-dropdown-menu a:hover span,
.nav-dropdown-menu a.is-active span { color: var(--color-mint); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

/* ============================================================
   Text-only CTAs with arrow glyph — brand's no-filled-button rule
   ============================================================ */

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-mint);
  padding-bottom: 2px;
  white-space: nowrap;
}
.text-cta span { color: var(--color-mint); transition: transform var(--transition-interactive); }
.text-cta:hover { color: var(--color-mint); }
.text-cta:hover span { transform: translateX(3px); }

.text-cta-lg {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom-width: 2px;
}

/* Legacy .btn utility kept for internal layout (form submit) but restyled
   to match the brand's no-filled-button convention — outline / ghost only. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--color-text);
  background: transparent;
  transition: color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}
.btn:hover { color: var(--color-mint); border-color: var(--color-mint); }
.btn span { transition: transform var(--transition-interactive); }
.btn:hover span { transform: translateX(3px); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-full { border: none; padding: var(--space-4) var(--space-6); text-align: center; }
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  border-width: 2px;
}
/* Pill CTA used over media (video/image) sections — white outline on dark
   footage, mint on hover, matching the brand's no-filled-button rule. */
.m-actions .btn { color: #fff; border-color: #fff; }
.m-actions .btn:hover { color: var(--brand-mint); border-color: var(--brand-mint); }

/* Mobile menu overlay removed — persistent horizontal nav now runs at every
   breakpoint (see .primary-nav responsive rules below). */

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  padding-top: var(--space-8);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-mint); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }
.breadcrumb .current { color: var(--color-text); }

/* ============================================================
   Hero sections — huge condensed display type, tight negative
   letter-spacing, wireframe logo treatment available via .hero-logo-outline
   ============================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-on-media);
  background: var(--brand-teal-800);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.1 0.03 190 / 0.1) 0%, oklch(0.06 0.03 190 / 0.55) 58%, oklch(0.03 0.02 190 / 0.92) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-16) var(--space-20);
}
.hero-eyebrow {
  color: var(--brand-mint);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  margin-bottom: var(--space-5);
}
.hero h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.04em;
  line-height: 0.94;
  color: var(--color-on-media);
  max-width: 16ch;
}
.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  max-width: 44ch;
  color: var(--color-on-media-muted);
  font-family: var(--font-body);
}
.hero-actions,
.cta-actions {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions .text-cta,
.hero-actions .text-cta-lg { color: #fff; border-bottom-color: var(--brand-mint); }
.hero-actions .text-cta:hover,
.hero-actions .text-cta-lg:hover { color: var(--brand-mint); }

/* Cinematic full-bleed "moment" section (video-driven) */
.moment {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-on-media);
  background: var(--brand-teal-800);
  text-align: center;
}
.moment-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.moment-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.03 0.02 190 / 0.6) 0%, oklch(0.03 0.02 190 / 0.55) 45%, oklch(0.03 0.02 190 / 0.72) 100%);
  z-index: 1;
}
.moment-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-20);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.moment-eyebrow {
  color: var(--brand-mint);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  margin-bottom: var(--space-5);
}
.moment-heading {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 22ch;
  color: var(--color-on-media);
}
.moment-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  max-width: 46ch;
  color: var(--color-on-media-muted);
  font-family: var(--font-body);
}
.moment-credit {
  position: absolute;
  z-index: 2;
  right: var(--space-6);
  bottom: var(--space-5);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.65);
  margin: 0;
}

/* ============================================================
   Media Section — the single universal pattern for THE NAT v3.
   Every section opens with full-bleed imagery or video; text is
   always overlaid directly on top, never boxed in a flat panel.
   Generalizes the old .hero / .moment / .std-panel one-offs into
   one reusable system used across all seven pages.
   ============================================================ */
.media-section {
  position: relative;
  display: flex;
  overflow: hidden;
  color: var(--color-on-media);
  background: var(--brand-teal-800);
}
.media-section--hero { min-height: 92vh; align-items: flex-end; }
.media-section--tall { min-height: 72vh; align-items: center; }
.media-section--tall.media-section--gala-carousel { min-height: 86vh; }
.media-section--standard { min-height: 54vh; align-items: center; }
.media-section--compact { min-height: 38vh; align-items: center; }

.media-bg {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
}

/* Hero background carousel — crossfading slideshow behind fixed overlay text */
[data-hero-carousel] .media-bg {
  opacity: 0;
  transition: opacity 1.8s ease;
}
[data-hero-carousel] .media-bg.is-active {
  opacity: 1;
  z-index: 0;
}
.hero-carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: var(--space-6);
  left: var(--space-6);
  display: flex;
  gap: 6px;
}
.hero-carousel-dots .carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.35);
  border: none;
  padding: 0;
  cursor: default;
}
.hero-carousel-dots .carousel-dot.is-active {
  background: var(--color-mint);
  width: 18px;
}

.media-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, oklch(0.1 0.03 190 / 0.12) 0%, oklch(0.05 0.03 190 / 0.6) 58%, oklch(0.03 0.02 190 / 0.92) 100%);
}
.media-scrim--center {
  background: linear-gradient(180deg, oklch(0.03 0.02 190 / 0.58) 0%, oklch(0.03 0.02 190 / 0.5) 45%, oklch(0.03 0.02 190 / 0.74) 100%);
}
.media-scrim--left {
  background: linear-gradient(100deg, oklch(0.03 0.02 190 / 0.9) 0%, oklch(0.03 0.02 190 / 0.58) 48%, oklch(0.03 0.02 190 / 0.2) 100%);
}
.media-scrim--right {
  background: linear-gradient(260deg, oklch(0.03 0.02 190 / 0.9) 0%, oklch(0.03 0.02 190 / 0.58) 48%, oklch(0.03 0.02 190 / 0.2) 100%);
}
.media-scrim--full {
  background: linear-gradient(160deg, oklch(0.03 0.02 190 / 0.84) 0%, oklch(0.04 0.03 190 / 0.6) 50%, oklch(0.03 0.02 190 / 0.86) 100%);
}

/* Grain — tied together with an atmospheric noise texture across every
   media section and tile, echoing the film-grain warmth of Emergence
   Magazine's backgrounds instead of flat corporate color blocks. */
.media-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.media-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(var(--space-12), 9vw, var(--space-20));
}
.media-content--bottom-left { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.media-content--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.media-content--split-left { display: grid; grid-template-columns: minmax(0, 48ch) 1fr; }
.media-content--split-left > * { grid-column: 1; text-align: left; }
.media-content--split-right { display: grid; grid-template-columns: 1fr minmax(0, 48ch); }
.media-content--split-right > * { grid-column: 2; text-align: left; }

.m-eyebrow {
  color: var(--brand-mint);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  margin-bottom: var(--space-5);
}
.m-heading {
  font-family: var(--font-display);
  color: var(--color-on-media);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.m-heading--hero { font-size: var(--text-hero); letter-spacing: -0.04em; line-height: 0.94; max-width: 16ch; }
.m-heading--xl { font-size: var(--text-3xl); max-width: 18ch; line-height: 0.96; }
.m-heading--lg { font-size: var(--text-2xl); max-width: 20ch; }
.m-heading--md { font-size: var(--text-xl); max-width: 24ch; }
.media-content--center .m-heading { margin-inline: auto; }
.m-lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  max-width: 46ch;
  color: var(--color-on-media-muted);
  font-family: var(--font-body);
}
.media-content--center .m-lede { margin-inline: auto; }
.m-body {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  max-width: 54ch;
  color: var(--color-on-media-muted);
  font-family: var(--font-body);
}
.media-content--center .m-body { margin-inline: auto; }
.m-actions {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: center;
}
.media-content--center .m-actions { justify-content: center; }
.m-actions .text-cta,
.m-actions .text-cta-lg { color: #fff; border-bottom-color: var(--brand-mint); }
.m-actions .text-cta:hover,
.m-actions .text-cta-lg:hover { color: var(--brand-mint); }
.m-redacted {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.m-redacted-seat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.m-redacted-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--brand-mint);
  background: transparent;
  animation: redacted-pulse 2.6s ease-in-out infinite;
}
.m-redacted-seat:nth-child(2) .m-redacted-dot { animation-delay: .55s; }
.m-redacted-seat:nth-child(3) .m-redacted-dot { animation-delay: 1.1s; }
@keyframes redacted-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.85 0.18 155 / 0.5); }
  50% { box-shadow: 0 0 0 6px oklch(0.85 0.18 155 / 0); }
}
.m-redacted-line {
  display: block;
  height: 15px;
  max-width: 40ch;
  border-radius: 1px;
  background-color: oklch(0.14 0 0 / 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
}
.m-redacted-seat:nth-child(1) .m-redacted-line { --tilt: -.6deg; }
.m-redacted-seat:nth-child(2) .m-redacted-line { --tilt: .45deg; }
.m-redacted-seat:nth-child(3) .m-redacted-line { --tilt: -.35deg; }
.m-redacted-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, oklch(0.85 0.18 155 / 0.4) 50%, transparent 100%);
  animation: redacted-shimmer 3.2s ease-in-out infinite;
}
@keyframes redacted-shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .m-redacted-dot, .m-redacted-line::after { animation: none; }
}
.m-redacted-caption {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-mint);
}
.m-credit {
  position: absolute;
  z-index: 2;
  right: var(--space-4);
  bottom: var(--space-4);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.68);
  margin: 0;
}

/* ============================================================
   GALA countdown — a quiet editorial marker in the hero's top
   corner, not a ticking digital-clock widget. Updates once per
   page load; the day count is the whole point, not seconds.
   ============================================================ */
.gala-countdown {
  position: absolute;
  z-index: 3;
  top: var(--space-8);
  right: clamp(var(--space-5), 4vw, var(--space-10));
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.gala-countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.1rem + 3.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-mint);
  min-width: 1.4ch;
  text-align: right;
}
.gala-countdown-divider {
  width: 1px;
  height: clamp(28px, 4vw, 40px);
  background: oklch(1 0 0 / 0.32);
  flex-shrink: 0;
}
.gala-countdown-copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.55;
  color: var(--color-on-media-muted);
  text-align: left;
}

@media (max-width: 640px) {
  .m-heading--hero { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .m-heading--xl { font-size: var(--text-2xl); }
  .media-section--hero { min-height: 86vh; }
  .gala-countdown { top: var(--space-6); right: var(--space-5); gap: var(--space-3); }
  .gala-countdown-num { font-size: clamp(1.7rem, 1.1rem + 4vw, 2.4rem); }
  .gala-countdown-divider { height: 26px; }
  .gala-countdown-copy { font-size: 0.62rem; letter-spacing: 0.11em; }
}

/* ============================================================
   Tile — grid-cell version of the media-section pattern. Used for
   team, partners, collaborators, stewards, events and logos: every
   grid item is still image-led with text overlaid, just sized to a
   card rather than the full viewport.
   ============================================================ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.tile-grid--sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile-grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transform: translateZ(0);
  isolation: isolate;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.tile--wide { aspect-ratio: auto; min-height: 380px; }
.tile--flat { aspect-ratio: auto; min-height: 220px; }
.tile--logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; }
.tile-bg {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
  transition: transform 0.6s var(--ease-out);
}
.tile:hover .tile-bg { transform: scale(1.05); }
.tile-bg--portrait { object-position: top center; filter: grayscale(1); }
.tile-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, oklch(0.03 0.02 190 / 0.05) 0%, oklch(0.03 0.02 190 / 0.5) 55%, oklch(0.02 0.02 190 / 0.94) 100%);
}
.tile-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tile-content {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  width: 100%;
}
.tile--logo .tile-content { display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.tile-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-mint);
  margin-bottom: var(--space-2);
  display: block;
}
.tile-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  color: #fff;
}
.tile-content h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease-out);
}
.tile-content h3 a:hover,
.tile-content h3 a:focus-visible {
  background-size: 100% 1px;
}
.tile-role {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-mint);
  margin-top: var(--space-1);
  display: block;
}
.tile-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.82);
  margin-top: var(--space-2);
}
.tile:not(.tile--wide):not(.tile--flat):not(.tile--logo) .tile-text {
  max-height: 8.4em;
  overflow-y: auto;
  padding-right: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: oklch(1 0 0 / 0.35) transparent;
}
.tile:not(.tile--wide):not(.tile--flat):not(.tile--logo) .tile-text::-webkit-scrollbar {
  width: 4px;
}
.tile:not(.tile--wide):not(.tile--flat):not(.tile--logo) .tile-text::-webkit-scrollbar-track {
  background: transparent;
}
.tile:not(.tile--wide):not(.tile--flat):not(.tile--logo) .tile-text::-webkit-scrollbar-thumb {
  background: oklch(1 0 0 / 0.35);
  border-radius: 4px;
}
.tile--flat .tile-text {
  max-height: 6.6em;
  overflow-y: auto;
  padding-right: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: oklch(1 0 0 / 0.35) transparent;
}
.tile--flat .tile-text::-webkit-scrollbar {
  width: 4px;
}
.tile--flat .tile-text::-webkit-scrollbar-track {
  background: transparent;
}
.tile--flat .tile-text::-webkit-scrollbar-thumb {
  background: oklch(1 0 0 / 0.35);
  border-radius: 4px;
}
.tile-quote-mark {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--brand-mint);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}
.tile blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: #fff;
}
.tile-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  color: var(--brand-mint);
  display: block;
}
.tile-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(1 0 0 / 0.75);
  margin-top: var(--space-2);
  display: block;
}
.tile--logo .tile-bg { opacity: 0.9; }
.tile--logo img.tile-logo-img {
  position: relative;
  z-index: 2;
  max-height: 30px;
  max-width: 74%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}
.tile--logo img.tile-logo-img--lg {
  max-height: 54px;
  max-width: 86%;
}
.tile--logo img.tile-logo-img--boost {
  max-height: 38px;
  max-width: 80%;
}
.tile--logo .tile-logo-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
}
.tile-credit {
  position: absolute;
  z-index: 2;
  right: var(--space-3);
  top: var(--space-3);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.7rem;
  color: oklch(1 0 0 / 0.55);
}

/* ============================================================
   Section headers
   ============================================================ */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: var(--text-2xl);
  max-width: 16ch;
}
.section-head p {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  max-width: 42ch;
}
.m-note {
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   Grid layouts
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); }
.split-media figcaption {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.split-copy .eyebrow { margin-bottom: var(--space-3); }
.split-copy h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.split-copy p { color: var(--color-text-muted); font-family: var(--font-body); }

/* Media tag chip — overlays contextual data directly on imagery */
.media-tag {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  padding: var(--space-2) var(--space-4);
  background: oklch(0.08 0.03 190 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid oklch(1 0 0 / 0.22);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Drop cap for lede paragraphs — integrates copy typographically */
p.lede::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.78;
  float: left;
  padding-right: 0.09em;
  padding-top: 0.03em;
}

/* Split with full-bleed media — one asymmetric moment per page */
.split-bleed-section { overflow: hidden; }
.split-bleed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
}
.split-bleed-copy {
  padding-inline-start: clamp(var(--space-6), 6vw, var(--space-20));
  max-width: 46ch;
  margin-left: auto;
}
.split-bleed-copy .eyebrow { margin-bottom: var(--space-3); }
.split-bleed-copy h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.split-bleed-copy p { color: var(--color-text-muted); font-family: var(--font-body); margin-bottom: var(--space-4); }
.split-bleed-media {
  position: relative;
  height: clamp(420px, 52vw, 640px);
}
.split-bleed-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-bleed-credit {
  position: absolute;
  z-index: 2;
  right: var(--space-4);
  bottom: var(--space-4);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.75);
}
@media (max-width: 900px) {
  .split-bleed { grid-template-columns: 1fr; }
  .split-bleed-copy { margin-left: 0; padding-inline: var(--space-5); max-width: none; }
  .split-bleed-media { height: 320px; order: -1; }
}

/* ============================================================
   Stats
   ============================================================ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stat {
  padding: var(--space-8) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  color: var(--color-mint);
  display: block;
}
.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  display: block;
}

/* ============================================================
   Cards
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.event-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.event-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.event-card-media img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.event-card-body .eyebrow { margin-bottom: 0; }
.event-card-body h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.event-card-body p { color: var(--color-text-muted); font-family: var(--font-body); margin-bottom: var(--space-2); }
.event-card-actions { margin-top: auto; display: flex; gap: var(--space-5); flex-wrap: wrap; padding-top: var(--space-4); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  cursor: zoom-in;
}
.gallery-grid img {
  width: calc(100% + 2px); height: calc(100% + 2px); margin: -1px; object-fit: cover;
  border-radius: inherit;
  transition: transform 0.5s var(--ease-out);
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a:nth-child(5n+1) { grid-row: span 2; }
.gallery-grid a:nth-child(5n+1) { aspect-ratio: auto; }

/* Gala carousel — auto-advancing, swipeable, click-to-lightbox */
.gala-carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 clamp(220px, 32vw, 380px);
  scroll-snap-align: start;
}
.carousel-slide a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.carousel-slide img {
  width: calc(100% + 2px); height: calc(100% + 2px); margin: -1px; object-fit: cover;
  border-radius: inherit;
  transition: transform 0.5s var(--ease-out);
}
.carousel-slide a:hover img { transform: scale(1.05); }
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.carousel-arrow:hover { background: var(--color-mint); color: var(--brand-teal-900); border-color: var(--color-mint); }
.carousel-arrow--prev { left: calc(-1 * var(--space-5)); }
.carousel-arrow--next { right: calc(-1 * var(--space-5)); }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), width 0.2s var(--ease-out);
}
.carousel-dot.is-active { background: var(--color-mint); width: 22px; border-radius: var(--radius-full); }
@media (max-width: 720px) {
  .carousel-arrow { display: none; }
  .carousel-slide { flex-basis: 76vw; }
}

/* Editorial imagery grid (non-gala photography) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.photo-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.photo-grid img { width: calc(100% + 2px); height: calc(100% + 2px); margin: -1px; object-fit: cover; display: block; border-radius: inherit; }
.photo-grid .tall { aspect-ratio: 3/4; }
.photo-grid .wide { aspect-ratio: 4/3; grid-column: span 2; }

/* Responsive video embed (e.g. YouTube recap) */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-teal-800, #0c2325);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  isolation: isolate;
  background: oklch(0.03 0.02 190 / 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.lightbox.is-open { display: flex; }
body.lightbox-open .site-header { z-index: 1; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: #fff;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.1);
}
.lightbox-close:hover { background: oklch(1 0 0 / 0.2); }

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.logo-wall .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  min-height: 84px;
}
.logo-wall .logo-item img {
  max-height: 30px;
  max-width: 100%;
  object-fit: contain;
}

/* Tiered sponsor lockup — used where partner prominence is hierarchical
   (e.g. GALA presenting sponsor vs. supporting sponsors). */
.sponsor-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  text-align: center;
  margin-top: var(--space-8);
}
.sponsor-tier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  width: 100%;
}
.sponsor-tier img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  object-fit: contain;
  transition: opacity 0.3s var(--ease-out);
}
.sponsor-tier img:hover { opacity: 1; }
.sponsor-tier--1 img { height: 42px; }
.sponsor-tier--2 img { height: 40px; }
.sponsor-tier--3 img { height: 34px; }
@media (max-width: 640px) {
  .sponsor-tier { gap: var(--space-6); }
  .sponsor-tier--1 img { height: 28px; }
  .sponsor-tier--2 img { height: 28px; }
  .sponsor-tier--3 img { height: 24px; }
}

/* Team / bio cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
}
.bio-card { display: flex; flex-direction: column; gap: var(--space-3); }
.bio-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  color: var(--color-mint);
  overflow: hidden;
}
.bio-card h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.bio-role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-mint); font-weight: 400; }
.bio-card p.bio-text { color: var(--color-text-muted); font-size: var(--text-sm); font-family: var(--font-body); }

/* Quote cards for stewards */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  justify-content: center;
  gap: var(--space-8);
}
.quote-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.quote-mark { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-mint); line-height: 1; }
.quote-card blockquote { font-size: var(--text-base); font-family: var(--font-body); font-style: italic; color: var(--color-text); }
.quote-attr { font-size: var(--text-sm); font-weight: 400; }
.quote-attr span { display: block; color: var(--color-text-muted); font-size: var(--text-xs); font-style: normal; margin-top: var(--space-1); }

/* Collaborators list */
.collab-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.collab-item { padding: var(--space-6) 0; border-top: 1px solid var(--color-border); }
.collab-item h3 { font-size: var(--text-base); letter-spacing: 0; margin-bottom: var(--space-2); font-family: var(--font-body); font-weight: 700; }
.collab-item p { color: var(--color-text-muted); font-size: var(--text-sm); font-family: var(--font-body); }

/* ============================================================
   Tabs (Roadmap)
   ============================================================ */
.tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-10);
}
.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.is-active { color: var(--color-mint); border-bottom-color: var(--color-mint); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* On-media variant: legible over photo + scrim */
.tabs--on-media { border-bottom-color: var(--color-border); }
.tabs--on-media .tab-btn { color: var(--color-on-media-muted); }
.tabs--on-media .tab-btn.is-active { color: var(--color-mint); border-bottom-color: var(--color-mint); }

/* Tabbed media background crossfade (e.g. GALA 25 / GALA 26) */
[data-media-tabs] .media-bg { opacity: 0; transition: opacity 0.6s ease; }
[data-media-tabs] .media-bg.is-active { opacity: 1; }

.timeline-list { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.timeline-item:first-child { border-top: 1px solid var(--color-divider); }
.timeline-date { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.timeline-body h3 { font-size: var(--text-base); letter-spacing: 0; margin-bottom: var(--space-1); font-family: var(--font-body); font-weight: 700; }
.timeline-body p { font-size: var(--text-sm); color: var(--color-text-muted); font-family: var(--font-body); margin: 0; }

/* ============================================================
   Forms
   ============================================================ */
.form-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
}
.form-field { margin-bottom: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-size: var(--text-sm); }
.form-field input, .form-field textarea {
  padding: var(--space-4);
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  font-size: var(--text-base);
  color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--color-mint);
  outline: none;
}
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); }

/* Floating glass panel variant — form-card overlaid directly on a media-section
   image/video background instead of sitting in a flat side-by-side split. */
.form-card--overlay {
  background: oklch(0.05 0.02 190 / 0.55);
  backdrop-filter: blur(18px);
  border: 1px solid oklch(1 0 0 / 0.18);
  max-width: 440px;
  margin-left: auto;
}
.form-card--overlay .form-field label { color: oklch(1 0 0 / 0.75); }
.form-card--overlay .form-field input { color: #fff; border-bottom-color: oklch(1 0 0 / 0.3); }
.form-card--overlay .form-note { color: oklch(1 0 0 / 0.55); }
.form-card--overlay .form-note a { color: oklch(1 0 0 / 0.8); }
.form-card--overlay .form-success h2 { color: #fff; }
.form-card--overlay .form-success p { color: oklch(1 0 0 / 0.75); }
@media (max-width: 900px) {
  .form-card--overlay { margin-inline: auto; }
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
}
.form-success.is-visible { display: block; }
.form-success svg { color: var(--color-mint); margin-inline: auto; margin-bottom: var(--space-4); }

/* ============================================================
   Photo credits — Vogue-style italic masthead credit line
   ============================================================ */
.photo-credits {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.photo-credits p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
  max-width: none;
}
.pc-label {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--brand-teal-900);
  color: var(--brand-mint-soft);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
[data-theme='light'] .site-footer { background: var(--brand-teal-800); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(1 0 0 / 0.14);
}
.footer-brand .logo-mark { height: 30px; color: var(--brand-mint); margin-bottom: var(--space-4); }
.footer-brand p { color: oklch(1 0 0 / 0.65); font-size: var(--text-sm); max-width: 32ch; font-family: var(--font-body); }
.footer-col h4 { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand-mint); margin-bottom: var(--space-4); font-weight: 400; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { color: oklch(1 0 0 / 0.72); font-size: var(--text-sm); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.03em; }
.footer-col a:hover { color: var(--brand-mint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-legal { font-size: var(--text-xs); color: oklch(1 0 0 / 0.55); font-family: var(--font-body); }
.footer-social { display: flex; align-items: center; gap: var(--space-5); }
.footer-social a { color: oklch(1 0 0 / 0.75); font-size: var(--text-xs); letter-spacing: 0.04em; font-family: var(--font-body); display: flex; align-items: center; }
.footer-social a svg { display: block; }
.footer-social a:hover { color: var(--brand-mint); }

/* ============================================================
   Press strip
   ============================================================ */
.press-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.press-strip a {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}
.press-strip a:hover { color: var(--color-mint); }
.press-strip a img {
  height: 26px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.82;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s var(--ease-out);
}
.press-strip a:hover img { opacity: 1; }

/* ============================================================
   Scroll reveal — IntersectionObserver-driven (see app.js).
   `.reveal` is ALWAYS visible by default so content never disappears
   if JS fails, IntersectionObserver is unsupported, or the page is
   embedded in a preview context with unusual scroll behavior. The
   fade-in only activates once JS confirms it can safely animate it.
   ============================================================ */
.reveal { opacity: 1; }
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .stat-row { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .wide { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .timeline-item { grid-template-columns: 1fr; gap: var(--space-2); text-align: left; }
  .header-actions { gap: var(--space-3); }
}

.header-actions .text-cta span.label-short { display: none; }

@media (max-width: 640px) {
  .text-cta { font-size: var(--text-xs); }
  .primary-nav a { font-size: 0.66rem; letter-spacing: 0; }
  .logo-mark { height: 26px; }
  .header-actions .text-cta span.label-full { display: none; }
  .header-actions .text-cta span.label-short { display: inline; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Save the Date — cinematic scroll experience
   ============================================================ */
.std-body { background: var(--brand-teal-900); }

/* Header sits directly over the dark cinematic hero on this page — force light nav
   text until the header picks up its solid glass background on scroll. */
.std-body .site-header:not(.is-scrolled) .logo-link,
.std-body .site-header:not(.is-scrolled) .logo-mark,
.std-body .site-header:not(.is-scrolled) .primary-nav a,
.std-body .site-header:not(.is-scrolled) .header-actions .text-cta {
  color: #fff;
}
.std-body .site-header:not(.is-scrolled) .primary-nav a:hover,
.std-body .site-header:not(.is-scrolled) .primary-nav a.is-active {
  color: var(--color-mint);
  border-bottom-color: var(--color-mint);
}
.std-body .site-header:not(.is-scrolled) .header-actions .text-cta {
  border-bottom-color: rgba(255,255,255,0.5);
}

.std-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.std-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.std-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.08 0.03 190 / 0.45) 0%, oklch(0.05 0.03 190 / 0.6) 55%, oklch(0.02 0.02 190 / 0.92) 100%);
  z-index: 1;
}
.std-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
  padding: var(--space-8);
}
.std-logo .logo-mark--outline { height: 46px; width: auto; color: #fff; }
.std-hero-tag {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
}
.std-sound-toggle {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: #fff;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: var(--radius-full);
}
.std-sound-toggle:hover { border-color: oklch(1 0 0 / 0.7); }
.std-scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: #fff;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  animation: std-bob 2s var(--ease-in-out) infinite;
}
@keyframes std-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.std-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.std-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.std-panel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, oklch(0.05 0.03 190 / 0.82) 0%, oklch(0.05 0.03 190 / 0.4) 55%, oklch(0.05 0.03 190 / 0.75) 100%);
  z-index: 1;
}
.std-panel-scrim--light {
  background: linear-gradient(120deg, oklch(0.08 0.04 190 / 0.78) 0%, oklch(0.1 0.05 190 / 0.35) 55%, oklch(0.08 0.04 190 / 0.7) 100%);
}
.std-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 8vw, var(--space-20));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.std-panel-eyebrow {
  color: var(--brand-mint);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-4);
}
.std-panel-content h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 0.94;
}
.std-panel-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  max-width: 40ch;
  color: oklch(1 0 0 / 0.85);
  font-family: var(--font-body);
}

.std-date-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.std-date-reveal {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: var(--space-4);
}
.std-date-reveal span { color: var(--brand-mint); }
.std-rsvp-link {
  margin-top: var(--space-10);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--brand-mint);
  border-bottom: 1px solid var(--brand-mint);
  padding-bottom: var(--space-2);
  max-width: 46ch;
}
.std-rsvp-link:hover { color: #fff; border-color: #fff; }

.std-footer {
  background: var(--brand-teal-900);
  padding-block: var(--space-16) var(--space-10);
}
.std-footer .press-strip a { color: oklch(1 0 0/0.7); }
.std-footer .press-strip a:hover { color: var(--brand-mint); }
.std-footer .photo-credits { border-top-color: oklch(1 0 0/0.15); }
.std-footer .photo-credits p { color: oklch(1 0 0/0.5); }
.std-footer .pc-label { color: oklch(1 0 0/0.65); }

@media (max-width: 640px) {
  .std-panel-content h2 { font-size: var(--text-2xl); }
  .std-date-reveal { font-size: clamp(3rem, 20vw, 6rem); }
  .std-logo .logo-mark--outline { height: 32px; }
}
