/*
 * ungrounded.css
 * jimthompsoncreative.com/work/ungrounded.html
 * Ungrounded section styles.
 * Requires: design-system.css loaded first.
 * Last updated: 2026-05-09 — v17
 *
 * V17 changes vs v16:
 * - AdvisHer outcome card translated from image+copy to editorial
 *   pull-quote with Touré as the source. Asymmetric outcome cards
 *   by design — AdvisHer is verbal proof (the UN named it),
 *   BeaconPack is photographic proof (a school is online).
 *   Different evidence, different presentation.
 * - The Touré chyron is replaced by editorial attribution.
 *   Translates the asset from "TV broadcast screenshot" to
 *   "quote from a sitting UN Secretary-General." Different
 *   register, more dignity.
 * - AdvisHer mockup image retired from §6 (still lives in the
 *   work overlay for the curious). The quote IS the AdvisHer
 *   evidence on the page.
 *
 * V16 changes vs v15 (kept for history):
 * - §6 The Landing rebuilt as two-act structure.
 *   ACT 1 (deplaning): Cinematic hall image at scale with
 *   headline overlaid, body below. Puts reader in the chair.
 *   ACT 2 (outcomes): Brief contextualizer + AdvisHer and
 *   BeaconPack-Ghana cards. Page lands on the school in Ghana.
 *   Optional CTA opens overlay with sketch texture.
 * - Outcomes are now ON the page, not behind the click.
 *   Overlay demoted to "more if you want it."
 *
 * V15 changes vs v14 (kept for history):
 * - §6 The Landing rebuilt — centered single-column crescendo.
 * - Old §6 rules retired: .ug-landing__grid, .ug-landing__copy,
 *   .ug-landing__lift no longer used.
 *
 * R5 changes vs r4 (kept for history):
 * - Architecture reconciled to locked copy deck (2026-05-07)
 * - §2 (was §7) Hack moves up; §3 In the Beginning replaces Known Issue;
 *   §4 The Opt In replaces Solution (browser-framed microsite, not flight map)
 * - §7 Earned Love (press marquee) — pattern lift from Visit Mum
 * - §8 Recognition (awards grid) — pattern lift from Visit Mum
 * - §9 Next Bar — pattern lift from Visit Mum
 */


/* ============================================================
   §1 HERO
   90vh. Photo bg + targeted gradient. Content bottom-left.
   ============================================================ */
.ug-hero {
  width: 100%;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 7vw 7vh;
  background-image: url('../assets/ba_ungrounded/ba-ungrounded-hero-shots/ba-ungrounded-hero-image.webp');
  background-size: cover;
  background-position: center center;
  background-color: #1a1e26;
  overflow: hidden;
}

.ug-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 18% 85%,
      rgba(20, 22, 27, 0.72) 0%,
      rgba(20, 22, 27, 0.35) 50%,
      transparent 80%
    ),
    linear-gradient(
      to right,
      rgba(20, 22, 27, 0.75) 0%,
      rgba(20, 22, 27, 0.55) 35%,
      rgba(20, 22, 27, 0.25) 60%,
      rgba(20, 22, 27, 0.10) 80%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(20, 22, 27, 0.45) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 1;
}

.ug-hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.ug-hero__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
  opacity: 0;
  animation: ugRiseIn 0.8s ease 0.3s forwards;
}

.ug-hero__copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: ugRiseIn 0.8s ease 0.55s forwards;
}

.ug-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: ugRiseIn 0.7s ease 0.8s forwards;
}

.ug-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .2em;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}

.ug-cta-primary:hover {
  color: var(--chart-hot);
}

.ug-cta-primary:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 4px;
  border-radius: 2px;
}

.ug-cta-primary .play-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(184, 212, 0, 0.7);
  background: rgba(184, 212, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ug-cta-primary .play-ring::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent var(--chart);
  margin-left: 2px;
}


/* ============================================================
   STATS RAIL (between §1 and §2 — no section number per copy deck)
   ============================================================ */
.ug-stats {
  width: 100%;
  background: var(--steel);
  padding: 80px 4vw;
}

.ug-stats__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}

.ug-stat {
  position: relative;
  text-align: center;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ug-stat.ug-is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ug-stat:nth-child(1) { transition-delay: 0s; }
.ug-stat:nth-child(2) { transition-delay: 0.12s; }
.ug-stat:nth-child(3) { transition-delay: 0.24s; }
.ug-stat:nth-child(4) { transition-delay: 0.36s; }

.ug-stat + .ug-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.07);
}

.ug-stat__number {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 84px;
  color: var(--chart);
  line-height: 1;
  margin-bottom: 20px;
}

.ug-stat__caption {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.45;
}


/* ============================================================
   SHARED SECTION TYPOGRAPHY — single source of truth
   ============================================================
   Every section eyebrow and headline (§2 through §7) uses
   these two classes. Per-section overrides are forbidden;
   they were the source of every drift in v18-v23.

   Hero (§1) is the only intentional exception — bigger
   headline scale and no eyebrow.
   ============================================================ */

