/* ================================================================
   STORY Magazine G2 — Homepage
   Phase 4 — Homepage
   Implements: 01-HOMEPAGE.md, 10-RESPONSIVE.md, IMAGE-SYSTEM.md
   ================================================================= */

/* ----------------------------------------------------------------
   Lead / Hero
   Source: 01-HOMEPAGE.md §Lead
   Desktop: 50/50 split (black copy + media)
   Mobile: stacked, ~921 total
   ---------------------------------------------------------------- */
.story-home-lead {
  display: grid;
  background: var(--color-black);
  color: var(--color-text-inverted);
}

.story-home-lead-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
}

.story-home-lead-copy .story-meta {
  color: var(--color-text-inverted);
  opacity: 0.7;
  margin-bottom: 18px;
  font-weight: var(--font-weight-semibold);
  /* SCOPED BYLINE POLISH: hero byline weight 600, kept quiet (opacity 0.7). */
}

.story-home-lead-copy h1 {
  max-width: 600px;
  margin: 0 0 18px;
  font: var(--font-weight-light) 32px/36px var(--story-font);
  /* SOURCE: 01-HOMEPAGE.md §Lead
     "H1 is centred, Graphik Web 32/36/300, maximum 600px." */
}

.story-home-lead-copy h1 a {
  color: var(--color-text-inverted);
  text-decoration: none;
}

.story-home-lead-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 393 / 480;
  /* SOURCE: HOMEPAGE-AUTHORITY-CONFLICT-RESOLUTION.md (C6)
     Hero media wrapper ratio map:
     393/480 base -> 1/1 @640 -> 755/892 @1280 -> 960/990 @2560.
     Image composition (object-fit/object-position) unchanged (BUG-007). */
}

.story-home-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  /* SOURCE: IMAGE-SYSTEM.md §Hero Images
     Aspect ratio ~3:2, cover crop, centred. */
}

/* EE77: clear the absolute dark-hero header on phones, mirroring the
   approved EE74 article hero. The home header band is absolute over the
   lead (shell.css .story-home--lead-dark .story-header). Before EE77 the
   unrestrained 85px band over the base 64px copy padding put the H1 top
   at 64px, 21px UNDER the band bottom at 390 (measured); after the EE77
   shell compaction the band is 66px, so this 88px copy padding yields the
   same 22px clear gap EE74 delivers. Phone range only — tablet/desktop
   lead copy and ≥80rem desktop stay untouched. */
@media (max-width: 767.98px) {
  .story-home--lead-dark .story-home-lead-copy {
    padding-top: 88px;
  }
}

/* ----------------------------------------------------------------
   Paired Row
   Source: 01-HOMEPAGE.md §Paired rows
   Equal zero-gutter halves.
   Desktop media ratio ~120:121.
   White text surface: 40px top, 40px sides, ~70px bottom.
   Title: 18/22/500 uppercase.
   Deck/byline: 14/16/400 uppercase.
   10px gap below title grouping.
   ---------------------------------------------------------------- */
.story-pair {
  display: grid;
  gap: 0;
}

.story-pair .story-card {
  display: grid;
}

.story-pair .story-card-media {
  display: block;
  overflow: hidden;
}

.story-pair .story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  aspect-ratio: 120 / 121;
  /* SOURCE: 01-HOMEPAGE.md §Paired rows
     "Desktop media ratio is approximately 120:121." */
}

.story-pair .story-card-copy {
  padding: 20px 20px 50px;
  background: var(--color-white);
  color: var(--color-text);
  /* SOURCE: 10-RESPONSIVE.md archived map (C7)
     Pair copy padding: 20/20/50 base -> 20/20/70 @640 -> 40/40/70 @1280 -> 40/40/100 @1920. */
}

.story-pair .story-card-copy .story-label {
  margin-bottom: 10px;
}

.story-pair .story-card-title {
  margin: 0 0 10px;
  font: var(--font-story-title-weight) var(--font-story-title-size)/var(--font-story-title-leading) var(--story-font);
  text-transform: var(--font-story-title-transform);
  /* SOURCE: 01-HOMEPAGE.md §Paired rows
     "Title: 18/22/500 uppercase" */
}

.story-pair .story-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.story-pair .story-card-excerpt {
  margin: 0;
  font: var(--font-deck-weight) var(--font-deck-size)/var(--font-deck-leading) var(--story-font);
  text-transform: var(--font-deck-transform);
  color: var(--color-muted);
  /* SOURCE: 01-HOMEPAGE.md §Paired rows
     "Deck/byline: 14/16/400 uppercase" */
}

.story-pair .story-card-copy .story-meta {
  margin-top: 10px;
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
  /* SCOPED BYLINE POLISH: pair byline black, weight 600. */
}

/* ----------------------------------------------------------------
   Full Feature
   Source: 01-HOMEPAGE.md §Full feature
   Full-bleed media, centred copy surface, max 1116px.
   Copy padding: 40px top, 67px bottom.
   ---------------------------------------------------------------- */
.story-feature {
  position: relative;
  /* Positioning context for the approved feature composition. */
  text-align: center;
  background: var(--color-white);
}

.story-feature-media {
  display: block;
  overflow: hidden;
}

.story-feature-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 50% 50%;
  /* Full-bleed; natural height driven by image aspect ratio. */
}

.story-feature-copy {
  max-width: 1116px;
  margin: 0 auto;
  padding: 20px 20px 50px;
  /* SOURCE: 10-RESPONSIVE.md archived map (C7)
     Feature copy padding: 20/20/50 base -> 20/20/67 @640 -> 40/0/67 @1280 -> 40/0/76 @1920. */
}

.story-feature-copy h2 {
  max-width: 44rem;
  margin: 0 auto 12px;
  font: var(--font-story-title-weight) var(--font-story-title-size)/var(--font-story-title-leading) var(--story-font);
  text-transform: var(--font-story-title-transform);
}

.story-feature-copy h2 a {
  color: var(--color-text);
  text-decoration: none;
}

.story-feature-copy p {
  max-width: 40rem;
  margin: 0 auto;
  font: var(--font-deck-weight) var(--font-deck-size)/var(--font-deck-leading) var(--story-font);
  text-transform: var(--font-deck-transform);
  color: var(--color-muted);
}

.story-feature-copy .story-meta {
  margin-top: 12px;
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
  /* SCOPED BYLINE POLISH: feature byline black, weight 600. */
}

/* ----------------------------------------------------------------
   Closing Carousel
   Source: 01-HOMEPAGE.md §Closing carousel, 09-MOTION.md
   Geometry correction: a clean three-panel editorial triptych. Every
   slide shares ONE uniform basis per breakpoint — 100vw mobile / 50vw
   tablet / 33.3333vw desktop — so carousel.js slides by a full panel
   width (-index * slideWidth()) and every stepped position resolves to
   equal panels again. Panels are flush edge-to-edge, no gutters; each
   carries the category page's 1px neutral divider on its right edge
   (border-box, same language as listing.css .article-card-v2; inverted
   here for the black field). Image-only: no overlays, captions, labels.
   Transform 0.5s, settled 0.3s.
   Autoplay ~5.2s.
   Prev/next from 640px.
   Pagination at all widths.
   ---------------------------------------------------------------- */
.story-carousel {
  --rail-divider: rgba(255, 255, 255, 0.28);
  position: relative;
  background: var(--color-black);
  color: var(--color-text-inverted);
  overflow: hidden;
}

.story-carousel-viewport {
  overflow: hidden;
}

.story-carousel-track {
  display: flex;
  transition: transform var(--duration-carousel) var(--ease-in-out);
  touch-action: pan-y;
}

.story-carousel-panel {
  position: relative;
  flex: 0 0 100vw;
  height: 500px;
  overflow: hidden;
  border-right: 1px solid var(--rail-divider);
}

.story-carousel-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* One link per panel keeps the `.story-carousel-panel a` count invariant
   relied on by the shutter / no-JS QA suites. */
.story-carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--color-text-inverted);
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

/* Tablet: paired rows split, feature aspect shifts, carousel controls appear */
@media (min-width: 640px) {
  .story-pair {
    grid-template-columns: 1fr 1fr;
  }

  .story-pair .story-card-copy {
    padding: 20px 20px 70px;
  }

  .story-feature-media img {
    aspect-ratio: 16 / 10;
  }

  .story-feature-copy {
    padding: 20px 20px 67px;
  }

  .story-home-lead-media {
    aspect-ratio: 1 / 1;
  }

  .story-carousel-panel {
    flex-basis: 50vw;
    height: 650px;
  }
}

