/* ============================================
   Cinematic effects layer
   - Custom cursor
   - Marquee/ticker
   - Stats strip
   - Scroll progress
   - Word reveal
   - Vertical side labels
   - Oversized display + outlined headlines
   - Section diagonal dividers
   ============================================ */

/* ============================================
   Custom cursor — DISABLED. Native OS cursor is used everywhere.
   The .cursor / .cursor-dot / .cursor-ring rules below are kept dead-code
   only because the JS no longer creates the element; nothing renders.
   ============================================ */
.cursor { display: none !important; }

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* Dot: solid brand red with white halo + soft shadow → guaranteed visible on any bg */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  margin-left: -4px;
  margin-top: -4px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.95),
    0 0 0 2.5px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 50ms linear, background-color 200ms ease;
}

/* Ring: red border with dual-tone shadow (white + black) so it pops on light AND dark bg */
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-primary);
  margin-left: -18px;
  margin-top: -18px;
  background: rgba(200, 16, 46, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.30),
    0 4px 14px rgba(0, 0, 0, 0.18);
  transition: width 250ms var(--ease), height 250ms var(--ease),
              margin 250ms var(--ease), background-color 250ms ease,
              border-color 250ms ease;
}

.cursor.is-hover .cursor-ring {
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  background: rgba(200, 16, 46, 0.18);
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(200, 16, 46, 0.30);
}

.cursor.is-hover .cursor-dot {
  background: var(--color-white);
  box-shadow:
    0 0 0 1.5px var(--color-primary),
    0 0 0 3px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.cursor.is-hidden { opacity: 0; }

/* ============================================
   Scroll progress bar — uses scaleX from 0 to avoid flash-at-5% on first paint.
   Renders fully invisible until first scroll event (body.is-scrolling).
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--color-primary);
  z-index: calc(var(--z-nav) + 2);
  transition: transform 80ms linear, opacity 200ms ease;
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.6);
  opacity: 0;
  pointer-events: none;
}

body.is-scrolling .scroll-progress {
  opacity: 1;
}

/* ============================================
   Marquee / ticker
   ============================================ */
.marquee {
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  padding-block: var(--space-5);
  border-block: 1px solid var(--color-charcoal);
  position: relative;
}

.marquee.marquee-red {
  background: var(--color-primary);
  border-color: var(--color-primary-dark);
}

.marquee.marquee-light {
  background: var(--color-light);
  color: var(--color-dark);
  border-color: var(--color-gray-200);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-inline: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-sep {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.marquee-red .marquee-sep,
.marquee-light .marquee-sep {
  background: var(--color-dark);
}

/* Editorial alternation: secondary items become italic Oswald in a quieter weight,
   creating magazine-spread rhythm WITHOUT the hollow text-stroke look. */
.marquee-item-outlined {
  font-family: "Oswald", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.92em;
  letter-spacing: 0.12em;
  opacity: 0.55;
  color: var(--color-white);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.marquee-red .marquee-item-outlined {
  color: var(--color-white);
  opacity: 0.65;
}

.marquee-light .marquee-item-outlined {
  color: var(--color-dark);
  opacity: 0.55;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   Stats strip
   ============================================ */
.stats-strip {
  background: var(--color-dark);
  color: var(--color-white);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(200,16,46,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(200,16,46,0.10) 0%, transparent 40%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-10); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat {
  text-align: left;
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-5);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.95;
  color: var(--color-white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}

.stat-number .suffix {
  color: var(--color-primary);
  font-size: 0.6em;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gray-300);
  margin-top: var(--space-3);
  font-weight: 500;
}

/* ============================================
   Word-by-word hero reveal
   ============================================ */
[data-split-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

[data-split-words].is-revealed .word {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
   Vertical side labels (editorial/cinematic)
   ============================================ */
.section-label-side {
  position: absolute;
  left: var(--space-6);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-gray-500);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  pointer-events: none;
}

.section-label-side::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

@media (max-width: 1280px) {
  .section-label-side { display: none; }
}

/* ============================================
   Outlined headline (text-stroke)
   ============================================ */
.text-outlined {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-dark);
}

.section-dark .text-outlined,
.philosophy .text-outlined {
  -webkit-text-stroke-color: var(--color-white);
}

.section-red .text-outlined {
  -webkit-text-stroke-color: var(--color-white);
}

/* ============================================
   Italic display accent
   ============================================ */
.italic-accent {
  font-style: italic;
  font-family: "Oswald", serif;
  font-weight: 400;
}

/* ============================================
   Diagonal section divider
   ============================================ */
.section-divider-diag {
  position: relative;
  height: 80px;
  background: var(--color-dark);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  margin-top: -1px;
}

.section-divider-diag-up {
  background: var(--color-dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

/* ============================================
   Hero upgrade — bigger, asymmetric
   ============================================ */
.hero-title {
  font-size: clamp(3.5rem, 9vw + 1rem, 9rem) !important;
  line-height: 0.88 !important;
  margin-bottom: var(--space-4) !important;
}

.hero-title .italic-accent {
  display: inline-block;
  color: var(--color-primary);
  font-style: italic;
  font-family: "Oswald", serif;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0;
}

.hero-meta {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-white);
  opacity: 0.7;
  z-index: 1;
}

.hero-meta-line {
  width: 32px;
  height: 1px;
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .hero-meta { display: none; }
}

/* ============================================
   Larger pull-quote with outlined accent
   ============================================ */
.pull-quote-text {
  font-size: clamp(3rem, 8vw, 7rem) !important;
}

/* ============================================
   Bug fixes
   ============================================ */

/* Form success: animate from invisible → visible (was display:none which doesn't transition) */
.form-success {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease),
              visibility 0s linear var(--duration-slow),
              transform var(--duration-slow) var(--ease);
  pointer-events: none;
}

.form-success.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--duration-slow) var(--ease),
              visibility 0s,
              transform var(--duration-slow) var(--ease);
  pointer-events: auto;
}

/* Two-paths merge — fix vertical line on desktop */
.two-paths-merge::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--color-primary), var(--color-dark));
}