.ug-section__eyebrow {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin: 0 0 20px 0;
}

.ug-section__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 28px 0;
  text-wrap: balance;
}

/* Editorial exception: §2 The Hack opens the narrative —
   gets a slight scale punch (max 38px). Everything else
   matches the standard. */
.ug-hack__headline.ug-section__headline {
  font-size: clamp(28px, 2.6vw, 38px);
}


/* ============================================================
   §2 THE HACK
   Two-column. Copy left, looping Vimeo right.
   Pattern matches Visit Mum sd4 (Social + Display).
   ============================================================ */
.ug-hack {
  position: relative;
  padding: 100px 0;
  background: var(--steel);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ug-hack__grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 7vw;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 6vw;
  width: 100%;
  align-items: center;
}

.ug-hack__copy {
  max-width: 500px;
  position: relative;
}

/* §2 eyebrow + headline inherit from .ug-section__eyebrow / __headline */

.ug-hack__body p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver-bright);
  margin: 0;
}

.ug-hack__body p + p {
  margin-top: 16px;
}

/* Rewind cue — white kicker per Visit Mum convention, signals POV release.
   No italics, no quotes — the bold weight does the work. */
.ug-hack__rewind {
  margin-top: 24px !important;
}
.ug-hack__rewind strong {
  color: var(--white);
  font-weight: 400;
}

.ug-hack__video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.ug-hack__video-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Cascade reveal — eyebrow → headline → body → video */
.ug-hack .ug-hack__eyebrow,
.ug-hack .ug-hack__headline,
.ug-hack .ug-hack__body,
.ug-hack .ug-hack__video-stage {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ug-hack.is-visible .ug-hack__eyebrow {
  opacity: 1;
  transform: translateY(0);
}
.ug-hack.is-visible .ug-hack__headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}
.ug-hack.is-visible .ug-hack__body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 240ms;
}
.ug-hack.is-visible .ug-hack__video-stage {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 360ms;
}


/* ============================================================
   §3 IN THE BEGINNING
   Two-column. Copy left, t-shirt photo right.
   Content visible by default — no JS dependency for visibility.
   ============================================================ */
.ug-known {
  width: 100%;
  padding: 100px 7vw;
  background: var(--steel);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ug-known__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ug-known__copy {
  max-width: 540px;
}

/* §3 eyebrow + headline inherit from .ug-section__eyebrow / __headline */

.ug-known__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
  margin: 0;
}

.ug-known__kicker {
  color: var(--white);
}

.ug-known__image-wrap {
  position: relative;
  width: 100%;
}

.ug-known__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}


/* ============================================================
   §4 THE OPT IN
   Two-column. Copy LEFT, microsite image RIGHT.
   Image bleeds right past the content-wrap — cinematic
   asymmetry. Left edge stays grid-aligned (rhythmic), right
   edge escapes the wrap (dramatic). The microsite was the
   engine of the campaign; this treatment signals that.
   ============================================================ */
.ug-optin {
  width: 100%;
  padding: 100px 0 100px 7vw;     /* kill right padding so image can bleed */
  background: var(--steel);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;                /* contain the bleed so it doesn't add horizontal scroll */
}

.ug-optin__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ug-optin__image-wrap {
  position: relative;
  width: 130%;                     /* extend 30% past the column right edge */
  max-width: none;
}

.ug-optin__copy {
  max-width: 540px;
}

/* §4 eyebrow + headline inherit from .ug-section__eyebrow / __headline */

.ug-optin__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
  margin: 0;
}

.ug-optin__image-wrap {
  position: relative;
  width: 100%;
}

.ug-optin__image {
  width: 100%;
  height: auto;
  display: block;
}



/* ============================================================
   §5 THE CAST — Visit Mum pattern: copy left, montage right.
   9-cell bento, frosted-glass hover overlay.
   Translucent/digital, premium.
   Original chyrons preserved on photos.
   ============================================================ */
.ug-cast {
  position: relative;
  padding: 100px 7vw;
  background: var(--steel);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ug-cast__layout {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 80px;
  align-items: start;
}

/* ─── Left: copy column ─── */
.ug-cast__copy {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* §5 eyebrow + headline inherit from .ug-section__eyebrow / __headline */

.ug-cast__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--silver-bright);
  line-height: 1.7;
  margin: 0 0 32px 0;
}

/* Bolded instructional hint — last line of body, sits tight above CTA */
.ug-cast__body--hint {
  margin: -16px 0 32px 0;
}
.ug-cast__body--hint strong {
  color: var(--white);
  font-weight: 500;
}

.ug-cast__cta {
  /* inherits .ug-cta-primary */
}