/* Small desktop: lead splits, feature becomes 3:2, carousel widens */
@media (min-width: 1024px) {
  .story-home-lead {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(700px, 58vw, 842px);
    /* SOURCE: 01-HOMEPAGE.md §Geometry
       Lead splits at 1024. */
  }

  .story-home-lead-copy {
    padding: 64px 40px;
  }

  .story-home-lead-media {
    align-self: start;
    /* C6: media wrapper height is ratio-driven (1/1 from 1024 to 1279);
       container geometry only - image fit/composition untouched (BUG-007). */
  }

  .story-feature-media img {
    aspect-ratio: 3 / 2;
  }

  .story-carousel-panel {
    flex-basis: 33.3333vw;
    height: 910px;
    /* SOURCE: 01-HOMEPAGE.md §Geometry
       Carousel 910px at 1440. */
  }
}

/* Small desktop+: 3 equal triptych panels inherited from 1024; 910px tall (D1/D2) */
@media (min-width: 1280px) {
  .story-home-lead-media {
    aspect-ratio: 755 / 892;
  }

  .story-pair .story-card-copy {
    padding: 40px 40px 70px;
  }

  .story-feature-copy {
    padding: 40px 0 67px;
  }
}

/* Large desktop: lead copy padding increases */
@media (min-width: 1440px) {
  .story-home-lead-copy {
    padding: 64px 64px;
  }
}

/* Desktop: H1 64/64/300 max 655; carousel viewport-height minus footer (D2/D3) */
@media (min-width: 1920px) {
  .story-home-lead-copy h1 {
    max-width: 655px;
    font: var(--font-weight-light) 64px/64px var(--story-font);
    /* SOURCE: HOMEPAGE-RUNTIME-FORENSICS-v2 §4 Hero contract
       H1 is 64/64/300, maximum 655px from 1920. */
  }

  .story-pair .story-card-copy {
    padding: 40px 40px 100px;
  }

  .story-feature-copy {
    padding: 40px 0 76px;
  }

  .story-carousel-panel {
    flex-basis: 33.3333vw;
    height: calc(100vh - var(--bottom-nav-height-desktop));
    /* SOURCE: 01-HOMEPAGE.md §Geometry
       "Carousel height remains calc(100vh - 90px)" at 1920. */
  }
}

/* Ultra-wide: hero media wrapper 960/990 (C6 archived ratio map) */
@media (min-width: 2560px) {
  .story-home-lead-media {
    aspect-ratio: 960 / 990;
  }
}

/* ----------------------------------------------------------------
   Print
   ---------------------------------------------------------------- */
@media print {
  .story-carousel {
    display: none;
  }
}
/* Production closing rail: native access remains available with or without JS. */
.story-home .story-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
.story-home .story-carousel-track {
  transition: none;
  touch-action: auto;
}
.story-home .story-carousel-viewport:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
/* EE72 swiper-CSS-mode pattern: native scroll stays functional, scrollbar UI hidden.
   Removes the 17px scrollbar gutter that appeared below images in the no-JS state. */
.story-home .story-carousel-viewport {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.story-home .story-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.story-home .story-carousel-active .story-carousel-panel,
.story-home .story-carousel-active .story-carousel-panel img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
@media (hover: hover) and (pointer: fine) {
  .story-home .story-carousel-active .story-carousel-viewport {
    cursor: grab;
  }
  .story-home .story-carousel-active .story-carousel-track.is-dragging {
    cursor: grabbing;
  }
}
/* JS-active slider: carousel.js adds .story-carousel-active; the rail then owns the
   track transform (native overflow stays as the no-JS fallback above). */
.story-home .story-carousel-active .story-carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
}
.story-home .story-carousel-active .story-carousel-track {
  transition: transform var(--duration-carousel) var(--ease-in-out);
  touch-action: pan-y;
}
.story-home .story-carousel-active .story-carousel-track.is-dragging {
  transition: none;
}
.story-home .story-carousel-active .story-carousel-track.is-settling {
  transition: transform var(--duration-carousel-settled) ease;
}
/* V1.0.2 rail entrance: one lateral settle (~0.6s) on first visibility.
   carousel.js adds .is-entering, then settles the same offset to zero.
   No fade/zoom/scale/bounce — transform-only, geometry untouched. */
.story-home .story-carousel-active .story-carousel-track.is-entering {
  transition: transform var(--duration-carousel-entrance) var(--ease-in-out);
}
/* V1.0.2 autoplay step settle (~0.6s per spec 500–800ms). */
.story-home .story-carousel-active .story-carousel-track.is-settling.is-autoplay {
  transition: transform var(--duration-carousel-autoplay) var(--ease-in-out);
}

/* ----------------------------------------------------------------
   Composition V2 (experimental) — V8 build
   Scoped to .story-home--v2 from composition-v2.php; .story-home alone
   is never matched, so current.php behaviour is untouched.
   SOURCE: story-homepage-v2-editorial-bridge-v8.html
   (authoritative prototype). Type stays on STORY G2 faces (Graphik
   Web, loaded weights only — 400/500/600; the prototype's 700 kicker
   maps to the heaviest loaded 600). Sizes/geometry/timing follow V8:
   Hero very large (no deck), Feature large centered secondary over the
   V8 editorial bridge, Pair large editorial with equalized copy rows.
   The V6.6 stacking anchors (.story-feature,
   .story-pair:not(#story-pair-closing), #story-pair-closing,
   .story-carousel) are untouched; THE EDIT is not rendered.
   The editorial bridge is a STATIC negative margin on .story-feature
   (-56px/-40px/-28px) — NO z-index anywhere: the sheet engine hands
   off by class + paint order, and the feature's white background
   (base .story-feature) paints the sheet.
   ---------------------------------------------------------------- */

/* V2 kicker: V8 small uppercase label (clamp 12–14px, heaviest loaded
   weight 600, .085em) wherever .story-label appears inside V2. */
.story-home--v2 .story-label {
  font-size: clamp(12px, 0.82vw, 14px);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.085em;
}

/* --- Lead / Hero: V8 editorial copy panel ------------------------ */
/* G2 50/50 lead geometry kept (split at 1024, EE77 phone clearance,
   ratio-driven media); the copy panel gains kicker + dominant H1 +
   byline, LEFT-aligned on the black panel. V8 carries NO hero excerpt
   by design — h1 flows straight into "BY [Author]". */
.story-home--v2 .story-home-lead-copy {
  align-items: flex-start;
  text-align: left;
}

.story-home--v2 .story-home-lead-copy .story-label {
  margin: 0 0 18px;
  color: var(--color-text-inverted);
}

.story-home--v2 .story-home-lead-copy h1 {
  max-width: 9.4ch;
  margin: 0;
  font: var(--font-weight-normal) clamp(62px, 6.75vw, 104px)/0.92 var(--story-font);
  letter-spacing: -0.045em;
}

.story-home--v2 .story-home-lead-copy .story-meta {
  margin: 24px 0 0;
}

/* Phone: V8 767 values — flex-start stack, EE77 header clearance
   mirrored as 88px top, dominant H1, 520px+ media. No deck. */
@media (max-width: 767.98px) {
  .story-home--v2 .story-home-lead-copy {
    justify-content: flex-start;
    min-height: 390px;
    padding: 88px 20px 54px;
  }

  .story-home--v2 .story-home-lead-copy h1 {
    font-size: clamp(52px, 12.7vw, 70px);
    line-height: 0.93;
    max-width: 9ch;
  }
}

/* Tablet portrait (768–1023): still stacked, V8 1023 values. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .story-home--v2 .story-home-lead-copy {
    justify-content: flex-start;
    min-height: 440px;
    padding-top: 88px;
    padding-bottom: 58px;
  }
}

/* Desktop split: vertical copy padding from the prototype. */
@media (min-width: 1024px) {
  .story-home--v2 .story-home-lead-copy {
    padding: clamp(72px, 8vw, 124px) 40px;
  }
}

/* --- Feature: V8 reduced band + editorial bridge ------------------ */
/* V8 bridge: the feature band slides UP over the Hero by a static
   negative margin (-56px desktop / -40px tablet / -28px phone) with
   zero top padding. NO z-index — the sheet engine (stacking.js) hands
   off Feature -> Pair 2 by class + paint order, and the feature's
   white background (base .story-feature) paints the sheet. */
.story-home--v2 .story-feature {
  margin-top: -56px;
  padding-top: 0;
}

.story-home--v2 .story-feature-media {
  height: 68vw;
  min-height: 300px;
}

.story-home--v2 .story-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .story-home--v2 .story-feature {
    margin-top: -40px;
  }
}

@media (min-width: 768px) {
  .story-home--v2 .story-feature-media {
    height: min(58vw, 680px);
    min-height: 420px;
  }
}

.story-home--v2 .story-feature-copy {
  padding: clamp(34px, 3.2vw, 48px) clamp(20px, 3.2vw, 48px) clamp(72px, 7vw, 108px);
}