/* Footer brand image — uses transparent PNG so it sits cleanly on dark */
.footer-brand img {
  background: transparent !important;
  padding: 0 !important;
  filter: none !important;
  height: 80px;
  width: auto;
}

/* Sponsor on dark footer: near-white card so the multi-color logo reads */
.footer-sponsor {
  margin-top: var(--space-6);
}

.footer-sponsor-label {
  font-size: var(--text-sm) !important;
  letter-spacing: 0.25em !important;
  color: var(--color-gray-500) !important;
  margin-bottom: var(--space-3) !important;
  display: block;
}

.footer-sponsor-logo {
  background: #f4f4f5 !important;
  border: 0 !important;
  padding: var(--space-5) var(--space-6) !important;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 360px !important;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.footer-sponsor-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
/* Force logo to fill the container height — using object-fit so aspect is kept
   regardless of the source PNG's intrinsic dimensions */
.footer-sponsor-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .footer-sponsor-logo { height: 160px; }
}

/* Cinematic hero: darken & desaturate image, then layer multiple gradients
   for legible white text + premium movie-poster mood. */
.hero-bg img {
  filter: brightness(0.5) contrast(1.08) saturate(0.85);
}

.hero-bg::after {
  background:
    /* radial spotlight on text area, fading to dark elsewhere */
    radial-gradient(ellipse 90% 70% at 30% 55%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.85) 100%),
    /* horizontal: dark left → semi-transparent right, anchors the text column */
    linear-gradient(95deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.35) 100%),
    /* vertical bottom vignette so the CTAs and scroll cue read */
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.85) 100%) !important;
}