/* ─── Right: 4-unit composition ───
   Layout (per Jim's locked map — 4 units, each = the height of a tall):

   ROW 1:
   ┌─────────────────────────────┬───────────────────┐
   │  UNIT 1 (wide)              │  UNIT 3 (narrow)  │
   │  ┌──────┬─────────┐         │  ┌─────────────┐  │
   │  │      │  Smith  │         │  │   Bryant    │  │
   │  │Jones ├─────────┤         │  ├──────┬──────┤  │
   │  │ tall │ Shlain  │         │  │Lutwak│Logan │  │
   │  └──────┴─────────┘         │  └──────┴──────┘  │
   └─────────────────────────────┴───────────────────┘
   ROW 2:
   ┌───────────────────┬─────────────────────────────┐
   │  UNIT 2 (narrow)  │  UNIT 4 (wide)              │
   │  ┌──────┬──────┐  │  ┌─────────┬──────┐         │
   │  │Chui  │Newmrk│  │  │Bianchini│      │         │
   │  ├──────┴──────┤  │  ├─────────┤Rattry│         │
   │  │  whurley    │  │  │  Munce  │ tall │         │
   │  └─────────────┘  │  └─────────┴──────┘         │
   └───────────────────┴─────────────────────────────┘

   Diagonal motion: wide top-left → narrow top-right → narrow bottom-left → wide bottom-right.
   Units 1 & 4 mirror each other. Units 2 & 3 mirror each other.
   Every unit has the same height (a "tall" = 2 × horiz height).
   Photos crop with object-fit: cover; sub-1% pixel mismatches are absorbed naturally. */

.ug-cast__montage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1100px;
  width: 100%;

  /* Photo aspect ratios drive everything:
     - Tall: 3:4 (W:H = 0.75)
     - Horiz: 2.143:1
     - Square: 1:1
     A "unit height" = 2 × horiz height. So in a unit:
       wide-unit-width  = tall-W + gap + horiz-W = (0.75 × H) + g + (1.0715 × H)
       narrow-unit-width = horiz-W = 1.0715 × H
     Row total = wide + narrow + gap = (2.893 × H) + 2g
     Therefore: row aspect ratio = (2.893 × H + 2g) / H ≈ 2.93
     We let row width drive unit height via aspect-ratio on rows. */
}

.ug-cast__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 2.93 / 1;
  min-height: 0;            /* prevent flex children from pushing row taller */
  flex: 0 0 auto;           /* don't let outer flex column stretch this */
}

/* Each unit fills its row at full height. Wide units (1, 4) take more horizontal
   space than narrow units (2, 3). Ratios derived from Jim's inch math:
   wide  = 4.85" (tall 2" + horiz 2.85")
   narrow = 2.85" (horiz width = squares-pair width, ≈)
   Total ≈ 7.70". Wide ≈ 63%, narrow ≈ 37%. */
.ug-cast__unit {
  display: flex;
  gap: 10px;
  height: 100%;
}
.ug-cast__unit--1,
.ug-cast__unit--4 { flex: 0 1 63%; }
.ug-cast__unit--2,
.ug-cast__unit--3 { flex: 0 1 37%; }

/* Internal sub-containers: vertical stacks for paired horiz photos and squares pairs */
.ug-cast__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.ug-cast__pair {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex: 0 0 50%;   /* squares pair takes half the unit's height */
  min-height: 0;
}

/* ─── Unit 1: Jones tall (left), Smith+Shlain stack (right) ─── */
.ug-cast__unit--1 .ug-cast__cell--jones {
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;     /* tall photo crop ratio — width auto-derives from row height */
  height: 100%;
  width: auto;
}
.ug-cast__unit--1 .ug-cast__stack {
  flex: 1 1 auto;
}
.ug-cast__unit--1 .ug-cast__stack > .ug-cast__cell { flex: 1 1 0; min-height: 0; }

/* ─── Unit 4: Bianchini+Munce stack (left), Rattray tall (right) — mirror of Unit 1 ─── */
.ug-cast__unit--4 .ug-cast__cell--rattray {
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;
  height: 100%;
  width: auto;
  order: 2; /* tall sits on the RIGHT in unit 4 */
}
.ug-cast__unit--4 .ug-cast__stack {
  order: 1;
  flex: 1 1 auto;
}
.ug-cast__unit--4 .ug-cast__stack > .ug-cast__cell { flex: 1 1 0; min-height: 0; }

/* ─── Unit 3: Bryant horiz (top), Lutwak+Logan squares pair (bottom) ─── */
.ug-cast__unit--3 {
  flex-direction: column;
}
.ug-cast__unit--3 .ug-cast__cell--bryant {
  flex: 1 1 0;     /* horiz takes the upper half */
  min-height: 0;
}
.ug-cast__unit--3 .ug-cast__pair > .ug-cast__cell {
  flex: 1 1 0;
  min-width: 0;
}

/* ─── Unit 2: Chui+Newmark squares pair (top), whurley horiz (bottom) — mirror of Unit 3 ─── */
.ug-cast__unit--2 {
  flex-direction: column;
}
.ug-cast__unit--2 .ug-cast__pair > .ug-cast__cell {
  flex: 1 1 0;
  min-width: 0;
}
.ug-cast__unit--2 .ug-cast__cell--hurley {
  flex: 1 1 0;
  min-height: 0;
}

