/* ============================================================
   CEO Life Chapter Landing
   Vanilla CSS, mobile-first. Brand sampled from ceo.life.
   ============================================================ */

:root {
  --c-red:           #d40924;
  --c-red-hover:     #e62b34;
  --c-red-soft:      rgba(212, 9, 36, 0.12);
  --c-black:         #000000;
  --c-near-black:    #0a0a0a;
  --c-deep:          #131316;
  --c-ink:           #101828;
  --c-ink-soft:      #2c3543;
  --c-mute:          #606369;
  --c-mute-2:        #8a8d92;
  --c-white:         #ffffff;
  --c-paper:         #f5f5f5;
  --c-paper-warm:    #fafaf9;
  --c-line:          #e6e6e6;
  --c-line-strong:   #cfcfcf;
  --c-line-dark:     rgba(255, 255, 255, 0.08);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-eyebrow:  0.6875rem;
  --fs-meta:     0.8125rem;
  --fs-body:     1rem;
  --fs-lead:     clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  --fs-h4:       clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-h3:       clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --fs-h2:       clamp(2rem, 1.5rem + 2.6vw, 3.75rem);
  --fs-h1:       clamp(2.5rem, 1.7rem + 5.2vw, 5.5rem);
  --fs-display:  clamp(2.25rem, 1.6rem + 3.4vw, 3.75rem);
  --fs-stat:     clamp(2.5rem, 1.9rem + 3vw, 4.5rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem; --sp-10: 8rem;

  --container-max: 80rem;
  --container-pad: clamp(1.25rem, 4.5vw, 2.5rem);
  --section-pad-y: clamp(5rem, 11vw, 10rem);

  --radius-sm: 4px; --radius-md: 12px; --radius-lg: 22px;
  --shadow-cta: 0 8px 24px rgba(212, 9, 36, 0.28);
  --shadow-card: 0 1px 2px rgba(16,24,40,0.05), 0 24px 56px rgba(16,24,40,0.10);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms var(--ease);
  --t: 240ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { max-width: 100%; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-red);
  margin: 0 0 var(--sp-4);
}

/* ----- Reveal animations DISABLED per Chud feedback ------- */
/* Fade-up scroll reveals were removed. Content displays normally. */
[data-reveal] { opacity: 1; transform: none; }

/* ----- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), transform var(--t-fast), box-shadow var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--c-red); color: var(--c-white); box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--c-red-hover); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(212, 9, 36, 0.36); }
.btn--primary:active { transform: translateY(0); }
.btn--lg { padding: 1.0625rem 2.125rem; font-size: 0.9375rem; letter-spacing: 0.12em; }

/* ----- Announcement bar (marquee on mobile, static on tablet+) -- */
.announce {
  background: var(--c-red);
  color: var(--c-white);
  overflow: hidden;
  position: relative;
}
.announce__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 3rem;
  padding: 0.625rem 0;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}
.announce__item {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.announce__item strong { font-weight: 700; }
.announce__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / 3)); }
}
@media (min-width: 760px) {
  .announce__track {
    width: 100%;
    justify-content: center;
    animation: none;
    transform: none !important;
    gap: 0.75rem;
    padding: 0.625rem var(--container-pad);
  }
  .announce__item:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .announce__track { animation: none; transform: none; }
}