/* Body paragraph in hero — make sure it stays legible on any image */
.hero-text {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ============================================
   Image-stack (overlapping images, editorial)
   ============================================ */
.image-stack {
  position: relative;
  aspect-ratio: 4/5;
}

.image-stack-main,
.image-stack-accent {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image-stack-main {
  inset: 0 var(--space-12) var(--space-12) 0;
  z-index: 1;
}

.image-stack-accent {
  bottom: 0;
  right: 0;
  width: 60%;
  aspect-ratio: 4/5;
  z-index: 2;
  border: 8px solid var(--color-white);
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--color-gray-200);
}

.image-stack-main img,
.image-stack-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .image-stack-main { inset: 0 var(--space-8) var(--space-8) 0; }
  .image-stack-accent { border-width: 4px; }
}

/* ============================================
   Section number badge (editorial)
   ============================================ */
/* Ensure parent positioning so the absolute badges anchor correctly,
   and clip any decorative element that escapes the section bounds. */
section:has(> .section-num),
section:has(> .section-label-side) {
  position: relative;
  overflow: hidden;
}

.section-num {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--color-primary);
  opacity: 0.22;
  pointer-events: none;
  line-height: 1;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* Dark section variants: stroke must be light, not red — fixes invisible 02/05 */
.section-dark .section-num,
.stats-strip .section-num,
.mission-strip .section-num,
.pull-quote .section-num,
.editorial-section .section-num,
.cta-banner .section-num,
.footer .section-num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.55) !important;
  color: rgba(255, 255, 255, 0.04) !important;
  opacity: 0.7 !important;
}

@media (max-width: 768px) { .section-num { display: none; } }

/* ============================================
   Reveal upgrade — bigger initial offset for drama
   ============================================ */
.reveal-cinematic {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}
.reveal-cinematic.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-cinematic { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Hero scroll: a bit fancier
   ============================================ */
.hero-scroll {
  bottom: var(--space-6) !important;
}

/* ============================================
   Nav: hide wordmark on mobile (logo carries brand) — bug fix #9
   ============================================ */
@media (max-width: 767px) {
  .nav-logo span {
    display: none;
  }
  .nav-logo img {
    height: 44px;
  }
}

/* ============================================
   Editorial photo grade — applied to all content imagery so the site
   reads as one cohesive series rather than a stock moodboard
   ============================================ */
.gallery-item img,
.product-image img,
.split-image img,
.image-stack-main img,
.image-stack-accent img,
.program-card-bg img,
.program-detail-image img,
.page-hero-bg img,
.pull-quote-bg img,
.about-story img {
  filter: contrast(1.06) saturate(0.85) brightness(0.96);
}

/* ============================================
   A11y polish: visible focus, skip-link reveal, aria-hidden defaults
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-white) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.5) !important;
}

.skip-link:focus {
  top: 0 !important;
}

/* ============================================
   Inputs: 16px on mobile prevents iOS zoom; native select chevron + brand
   ============================================ */
@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
  }
}

.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: var(--color-white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C8102E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
  padding-right: 44px !important;
  border: 1.5px solid var(--color-gray-200) !important;
  border-radius: var(--radius-sm) !important;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

/* Number spinner — strip native arrows; use inputmode=numeric to keep mobile keypad */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================
   Stats row — already 2x2 below 900px in cinematic.css; mobile tightening
   ============================================ */
@media (max-width: 480px) {
  .stat-number { font-size: clamp(3rem, 14vw, 4rem); }
}

/* ============================================
   Hero h1 — softer mobile cap so it doesn't overflow on phones
   ============================================ */
@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.75rem, 11vw, 4rem) !important;
    line-height: 0.92 !important;
  }
}

/* ============================================
   INQUIRE button — guarantee 48px tap target
   ============================================ */
.product-inquire {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 768px) {
  .product-inquire { min-height: 48px; padding: 0.85rem 1.25rem; }
}

/* ============================================
   FAQ — entire row clickable, generous tap target
   ============================================ */
.faq-summary {
  min-height: 64px;
  padding-block: var(--space-5) !important;
}

/* ============================================
   Marquee — pause on touch, lock font on mobile
   ============================================ */