/* Photos fill their grid cell entirely. Crops (cropped at 2.143:1, 1:1, 3:4)
   land inside grid-sized cells via object-fit: cover. Slight re-crop is
   intentional and absorbed by the headroom in each crop. */

.ug-cast__cell {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.ug-cast__photo {
  position: absolute;
  inset: 0;
  background: #0d0f14;
  overflow: hidden;
  cursor: default;
}

.ug-cast__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Per-photo edge cleanup ───
   Source crops have bright photo content at the edges (white walls, light
   backgrounds, building glass) that read as visible "lines" against Steel.
   Cell overflow:hidden + scale-up clips those edge pixels off.
   Faces are centered with headroom — being aggressive here is correct. */
.ug-cast__cell--bryant img    { transform: scale(1.10); object-position: 60% 40%; }
.ug-cast__cell--smith img     { transform: scale(1.10); object-position: 55% center; }
.ug-cast__cell--jones img     { transform: scale(1.08); object-position: 40% center; }
.ug-cast__cell--lutwak img    { transform: scale(1.06); }
.ug-cast__cell--chui img      { transform: scale(1.06); }
.ug-cast__cell--newmark img   { transform: scale(1.06); }
.ug-cast__cell--bianchini img { transform: scale(1.06); }
.ug-cast__cell--rattray img   { transform: scale(1.06); object-position: 40% center; }
.ug-cast__cell--shlain img    { transform: scale(1.05); }
.ug-cast__cell--munce img     { transform: scale(1.04); }
.ug-cast__cell--logan img     { transform: scale(1.04); }
.ug-cast__cell--hurley img    { transform: scale(1.04); }

/* ─── Frosted-glass overlay ─── */
.ug-cast__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  gap: 8px;

  background: rgba(37, 40, 47, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thin chartreuse top line — translucent system tell */
.ug-cast__overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--chart);
  opacity: 0.6;
}

.ug-cast__photo:hover .ug-cast__overlay,
.ug-cast__photo:focus-within .ug-cast__overlay {
  opacity: 1;
}

.ug-cast__photo:hover img,
.ug-cast__photo:focus-within img {
  opacity: 0.7;
}

.ug-cast__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.ug-cast__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(9px, 0.7vw, 11px);
  font-weight: 400;
  color: var(--silver);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 90%;
}

/* ─── Magazine grid: 4 tile sizes, strict placement ───
   6-column × 5-row grid (30 cells, 9 tiles, deliberate negative space)

   Layout:
   ┌──────────┬───────┬───┐
   │  SMITH   │NEWMARK│ S │  rows 1-2
   │   3×2    │  2×2  │ H │  (Shlain tall is 1×2)
   │          │       │ L │
   ├──────────┼───────┼───┤
   │ RATTRAY  │BRYANT │ J │  rows 3-4
   │   3×2    │  2×2  │ O │  (Jones+Hurley each 1×1)
   │          │       │ H │
   ├──────┬───┴───────┴───┤
   │BIANC │     LOGAN     │  row 5
   │ 2×1  │     4×1       │
   └──────┴───────────────┘
*/

/* Old tile-size classes (--xl, --lg, --sm, --wide, --xwide) removed in v12.
   Grid placement now uses named template areas + per-cell modifier classes
   (.ug-cast__cell--jones, --smith, etc.) defined above. */


/* ============================================================
   §6 THE LANDING — v19 rebuild
   Two-column hero (copy left, photo + 4 thumbs right).
   Thumbnails swap into hero slot on click. Below: the two
   UN-greenlit ideas as matched outcome cards.

   Section grammar matches §3 / §4 exactly:
   - 120px vertical padding
   - max-width 1400px content wrap
   - 80px gap between columns
   - copy-left / image-right
   ============================================================ */
.ug-landing {
  width: 100%;
  padding: 100px 7vw 64px;
  background: var(--steel);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}


/* ─── Two-column hero ─── */
.ug-landing__intro {
  max-width: 1400px;
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: 1.5fr minmax(280px, 420px);
  gap: 80px;
  align-items: center;
}

.ug-landing__copy {
  max-width: 420px;
}

/* §6 eyebrow + headline inherit from .ug-section__eyebrow / __headline */

.ug-landing__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver-bright);
  margin: 0;
}


/* ─── Gallery: hero photo + 4 thumbs ─── */
.ug-landing__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ug-landing__hero-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0e1014;
  border-radius: 2px;
  position: relative;
}

.ug-landing__hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ug-landing__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ug-landing__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0e1014;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ug-landing__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.ug-landing__thumb:hover img,
.ug-landing__thumb:focus-visible img {
  opacity: 1;
}

.ug-landing__thumb:hover {
  border-color: rgba(184, 212, 0, 0.5);
}