/* ----- Masthead -------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-3) var(--container-pad);
  background: rgba(0,0,0,0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-line-dark);
  color: var(--c-white);
  transition: padding var(--t);
}
.masthead.is-scrolled { padding-block: 0.5rem; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; gap: 4px; flex: none; }
.brand__wordmark { font-size: 1.125rem; font-weight: 300; letter-spacing: 0.04em; color: var(--c-white); }
.brand__wordmark strong { font-weight: 800; }
.brand__tagline {
  font-size: 0.5625rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.masthead__nav { display: none; gap: var(--sp-7); align-items: center; flex: 1; justify-content: center; }
.masthead__nav a {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
  transition: color var(--t-fast);
}
.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms var(--ease);
}
.masthead__nav a:hover { color: var(--c-white); }
.masthead__nav a:hover::after { transform: scaleX(1); }
.masthead__nav a.is-active {
  color: var(--c-white);
}
.masthead__nav a.is-active::after {
  transform: scaleX(1);
}
.masthead__cta { padding: 0.625rem 1.125rem; font-size: 0.75rem; flex: none; }

/* ----- HERO: cinematic full-bleed ------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--c-near-black);
  color: var(--c-white);
  min-height: clamp(680px, 96vh, 1000px);
  padding: clamp(8rem, 18vh, 12rem) var(--container-pad) clamp(5rem, 10vh, 7rem);
  overflow: hidden;
}
.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
}
.hero__bg img {
  animation: hero-kenburns 22s var(--ease) both;
  transform-origin: 60% 40%;
}
@keyframes hero-kenburns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 30% 50%, rgba(0,0,0,0.45), rgba(0,0,0,0.78) 60%, rgba(0,0,0,0.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.85) 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.hero__inner > * {
  max-width: 56rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin: 0 0 var(--sp-6);
  font-weight: 600;
}
.hero__pin {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 4px rgba(212, 9, 36, 0.16);
  animation: pulse 2.4s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 9, 36, 0.16); }
  50%      { box-shadow: 0 0 0 9px rgba(212, 9, 36, 0); }
}
.hero__title {
  font-size: clamp(2.75rem, 1.8rem + 5.4vw, 6rem);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--c-white);
  text-wrap: balance;
}
.hero__title-em { display: inline; color: var(--c-white); font-weight: 300; }
.hero__title-em em {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--c-red);
  letter-spacing: -0.02em;
}
.hero__lead {
  margin: clamp(1.5rem, 3vh, 2rem) 0 var(--sp-6);
  color: rgba(255,255,255,0.78);
  font-size: var(--fs-lead);
  text-wrap: pretty;
  max-width: 36rem;
  font-weight: 400;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
}
.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  transition: color var(--t-fast), gap var(--t);
}
.hero__secondary:hover { color: var(--c-white); gap: 10px; }
.hero__inline-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: max-content;
}
.hero__inline-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  display: inline-flex;
  align-items: flex-start;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
}
.stat-num__sup {
  font-size: 0.45em;
  font-weight: 600;
  margin-left: 2px;
  margin-top: 0.18em;
  color: var(--c-red);
}
.stat-lbl {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.stat-icon { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
  .hero__pin { animation: none; }
}

/* ----- Pillars: set-piece -------------------------------- */
.pillars {
  background: var(--c-black);
  color: var(--c-white);
  padding: clamp(5rem, 10vw, 9rem) var(--container-pad);
  border-block: 1px solid var(--c-line-dark);
  position: relative;
  overflow: hidden;
}
.pillars::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(212,9,36,0.10), transparent 70%);
  pointer-events: none;
}
.pillars__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}
.pillars__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-red);
  margin: 0 0 var(--sp-7);
  font-weight: 700;
}
.pillars__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}
.pillars__line {
  font-size: clamp(1.5rem, 0.9rem + 3.6vw, 4.5rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c-white);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(0.4rem, 1.2vw, 1.25rem) clamp(0.5rem, 2vw, 2rem);
  text-wrap: balance;
  /* Subtle entrance: each line slides in from the left, staggered.
     Pure CSS, no scroll-lock. Plays once on initial mount (after the user
     has scrolled to the section it will already be in its final state). */
  opacity: 0;
  transform: translateX(-24px);
  animation: pillars-in 720ms var(--ease) both;
  animation-timeline: view();
  animation-range: entry 5% cover 25%;
}
@keyframes pillars-in {
  to { opacity: 1; transform: translateX(0); }
}
/* Stagger via per-line delay on the keyframes */
.pillars__line:nth-child(1) { animation-delay: 0ms; }
.pillars__line:nth-child(2) { animation-delay: 120ms; }
.pillars__line:nth-child(3) { animation-delay: 240ms; }
@supports not (animation-timeline: view()) {
  /* Fallback: just show */
  .pillars__line { opacity: 1; transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pillars__line { opacity: 1; transform: none; animation: none; }
}
@media (max-width: 559px) {
  .pillars__line em { display: block; flex-basis: 100%; padding-left: 2.6rem; }
  .pillars__num { min-width: 2rem; }
}
.pillars__line em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--c-red);
  letter-spacing: -0.01em;
}
.pillars__num {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* ----- WHY: editorial pull ------------------------------- */
.why {
  padding: var(--section-pad-y) var(--container-pad);
  background: var(--c-white);
}
.why__inner { max-width: 50rem; margin: 0 auto; text-align: left; }
.why__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-red);
  margin: 0 0 var(--sp-5);
}
.why__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 var(--sp-6);
  text-wrap: balance;
}
.why__body {
  font-size: var(--fs-lead);
  color: var(--c-ink-soft);
  margin: 0 0 var(--sp-7);
  max-width: 42rem;
}
.why__body em { font-style: italic; color: var(--c-ink); }
.why__pull {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 500;
  color: var(--c-ink);
  border-left: 3px solid var(--c-red);
  padding-left: var(--sp-5);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* ----- BENTO --------------------------------------------- */
.bento { padding: var(--section-pad-y) var(--container-pad); background: var(--c-paper-warm); }
.bento__head { max-width: 44rem; margin-bottom: var(--sp-7); }
.bento__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.bento__grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.tile {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--c-line-strong);
}
.tile__num {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-red);
  font-weight: 700;
  margin: 0 0 var(--sp-3);
}
.tile__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
}
.tile__copy { margin: 0; color: var(--c-mute); line-height: 1.6; }

