/* ═══════════════════════════════════════════════════════════════════════════════════════════
   project.css — the project pages only (projects/*.html; loads after editorial.css)

   The pages joined the editorial layer 2026-10-28 (REDESIGN-PLAN D27, sessions/2026-10-28.md). No hero image:
   a short text opener, then the film itself with its play button above the fold (outside counsel's call,
   Brandon's pick). The opener and the Next project card are generated from content/site.yaml `projects:`
   by tools/build-content.py (regions proj-head, proj-next); the stills by _lab/build-gallery.py.

   Every band shares one left edge with the opener's .ed-inner via the --edge token (style.css :root).

   CONTENTS — search "§N" to jump between this list and the section.
     §1  Opener          .proj-head · .proj-back · .proj-facts
     §2  Lead film       .proj-lead (play button above the fold)
     §3  Body + stills   .proj-section · .gal-section-header · .gal-grid
     §4  Next project    .proj-next
   ═══════════════════════════════════════════════════════════════════════════════════════════ */


/* §1 ── Opener ─────────────────────────────────────────────────────────────────────────────────────
   Kept tight so the film's play button clears the fold at 1440x900 even when the H1 or tagline wraps
   (measured: the looser first cut put it 24px below on Raila and EKUC). */
.proj-head { padding-top: clamp(104px, 13vh, 150px); padding-bottom: clamp(24px, 3.4vh, 36px); }
.proj-head .ed-title { margin: 0 0 14px; max-width: 26ch; }   /* the longest H1 ("EKUC Pathfinder Camporee") on one line at desktop */
.proj-head .ed-lede { max-width: 75ch; margin-bottom: 22px; }   /* = the body text measure: one line on desktop */

/* The way back to the collage. Replaces the visible Home / Our Work / <project> trail; the BreadcrumbList
   JSON-LD in <head> still gives search engines the full path. */
.proj-back {
  display: inline-flex; align-items: center; gap: 0.6em;
  /* 18px of text -> 26px tap target (WCAG 2.5.8 floor is 24); the negative margins keep the layout identical */
  padding-block: 4px; margin-block: -4px calc(clamp(18px, 2.6vh, 28px) - 4px);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease;
}
.proj-back:hover { color: var(--foreground); }
.proj-back:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

/* Client / Services / Year on one quiet line (was a three-cell band of its own) */
.proj-facts { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 3.4vw, 48px); margin: 0; padding-top: 18px; border-top: 1px solid var(--hairline); }
.proj-facts div { display: flex; align-items: baseline; gap: 12px; }
.proj-facts dt { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-secondary); }
.proj-facts dd { margin: 0; font-size: 0.92rem; color: var(--foreground); }


/* §2 ── Lead film ──────────────────────────────────────────────────────────────────────────────────
   The player keeps its own aspect and never grows taller than the screen under the nav (--vp-maxh: player.css
   narrows the box to fit, left-aligned here to sit on the text's edge). Promise (Brandon 2026-10-28): the PLAY
   BUTTON is visible without scrolling; the whole frame cannot be at 1440x900 with the opener above it.
   The poster is each film's own cover frame (never the old hero art). */
.proj-lead { padding: 0 var(--edge); }
.proj-lead .vp { --vp-maxh: calc(100svh - 140px); margin-inline: 0; }


/* §3 ── Body + stills: on the opener's left edge ───────────────────────────────────────────────── */
.project-content .proj-section { padding: clamp(56px, 9vh, 96px) var(--edge); }
.project-content .gal-section-header { padding: clamp(56px, 9vh, 96px) var(--edge) 32px; }
.project-content .gal-section-header .ed-title { margin: 0; }
.project-content .gal-grid { padding-inline: var(--edge); }


/* §4 ── Next project: one wide card, title only (editorial.css §12 --inset) ────────────────────── */
.proj-next .ed-card--inset { aspect-ratio: 21 / 9; }
@media (max-width: 640px) {
  .proj-next .ed-card--inset { aspect-ratio: 3 / 2; }
}
