/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* Colors - locked palette */
  --navy: #1B3A6B;
  --tint: #E8EEF7;
  --ground: #FAF8F5;
  --white: #FFFFFF;
  --accent: #2D6CDF;
  --muted: #5A6B84;
  --dark: #101418;

  /* Typography */
  --font-display: 'Zen Antique', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Shadows & Borders */
  --shadow-card: 0 8px 24px rgba(27, 58, 107, 0.06);
  --shadow-card-hover: 0 22px 44px rgba(27, 58, 107, 0.14);
  --border-radius: 8px;
  
  /* Premium Bezier Transitions */
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-reveal: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scale spacing down on smaller screens */
@media (max-width: 768px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 4rem;
  }
}

/* ==========================================================================
   Typography Imports
   ========================================================================== */
@font-face {
  font-family: 'Zen Antique';
  src: url('./fonts/ZenAntique-400.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-400.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-500.woff2') format('woff2');
  font-display: swap;
  font-weight: 500;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-700.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--ground);
  color: var(--dark);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-text {
  font-family: var(--font-display);
  font-weight: 400; /* Zen Antique is a single weight font */
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   Components
   ========================================================================== */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.5rem;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background-color: var(--white);
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent), 0 8px 20px rgba(45, 108, 223, 0.2);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--navy), 0 8px 20px rgba(27, 58, 107, 0.15);
}

/* Visually hidden — available to screen readers, removed from visual layout.
   Used for descriptive context on headings that are visually just a number. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 900px;
}

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

/* Header */
.site-header {
  background-color: var(--navy);
  color: var(--white);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              border-radius 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

.site-header.header-hidden {
  transform: translateY(-100%) scale(0.95);
  opacity: 0;
  border-radius: 40px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
}
.logo img {
  height: 48px;
  width: 48px;
  transform: scale(1.6); /* Scale up to visually trim transparent padding */
  transform-origin: center;
}
.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-list a {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}
.nav-list a.btn::after {
  display: none;
}

.nav-list a:hover {
  color: var(--tint);
}
.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-list a.btn {
  color: var(--white);
  padding: 0.75rem 1.5rem;
}
.nav-list a.btn:hover {
  color: var(--accent);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  background-color: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 1000px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: var(--space-md);
  max-width: 600px;
  font-weight: 500;
  color: var(--tint);
}

/* Standard Section */
.section {
  padding: var(--space-xl) 0;
}

.section-tint {
  background-color: var(--tint);
}

/* Alternating Blocks (Story & Mission) */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.split-block:last-child {
  margin-bottom: 0;
}

.split-block.reverse {
  grid-template-columns: 1fr 1fr;
}
.split-block.reverse > div:nth-child(2) {
  order: -1;
}

@media (max-width: 1024px) {
  .split-block, .split-block.reverse {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .split-block.reverse > div:nth-child(2) {
    order: 0;
  }
  .split-media {
    aspect-ratio: 16/9;
  }
}

.split-media {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  aspect-ratio: 16/10;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Donate page — Donorbox column.
   Kept separate from .split-media on purpose: that class crops to a 16/10 box with
   overflow:hidden, which would cut the bottom off the donation form. */
.donate-embed {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.donate-embed iframe {
  display: block;
}

@media (max-width: 1024px) {
  .donate-embed {
    justify-content: center;
    margin-top: var(--space-md);
  }
}

/* Video Facade */
.video-facade {
  position: absolute;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.video-facade img {
  position: absolute;
  inset: 0;
  /* YouTube's hqdefault thumbnails are 4:3 with black letterbox bars baked into
     the top and bottom. cover crops those off and fills the frame. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition-fast), transform var(--transition-reveal);
}

.video-facade:hover img {
  opacity: 0.8;
  transform: scale(1.05);
}

.play-button {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.video-facade:hover .play-button {
  transform: scale(1.1) translateY(-2px);
  background: var(--white);
  color: var(--accent);
}

.video-facade svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
  margin-left: 6px; /* Visual center adjustment */
}

/* Contact form panel.
   Deliberately NOT .split-media — that class crops to a 16/10 box with overflow:hidden,
   which clips a form far taller than it. */
.form-panel {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .form-panel {
    padding: 1.5rem;
  }
}

/* Footer credit */
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-credit {
  font-size: 0.875rem;
  opacity: 0.75;
}

/* Inherit the footer's light text — the base `a` colour is navy and would be
   invisible against the navy footer. */
.site-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast);
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: var(--white);
}

/* Video Gallery
   Each slot is a .video-frame holding either a .video-facade (populated) or a
   .video-placeholder (empty). The facade is swapped for a real YouTube iframe on click
   by the existing handler in main.js, so nothing loads from YouTube until someone asks. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-card);
}

/* Thumbnails are 16:9 from YouTube and the frame is 16:9, but cover guards against
   videos whose maxresdefault falls back to a different ratio. */
.video-frame .video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  background: var(--tint);
  border: 2px dashed rgba(27, 58, 107, 0.28);
  border-radius: var(--border-radius);
  color: var(--muted);
}

.video-placeholder svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  opacity: 0.4;
  margin-left: 4px;
}

.video-placeholder__num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.video-card__title {
  font-size: 1.25rem;
  margin: 1.125rem 0 0.25rem;
}

.video-card__meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Program Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
  top: 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-reveal);
}
.card:hover .card-media img {
  transform: scale(1.03);
}