.tile--feature {
  position: relative;
  min-height: 360px;
  color: var(--c-white);
  background: var(--c-near-black);
  border-color: var(--c-near-black);
}
.tile--feature .tile__bg, .tile--feature .tile__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--ease), filter var(--t);
}
.tile--feature:hover .tile__bg img { transform: scale(1.05); filter: brightness(0.85); }
.tile--feature .tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0.72) 100%);
  transition: background var(--t);
}
.tile--feature:hover .tile__scrim {
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.40) 50%, rgba(0,0,0,0.78) 100%);
}
.tile--feature .tile__body {
  position: relative;
  margin-top: auto;
  padding: var(--sp-6);
}
.tile--feature .tile__title { color: var(--c-white); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.tile--feature .tile__copy { color: rgba(255,255,255,0.82); }
.tile--feature .tile__num { color: var(--c-white); opacity: 0.85; }

.tile--media .tile__media { aspect-ratio: 16/10; overflow: hidden; }
.tile--media .tile__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.tile--media:hover .tile__media img { transform: scale(1.04); }
.tile--media .tile__body { padding: var(--sp-6); }

.tile--list { background: var(--c-near-black); color: var(--c-white); border-color: var(--c-near-black); }
.tile--list .tile__title { color: var(--c-white); }
.tile--list .tile__num { color: var(--c-red); }
.tile__body--list { display: grid; gap: var(--sp-6); padding: var(--sp-7) var(--sp-6); }
.tile__list { display: grid; gap: var(--sp-3) var(--sp-7); grid-template-columns: 1fr; }
.tile__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.tile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-red);
}

/* ----- Big quote: full-bleed photo overlay --------------- */
.bigquote {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 64vh, 660px);
  padding: var(--sp-9) var(--container-pad);
  color: var(--c-white);
  overflow: hidden;
  text-align: center;
}
.bigquote__bg, .bigquote__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  filter: saturate(0.9);
}
.bigquote__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(0,0,0,0.35), rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.78));
}
.bigquote__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
}
.bigquote__mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(5rem, 4rem + 4vw, 8rem);
  line-height: 0.6;
  color: var(--c-red);
  margin: 0;
  height: 0.5em;
  font-weight: 300;
}
.bigquote__text {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.75rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--c-white);
  margin: 0;
  text-wrap: balance;
}
.bigquote__text em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}
.bigquote__attr {
  margin: var(--sp-3) 0 0;
  font-family: var(--font);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ----- Steps --------------------------------------------- */
.steps { padding: var(--section-pad-y) var(--container-pad); background: var(--c-paper-warm); }
.steps__head { max-width: 44rem; margin-bottom: var(--sp-7); }
.steps__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.steps__list { display: grid; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--c-line);
  transition: padding var(--t);
}
.step:last-child { border-bottom: 1px solid var(--c-line); }
.step:hover { padding-left: 0.5rem; }
.step__num {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--c-red);
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-2);
}
.step__copy { margin: 0; color: var(--c-mute); font-size: var(--fs-lead); }