.ug-landing__thumb:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 4px;
}


/* ─── The two UN-greenlit ideas ─── */
.ug-landing__outcomes {
  max-width: 1400px;
  margin: 0 auto;
}

.ug-landing__outcomes-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 0 0 56px 0;
  text-wrap: balance;
}

.ug-landing__outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

.ug-landing__outcome {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ug-landing__outcome-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e1014;
  border-radius: 2px;
}

.ug-landing__outcome-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ug-landing__outcome-copy {
  display: flex;
  flex-direction: column;
}

.ug-landing__outcome-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--chart);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ug-landing__outcome-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 18px 0;
  text-wrap: balance;
}

.ug-landing__outcome-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver-bright);
  margin: 0;
}


/* ─── CTA to overlay ─── */
.ug-landing__cta-row {
  display: flex;
  justify-content: center;
}

.ug-landing__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}

.ug-landing__cta:hover { color: var(--chart-hot); }

.ug-landing__cta:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 4px;
  border-radius: 2px;
}

.ug-landing__cta-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ug-landing__cta:hover .ug-landing__cta-arrow {
  transform: translateX(4px);
}


/* ============================================================
   CONTENT OVERLAYS — shared shell for cast roster + work view
   Adapted from .video-overlay machinery. Scrollable, focus-managed.
   ============================================================ */
.content-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 22, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

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

.content-overlay__close {
  position: fixed;
  top: 20px;
  right: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  background: rgba(15, 17, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  z-index: 1001;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.content-overlay__close:hover {
  color: var(--white);
  border-color: rgba(184, 212, 0, 0.5);
  background: rgba(15, 17, 22, 0.85);
}

.content-overlay__close:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 4px;
}

.content-overlay__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 7vw 120px;
}

.content-overlay__header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.content-overlay__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .25em;
  color: var(--chart);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.content-overlay__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0;
  max-width: 760px;
  text-wrap: balance;
}


/* ============================================================
   CAST ROSTER — 29 names chunked by industry.
   Curatorial groupings, scannable. Chartreuse group labels.
   ============================================================ */
.cast-roster {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin: 0 0 56px;
}

.cast-roster__group {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 48px;
  align-items: start;
}

.cast-roster__group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--chart);
  line-height: 1.5;
  margin: 4px 0 0 0;
  padding-top: 4px;
}

.cast-roster__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 0;
}

.cast-roster__item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cast-roster__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.cast-roster__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.5;
}

.cast-roster__institutional {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
  margin: 0;
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--chart);
  max-width: 760px;
}


/* ============================================================
   WORK GRID + OUTCOMES — inside work overlay.
   Outcomes first (the two that made it), sketches second.
   ============================================================ */

/* ─── Outcomes (the two that made it — leads the overlay) ─── */
.work-outcomes {
  margin-bottom: 80px;
}

.work-outcomes__heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .25em;
  color: var(--chart);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.work-outcome {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 56px;
  align-items: center;
  padding: 32px 0 56px;
}

.work-outcome + .work-outcome {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 56px;
}

.work-outcome__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -.01em;
}

.work-outcome__tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.work-outcome__caption {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
  margin: 0;
}

.work-outcome__image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ─── The rest (the other 5 ideas pitched) ─── */
.work-rest {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 56px;
}

.work-rest__heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .25em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-grid__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.work-grid__cell img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  margin-bottom: 16px;
}

.work-grid__cell figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-grid__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

.work-grid__team {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: .18em;
  text-transform: uppercase;
  min-height: 14px;
}

.work-grid__desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.5;
  margin-top: 4px;
}


/* ============================================================
   §5 / §6 PLACEHOLDERS — building next session
   ============================================================ */
.ug-placeholder {
  width: 100%;
  padding: 80px 7vw;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.ug-placeholder__tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .3em;
  opacity: 0.5;
}

.ug-placeholder__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 200;
  color: rgba(241, 242, 246, 0.25);
}


/* ============================================================
   §7 EARNED LOVE — Press marquee
   Pattern lifted from Visit Mum (.earned-*).
   Press-only variant: clippings only, no photo-quote tiles.
   ============================================================ */
.earned {
  position: relative;
  padding: 0 0 140px;
  contain: layout paint;
}

/* ============================================================
   §7a EARNED LOVE — Copy block
   Independent section. Same vertical/horizontal grammar as
   §3 In the Beginning. Single column, left-edge anchored.
   Has NOTHING to do with the marquee below it.
   ============================================================ */
.ug-earned-copy {
  width: 100%;
  padding: 100px 7vw 64px;
  background: var(--steel);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ug-earned-copy__inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* §7 eyebrow + headline inherit from .ug-section__eyebrow / __headline */

.ug-earned-copy__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--silver-bright);
  line-height: 1.7;
  margin: 0;
  max-width: 540px;
}


/* ─── Marquee container ─── */
.earned-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg,
    transparent 0, #000 8%, #000 92%, transparent 100%);
}