.story-home--v2 .story-feature-copy .story-label {
  margin: 0 0 18px;
}

.story-home--v2 .story-feature-copy h2 {
  max-width: none;
  margin: 0 auto;
  font: var(--font-weight-normal) clamp(46px, 4.7vw, 74px)/0.98 var(--story-font);
  letter-spacing: -0.04em;
  text-transform: none;
}

/* V8 excerpt: sentence case (override base deck transform), measure
   36rem/31rem, muted. */
.story-home--v2 .story-feature-copy .story-card-excerpt {
  margin: 20px auto 0;
  max-width: 36rem;
  font: var(--font-weight-normal) clamp(17px, 1.28vw, 20px)/1.5 var(--story-font);
  color: var(--color-muted);
  text-transform: none;
  text-wrap: pretty;
}

.story-home--v2 .story-feature-copy .story-meta {
  margin-top: 22px;
}

@media (max-width: 767.98px) {
  .story-home--v2 .story-feature {
    margin-top: -28px;
  }

  .story-home--v2 .story-feature-copy {
    padding: 26px 20px 56px;
  }

  .story-home--v2 .story-feature-copy h2 {
    font-size: clamp(43px, 10.7vw, 56px);
    line-height: 0.98;
  }

  .story-home--v2 .story-feature-copy .story-card-excerpt {
    font-size: 16.5px;
    line-height: 1.5;
    max-width: 30rem;
  }
}

/* --- Paired rows: V8 editorial grid ------------------------------ */
/* 1/1.08 media + large editorial h3 + REAL excerpt + byline. Copy
   rows equalize via explicit grid rows (label / title / excerpt /
   byline) so the two cards of a pair stay aligned — no fixed pixel
   heights. The 1/1.08 box is LOCKED ON THE MEDIA WRAPPER (not the
   img): for a replaced element the intrinsic ratio otherwise wins,
   and unequal natural ratios would push the two cards' title rows
   apart. The img fills the locked box via width/height 100% +
   object-fit: cover. G2 keeps the row single-column below 640; the
   1px rule language (top of the section, between the two cards)
   appears only where the row actually splits into two columns.

   The base .story-card is display:grid, so when the .story-pair row
   stretches both cards to equal height, the taller card's surplus
   would be distributed INTO the grid tracks (align-content: normal
   behaves as stretch) — inflating the media row beyond the 1/1.08
   box and pushing that card's label/title rows down. align-content:
   start keeps the tracks at intrinsic size, so surplus stays at the
   bottom of the shorter card exactly like the V8 block layout. */
.story-home--v2 .story-pair .story-card {
  align-content: start;
}

.story-home--v2 .story-pair .story-card-media {
  aspect-ratio: 1 / 1.08;
}

.story-home--v2 .story-pair .story-card-media img {
  aspect-ratio: auto;
}

.story-home--v2 .story-pair .story-card-copy {
  display: grid;
  grid-template-rows: auto minmax(3.05em, auto) minmax(4.7em, auto) auto;
  align-content: start;
  padding: clamp(25px, 2.4vw, 36px) clamp(20px, 3.2vw, 48px) clamp(56px, 5vw, 82px);
}

.story-home--v2 .story-pair .story-card-copy .story-label {
  align-self: start;
  margin-bottom: 18px;
}

.story-home--v2 .story-pair .story-card-title {
  align-self: start;
  margin: 0;
  font: var(--font-weight-normal) clamp(32px, 3.15vw, 50px)/1 var(--story-font);
  letter-spacing: -0.038em;
  text-transform: none;
}

/* V8 excerpt inside pair copy: sentence case, clamp 3 lines, muted. */
.story-home--v2 .story-pair .story-card-excerpt {
  align-self: start;
  margin: 20px 0 0;
  max-width: 31rem;
  font: var(--font-weight-normal) clamp(17px, 1.28vw, 20px)/1.48 var(--story-font);
  color: var(--color-muted);
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-home--v2 .story-pair .story-card-copy .story-meta {
  align-self: start;
  margin-top: 22px;
}

@media (max-width: 767.98px) {
  .story-home--v2 .story-pair .story-card-copy {
    padding: 18px 16px 38px;
    grid-template-rows: auto minmax(4.15em, auto) minmax(6.2em, auto) auto;
  }

  .story-home--v2 .story-pair .story-card-title {
    font-size: clamp(28px, 7.1vw, 39px);
  }

  .story-home--v2 .story-pair .story-card-excerpt {
    font-size: 15px;
    line-height: 1.48;
    margin-top: 16px;
    -webkit-line-clamp: 4;
  }

  .story-home--v2 .story-pair .story-card-copy .story-meta {
    font-size: 11px;
    margin-top: 18px;
  }
}

/* V8 ≤1023: feature h2 / pair h3 wrap naturally, balanced, 12ch. */
@media (max-width: 1023.98px) {
  .story-home--v2 .story-feature-copy h2,
  .story-home--v2 .story-pair .story-card-title {
    white-space: normal;
    text-wrap: balance;
    max-width: 12ch;
  }
}

@media (min-width: 640px) {
  .story-home--v2 .story-pair {
    border-top: 1px solid var(--color-border-subtle);
  }

  .story-home--v2 .story-pair .story-card + .story-card {
    border-left: 1px solid var(--color-border-subtle);
  }
}

/* ============================================================
   Continuous Editorial Canvas (experimental composition)
   Geometry source: story-homepage-continuous-editorial-canvas-v11
   (V10/V11 refinements are the final authority, superseding the
   V9 base sheet within this composition).
   Token mapping: V11 ink/paper/muted/rule/soft → G2 --story-*
   tokens; display/meta type → --story-font (Graphik Web only;
   Spezia is reserved and not loaded). V11 font-size rhythm uses
   the theme's loaded weights (600 stands in for V11's 700).
   All rules are scoped to .story-home--continuous-canvas; nothing
   here may touch the other two compositions.
   Grid refinement (shared-grid pass): the six modules now share ONE
   12-column master grid — repeat(12, minmax(0, 1fr)) with
   --story-canvas-gutter — and module zones are placed with grid-column
   spans (hero 7/5, feature 8/4, portrait 5/7, diptych 4/4/4,
   panorama/caption bands 4/8). Tablet simplifies where a desktop split
   gets narrow (hero 6/6, feature & portrait stack, diptych 3/3 + copy
   band); mobile is a single column. No arbitrary % or fr split remains.
   ============================================================ */

.story-home--continuous-canvas {
  --story-canvas-gutter: clamp(20px, 3.2vw, 52px);
  background: var(--story-paper);
  color: var(--story-ink);
}

.story-home--continuous-canvas h1,
.story-home--continuous-canvas h2 {
  margin: 0;
  font-family: var(--story-font);
  font-weight: var(--font-weight-normal);
  letter-spacing: -0.045em;
}

/* Editorial labels (kickers) and bylines within the canvas. */
.story-home--continuous-canvas .story-label {
  font-size: clamp(12px, 0.82vw, 14px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.085em;
}

.story-home--continuous-canvas .story-meta {
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
}

.story-home--continuous-canvas .story-label,
.story-home--continuous-canvas .story-meta {
  margin-top: 0;
  margin-bottom: 0;
}

.story-home--continuous-canvas .excerpt {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.5;
  color: var(--story-muted);
  max-width: 35rem;
}

/* Media boxes are fixed cells; images scale only inside them
   (geometry-safe motion — boxes never move). */
.story-home--continuous-canvas .cover-media,
.story-home--continuous-canvas .feature-media,
.story-home--continuous-canvas .panorama-media,
.story-home--continuous-canvas .portrait-media,
.story-home--continuous-canvas .diptych-media,
.story-home--continuous-canvas .caption-media {
  display: block;
  overflow: hidden;
  min-width: 0;
}

/* Grid text zones must never force their track wider than the shared
   12 columns; min-width: 0 keeps long headlines inside the grid cell
   while overflow-wrap handles word-level breaks. */
.story-home--continuous-canvas .cover-copy,
.story-home--continuous-canvas .feature-copy,
.story-home--continuous-canvas .panorama-meta,
.story-home--continuous-canvas .panorama-story,
.story-home--continuous-canvas .portrait-copy,
.story-home--continuous-canvas .diptych-copy,
.story-home--continuous-canvas .caption-copy > div:first-child,
.story-home--continuous-canvas .caption-side {
  min-width: 0;
}

.story-home--continuous-canvas .cover-media img,
.story-home--continuous-canvas .feature-media img,
.story-home--continuous-canvas .panorama-media img,
.story-home--continuous-canvas .portrait-media img,
.story-home--continuous-canvas .diptych-media img,
.story-home--continuous-canvas .caption-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 1100ms cubic-bezier(.22, .61, .36, 1);
}

/* 01 COVER — asymmetric, cinematic lead. THE HERO HAS NO CATEGORY. */
.story-home--continuous-canvas .cover {
  min-height: clamp(780px, 94vh, 1060px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--story-canvas-gutter);
  background: var(--story-ink);
  color: var(--story-white);
}

.story-home--continuous-canvas .cover a {
  color: var(--story-white);
}

.story-home--continuous-canvas .cover-media {
  grid-column: 1 / 8;
  min-height: clamp(780px, 94vh, 1060px);
}

.story-home--continuous-canvas .cover-copy {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 118px clamp(36px, 4.25vw, 72px) clamp(72px, 8.5vh, 118px);
}

.story-home--continuous-canvas .cover h1 {
  max-width: 8.4ch;
  font-size: clamp(78px, 7.85vw, 150px);
  line-height: 0.875;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--story-white);
}