/* ----- Stories: featured + thumb strip ------------------- */
.stories {
  padding: var(--section-pad-y) var(--container-pad);
  background: var(--c-near-black);
  color: var(--c-white);
}
.stories__head { max-width: 44rem; margin-bottom: var(--sp-7); }
.stories__head .section-eyebrow { color: var(--c-red); }
.stories__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--c-white);
  margin: 0;
}

/* Featured card: full-width hero-style video poster with overlay caption */
.story-feature {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-black);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: transform var(--t);
}
.story-feature:hover { transform: translateY(-3px); }
.story-feature__media, .story-feature__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.story-feature__media img {
  object-fit: cover;
  filter: brightness(0.78) saturate(1.05);
  transition: filter var(--t), transform 800ms var(--ease);
}
.story-feature:hover .story-feature__media img { filter: brightness(0.92) saturate(1.1); transform: scale(1.03); }
.story-feature__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.20) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 100%);
}
.story-feature__play {
  position: absolute;
  top: 50%;
  left: clamp(2rem, 8vw, 6rem);
  transform: translateY(-50%);
  width: clamp(64px, 8vw, 100px);
  height: clamp(64px, 8vw, 100px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.story-feature__play::after {
  content: "";
  width: 0; height: 0;
  border-left: clamp(18px, 1.6vw, 22px) solid var(--c-white);
  border-top: clamp(12px, 1vw, 14px) solid transparent;
  border-bottom: clamp(12px, 1vw, 14px) solid transparent;
  transform: translateX(3px);
}
.story-feature:hover .story-feature__play {
  background: var(--c-red);
  border-color: var(--c-red);
  transform: translateY(-50%) scale(1.05);
}

.story-feature__caption {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  max-width: min(48%, 32rem);
  text-align: right;
  display: grid;
  gap: var(--sp-3);
}
.story-feature__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.story-feature__live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 3px rgba(212, 9, 36, 0.25);
  animation: pulse 2.4s var(--ease) infinite;
}
.story-feature__quote {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.125rem, 0.95rem + 1vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin: 0;
}
.story-feature__attr {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin: 0;
}

/* Thumb strip: 3 thumbnails in a row below the feature */
.story-strip {
  display: grid;
  gap: var(--sp-4);
  margin: var(--sp-6) 0 0;
  list-style: none;
  padding: 0;
}
.story-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-black);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: transform var(--t);
}
.story-thumb:hover { transform: translateY(-2px); }
.story-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.4) brightness(0.78);
  transition: filter var(--t), transform 600ms var(--ease);
}
.story-thumb:hover img { filter: grayscale(0) brightness(0.95); transform: scale(1.04); }
.story-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background var(--t), border-color var(--t);
}
.story-thumb__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 12px solid var(--c-white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translateX(2px);
}
.story-thumb:hover .story-thumb__play {
  background: var(--c-red);
  border-color: var(--c-red);
}
.story-thumb__label {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

@media (min-width: 720px) {
  .story-strip { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}
@media (max-width: 559px) {
  .story-feature__caption {
    right: 1rem;
    bottom: 1rem;
    max-width: 70%;
  }
  .story-feature__quote { font-size: 1rem; }
  .story-feature__play { left: 50%; transform: translate(-50%, -50%); }
  .story-feature:hover .story-feature__play { transform: translate(-50%, -50%) scale(1.05); }
}

/* ----- FAQ ----------------------------------------------- */
.faq { padding: var(--section-pad-y) var(--container-pad); background: var(--c-white); }
.faq__inner { max-width: 50rem; margin: 0 auto; }
.faq__head { margin-bottom: var(--sp-7); }
.faq__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.faq__list { border-top: 1px solid var(--c-line); }
.faq__list details { border-bottom: 1px solid var(--c-line); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: color var(--t-fast);
}
.faq__list summary:hover { color: var(--c-red); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t);
  flex: none;
  margin-right: 4px;
}
.faq__list details[open] summary::after { transform: rotate(-135deg); }
.faq__list details p {
  margin: 0;
  padding: 0 0 var(--sp-5);
  color: var(--c-mute);
  font-size: var(--fs-lead);
  max-width: 44rem;
}

/* ----- Book: revealed moment ----------------------------- */
.book {
  padding: clamp(5rem, 10vw, 9rem) var(--container-pad);
  background: var(--c-near-black);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.book::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(212, 9, 36, 0.18), transparent 65%),
    radial-gradient(800px 400px at 50% 100%, rgba(212, 9, 36, 0.08), transparent 65%);
  pointer-events: none;
}
.book__inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.book__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-red);
  margin: 0 0 var(--sp-5);
  font-weight: 700;
}
.book__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--c-white);
  margin: 0;
  text-wrap: balance;
}
.book__title em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--c-white);
}
.book__lead {
  margin: var(--sp-5) auto 0;
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-lead);
  max-width: 40rem;
  font-weight: 400;
}
.book__assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  margin: var(--sp-7) 0 0;
  padding: var(--sp-5) 0;
  border-block: 1px solid rgba(255,255,255,0.10);
  list-style: none;
}
.book__assurances li {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.book__assurances li::before {
  content: "\2713";  /* check mark */
  display: inline-block;
  margin-right: 8px;
  color: var(--c-red);
  font-weight: 700;
}
.booking {
  margin: var(--sp-7) auto 0;
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius-lg);
  background: var(--c-black);
  padding: var(--sp-5);
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.booking__placeholder { text-align: center; padding: var(--sp-7); color: rgba(255,255,255,0.7); }
.booking__placeholder p { margin: 0 0 var(--sp-3); }
.booking__placeholder-fine {
  font-size: var(--fs-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
.booking iframe {
  width: 100%;
  border: 0;
  display: block;
  border-radius: var(--radius-md);
  background: var(--c-white);
}

/* ----- Footer (3 columns) -------------------------------- */
.site-footer {
  background: var(--c-black);
  color: rgba(255,255,255,0.72);
  padding: var(--sp-9) var(--container-pad) var(--sp-5);
  border-top: 1px solid var(--c-line-dark);
}
.site-footer__inner {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--c-line-dark);
}
.site-footer__col .brand__wordmark { font-size: 1.25rem; }
.site-footer__col .brand__tagline { color: rgba(255,255,255,0.55); margin-top: 6px; }
.site-footer__about { margin: var(--sp-5) 0 0; max-width: 28rem; line-height: 1.6; color: rgba(255,255,255,0.65); }
.site-footer__heading {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-red);
  font-weight: 700;
  margin: 0 0 var(--sp-4);
}
.site-footer__list { display: grid; gap: var(--sp-2); }
.site-footer__list a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9375rem;
  transition: color var(--t-fast);
}
.site-footer__list a:hover { color: var(--c-white); }
.site-footer__chapter {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-white);
  font-weight: 600;
}
.site-footer__fine { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin: 0; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}
.site-footer__copy, .site-footer__legal { margin: 0; }
.site-footer__legal { letter-spacing: 0.16em; text-transform: uppercase; }