.earned-track {
  display: flex;
  gap: 24px;
  animation: ug-earned-scroll 50s linear infinite;
  width: max-content;
  align-items: center;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes ug-earned-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - 12px), 0, 0); }
}

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

/* ─── Press clipping — 4:5 portrait, 1000×1250 source ─── */
.earned-clip {
  flex-shrink: 0;
  height: clamp(280px, 30vw, 420px);
  aspect-ratio: 4/5;
  position: relative;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  overflow: hidden;
  margin: 0;
}
.earned-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* ============================================================
   §8 RECOGNITION — Awards grid
   Pattern lifted from Visit Mum (.s8-*).
   6 cells in one row on desktop. Tier label chartreuse, show name Bebas.
   ============================================================ */
.s8-section {
  padding: 80px 7vw 100px;
}

.s8-section .content-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* Recognition eyebrow inherits .ug-section__eyebrow.
   Only overrides: bigger margin-bottom for grid breathing room,
   and animation hooks. */
.s8__eyebrow {
  margin-bottom: 56px;
  opacity: 0;
  animation: ug-s8FadeUp 0.7s ease 0.1s forwards;
}

.s8__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--mid);
  border-left: 1px solid var(--mid);
}

/* 6-up modifier — 3×2 grid on desktop. Six awards in one row reads
   like a footer; two rows of three gives the section appropriate weight. */
.s8__grid--six {
  grid-template-columns: repeat(3, 1fr);
}

.s8__cell {
  border-right: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
  padding: 28px 22px 30px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  opacity: 0;
}
.s8__cell:nth-child(1) { animation: ug-s8FadeUp 0.6s ease 0.25s forwards; }
.s8__cell:nth-child(2) { animation: ug-s8FadeUp 0.6s ease 0.32s forwards; }
.s8__cell:nth-child(3) { animation: ug-s8FadeUp 0.6s ease 0.39s forwards; }
.s8__cell:nth-child(4) { animation: ug-s8FadeUp 0.6s ease 0.46s forwards; }
.s8__cell:nth-child(5) { animation: ug-s8FadeUp 0.6s ease 0.53s forwards; }
.s8__cell:nth-child(6) { animation: ug-s8FadeUp 0.6s ease 0.60s forwards; }

.s8__tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .22em;
  line-height: 1.2;
}

.s8__show {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1;
  margin-top: 4px;
}

.s8__category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .18em;
  line-height: 1.4;
}

@keyframes ug-s8FadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   §9 NEXT BAR — Case study navigation
   Pattern lifted from Visit Mum (.s9-*).
   ============================================================ */
.s9 {
  width: 100%;
  padding: 48px 7vw 80px;
}

.s9__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  animation: ug-s9FadeUp 0.7s ease 0.1s forwards;
}

.s9__link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .18em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.s9__link:hover,
.s9__link:focus-visible {
  color: var(--white);
}
.s9__link:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 6px;
}
.s9__link--next { color: var(--chart); }
.s9__link--next:hover { color: var(--chart-hot); }

.s9__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
}
.s9__link--prev:hover .s9__arrow,
.s9__link--prev:focus-visible .s9__arrow {
  transform: translateX(-4px);
}
.s9__link--next:hover .s9__arrow,
.s9__link--next:focus-visible .s9__arrow {
  transform: translateX(4px);
}

.s9__prefix {
  color: var(--silver);
  opacity: 0.7;
  margin-right: 4px;
}
.s9__link:hover .s9__prefix,
.s9__link:focus-visible .s9__prefix {
  opacity: 1;
}

@keyframes ug-s9FadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   KEYFRAMES — locally namespaced to avoid collisions
   ============================================================ */
@keyframes ugRiseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 1280px */
@media (max-width: 1280px) {
  /* Recognition grid stays at 3 columns (default) — no change needed */
  .s8__cell { min-height: 160px; }
}