.card-content {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.card-content p {
  color: var(--muted);
  margin-bottom: var(--space-md);
  flex-grow: 1;
  font-size: 1.125rem;
}

.card-action {
  margin-top: auto;
}

/* Mosaic Grid */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.mosaic-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* Archive Index Grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.year-card {
  display: block;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.year-card--wide { grid-column: span 8; }
.year-card--narrow { grid-column: span 4; }
.year-card--full { grid-column: span 12; }

@media (max-width: 900px) {
  .year-card--wide, .year-card--narrow { grid-column: span 12; }
}

.year-card__img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.year-card--narrow .year-card__img-wrapper {
  aspect-ratio: 4/5;
}

@media (max-width: 900px) {
  .year-card--narrow .year-card__img-wrapper {
    aspect-ratio: 3/2;
  }
}

.year-card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.6,.2,1);
}

.year-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,20,24,.65), transparent 55%);
  transition: opacity 600ms cubic-bezier(.2,.6,.2,1);
}

.year-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  color: var(--white);
  z-index: 2;
}

.year-card__year {
  font-family: 'Zen Antique', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.year-card__count {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 0.8;
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .year-card:hover .year-card__img-wrapper img,
  .year-card:focus-visible .year-card__img-wrapper img {
    transform: scale(1.04);
  }
  .year-card:hover .year-card__scrim,
  .year-card:focus-visible .year-card__scrim {
    opacity: 0.8;
  }
}

/* Detail Pages - Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
}

.highlights-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.highlight-6 { grid-column: span 6; aspect-ratio: 3/2; }
.highlight-4 { grid-column: span 4; aspect-ratio: 4/5; }
.highlight-3 { grid-column: span 3; aspect-ratio: 1/1; }

@media (max-width: 900px) {
  .highlight-6 { grid-column: span 6; }
  .highlight-4 { grid-column: span 6; aspect-ratio: 3/2; }
  .highlight-3 { grid-column: span 3; }
}

@media (max-width: 560px) {
  .highlight-6, .highlight-4, .highlight-3 { 
    grid-column: span 6; 
    aspect-ratio: 1/1; 
  }
  .highlight-6 { grid-column: span 12; }
}

/* Detail Pages - Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

/* Year Nav */
.year-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.year-nav__link {
  font-family: 'Zen Antique', serif;
  font-size: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.year-nav__link:hover {
  color: var(--navy);
}

.year-nav__link--active {
  font-family: 'Zen Antique', serif;
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  pointer-events: none;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 48, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Forms */
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-group-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(27, 58, 107, 0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
}

/* CTA Band */
.cta-band {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(4rem, 12vw, 10rem) 0;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-band p {
  color: var(--tint);
  font-size: clamp(1rem, 3vw, 1.375rem);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: var(--tint);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: var(--muted);
  display: block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.footer-social a:hover {
  color: var(--white);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.tax-deductible {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}

/* Mobile footer + play button + body font */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: 80vh;
  }
  .play-button {
    width: 64px;
    height: 64px;
  }
  .play-button svg,
  .video-facade svg {
    width: 32px;
    height: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    gap: var(--space-md);
  }
}

/* ==========================================================================
   Reveal System — opacity only, JS physics owns transform
   ========================================================================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Mobile Nav
   ========================================================================== */
@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy);
    padding: var(--space-xl) var(--space-md);
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition-fast);
    visibility: hidden;
    z-index: 1000;
  }
  
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }
  
  .nav-list a {
    font-size: 2rem;
    display: block;
    padding: 1rem 0;
  }
  .nav-list a.btn {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Scroll Physics & Scale Reveals
   ========================================================================== */
[data-speed] {
  will-change: transform;
}

[data-scale-reveal] {
  will-change: transform, opacity;
  opacity: 0;
  transform: scale(0.85);
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* ==========================================================================
   Preview gate — TEMPORARY, REMOVE BEFORE PUBLIC LAUNCH
   Paired with gate.js. See the removal notes at the top of that file.
   ========================================================================== */
html.is-gated,
html.is-gated body {
  overflow: hidden;
  height: 100%;
}

/* Hide the real site while the curtain is up. Applied from <head>, so the
   page never flashes its content before the overlay exists. */
html.is-gated body > *:not(.gate) {
  display: none !important;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
}

.gate__inner {
  max-width: 30rem;
  width: 100%;
}

.gate__logo {
  width: 96px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}

.gate__title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.gate__msg {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.gate__form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 20rem;
  margin: 0 auto;
}

.gate__input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.gate__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.gate__btn {
  flex: 0 0 auto;
  width: 48px;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.gate__btn:hover,
.gate__btn:focus-visible {
  background: var(--white);
  color: var(--accent);
}

.gate__btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.gate__phone {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.gate__phone a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate--error .gate__form {
  animation: gate-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .gate--error .gate__form { animation: none; }
}

/* Video spotlight — the featured interview above the grid.
   Media left, story right; stacks on tablet and below. */
.video-spotlight {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 900px) {
  .video-spotlight {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.video-spotlight__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.video-spotlight__body h2 {
  margin-bottom: 1rem;
}

.video-spotlight__body p {
  margin-bottom: 1rem;
}

.video-spotlight__body .btn {
  margin-top: 1rem;
}