@media (max-width: 768px) {
  .marquee-item { font-size: clamp(1.5rem, 7vw, 2.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
}

/* ============================================
   Sponsor strip (compact credit alternative to the big sponsor card)
   ============================================ */
.sponsor-strip {
  background: var(--color-light);
  border-block: 1px solid var(--color-gray-200);
  padding-block: var(--space-10);
}

.sponsor-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  text-align: center;
}

.sponsor-strip-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gray-500);
  font-weight: 600;
}

/* Force logo to substantial size so it's a real credit, not a stamp */
.sponsor-strip-logo {
  width: auto !important;
  height: 110px !important;
  max-height: none !important;
  max-width: 280px !important;
  object-fit: contain;
  transition: transform var(--duration) var(--ease), filter var(--duration) var(--ease);
  filter: contrast(1.05);
  display: block;
}

.sponsor-strip-logo:hover {
  transform: scale(1.04);
}

.sponsor-strip-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sponsor-strip { padding-block: var(--space-8); }
  .sponsor-strip-logo { height: 80px !important; max-width: 220px !important; }
}

@media (max-width: 600px) {
  .sponsor-strip-inner { flex-direction: column; gap: var(--space-4); }
  .sponsor-strip-tagline { display: none; }
  .sponsor-strip-logo { height: 70px !important; }
}

/* ============================================
   Mask-reveal headline (audit recommendation)
   Wraps each word in an overflow:hidden mask, slides up from below.
   ============================================ */
[data-mask-reveal] {
  display: block;
}

[data-mask-reveal] .mask-word {
  display: inline-block;
  /* Clip ONLY on Y axis so the slide-up animation works, but italic glyph
     overhang and descenders aren't cropped horizontally. */
  overflow-y: hidden;
  overflow-x: visible;
  vertical-align: bottom;
  padding-bottom: 0.05em;
  /* Give italic letters horizontal breathing room without shifting layout */
  padding-inline: 0.08em;
  margin-inline: -0.08em;
}

[data-mask-reveal] .mask-word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: mask-rise 1.1s cubic-bezier(0.7, 0, 0.2, 1) both;
  animation-delay: calc(var(--mi, 0) * 80ms + 250ms);
  will-change: transform;
}

@keyframes mask-rise {
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-mask-reveal] .mask-word > span {
    transform: none;
    animation: none;
  }
}

/* (removed mix-blend-mode override — replaced with dual-tone shadow approach above
    that's guaranteed visible on every background) */

/* ============================================
   GLOBAL GRAIN / NOISE TEXTURE — fixed overlay across the entire page.
   Lowered to z-index: 1 (above bg, below content) so the cursor (z:9999),
   modals, and nav header stay above it. pointer-events:none keeps it inert.
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

@media (prefers-reduced-motion: reduce) {
  body::before { opacity: 0.04; }
}

@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
}

/* Sections with their own atmospheric photo / blend should isolate so the
   grain only mixes against them, not the entire underlying stack. */
.hero,
.editorial-section,
.pull-quote,
.page-hero {
  isolation: isolate;
}

/* ============================================
   SECTION DIVIDER — diagonal cut between dark/light blocks
   ============================================ */
.diag-divider {
  position: relative;
  height: 80px;
  margin-top: -1px;
  margin-bottom: -1px;
  pointer-events: none;
}

.diag-divider-down-dark {
  background: var(--color-dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

.diag-divider-up-dark {
  background: var(--color-dark);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.diag-divider-down-light {
  background: var(--color-light);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

/* ============================================
   ON THE PITCH — full-bleed editorial section
   ============================================ */
.editorial-section {
  position: relative;
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
  isolation: isolate;
}

.editorial-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.editorial-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) saturate(0.6) brightness(0.55) !important;
}

.editorial-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.5) 60%, rgba(13,13,13,0.85) 100%),
    linear-gradient(180deg, rgba(13,13,13,0.6) 0%, transparent 30%, transparent 70%, rgba(13,13,13,0.92) 100%);
  z-index: -1;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: end;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  min-height: 60vh;
}