/* ----- Responsive ---------------------------------------- */
@media (min-width: 720px) {
  /* Featured on its own row at native 16/10, then 3 thumbs in a row below */
  .stories__layout { grid-template-columns: 1fr; gap: var(--sp-5); }
  .story-thumbs { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
  .hero { padding-block: var(--sp-10); }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--sp-9); }
  .hero__visual { transform: rotate(-1.2deg); }
}
@media (min-width: 760px) {
  .masthead__nav { display: flex; }
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(260px, auto);
  }
  .tile--feature { grid-row: span 2; min-height: 540px; }
  .tile--list { grid-column: 1 / -1; }
  .tile__list { grid-template-columns: 1fr 1fr; }
  .tile__body--list { grid-template-columns: 1fr 1.4fr; align-items: center; padding: var(--sp-7); }
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; gap: var(--sp-9); }
}
@media (min-width: 1100px) {
  .step { grid-template-columns: 6rem 1fr; gap: var(--sp-7); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero__visual { transform: none !important; }
}

/* ----- Audience filter copy under bento list tile -------- */
.tile__filter {
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  line-height: 1.5;
  font-style: italic;
}

/* ----- Stat icons ---------------------------------------- */
.stat-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--c-red);
  flex: none;
}

/* ----- Video lightbox modal ------------------------------ */
.vlb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
  backdrop-filter: blur(6px);
}
.vlb[hidden] { display: none; }
.vlb.is-open { opacity: 1; pointer-events: auto; }
.vlb__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.vlb__frame {
  position: relative;
  width: min(100%, 1100px);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  z-index: 1;
}
.vlb__close {
  position: absolute;
  top: -44px;
  right: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background var(--t-fast), transform var(--t-fast);
}
.vlb__close:hover { background: var(--c-red-hover); transform: rotate(90deg); }
.vlb__player { width: 100%; height: 100%; }
.vlb__player iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 760px) {
  .vlb__close { top: -50px; right: 0; width: 40px; height: 40px; }
}