.story-home--continuous-canvas .cover h1 a {
  color: inherit;
}

.story-home--continuous-canvas .cover .hero-excerpt {
  margin: 30px 0 0;
  max-width: 32rem;
  font-size: clamp(17px, 1.08vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.story-home--continuous-canvas .cover .story-meta {
  margin-top: 27px;
  color: rgba(255, 255, 255, 0.85);
}

.story-home--continuous-canvas .cover .story-meta a {
  color: var(--story-white);
}

/* 02 FEATURE — tall image / quiet editorial field. */
.story-home--continuous-canvas .feature {
  min-height: clamp(610px, 69vh, 790px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--story-canvas-gutter);
  border-bottom: 1px solid var(--story-line);
}

.story-home--continuous-canvas .feature-media {
  grid-column: 1 / 9;
  min-height: clamp(610px, 69vh, 790px);
}

.story-home--continuous-canvas .feature-copy {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 6vw, 88px) clamp(42px, 4.8vw, 76px);
}

.story-home--continuous-canvas .feature .story-label {
  margin-bottom: 18px;
}

.story-home--continuous-canvas .feature h2 {
  max-width: 12ch;
  font-size: clamp(52px, 4.9vw, 88px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.story-home--continuous-canvas .feature .excerpt {
  margin: 25px 0 0;
  max-width: 31rem;
}

.story-home--continuous-canvas .feature .story-meta {
  margin-top: 24px;
}

/* 03 PANORAMA — image as landscape, typography as a separate band. */
.story-home--continuous-canvas .panorama {
  border-bottom: 1px solid var(--story-line);
}

.story-home--continuous-canvas .panorama-media {
  height: clamp(410px, 41vw, 590px);
}

.story-home--continuous-canvas .panorama-copy {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--story-canvas-gutter);
  align-items: start;
  padding: clamp(40px, 4.4vw, 66px) var(--story-canvas-gutter) clamp(44px, 4.8vw, 72px);
  text-align: left;
}

.story-home--continuous-canvas .panorama-meta {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-home--continuous-canvas .panorama-story {
  grid-column: 5 / 13;
  max-width: 62rem;
}

.story-home--continuous-canvas .panorama-story h2 {
  font-size: clamp(48px, 4.8vw, 86px);
  line-height: 0.94;
  text-align: left;
  overflow-wrap: break-word;
}

.story-home--continuous-canvas .panorama-story .excerpt {
  margin: 24px 0 0;
  max-width: 34rem;
}

/* 04 PORTRAIT — strong 2/3 photography, narrow copy field. */
.story-home--continuous-canvas .portrait {
  min-height: clamp(560px, 63vh, 710px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--story-canvas-gutter);
  background: var(--story-soft);
  border-bottom: 1px solid var(--story-line);
}

.story-home--continuous-canvas .portrait-copy {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(52px, 6vw, 92px) clamp(34px, 4.5vw, 72px);
}

.story-home--continuous-canvas .portrait-media {
  grid-column: 6 / 13;
  min-height: clamp(560px, 63vh, 710px);
}

.story-home--continuous-canvas .portrait .story-label {
  margin-bottom: 18px;
}

.story-home--continuous-canvas .portrait h2 {
  max-width: 9.5ch;
  font-size: clamp(48px, 4.7vw, 84px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.story-home--continuous-canvas .portrait .excerpt {
  margin: 24px 0 0;
}

.story-home--continuous-canvas .portrait .story-meta {
  margin-top: 23px;
}

/* 05 DIPTYCH — photography-led spread; copy lives in the central seam.
   ONE story: both image cells are this same story's photographs. */
.story-home--continuous-canvas .diptych {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--story-canvas-gutter);
  min-height: 720px;
  border-bottom: 1px solid var(--story-line);
}

.story-home--continuous-canvas .diptych-media {
  grid-column: span 4;
  min-height: 720px;
}

.story-home--continuous-canvas .diptych-copy {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 50px clamp(28px, 3vw, 52px);
  background: var(--story-paper);
}

.story-home--continuous-canvas .diptych .story-label {
  margin-bottom: 18px;
}

.story-home--continuous-canvas .diptych-copy h2 {
  max-width: 9ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(52px, 4.8vw, 78px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.story-home--continuous-canvas .diptych .excerpt {
  max-width: 29rem;
  margin: 26px auto 0;
  font-size: clamp(18px, 1.3vw, 21px);
}

.story-home--continuous-canvas .diptych .story-meta {
  margin-top: 22px;
}

/* 06 FULL-BLEED / CAPTION — image dominates, white caption band beneath. */
.story-home--continuous-canvas .caption-story {
  border-bottom: 1px solid var(--story-line);
}

.story-home--continuous-canvas .caption-media {
  height: clamp(520px, 55vw, 780px);
}

.story-home--continuous-canvas .caption-copy {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--story-canvas-gutter);
  align-items: start;
  padding: clamp(48px, 5vw, 78px) var(--story-canvas-gutter) clamp(62px, 6vw, 96px);
  text-align: left;
}

.story-home--continuous-canvas .caption-copy > div:first-child {
  grid-column: 1 / 9;
  max-width: 56rem;
}

.story-home--continuous-canvas .caption-copy h2 {
  font-size: clamp(50px, 5vw, 90px);
  line-height: 0.94;
  text-align: left;
  overflow-wrap: break-word;
}

.story-home--continuous-canvas .caption-side {
  grid-column: 9 / 13;
  padding-top: 4px;
}

.story-home--continuous-canvas .caption-side .excerpt {
  margin: 20px 0 0;
  max-width: 34rem;
}

.story-home--continuous-canvas .caption-side .story-meta {
  margin-top: 24px;
}

/* Geometry-safe interaction: media changes internally; boxes never move.
   Scoped to the six canvas media wrappers only — never the shared rail. */
.story-home--continuous-canvas .motion-visible .cover-media img,
.story-home--continuous-canvas .motion-visible .feature-media img,
.story-home--continuous-canvas .motion-visible .panorama-media img,
.story-home--continuous-canvas .motion-visible .portrait-media img,
.story-home--continuous-canvas .motion-visible .diptych-media img,
.story-home--continuous-canvas .motion-visible .caption-media img {
  transform: scale(1.014);
}

@media (hover: hover) {
  .story-home--continuous-canvas .cover:hover .cover-media img,
  .story-home--continuous-canvas .feature:hover .feature-media img,
  .story-home--continuous-canvas .panorama:hover .panorama-media img,
  .story-home--continuous-canvas .portrait:hover .portrait-media img,
  .story-home--continuous-canvas .diptych:hover .diptych-media img,
  .story-home--continuous-canvas .caption-story:hover .caption-media img {
    transform: scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-home--continuous-canvas .cover-media img,
  .story-home--continuous-canvas .feature-media img,
  .story-home--continuous-canvas .panorama-media img,
  .story-home--continuous-canvas .portrait-media img,
  .story-home--continuous-canvas .diptych-media img,
  .story-home--continuous-canvas .caption-media img {
    transition: none !important;
    transform: none !important;
  }
}

/* Tablet */
@media (max-width: 1023.98px) {
  /* Cover keeps the shared 12-column grid as a 6/6 split — a
     comfortable copy width at 768–1023 with no new arbitrary ratio. */
  .story-home--continuous-canvas .cover {
    min-height: 780px;
  }

  .story-home--continuous-canvas .cover-media {
    grid-column: 1 / 7;
    min-height: 780px;
  }

  .story-home--continuous-canvas .cover-copy {
    grid-column: 7 / 13;
    padding: 104px 34px 66px;
  }

  .story-home--continuous-canvas .cover h1 {
    font-size: clamp(62px, 8.5vw, 86px);
    max-width: 8.6ch;
  }

  /* Feature stacks on tablet: the desktop 8/4 copy field is too
     narrow at 768–1023. Expressed as one 6-column row. */
  .story-home--continuous-canvas .feature {
    min-height: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .story-home--continuous-canvas .feature-media {
    grid-column: 1 / -1;
    min-height: 560px;
  }

  .story-home--continuous-canvas .feature-copy {
    grid-column: 1 / -1;
    padding: clamp(48px, 6vw, 66px) clamp(28px, 4vw, 44px);
  }

  /* Portrait stacks on tablet (soft panel first as media, copy below). */
  .story-home--continuous-canvas .portrait {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-home--continuous-canvas .portrait-copy {
    grid-column: 1 / -1;
    order: 2;
    min-height: 400px;
  }

  .story-home--continuous-canvas .portrait-media {
    grid-column: 1 / -1;
    order: 1;
    min-height: 620px;
  }

  /* Diptych: two photographs side by side, copy becomes its own band
     below — 3/3 within the shared 6-column grid. */
  .story-home--continuous-canvas .diptych {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: auto;
  }

  .story-home--continuous-canvas .diptych-media {
    grid-column: span 3;
    min-height: 560px;
  }

  .story-home--continuous-canvas .diptych-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 390px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .story-home--continuous-canvas .cover {
    min-height: 740px;
    grid-template-columns: 1fr;
  }

  .story-home--continuous-canvas .cover-copy {
    padding: 108px 20px 52px;
  }

  .story-home--continuous-canvas .cover h1 {
    font-size: clamp(56px, 15vw, 76px);
    max-width: 8.7ch;
  }

  .story-home--continuous-canvas .cover .hero-excerpt {
    margin-top: 23px;
    max-width: 30rem;
    font-size: 16px;
  }

  .story-home--continuous-canvas .cover .story-meta {
    margin-top: 21px;
  }

  .story-home--continuous-canvas .feature {
    min-height: auto;
  }

  .story-home--continuous-canvas .feature-media {
    min-height: 420px;
  }

  .story-home--continuous-canvas .feature h2 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .story-home--continuous-canvas .panorama-media {
    height: 70vw;
    min-height: 300px;
  }

  .story-home--continuous-canvas .panorama-copy {
    padding: 34px 20px 42px;
  }

  .story-home--continuous-canvas .panorama-meta {
    flex-direction: row;
  }

  .story-home--continuous-canvas .panorama-story h2 {
    font-size: clamp(44px, 12vw, 62px);
  }

  .story-home--continuous-canvas .portrait {
    min-height: auto;
  }

  .story-home--continuous-canvas .portrait-copy {
    min-height: 370px;
    padding: 44px 20px 50px;
  }

  .story-home--continuous-canvas .portrait-media {
    min-height: 500px;
  }

  .story-home--continuous-canvas .diptych-media {
    min-height: 400px;
  }

  .story-home--continuous-canvas .diptych-copy {
    min-height: 360px;
    padding: 44px 20px 50px;
  }

  .story-home--continuous-canvas .caption-media {
    height: 74vw;
    min-height: 350px;
  }

  .story-home--continuous-canvas .caption-copy {
    padding: 38px 20px 50px;
  }

  .story-home--continuous-canvas .caption-copy h2 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .story-home--continuous-canvas .excerpt {
    font-size: 16px;
  }

  /* Single-column resets: every module flows as one column; all
     grid-column spans collapse to the full track. */
  .story-home--continuous-canvas .cover-media,
  .story-home--continuous-canvas .cover-copy,
  .story-home--continuous-canvas .feature-media,
  .story-home--continuous-canvas .feature-copy,
  .story-home--continuous-canvas .panorama-meta,
  .story-home--continuous-canvas .panorama-story,
  .story-home--continuous-canvas .portrait-copy,
  .story-home--continuous-canvas .portrait-media,
  .story-home--continuous-canvas .diptych-media,
  .story-home--continuous-canvas .diptych-copy,
  .story-home--continuous-canvas .caption-copy > div:first-child,
  .story-home--continuous-canvas .caption-side {
    grid-column: 1 / -1;
  }

  .story-home--continuous-canvas .feature,
  .story-home--continuous-canvas .panorama-copy,
  .story-home--continuous-canvas .diptych,
  .story-home--continuous-canvas .caption-copy {
    grid-template-columns: 1fr;
  }

  .story-home--continuous-canvas .diptych {
    min-height: auto;
  }

  .story-home--continuous-canvas .diptych-copy {
    grid-row: auto;
  }
}

/* ================================================================
   EDITORIAL GRIDLINE
   ============================================================ */

.story-home--editorial-gridline {
  --gridline-pad: clamp(18px, 2.4vw, 40px);
  --gridline-meta: clamp(11px, 0.8vw, 14px);
  --gridline-body: clamp(15px, 1.1vw, 19px);
}

/* One calm master seam: exact 50/50 everywhere a split appears. */
.story-home--editorial-gridline .gridline-hero,
.story-home--editorial-gridline .gridline-feature,
.story-home--editorial-gridline .gridline-mirror,
.story-home--editorial-gridline .gridline-caption-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

/* Media zones: fixed layout boxes; the image adapts inside. */
.story-home--editorial-gridline .gridline-media {
  display: block;
  overflow: hidden;
  min-width: 0;
  background: var(--story-soft);
}
.story-home--editorial-gridline .gridline-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 950ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: scale(1);
}
.story-home--editorial-gridline .gridline-media:hover img,
.story-home--editorial-gridline .gridline-media:focus-visible img {
  transform: scale(1.012);
}

/* Split editorial copy: bottom-aligned, anchored, restrained. */
.story-home--editorial-gridline .gridline-hero-copy,
.story-home--editorial-gridline .gridline-feature-copy,
.story-home--editorial-gridline .gridline-mirror-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: var(--gridline-pad);
}

/* Hero — exact 50/50, media left. Dark panel, NO category. */
.story-home--editorial-gridline .gridline-hero {
  min-height: clamp(620px, 86vh, 960px);
  background: #000;
  color: #fff;
}
.story-home--editorial-gridline .gridline-hero-media {
  min-height: inherit;
}
.story-home--editorial-gridline .gridline-hero a {
  color: #fff;
}
.story-home--editorial-gridline .gridline-hero h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(52px, 6.3vw, 108px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}
.story-home--editorial-gridline .gridline-hero .gridline-excerpt {
  margin-top: 22px;
}
.story-home--editorial-gridline .gridline-hero .story-meta {
  margin-top: 18px;
  color: #fff;
}
.story-home--editorial-gridline .gridline-hero .story-meta a {
  color: #fff;
}

/* Feature — exact 50/50, copy left. Clear secondary lead. */
.story-home--editorial-gridline .gridline-feature {
  min-height: clamp(440px, 58vh, 600px);
  background: var(--story-paper);
}
.story-home--editorial-gridline .gridline-feature-media {
  min-height: inherit;
  height: clamp(440px, 58vh, 600px);
}
.story-home--editorial-gridline .gridline-feature-copy .story-label {
  margin-bottom: 18px;
}
.story-home--editorial-gridline .gridline-feature h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(36px, 4vw, 72px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}
.story-home--editorial-gridline .gridline-feature .gridline-excerpt {
  margin-top: 20px;
}
.story-home--editorial-gridline .gridline-feature .story-meta {
  margin-top: 16px;
}

/* Mirrored Feature — exact 50/50, media left; an echo of Feature. */
.story-home--editorial-gridline .gridline-mirror {
  min-height: clamp(380px, 50vh, 520px);
  background: var(--story-soft);
}
.story-home--editorial-gridline .gridline-mirror-media {
  min-height: inherit;
  height: clamp(380px, 50vh, 520px);
}
.story-home--editorial-gridline .gridline-mirror-copy .story-label {
  margin-bottom: 18px;
}
.story-home--editorial-gridline .gridline-mirror h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(32px, 3.4vw, 60px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}
.story-home--editorial-gridline .gridline-mirror .gridline-excerpt {
  margin-top: 20px;
}
.story-home--editorial-gridline .gridline-mirror .story-meta {
  margin-top: 16px;
}

/* Full-width moments: seam-breaking full-bleed media. */
.story-home--editorial-gridline .gridline-panorama-media {
  height: clamp(320px, 34vw, 520px);
}
.story-home--editorial-gridline .gridline-fullbleed-media {
  height: clamp(360px, 40vw, 620px);
}

/* Caption band — the two halves read as one print spread. */
.story-home--editorial-gridline .gridline-caption-split {
  background: var(--story-paper);
}
.story-home--editorial-gridline .gridline-caption-meta {
  align-self: start;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 38px) var(--gridline-pad);
}
.story-home--editorial-gridline .gridline-caption-meta .story-meta {
  margin-top: 10px;
}
.story-home--editorial-gridline .gridline-caption-story {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 38px) var(--gridline-pad);
}
.story-home--editorial-gridline .gridline-caption-story h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(28px, 2.9vw, 52px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}
.story-home--editorial-gridline .gridline-caption-story .gridline-excerpt {
  margin-top: 16px;
}

/* Gridline muted-kicker/byline/excerpt scale (scoped overrides). */
.story-home--editorial-gridline .story-label,
.story-home--editorial-gridline .story-meta {
  font-size: var(--gridline-meta);
  letter-spacing: 0.05em;
}
.story-home--editorial-gridline .gridline-excerpt {
  max-width: 36rem;
  font-size: var(--gridline-body);
  line-height: 1.45;
}

/* V3.1: headline undecorated all states; focus outline remains base.css. */
.story-home--editorial-gridline .gridline-hero h1 a,
.story-home--editorial-gridline .gridline-feature h2 a,
.story-home--editorial-gridline .gridline-mirror h2 a,
.story-home--editorial-gridline .gridline-caption-story h2 a {
  text-decoration: none;
}

/* Tablet: keep the 50/50 seam; type scales via vw clamps. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .story-home--editorial-gridline .gridline-hero {
    min-height: clamp(540px, 74vh, 680px);
  }
  .story-home--editorial-gridline .gridline-hero h1 {
    font-size: clamp(46px, 8.6vw, 84px);
  }
  .story-home--editorial-gridline .gridline-feature h2 {
    font-size: clamp(32px, 5.2vw, 56px);
  }
  .story-home--editorial-gridline .gridline-mirror h2 {
    font-size: clamp(28px, 4.4vw, 48px);
  }
  .story-home--editorial-gridline .gridline-caption-story h2 {
    font-size: clamp(25px, 3.9vw, 42px);
  }
}

/* Mobile: one column, stacked in partial author order. */
@media (max-width: 639.98px) {
  .story-home--editorial-gridline .gridline-hero,
  .story-home--editorial-gridline .gridline-feature,
  .story-home--editorial-gridline .gridline-mirror,
  .story-home--editorial-gridline .gridline-caption-split {
    grid-template-columns: 1fr;
  }
  .story-home--editorial-gridline .gridline-hero,
  .story-home--editorial-gridline .gridline-feature,
  .story-home--editorial-gridline .gridline-mirror {
    min-height: auto;
  }
  .story-home--editorial-gridline .gridline-hero-media {
    height: 96vw;
    min-height: 380px;
  }
  .story-home--editorial-gridline .gridline-feature-media,
  .story-home--editorial-gridline .gridline-mirror-media {
    height: 102vw;
    min-height: 400px;
  }
  .story-home--editorial-gridline .gridline-panorama-media {
    height: 68vw;
    min-height: 260px;
  }
  .story-home--editorial-gridline .gridline-fullbleed-media {
    height: 88vw;
    min-height: 360px;
  }
  .story-home--editorial-gridline .gridline-hero-copy,
  .story-home--editorial-gridline .gridline-feature-copy,
  .story-home--editorial-gridline .gridline-mirror-copy {
    padding: 26px 20px 36px;
  }
  .story-home--editorial-gridline .gridline-caption-meta {
    padding: 24px 20px 0;
  }
  .story-home--editorial-gridline .gridline-caption-story {
    padding: 18px 20px 32px;
  }
}

/* MOTION MAY CHANGE PERCEPTION. MOTION MUST NOT CHANGE GEOMETRY. */
@media (prefers-reduced-motion: reduce) {
  .story-home--editorial-gridline .gridline-media img {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   HOMEPAGE V8 (experimental composition)
   Geometry authority: story-homepage-v8-1-even-gallery-refined.html
   (V8.3 polish — hero copy centred, gallery switcher reduced, all equal
   tracks hardened to repeat(N, minmax(0, 1fr)) + min-width/min-height 0).
   Composition: Hero → Centered Feature → Cinematic strip (four frames)
   → Strict Even 2×2 Gallery → Closing Rail (shared component). FIXED
   SEQUENCE — no reordering. Scoped entirely to .story-home--homepage-v8;
   nothing here touches current/V2/continuous-canvas/gridline.
   Type stays on STORY G2 faces (Graphik Web, loaded weights 400/500/600;
   the prototype's 650 meta weight maps to the heaviest loaded 600 and its
   500 display weight to --font-weight-normal). Meta k/u/ls and excerpt
   size/leading follow the prototype per breakpoint.
   ============================================================ */

.story-home--homepage-v8 {
  --v8-pad: clamp(20px, 3vw, 48px);
  background: var(--story-paper);
  color: var(--story-ink);
}

.story-home--homepage-v8 h1,
.story-home--homepage-v8 h2 {
  margin: 0;
  font-family: var(--story-font);
  font-weight: var(--font-weight-normal);
  line-height: 0.91;
  letter-spacing: -0.055em;
}

/* Editorial labels and bylines: prototype meta scale (10–13px, heaviest
   loaded weight, wide tracking, uppercase) on every V8 field. */
.story-home--homepage-v8 .story-label,
.story-home--homepage-v8 .story-meta {
  font-size: clamp(10px, 0.72vw, 13px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.story-home--homepage-v8 .v8-excerpt {
  max-width: 31rem;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.44;
  color: var(--story-muted);
  text-transform: none;
}

/* Media zones: fixed layout boxes; the image adapts inside. The per-slot
   focal point arrives as an inline object-position from story_g2_v8_image()
   (EE72 container-owned cropping) — no CSS object-position here.
   V8.3 hardening: min-width/min-height 0 so media boxes never grow an
   equal grid track (images cannot drive track geometry). */
.story-home--homepage-v8 .v8-media {
  display: block;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.story-home--homepage-v8 .v8-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- HERO: exact 50/50, media left, CENTRED copy on black. ------
   THE ONLY PRIMARY H1 ON THE PAGE. Copy reads HEADLINE → EXCERPT →
   BY [Author]; NO category kicker. The whole editorial unit (H1 +
   excerpt + byline) is centred as one composition (both axes,
   text-align: center) inside a controlled max-width. */
.story-home--homepage-v8 .v8-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(700px, 90vh, 950px);
  background: #000;
  color: #fff;
}

.story-home--homepage-v8 .v8-hero > * {
  min-height: inherit;
}

.story-home--homepage-v8 .v8-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(52px, 6vw, 105px) var(--v8-pad);
  text-align: center;
}

.story-home--homepage-v8 .v8-hero a {
  color: #fff;
  text-decoration: none;
}

.story-home--homepage-v8 .v8-hero h1 {
  max-width: 8ch;
  font-size: clamp(58px, 6.5vw, 126px);
  overflow-wrap: break-word;
}

.story-home--homepage-v8 .v8-hero .v8-excerpt {
  margin-top: 24px;
  color: #fff;
}

.story-home--homepage-v8 .v8-hero .story-meta {
  margin-top: 18px;
  color: #fff;
}

.story-home--homepage-v8 .v8-hero .story-meta a {
  color: #fff;
}

/* --- FEATURE: exact 50/50, copy LEFT and centred inside its half. ------
   Copy reads KICKER → H2 → EXCERPT → BY [Author] (paper field). */
.story-home--homepage-v8 .v8-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(470px, 57vh, 600px);
  background: var(--story-paper);
}

.story-home--homepage-v8 .v8-feature-media {
  min-height: inherit;
}

.story-home--homepage-v8 .v8-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(36px, 4vw, 64px) var(--v8-pad);
  text-align: center;
}

.story-home--homepage-v8 .v8-feature-copy .story-label {
  margin-bottom: 16px;
}

.story-home--homepage-v8 .v8-feature h2 {
  max-width: 12ch;
  font-size: clamp(44px, 4.4vw, 78px);
  overflow-wrap: break-word;
}

.story-home--homepage-v8 .v8-feature h2 a {
  color: var(--story-ink);
  text-decoration: none;
}

.story-home--homepage-v8 .v8-feature .v8-excerpt {
  margin-top: 20px;
}

.story-home--homepage-v8 .v8-feature .story-meta {
  margin-top: 17px;
}

/* --- CINEMATIC: four equal 25% frames = one strip; copy centred below. 
   Copy reads KICKER → H2 → EXCERPT → BY [Author]. */
.story-home--homepage-v8 .v8-cinema {
  background: var(--story-paper);
}

.story-home--homepage-v8 .v8-frames {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: clamp(410px, 38vw, 650px);
}

.story-home--homepage-v8 .v8-frame + .v8-frame {
  border-left: 1px solid rgba(255, 255, 255, 0.75);
}

.story-home--homepage-v8 .v8-cinema-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 3.6vw, 54px) var(--v8-pad) clamp(42px, 4.6vw, 70px);
  text-align: center;
}

.story-home--homepage-v8 .v8-cinema-copy .story-label {
  margin-bottom: 14px;
}

.story-home--homepage-v8 .v8-cinema h2 {
  max-width: 15ch;
  font-size: clamp(38px, 3.7vw, 66px);
  overflow-wrap: break-word;
}

.story-home--homepage-v8 .v8-cinema h2 a {
  color: var(--story-ink);
  text-decoration: none;
}

.story-home--homepage-v8 .v8-cinema .v8-excerpt {
  margin-top: 18px;
  max-width: 34rem;
}

.story-home--homepage-v8 .v8-cinema .story-meta {
  margin-top: 16px;
}

/* --- GALLERY: strict even 2×2 finale (each cell an exact 25% of the
   section), compact story switcher at the exact centre seam, every cell a
   real navigable link. Hover/focus-visible scale the hovered image and dim
   the other three; the switcher is pointer-events:none (never blocks). */
.story-home--homepage-v8 .v8-gallery {
  position: relative;
  background: #000;
  color: #fff;
}

.story-home--homepage-v8 .v8-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: min(100vh, 980px);
  min-height: 760px;
}

.story-home--homepage-v8 .v8-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  cursor: pointer;
}

.story-home--homepage-v8 .v8-gallery-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.58);
}