@media (min-width: 900px) {
  .editorial-grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
}

.editorial-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--color-white);
  letter-spacing: 0;
  max-width: 14ch;
}

.editorial-headline .accent {
  color: var(--color-primary);
  font-style: italic;
  font-family: "Oswald", serif;
  font-weight: 500;
  text-transform: lowercase;
}

.editorial-meta {
  display: grid;
  gap: var(--space-5);
  border-left: 2px solid var(--color-primary);
  padding-left: var(--space-6);
  font-family: var(--font-heading);
}

.editorial-meta-row {
  display: grid;
  gap: 4px;
}

.editorial-meta-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gray-500);
  font-weight: 500;
}

.editorial-meta-value {
  font-size: var(--text-lg);
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================
   STATS — make the numbers MASSIVE for visual impact
   ============================================ */
.stat-number {
  font-size: clamp(4.5rem, 12vw, 11rem) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9 !important;
}

@media (max-width: 600px) {
  .stat-number { font-size: clamp(3.5rem, 16vw, 5rem) !important; }
}

.stats-grid {
  gap: clamp(2rem, 4vw, 4rem) !important;
}

.stat {
  border-left-width: 4px !important;
  padding-left: var(--space-6) !important;
}

.stat-label {
  font-size: var(--text-base) !important;
  letter-spacing: 0.18em !important;
  margin-top: var(--space-4) !important;
  color: var(--color-gray-300) !important;
}

/* ============================================
   HORIZONTAL PHOTO STRIP — auto-scrolling row of training moments
   ============================================ */
.photo-strip {
  background: var(--color-dark);
  padding-block: var(--space-12);
  overflow: hidden;
  border-block: 1px solid var(--color-charcoal);
  position: relative;
}

.photo-strip-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: photo-scroll 60s linear infinite;
  will-change: transform;
}

.photo-strip:hover .photo-strip-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .photo-strip-track { animation: none; }
}

.photo-strip-item {
  flex-shrink: 0;
  width: 360px;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--color-charcoal);
}

@media (max-width: 768px) {
  .photo-strip-item { width: 240px; height: 320px; }
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.85) brightness(0.92) !important;
  transition: transform var(--duration-slow) var(--ease), filter var(--duration) var(--ease);
}

.photo-strip-item:hover img {
  transform: scale(1.06);
  filter: contrast(1.1) saturate(1) brightness(1) !important;
}

.photo-strip-item-meta {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  font-size: var(--text-xs);
}

.photo-strip-item-num {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0;
  color: var(--color-primary);
  line-height: 1;
}

@keyframes photo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   ASYMMETRIC HERO LAYOUT (replaces full-bleed image)
   ============================================ */
.hero-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-asymmetric {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-16);
  }
}

.hero-collage {
  position: relative;
  aspect-ratio: 4/5;
  display: none;
}

@media (min-width: 1024px) {
  .hero-collage { display: block; }
}

.hero-collage-main,
.hero-collage-accent,
.hero-collage-tag {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-collage-main {
  inset: 0 var(--space-12) var(--space-16) 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-collage-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.85) brightness(0.85) !important;
}

.hero-collage-accent {
  bottom: 0;
  right: 0;
  width: 55%;
  aspect-ratio: 4/5;
  border: 4px solid var(--color-dark);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.hero-collage-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9) brightness(0.95) !important;
}

.hero-collage-tag {
  top: var(--space-4);
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: var(--space-3) var(--space-5);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 8px 24px rgba(200,16,46,0.35);
}

.hero-collage-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-white);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* When hero uses asymmetric layout, push text size up */
.hero-asymmetric .hero-title {
  font-size: clamp(3rem, 8vw + 1rem, 8rem) !important;
  margin-bottom: var(--space-5) !important;
}

.hero-asymmetric .hero-subtitle {
  letter-spacing: 0.2em;
  font-size: clamp(1rem, 1.4vw + 0.5rem, 1.4rem);
}