/* Scroll-lock when modal is open */
body.is-locked { overflow: hidden; }

/* ----- Section spacing audit (consistent rhythm) --------- */
/* All main sections use var(--section-pad-y). Verified: hero, pillars,
   why, bento, bigquote, steps, stories, faq, book all align. */



/* Outer section is tall; inner sticky container holds during the scroll;
   the track translates horizontally driven by scroll progress. */
.hgal {
  position: relative;
  background: var(--c-black);
  color: var(--c-white);
  /* On desktop, give the section enough vertical room for the horizontal pan */
  height: 320vh;
}
.hgal__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hgal__head {
  position: relative;
  z-index: 2;
  padding: var(--sp-7) var(--container-pad) var(--sp-5);
  display: flex;
  align-items: baseline;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.hgal__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-red);
  margin: 0;
  flex: none;
}
.hgal__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--c-white);
  margin: 0;
  flex: 1 1 auto;
}
.hgal__cue {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  align-self: center;
  white-space: nowrap;
}
.hgal__viewport {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hgal__track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 clamp(1.25rem, 4.5vw, 2.5rem);
  height: 100%;
  align-items: center;
  will-change: transform;
}
.hgal__card {
  position: relative;
  flex: none;
  height: clamp(56vh, 60vh, 72vh);
  aspect-ratio: 3/4;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-near-black);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hgal__card:nth-child(odd)  { aspect-ratio: 3/4; }
.hgal__card:nth-child(3n)   { aspect-ratio: 4/5; }
.hgal__card:nth-child(4n)   { aspect-ratio: 16/10; }
.hgal__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 600ms var(--ease);
  filter: brightness(0.92) saturate(1.05);
}
.hgal__card:hover img { transform: scale(1.03); filter: brightness(1) saturate(1.1); }
.hgal__card figcaption {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Progress bar at the bottom */
.hgal__progress {
  position: relative;
  z-index: 2;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin: var(--sp-5) clamp(1.25rem, 4.5vw, 2.5rem) var(--sp-7);
  overflow: hidden;
}
.hgal__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--c-red);
  transform-origin: left center;
  transform: scaleX(0);
}