.story-home--homepage-v8 .v8-gallery-item:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
}

.story-home--homepage-v8 .v8-gallery-item img {
  transform: scale(1.001);
  transition:
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.3s ease,
    opacity 0.3s ease;
}

.story-home--homepage-v8 .v8-gallery-item:hover img,
.story-home--homepage-v8 .v8-gallery-item:focus-visible img {
  transform: scale(1.022);
}

.story-home--homepage-v8 .v8-gallery-grid:has(.v8-gallery-item:hover) .v8-gallery-item:not(:hover) img,
.story-home--homepage-v8 .v8-gallery-grid:has(.v8-gallery-item:focus-visible) .v8-gallery-item:not(:focus-visible) img {
  filter: brightness(0.58);
}

.story-home--homepage-v8 .v8-gallery-info {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(30vw, 480px);
  min-height: 132px;
  padding: clamp(17px, 2vw, 30px) clamp(20px, 2.4vw, 38px);
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.story-home--homepage-v8 .v8-gallery-info .story-label {
  margin-bottom: 10px;
}

.story-home--homepage-v8 .v8-gallery-info h2 {
  max-width: 13ch;
  font-size: clamp(30px, 3.2vw, 56px);
  overflow-wrap: break-word;
}

.story-home--homepage-v8 .v8-gallery-info .story-meta,
.story-home--homepage-v8 .v8-gallery-hint {
  margin-top: 10px;
}

.story-home--homepage-v8 .v8-gallery-hint {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  opacity: 0.56;
}

/* Tablet portrait & below: the gallery switcher leaves the centre seam and
   flows below the grid (stays strict 2×2 above it). */
@media (max-width: 800px) {
  .story-home--homepage-v8 .v8-gallery-grid {
    height: auto;
    min-height: 0;
    grid-template-rows: repeat(2, 54vw);
  }

  .story-home--homepage-v8 .v8-gallery-info {
    position: static;
    transform: none;
    width: 100%;
    min-height: 0;
    padding: 26px 20px 30px;
  }

  .story-home--homepage-v8 .v8-gallery-info h2 {
    font-size: clamp(30px, 6.5vw, 48px);
  }
}

/* Phone: everything stacks to one column; the cinematic strip becomes a
   strict 2×2 of ALL four frames (2 equal cols × 2 equal rows, 1px
   separators); gallery cells stay 2×2 with their own fixed geometry. */
@media (max-width: 639px) {
  .story-home--homepage-v8 .v8-hero,
  .story-home--homepage-v8 .v8-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-home--homepage-v8 .v8-hero-media {
    height: 108vw;
    min-height: 420px;
  }

  .story-home--homepage-v8 .v8-hero-copy {
    min-height: 0;
    padding: 34px 20px 44px;
  }

  .story-home--homepage-v8 .v8-hero h1 {
    font-size: clamp(50px, 14vw, 72px);
  }

  .story-home--homepage-v8 .v8-feature-media {
    height: 112vw;
    min-height: 430px;
    order: 1;
  }

  .story-home--homepage-v8 .v8-feature-copy {
    order: 2;
    padding: 38px 20px 46px;
  }

  .story-home--homepage-v8 .v8-feature h2 {
    font-size: clamp(40px, 11vw, 60px);
  }

  .story-home--homepage-v8 .v8-frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 76vw;
    min-height: 300px;
  }

  .story-home--homepage-v8 .v8-frame + .v8-frame {
    border-left: 0;
  }

  .story-home--homepage-v8 .v8-frame:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.75);
  }

  .story-home--homepage-v8 .v8-frame:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  }

  .story-home--homepage-v8 .v8-cinema-copy {
    padding: 34px 20px 46px;
  }

  .story-home--homepage-v8 .v8-cinema h2 {
    font-size: clamp(36px, 10vw, 54px);
  }

  .story-home--homepage-v8 .v8-gallery-grid {
    grid-template-rows: repeat(2, 64vw);
  }

  .story-home--homepage-v8 .v8-gallery-info {
    padding: 24px 20px 28px;
  }

  .story-home--homepage-v8 .v8-gallery-info h2 {
    font-size: clamp(28px, 8vw, 40px);
  }
}