/* Tablet — 1100px */
@media (max-width: 1100px) {
  .earned { padding: 0 0 110px; }
  .ug-earned-copy {
    padding: 100px 6vw 48px;
  }
  .earned-clip { height: clamp(260px, 38vw, 360px); }
  .earned-track { animation-duration: 42s; }

  .ug-cast { padding: 100px 6vw 90px; }
  .ug-cast__layout {
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: 56px;
  }
  /* Grid rows scale automatically with vw — no override needed at this breakpoint */

  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .work-outcome {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cast-roster__group {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Tablet — 900px */
@media (max-width: 900px) {
  .ug-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 0;
  }

  .ug-stat + .ug-stat::before {
    display: none;
  }

  .ug-stat:nth-child(1)::after,
  .ug-stat:nth-child(3)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.07);
  }

  .ug-stat__number { font-size: 72px; }

  .ug-hack {
    padding: 80px 0;
  }
  .ug-hack__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 7vw;
  }
  .ug-hack__copy {
    max-width: none;
  }

  .ug-known {
    padding: 80px 7vw;
  }
  .ug-known__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ug-known__image-wrap {
    max-width: 560px;
  }

  .ug-optin {
    padding: 80px 7vw;
  }
  .ug-optin__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ug-optin__image-wrap {
    width: 100%;
    max-width: 560px;
  }

  /* §5 Cast — layout collapses to single column, 4 units stack vertically.
     Each unit retains its internal composition (tall+stack, horiz+squares-pair).
     Diagonal motion across the page is lost, but each unit remains a coherent
     mini-composition. The math is still doing work. */
  .ug-cast__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ug-cast__copy {
    position: static;
    max-width: 620px;
  }
  .ug-cast__body { max-width: 560px; }

  .ug-cast__montage {
    gap: 14px;
    max-width: none;
  }
  /* Rows become vertical stacks of units */
  .ug-cast__row {
    flex-direction: column;
    aspect-ratio: auto;
    height: auto;
    gap: 14px;
    width: 100%;
  }
  /* Units take full width, capped height so they don't dominate the viewport.
     Each unit aspect-ratio mirrors its desktop shape:
     - Wide units (1, 4): tall+horiz_stack composition. Width factor 1.82H.
       Aspect = (1.82 × H) / H = 1.82:1
     - Narrow units (2, 3): horiz over squares-pair. Width factor 1.07H.
       Aspect = 1.07:1 */
  .ug-cast__unit {
    flex: 0 0 auto !important;       /* override desktop's 63%/37% flex sizing */
    width: 100%;
    max-width: 720px;                /* keep unit from getting cartoonishly large on iPad */
    margin: 0 auto;                  /* center each unit */
    height: auto;
    gap: 8px;
  }
  .ug-cast__unit--1,
  .ug-cast__unit--4 {
    aspect-ratio: 1.82 / 1;          /* wide unit shape */
  }
  .ug-cast__unit--2,
  .ug-cast__unit--3 {
    aspect-ratio: 1.03 / 1;          /* narrow unit shape: horiz on top + squares pair on bottom */
  }

  /* CRITICAL OVERRIDE: at desktop, talls used aspect-ratio + width:auto chained
     off the row's height. At tablet, the unit (not row) has aspect-ratio, and
     that chain breaks — the tall's intrinsic image width takes over and blows
     out the layout. Force explicit flex-basis percentage instead.
     0.75 / 1.82 = 41.2% — the tall's share of unit width. */
  .ug-cast__unit--1 .ug-cast__cell--jones,
  .ug-cast__unit--4 .ug-cast__cell--rattray {
    flex: 0 0 41.2%;
    width: auto;
    aspect-ratio: auto;
    height: 100%;
  }
  /* Stacks fill the remaining width */
  .ug-cast__unit--1 .ug-cast__stack,
  .ug-cast__unit--4 .ug-cast__stack {
    flex: 1 1 0;
    min-width: 0;
  }

  .ug-cast__stack,
  .ug-cast__pair { gap: 8px; }

  /* §6 Landing — collapse two-column to stacked at 900px */
  .ug-landing {
    padding: 100px 7vw;
  }
  .ug-landing__intro {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-bottom: 96px;
  }
  .ug-landing__headline {
    font-size: clamp(22px, 3.2vw, 32px);
  }
  .ug-landing__outcomes-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-bottom: 56px;
  }

  /* Cast roster list collapses to single column */
  .cast-roster__list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}

/* Tablet — 760px */
@media (max-width: 760px) {
  .earned { padding: 0 0 90px; }
  .ug-earned-copy {
    padding: 80px 6vw 40px;
  }
  .earned-clip { height: 60vw; }
  .earned-track {
    animation-duration: 35s;
    gap: 16px;
  }

  .s8__grid--six { grid-template-columns: repeat(2, 1fr); }
  .s8__cell { padding: 22px 18px 24px; min-height: 140px; }

  .s9__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* §5 Cast — phone: collapse 4-unit composition to single column.
     All cells stack full-width, names always visible (no hover). */
  .ug-cast { padding: 80px 6vw; }
  .ug-cast__montage {
    gap: 14px;
    max-width: none;
  }
  .ug-cast__row,
  .ug-cast__unit,
  .ug-cast__stack,
  .ug-cast__pair {
    display: flex;
    flex-direction: column;
    height: auto;
    aspect-ratio: auto;
    flex: 0 0 auto;
    gap: 14px;
  }
  /* Restore natural reading order for unit 4 (tall sat right via order:2 on desktop) */
  .ug-cast__unit--4 .ug-cast__cell--rattray { order: 0; }
  .ug-cast__unit--4 .ug-cast__stack { order: 0; }

  /* All cells stack full-width on phone */
  .ug-cast__cell {
    width: 100%;
    height: auto;
  }
  .ug-cast__unit--1 .ug-cast__cell--jones,
  .ug-cast__unit--4 .ug-cast__cell--rattray {
    width: 100%;
    aspect-ratio: auto;
  }
  .ug-cast__photo {
    aspect-ratio: 16/10;
    height: auto;
  }
  /* Names always visible on touch — no hover state */
  .ug-cast__overlay {
    position: relative;
    inset: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    padding: 14px 0 0;
    text-align: left;
    align-items: flex-start;
  }
  .ug-cast__overlay::before { display: none; }
  .ug-cast__photo:hover img,
  .ug-cast__photo:focus-within img {
    opacity: 1;
  }
  .ug-cast__cell {
    overflow: visible;
  }

  /* §6 Landing — phone */
  .ug-landing {
    padding: 72px 6vw;
  }
  .ug-landing__intro {
    gap: 40px;
    margin-bottom: 72px;
  }
  .ug-landing__eyebrow {
    margin-bottom: 18px;
  }
  .ug-landing__headline {
    font-size: clamp(22px, 5.2vw, 28px);
    margin-bottom: 24px;
  }
  .ug-landing__thumbs {
    gap: 8px;
  }
  .ug-landing__outcomes-heading {
    margin-bottom: 40px;
  }
  .ug-landing__outcomes-grid {
    gap: 48px;
    margin-bottom: 56px;
  }
  .ug-landing__outcome-image {
    aspect-ratio: 16 / 10;
  }
  .ug-landing__outcome-headline {
    font-size: 22px;
  }

  /* Work grid — single column on phone */
  .work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Overlay padding tighter */
  .content-overlay__inner { padding: 90px 6vw 100px; }
  .content-overlay__close { top: 16px; right: 16px; }
}