/* === Scroll-driven horizontal translation (modern path) === */
@supports (animation-timeline: scroll()) {
  .hgal__track {
    animation: hgal-pan linear both;
    animation-timeline: scroll(root);
    /* Range: starts when section top hits viewport top, ends when section bottom leaves */
    animation-range: cover 0% cover 100%;
  }
  /* The translate distance is computed as: (track width - viewport width) negated.
     We approximate by translating the track based on its overflow. The track's
     intrinsic width depends on number of cards; we use a CSS variable to control. */
  @keyframes hgal-pan {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(-100% + 100vw), 0, 0); }
  }
  .hgal__bar {
    animation: hgal-bar linear both;
    animation-timeline: scroll(root);
    animation-range: cover 0% cover 100%;
  }
  @keyframes hgal-bar {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* === Fallback: native horizontal scroll-snap (Firefox + older) === */
@supports not (animation-timeline: scroll()) {
  .hgal { height: auto; }
  .hgal__sticky { position: relative; height: auto; }
  .hgal__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .hgal__viewport::-webkit-scrollbar { display: none; }
  .hgal__card { scroll-snap-align: center; height: clamp(56vh, 60vh, 70vh); }
  .hgal__progress { display: none; }
  .hgal__cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hgal { height: auto; }
  .hgal__sticky { position: relative; height: auto; }
  .hgal__viewport { overflow-x: auto; }
  .hgal__track { animation: none !important; transform: none !important; }
}

/* Mobile: drop sticky pin, use simple horizontal swipe */
@media (max-width: 759px) {
  .hgal { height: auto; }
  .hgal__sticky { position: relative; height: auto; }
  .hgal__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: var(--sp-5);
  }
  .hgal__viewport::-webkit-scrollbar { display: none; }
  .hgal__track {
    animation: none !important;
    transform: none !important;
    padding: 0 var(--sp-5);
    gap: var(--sp-4);
  }
  .hgal__card {
    scroll-snap-align: center;
    height: 70vh;
    flex: 0 0 80vw;
  }
  .hgal__progress { display: none; }
  .hgal__cue { display: none; }
}


/* Pattern: each item is position:absolute starting at left:100% with a
   staggered animation-delay computed from its --position. As the animation
   runs, the item slides from off-screen right to off-screen left. Two rails
   in opposite directions. Pause on hover or keyboard focus.
   Edges fade via mask-image so the loop hand-off stays invisible. */
.mq {
  background: var(--c-near-black);
  color: var(--c-white);
  padding: var(--sp-9) 0;
  overflow: hidden;
}
.mq__head {
  max-width: var(--container-max);
  margin: 0 auto var(--sp-6);
  padding: 0 var(--container-pad);
  display: flex;
  align-items: baseline;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.mq__head .section-eyebrow { color: var(--c-red); margin: 0; flex: none; }
.mq__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--c-white);
  margin: 0;
  flex: 1 1 auto;
}

/* Per-rail CSS variables. Set --width/--height/--quantity/--duration
   on the .mq__rail element via inline style (in HTML).
   --gap is the horizontal gap between items. */
.mq__rail {
  --width: clamp(220px, 28vw, 380px);
  --height: clamp(180px, 22vw, 300px);
  --gap: 1.25rem;
  width: 100%;
  height: var(--height);
  overflow: hidden;
  position: relative;
  margin: var(--sp-3) 0;
  /* Fade the edges so loop hand-off is invisible */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.mq__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.mq__item {
  width: var(--width);
  height: 100%;
  position: absolute;
  left: 100%;
  padding-right: var(--gap);
  /* Stagger so items distribute evenly across the rail */
  animation-delay: calc((var(--duration) / var(--quantity)) * (var(--position) - 1) - var(--duration));
}
.mq__rail--ltr .mq__item { animation: mqLTR var(--duration) linear infinite; }
.mq__rail--rtl .mq__item { animation: mqRTL var(--duration) linear infinite; }
@keyframes mqLTR {
  from { left: calc(var(--width) * -1); }
  to   { left: 100%; }
}
@keyframes mqRTL {
  from { left: 100%; }
  to   { left: calc((var(--width) + var(--gap)) * -1); }
}
.mq__rail:hover .mq__item,
.mq__rail:focus-within .mq__item {
  animation-play-state: paused;
}

.mq__card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  background: var(--c-deep);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 18px 48px rgba(0,0,0,0.35);
}
.mq__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter var(--t);
  filter: brightness(0.92) saturate(1.05);
}
.mq__card:hover img { transform: scale(1.04); filter: brightness(1) saturate(1.1); }
.mq__card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .mq__item { animation-play-state: paused !important; }
}

/* ===== Chapter gallery: pure CSS marquee, no JS ========== */
/* Pattern: each row contains the items rendered TWICE in a flex track.
   Track translates from 0 to -50% over duration, then loops. Because the
   second half is a copy of the first, the loop is visually seamless. */