/* MOTION MAY CHANGE PERCEPTION. MOTION MUST NOT CHANGE GEOMETRY. */
@media (prefers-reduced-motion: reduce) {
  .story-home--homepage-v8 .v8-gallery-item img {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   HOMEPAGE V12 (experimental composition)
   Geometry authority: story-homepage-v12-final-bespoke-editorial-prototype.html.
   Composition: Hero (adaptive mood) → Centered Feature → Editorial
   Interlude (one uninterrupted photographic beat) → Strict 2×2 Story
   Intersection. FIXED SEQUENCE — no reordering. Scoped entirely to
   .story-home--homepage-v12; nothing here touches current/V2/
   continuous-canvas/gridline/V8. The Closing Rail is intentionally NOT
   closed (the shared modules/rail.php component is untouched).
   Type stays on STORY G2 faces (Graphik Web, loaded weights 400/500/600;
   the prototype's 650 meta weight maps to the heaviest loaded 600 and its
   500 display weight to --font-weight-normal). Meta k/u/ls and excerpt
   size/leading follow the V12 prototype per breakpoint.
   The hero backdrop is the adaptive mood palette (inline --v12-mood-bg /
   --v12-mood-fg emitted by the resolvers in inc/v12.php; assets/js/v12-hero.js
   derives the palette from the photograph when the mood is 'auto').
   ============================================================ */

.story-home--homepage-v12 {
  --v12-pad: clamp(20px, 3.2vw, 52px);
  background: var(--story-paper);
  color: var(--story-ink);
}

.story-home--homepage-v12 h1,
.story-home--homepage-v12 h2 {
  margin: 0;
  font-family: var(--story-font);
  font-weight: var(--font-weight-normal);
  line-height: 0.91;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

/* Editorial labels and bylines: prototype meta scale (10–13px, heaviest
   loaded weight, wide tracking, uppercase) on every V12 field. */
.story-home--homepage-v12 .story-label,
.story-home--homepage-v12 .story-meta {
  font-size: clamp(10px, 0.72vw, 13px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story-home--homepage-v12 .v12-excerpt {
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.48;
  color: var(--story-muted);
  text-transform: none;
}

/* Media zones: fixed layout boxes; the image adapts inside. The per-slot
   focal point arrives as an inline object-position from story_g2_v12_image()
   (container-owned cropping) — no CSS object-position here. */
.story-home--homepage-v12 .v12-media {
  display: block;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.story-home--homepage-v12 .v12-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- HERO: exact 50/50, media left, CENTRED copy over the adaptive mood
   backdrop. THE HERO HOLDS THE PAGE'S ONLY PRIMARY H1. Copy reads
   HEADLINE → EXCERPT → BY [Author]; no category kicker. The backdrop is
   the five-palette mood system (auto-derived in production). */
.story-home--homepage-v12 .v12-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(690px, 89vh, 960px);
  background: var(--v12-mood-bg);
  color: var(--v12-mood-fg);
  transition:
    background-color 380ms ease,
    color 220ms ease;
}

.story-home--homepage-v12 .v12-hero > * {
  min-width: 0;
  min-height: 0;
}

.story-home--homepage-v12 .v12-hero a {
  color: inherit;
  text-decoration: none;
}

.story-home--homepage-v12 .v12-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(52px, 6vw, 108px) var(--v12-pad);
  text-align: center;
}

.story-home--homepage-v12 .v12-hero h1 {
  max-width: 9.5ch;
  font-size: clamp(55px, 6.25vw, 120px);
}

.story-home--homepage-v12 .v12-hero h1[data-length="long"] {
  max-width: 10.5ch;
  font-size: clamp(50px, 5.6vw, 104px);
}

.story-home--homepage-v12 .v12-hero h1[data-length="short"] {
  max-width: 8.8ch;
  font-size: clamp(62px, 6.8vw, 130px);
}

.story-home--homepage-v12 .v12-hero .v12-excerpt {
  margin-top: 24px;
  max-width: 31rem;
  color: inherit;
}

.story-home--homepage-v12 .v12-hero .story-meta {
  margin-top: 19px;
  color: inherit;
}

/* --- FEATURE: exact 50/50, copy LEFT and centred inside its half.
   Copy reads KICKER → H2 → EXCERPT → BY [Author] (paper field). */
.story-home--homepage-v12 .v12-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(520px, 61vh, 700px);
  background: var(--story-paper);
}

.story-home--homepage-v12 .v12-feature > * {
  min-width: 0;
  min-height: 0;
}

.story-home--homepage-v12 .v12-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(48px, 5.5vw, 90px) var(--v12-pad);
  text-align: center;
}

.story-home--homepage-v12 .v12-feature-copy .story-label {
  margin-bottom: 17px;
}

.story-home--homepage-v12 .v12-feature h2 {
  max-width: 12ch;
  font-size: clamp(43px, 4.55vw, 82px);
}

.story-home--homepage-v12 .v12-feature h2 a,
.story-home--homepage-v12 .v12-feature .story-meta a {
  color: var(--story-ink);
  text-decoration: none;
}

.story-home--homepage-v12 .v12-feature .v12-excerpt {
  margin-top: 20px;
  max-width: 30rem;
}

.story-home--homepage-v12 .v12-feature .story-meta {
  margin-top: 18px;
}

/* --- EDITORIAL INTERLUDE: ONE uninterrupted photographic beat — a single
   full-bleed photograph with the copy CENTRED BELOW it (KICKER → H2 →
   BY [Author], no excerpt). The photograph settles from scale(1.015) to
   1.0 the first time it enters the viewport (assets/js/v12-hero.js adds
   .v12-interlude--settled on the section; IntersectionObserver, once). */
.story-home--homepage-v12 .v12-interlude {
  background: var(--story-paper);
}

.story-home--homepage-v12 .v12-interlude-media {
  height: clamp(540px, 62vw, 950px);
}

.story-home--homepage-v12 .v12-interlude-media img {
  transform: scale(1.015);
  transition: transform 900ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.story-home--homepage-v12 .v12-interlude.v12-interlude--settled .v12-interlude-media img {
  transform: scale(1);
}

.story-home--homepage-v12 .v12-interlude-copy {
  min-height: clamp(290px, 30vw, 470px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(50px, 6vw, 100px) var(--v12-pad);
  text-align: center;
}

.story-home--homepage-v12 .v12-interlude-copy .story-label {
  margin-bottom: 18px;
}

.story-home--homepage-v12 .v12-interlude h2 {
  max-width: 14ch;
  font-size: clamp(45px, 5vw, 88px);
}

.story-home--homepage-v12 .v12-interlude h2 a,
.story-home--homepage-v12 .v12-interlude .story-meta a {
  color: var(--story-ink);
  text-decoration: none;
}

.story-home--homepage-v12 .v12-interlude .story-meta {
  margin-top: 20px;
}

/* --- STORY INTERSECTION: strict even 2×2 finale (each cell an exact 25%
   of the section), compact story switcher at the exact centre seam, every
   cell a real navigable link. Hover/focus/tap updates the switcher
   (assets/js/v12-gallery.js); the switcher is pointer-events:none so it
   never blocks the cells beneath. */
.story-home--homepage-v12 .v12-intersection {
  position: relative;
  background: #000;
  color: #fff;
}

.story-home--homepage-v12 .v12-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: min(100vh, 980px);
  min-height: 760px;
}

.story-home--homepage-v12 .v12-gallery-item {
  position: relative;
  cursor: pointer;
}

.story-home--homepage-v12 .v12-gallery-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.52);
}

.story-home--homepage-v12 .v12-gallery-item:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
}