/* Mobile — 520px */
@media (max-width: 520px) {
  .ug-hero {
    padding: 0 6vw 8vh;
  }

  .ug-stats {
    padding: 64px 6vw;
  }

  .ug-stats__grid {
    grid-template-columns: 1fr;
    gap: 48px 0;
  }

  .ug-stat::after,
  .ug-stat + .ug-stat::before {
    display: none;
  }

  .ug-stat__number { font-size: 80px; }
  .ug-stat__caption { font-size: 13px; }

  .ug-known {
    padding: 64px 6vw;
  }
  .ug-known__grid {
    gap: 36px;
  }

  .ug-optin {
    padding: 64px 6vw;
  }
  .ug-optin__grid {
    gap: 36px;
  }
}


/* ============================================================
   TOUCH DEVICES — disable hover-pause on marquee
   ============================================================ */
@media (hover: none) {
  .earned-track:hover { animation-play-state: running; }
  /* Touch devices already have always-visible names via 760px breakpoint */
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ug-hero__headline,
  .ug-hero__copy,
  .ug-hero__ctas {
    opacity: 1;
    animation: none;
  }
  .ug-stat {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ug-hack .ug-hack__eyebrow,
  .ug-hack .ug-hack__headline,
  .ug-hack .ug-hack__body,
  .ug-hack .ug-hack__video-stage {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .earned-track {
    animation: none;
    transform: none;
  }
  .ug-cast__overlay,
  .ug-cast__photo img {
    transition: none !important;
  }
  .s8__eyebrow,
  .s8__cell {
    animation: none;
    opacity: 1;
  }
  .s9__inner { animation: none; opacity: 1; }
  .s9__link, .s9__arrow, .s9__prefix { transition: none; }
  .content-overlay { transition: none; }
  .ug-landing__cta,
  .ug-landing__cta-arrow {
    transition: none;
  }
}


/* ============================================================
   RECOGNITION — Ungrounded scoped overrides
   Visit Mum has 12 awards in a 6×2 grid. Ungrounded has 6 in a
   4/2 split — top row of four heavyweight cells, bottom row of
   two left-aligned. Bulkier cells. Bebas show name at trophy scale.
   ============================================================ */

/* Desktop: 3 columns × 2 rows for 6 awards — even rhythm */
.ug-recognition .s8__grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Confident standard cells — substantial but not shouty */
.ug-recognition .s8__cell {
  min-height: 180px;
  padding: 32px 28px;
}

/* Show name at confident scale */
.ug-recognition .s8__show {
  font-size: clamp(28px, 2.2vw, 36px);
  margin-top: 12px;
}

/* Tier label sits at the top of the cell. */
.ug-recognition .s8__tier {
  font-size: 11px;
  letter-spacing: .25em;
}

/* Tablet: 2 columns */
@media (max-width: 1100px) {
  .ug-recognition .s8__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ug-recognition .s8__cell {
    min-height: 160px;
    padding: 28px 24px;
  }
  .ug-recognition .s8__show {
    font-size: clamp(26px, 3vw, 32px);
  }
}

/* Mobile: single column */
@media (max-width: 600px) {
  .ug-recognition .s8__grid { grid-template-columns: 1fr !important; }
  .ug-recognition .s8__cell {
    min-height: 140px;
    padding: 24px 20px;
  }
  .ug-recognition .s8__show {
    font-size: clamp(24px, 5vw, 30px);
  }
}