.mq {
  background: var(--c-near-black);
  color: var(--c-white);
  padding: var(--sp-9) 0;
  overflow: hidden;
}
.mq__head {
  max-width: var(--container-max);
  margin: 0 auto var(--sp-6);
  padding: 0 var(--container-pad);
  display: flex;
  align-items: baseline;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.mq__head .section-eyebrow { color: var(--c-red); margin: 0; flex: none; }
.mq__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--c-white);
  margin: 0;
  flex: 1 1 auto;
}
.mq__rail {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: var(--sp-3) 0;
  /* Edge fade so the loop hand-off is invisible */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.mq__track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  padding: 0 0.625rem;
  will-change: transform;
}
.mq__track--ltr { animation: mq-ltr 60s linear infinite; }
.mq__track--rtl { animation: mq-rtl 60s linear infinite; }
@keyframes mq-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes mq-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.mq__rail:hover .mq__track,
.mq__rail:focus-within .mq__track {
  animation-play-state: paused;
}
.mq__card {
  flex: none;
  width: clamp(300px, 36vw, 540px);
  height: clamp(220px, 26vw, 380px);
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-deep);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 18px 48px rgba(0,0,0,0.35);
}
.mq__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter var(--t);
  filter: brightness(0.92) saturate(1.05);
}
.mq__card:hover img { transform: scale(1.04); filter: brightness(1) saturate(1.1); }
.mq__card figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 759px) {
  .mq__card { width: 78vw; height: 56vw; }
  .mq__track--ltr, .mq__track--rtl { animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  .mq__track--ltr, .mq__track--rtl { animation-play-state: paused !important; }
}


/* Each item is positioned at the centre of the ring then translated outward
   along its own axis (rotate, translate). Inner image counter-rotates at the
   same speed so it stays upright relative to viewer. */
.cg__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(140px, 17vw, 220px);
  height: clamp(180px, 22vw, 280px);
  margin: 0;
  transform-origin: 50% 50%;
  /* rotate to its slot, then translate up by ring radius */
  transform: translate(-50%, -50%) rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(min(82vw, 720px) / 2 * -0.78));
}
.cg__card {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-deep);
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 18px 40px rgba(0,0,0,0.55);
  margin: 0;
  /* Counter-rotate the card so the photo stays upright as the ring spins */
  animation: cg-counter 90s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes cg-counter {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.cg__stage:hover .cg__card,
.cg__stage:focus-within .cg__card {
  animation-play-state: paused;
}
.cg__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.05);
  transition: filter var(--t), transform var(--t);
}
.cg__card:hover img { filter: brightness(1) saturate(1.1); transform: scale(1.04); }
.cg__card figcaption {
  position: absolute;
  left: 8px; bottom: 8px;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  padding: 4px 7px;
  border-radius: 999px;
  font-weight: 600;
}

/* Centre logomark / quote */
.cg__core {
  position: relative;
  z-index: 2;
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  border-radius: 50%;
  background: rgba(212, 9, 36, 0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-3);
}
.cg__core::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.06);
}
.cg__core-mark {
  font-size: clamp(1rem, 1vw + 0.7rem, 1.375rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--c-white);
  display: block;
}
.cg__core-mark strong { font-weight: 800; }
.cg__core-tag {
  display: block;
  margin-top: 6px;
  font-size: 0.5625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

@media (max-width: 759px) {
  .cg__stage { width: 92vw; }
  .cg__item {
    width: clamp(100px, 22vw, 160px);
    height: clamp(130px, 28vw, 200px);
    transform: translate(-50%, -50%) rotate(calc(360deg / var(--count) * var(--i))) translateY(-36vw);
  }
  .cg__core { width: 28vw; height: 28vw; }
}
@media (prefers-reduced-motion: reduce) {
  .cg__ring, .cg__card { animation-play-state: paused !important; }
}

/* ----- Film grain overlay (very subtle, decorative) ------ */
/* Pure CSS using an inline SVG noise pattern. Stays under 1KB,
   adds the "expensive" texture without hurting performance. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
}