.story-home--homepage-v12 .v12-gallery-item img {
  transform: scale(1);
  transition: transform 260ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.story-home--homepage-v12 .v12-gallery-item:hover img,
.story-home--homepage-v12 .v12-gallery-item:focus-visible img,
.story-home--homepage-v12 .v12-gallery-item.selected img {
  transform: scale(1.015);
}

.story-home--homepage-v12 .v12-gallery-item:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.story-home--homepage-v12 .v12-gallery-info {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(22vw, 326px);
  min-height: 112px;
  padding: 14px 18px;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.story-home--homepage-v12 .v12-gallery-info .story-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.story-home--homepage-v12 .v12-gallery-info h2 {
  max-width: 13ch;
  font-size: clamp(18px, 1.48vw, 25px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.story-home--homepage-v12 .v12-gallery-hint {
  margin-top: 9px;
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.56;
}

/* Tablet: keep the 50/50 seams; type scales via vw clamps. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .story-home--homepage-v12 .v12-hero {
    min-height: 720px;
  }

  .story-home--homepage-v12 .v12-hero h1 {
    font-size: clamp(48px, 6.6vw, 70px);
  }

  .story-home--homepage-v12 .v12-hero h1[data-length="long"] {
    font-size: clamp(43px, 5.8vw, 62px);
  }

  .story-home--homepage-v12 .v12-feature {
    min-height: 590px;
  }

  .story-home--homepage-v12 .v12-feature h2 {
    font-size: clamp(39px, 5vw, 58px);
  }

  .story-home--homepage-v12 .v12-gallery-grid {
    height: 82vw;
    min-height: 650px;
  }
}

/* ≤800px: the gallery switcher leaves the exact centre seam and becomes a
   proper touch panel (the grid stays strict 2×2 above it). */
@media (max-width: 800px) {
  .story-home--homepage-v12 .v12-gallery-grid {
    height: auto;
    min-height: 0;
    grid-template-rows: repeat(2, 54vw);
  }

  .story-home--homepage-v12 .v12-gallery-info {
    position: static;
    transform: none;
    width: 100%;
    min-height: 124px;
    padding: 25px 20px 29px;
  }
}

/* Phone: one column, stacked in partial author order (feature media first
   on mobile); explicitly art-directed, not a squeezed desktop. */
@media (max-width: 639.98px) {
  .story-home--homepage-v12 .v12-hero,
  .story-home--homepage-v12 .v12-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-home--homepage-v12 .v12-hero-media {
    height: 106vw;
    min-height: 410px;
  }

  .story-home--homepage-v12 .v12-hero-copy {
    padding: 42px 20px 50px;
  }

  .story-home--homepage-v12 .v12-hero h1,
  .story-home--homepage-v12 .v12-hero h1[data-length="long"],
  .story-home--homepage-v12 .v12-hero h1[data-length="short"] {
    max-width: 9.5ch;
    font-size: clamp(46px, 12.7vw, 67px);
  }

  .story-home--homepage-v12 .v12-hero .v12-excerpt {
    font-size: 14px;
    max-width: 28rem;
  }

  .story-home--homepage-v12 .v12-feature-media {
    height: 111vw;
    min-height: 425px;
    order: 1;
  }

  .story-home--homepage-v12 .v12-feature-copy {
    order: 2;
    padding: 44px 20px 54px;
  }

  .story-home--homepage-v12 .v12-feature h2 {
    max-width: 11ch;
    font-size: clamp(39px, 10.6vw, 57px);
  }

  .story-home--homepage-v12 .v12-interlude-media {
    height: 114vw;
    min-height: 450px;
  }

  .story-home--homepage-v12 .v12-interlude-copy {
    min-height: 0;
    padding: 58px 20px 68px;
  }

  .story-home--homepage-v12 .v12-interlude h2 {
    max-width: 11.5ch;
    font-size: clamp(40px, 10.6vw, 56px);
  }

  .story-home--homepage-v12 .v12-gallery-grid {
    grid-template-rows: repeat(2, 64vw);
  }
}

/* MOTION MAY CHANGE PERCEPTION. MOTION MUST NOT CHANGE GEOMETRY. */
@media (prefers-reduced-motion: reduce) {
  .story-home--homepage-v12 .v12-hero,
  .story-home--homepage-v12 .v12-interlude-media img,
  .story-home--homepage-v12 .v12-gallery-item img {
    transition: none !important;
    transform: none !important;
  }
}

/* R8 — V12 video inherits the image crop box and focal point. */
.story-home--homepage-v12 .v12-media .story-editorial-video { display:block; width:100%; height:100%; object-fit:cover; }
