/* home.css — REVISION-2: light-only claymorphism, Bricolage + Host Grotesk, compact rhythm, two-tone cards.
   Owner: Home (REVISION-2 §R1–R5, R11, R12; DESIGN-SPEC §3.1–3.5, §3.12, §4.1 where it is silent).
   Linked on every page, so every rule is scoped to a home region id or body[data-page="home"]; the id scope
   also beats index.html's <head><style>. cards.css owns the clay families and buttons.
   !important only where the DESIGN-SPEC §2.0 ledger allows it (navy family; director links, site.css 1901–1905).
   21st.dev: 24338 Neomorphism Metric Card (stat tiles), 12828 Perspective Highlight (director tilt), 7795 Services
   + 8224 Gradient + 3176 Animated 3D Card (project cards), 2318 Squishy (press), 869 Animated List (headline rows).
   Hover motion lives in the no-preference block at the end; every rule above it is the rest state. */

/* 0. Kill the pseudo-elements this file does not re-specify (§2.0 rule 4); §4 re-adds the director light,
      §5 the project media rim. */
#stat-strip > .stat-card::before,
#stat-strip > .stat-card::after,
#director-section .director-card::after,
#projects-grid .content-card::before,
#projects-grid .content-card::after,
#news-list .news-card::before,
#news-list .news-card::after,
#news-list .news-card__media::before,
#news-list .news-card__media::after { content: none; }

/* ------------------------------------------------------------------
   1. Home tokens and rhythm (REVISION-2 §R3, §R4). The clay tokens come from
      type.css (cards.css carries zero-specificity fallbacks); these are the
      home-only steps: the lighter "raised" face for items inside a clay panel,
      the small item shadow, and the compact section rhythm.
   ---------------------------------------------------------------- */
body[data-page="home"] {
  --home-section-py: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);   /* §R4 --section-py */
  --home-band-gap: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);     /* hero → stats → director */
  --home-grid-gap: 1rem;
  --home-slab-radius: 1.75rem;
  --home-item-radius: 1.125rem;
  --home-raised: #FAFCFE;                                     /* items on a clay panel */
  --home-item-shadow:
    6px 6px 14px -6px rgb(23 42 82 / 0.2),
    -5px -5px 12px -6px rgb(255 255 255 / 1),
    inset 1px 1px 2px rgb(255 255 255 / 0.9),
    inset -2px -2px 5px rgb(23 42 82 / 0.05);
  --home-item-shadow-hover:
    12px 12px 24px -8px rgb(23 42 82 / 0.26),
    -7px -7px 16px -6px rgb(255 255 255 / 1),
    inset 1px 1px 2px rgb(255 255 255 / 0.95),
    inset -2px -2px 5px rgb(23 42 82 / 0.06);
  --home-chip-shadow:
    3px 3px 6px rgb(23 42 82 / 0.12),
    -3px -3px 6px rgb(255 255 255 / 0.9),
    inset 1px 1px 1px rgb(255 255 255 / 0.75);
  --home-well: inset 4px 4px 8px rgb(23 42 82 / 0.14), inset -4px -4px 8px rgb(255 255 255 / 0.9);
  /* Translucent white clay on navy slabs (links, chips). */
  --home-on-navy:
    0 8px 18px -10px rgb(0 0 0 / 0.5),
    inset 1px 1px 2px rgb(255 255 255 / 0.24),
    inset -2px -3px 6px rgb(0 0 0 / 0.26);
  /* Navy clay face: one committed navy with a soft light entering top-left. */
  --home-navy-face:
    radial-gradient(130% 110% at 0% 0%, rgb(255 255 255 / 0.08), transparent 55%),
    var(--clay-navy);
  /* Two-colour clay (§R11, R11c): two tone surfaces from the type.css tokens, no cap (R11b). */
  --home-tone-a: var(--clay-a);
  --home-tone-b: var(--clay-b);
  /* Room under the hero slab for its clay drop shadow (index.html head style). */
  --hero-shadow-room: 2.75rem;
  /* §R14: one container for the whole site, --container-wide = min(94vw, 1920px) (site.css "Full-width layout").
     Every home band pads to it, with the gutter as the floor: the same inset the page-hero slabs (type.css) and
     the footer slab (nav.css) use, so hero, sections and footer share their left and right edges at every width.
     The 100% resolves where the token is used: the band's own containing block, the full page width. */
  --home-inset: max(var(--gutter), (100% - var(--container-wide, min(94vw, 1920px))) / 2);
}
body[data-page="home"] .tone-a { --home-tone: var(--home-tone-a); }
body[data-page="home"] .tone-b { --home-tone: var(--home-tone-b); }
@media (min-width: 768px) {
  body[data-page="home"] { --home-grid-gap: 1.25rem; }
}

/* Bands share the page width rule (§R14): full-bleed boxes padded in to --container-wide. */
body[data-page="home"] .home-band {
  position: relative;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--home-inset);
}
body[data-page="home"] .home-band--director { padding-top: var(--home-band-gap); }
/* The hero section keeps --hero-shadow-room under the slab; pull the tiles back so the gap is unchanged. */
body[data-page="home"] .home-band--stats { margin-top: calc(var(--home-band-gap) - var(--hero-shadow-room)); }

/* Section heads: title (+ lede) left, the "All …" pill right, on one row.
   No eyebrow above the title (§R1). */
body[data-page="home"] .home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.25rem;
}
body[data-page="home"] .home-head .section-header__title { margin-top: 0; }
body[data-page="home"] .home-head .section-header__lede { margin-top: 0.5rem; max-width: 48rem; }
body[data-page="home"] .home-head__more { flex: none; }

/* ------------------------------------------------------------------
   2. Hero frame. #hero-root ships empty until home.js fills it; reserve
      the stage's box so nothing below jumps (DESIGN-SPEC §8, CLS <= 0.02).
      --hero-reserve is an envelope just above the measured stage heights,
      and the stage takes the same floor. Top padding: site.css 3469.
   ---------------------------------------------------------------- */
#hero-root {
  --hero-reserve: max(clamp(30rem, 70vh, 44rem), min(33rem + 5vw, 38rem));
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--home-inset);
  padding-bottom: 0;
}
@media (max-width: 640px) {
  #hero-root { --hero-reserve: max(clamp(30rem, 70vh, 44rem), 88.5rem - 180vw, 66.5rem - 84vw); }
}
#hero-root .hero-stage { min-height: var(--hero-reserve); }
#hero-root:not(:has(.hero-stage))::before {
  content: "";
  display: block;
  min-height: var(--hero-reserve);
  border-radius: var(--home-slab-radius);
  background: var(--clay-navy);
}

/* ------------------------------------------------------------------
   3. Stat tiles (§R5) — 21st.dev 24338 "Neomorphism Metric Card": four navy
      clay tiles, gold Bricolage numeral + sentence-case label left, an inset
      icon well right. One row >= 1024, 2 x 2 below. Not links: no lift.
   ---------------------------------------------------------------- */
#stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: 0;
  box-shadow: none;
}
@media (min-width: 1024px) {
  #stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#stat-strip > .stat-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  min-width: 0;
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.375rem) clamp(1.125rem, 0.9rem + 0.9vw, 1.5rem);
  border-radius: var(--clay-radius);
  background: var(--home-navy-face) !important;
  border: 0 !important;
  box-shadow: var(--clay-navy-shadow) !important;
  color: #fff;
  overflow: visible;
  transform: none;
}
#stat-strip > .stat-card:hover { transform: none; }
#stat-strip .stat-card__text { display: flex; flex-direction: column; min-width: 0; }
/* Bricolage numeral, tabular so the count-up never jitters. Longhands: the
   font shorthand would reset the numeral features. The counter span inherits
   instead of taking site.css's numeric face. */
#stat-strip .stat-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.125rem, 1.8rem + 1.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--brand-gold);                 /* 8.3:1 on navy clay */
  text-shadow: none;
  transition: color 200ms var(--ease-out);
}
#stat-strip .stat-card__value > [data-counter] {
  font-family: inherit;
  font-weight: inherit;
  font-variant-numeric: inherit;
  letter-spacing: inherit;
}
/* Not a link: colour only, so it may sit outside the motion guard. */
#stat-strip > .stat-card:hover .stat-card__value { color: var(--brand-gold-bright, #FFD633); }
#stat-strip .stat-card__label {
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: rgb(255 255 255 / 0.82);           /* 8.9:1 */
}
/* The 24338 icon container: a round well pressed into the navy. */
#stat-strip .stat-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--clay-navy);
  box-shadow: inset 3px 3px 7px rgb(0 0 0 / 0.38), inset -3px -3px 7px rgb(255 255 255 / 0.09);
  color: color-mix(in oklab, var(--brand-gold) 88%, transparent);
}
#stat-strip .stat-card__icon svg { width: 1.375rem; height: 1.375rem; }
/* Phones: the well moves above the numeral so "Current members" keeps its width. */
@media (max-width: 479px) {
  #stat-strip > .stat-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  #stat-strip .stat-card__icon { order: -1; width: 2.5rem; height: 2.5rem; }
  #stat-strip .stat-card__icon svg { width: 1.125rem; height: 1.125rem; }
}

/* ------------------------------------------------------------------
   4. Director slab (§R5) — navy clay, portrait squircle left; name, role chip
      + affiliation after the name, research text with a bold gold
      "Research interests:" lead-in, then links + "Meet the team". 21st.dev
      12828 "Perspective Highlight": a soft light that follows the pointer
      (--spot-x/--spot-y) and a 2deg tilt (motion block). The research text
      runs in two columns >= 1200px so the slab fills its width without a
      120-character line.
   ---------------------------------------------------------------- */
#director-section .director-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  border-radius: var(--home-slab-radius);
  background: var(--home-navy-face) !important;
  border: 0 !important;
  box-shadow: var(--clay-navy-shadow) !important;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  transform: none;
  --focus-ring: 2px solid var(--brand-gold);
}
#director-section .director-card:hover { transform: none; }
#director-section .director-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(38rem circle at var(--spot-x, 12%) var(--spot-y, 0%),
    rgb(255 255 255 / 0.07), transparent 62%);
}
@media (min-width: 768px) {
  #director-section .director-card { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) {
  #director-section .director-card { grid-template-columns: minmax(0, 14.5rem) minmax(0, 1fr); gap: 2.5rem; }
}

#director-section .director-card__media {
  width: min(100%, 11rem);
  aspect-ratio: 4 / 5;
  border-radius: 1.375rem;
  overflow: hidden;
  background: color-mix(in oklab, var(--clay-navy) 70%, black);
  box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.08);
}
@media (min-width: 768px) {
  #director-section .director-card__media { width: 100%; }
}
/* Phones (§R4): a 6.5rem portrait beside the name and role chip instead of an
   11rem portrait alone above them; research text and links run full width.
   The body box steps aside (display: contents) so its children join the grid. */
@media (max-width: 639px) {
  #director-section .director-card {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 1rem;
    align-items: start;
  }
  #director-section .director-card__body { display: contents; }
  #director-section .director-card__media { grid-row: 1 / span 2; width: 100%; border-radius: 1.125rem; }
  #director-section .director-card__name { grid-column: 2; align-self: end; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.875rem); }
  #director-section .director-card__meta { grid-column: 2; align-self: start; margin-top: 0.5rem; }
  #director-section :is(.director-card__interests, .director-card__actions) { grid-column: 1 / -1; }
}
#director-section .director-card__portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}
#director-section .director-card__portrait--fallback {
  display: grid;
  place-items: center;
  font: 700 clamp(3rem, 6vw, 4.5rem)/1 var(--font-display);
  color: #fff;
}

#director-section .director-card__body { min-width: 0; }
#director-section .director-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
#director-section .director-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  margin-top: 0.75rem;
}
#director-section .director-card__role {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  box-shadow: var(--home-on-navy);
  font: 600 0.875rem/1.2 var(--font-sans);
  color: #fff;
}
#director-section .director-card__org {
  font: 400 0.9375rem/1.4 var(--font-sans);
  color: rgb(255 255 255 / 0.78);           /* 8.0:1 */
}
#director-section .director-card__interests {
  margin: 1rem 0 0;
  font: 400 clamp(0.9375rem, 0.92rem + 0.1vw, 1rem)/1.65 var(--font-sans);
  color: rgb(255 255 255 / 0.86);
  text-wrap: pretty;
}
@media (min-width: 1200px) {
  #director-section .director-card__interests { column-count: 2; column-gap: 2.5rem; }
}
/* §R14: the slab runs to 1920px; a third column keeps each line near 60 characters instead of 100. */
@media (min-width: 1800px) {
  #director-section .director-card__interests { column-count: 3; }
}
#director-section .director-card__lead {
  font-weight: 700;
  color: var(--brand-gold);                 /* gold ledger: director lead-in */
}
#director-section .director-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
#director-section .director-card .roster-card__links { margin-top: 0; padding-top: 0; gap: 0.5rem; }
/* Profile links: translucent white clay squircles on navy (site.css 1901–1905
   force colour/background with !important; ledger). */
#director-section .director-card .roster-card__link {
  width: 2.75rem;                           /* 44px target */
  height: 2.75rem;
  border: 0;
  border-radius: 0.875rem;
  color: #fff !important;
  background: rgb(255 255 255 / 0.1) !important;
  box-shadow: var(--home-on-navy);
  transform: none;
  transition: background-color var(--duration-fast) var(--ease-out), box-shadow 320ms var(--ease-out);
}
#director-section .director-card .roster-card__link svg { width: 1.1rem; height: 1.1rem; }
#director-section .director-card .roster-card__link:hover {
  background: rgb(255 255 255 / 0.2) !important;
  transform: none;
}
#director-section .director-card .roster-card__link:focus-visible { border-radius: 0.875rem; }
#director-section .director-card .btn-ghost svg { width: 1rem; height: 1rem; }

/* ------------------------------------------------------------------
   5. Active projects (§R5, §R14) — clay cards in 3 columns >= 1024, 4 >= 1600,
      5 >= 2000 (2 at 768, 1 below): inset 16:10 image, the short name in
      Bricolage with the descriptor under it, a 2-line excerpt, "Read more".
      A short last row stretches to fill (4 → 3 + 1 full-width, 6 at 1600 →
      4 + 2 halves) so no card is ever left alone in a wide row (§R4).
   ---------------------------------------------------------------- */
#active-projects.home-section { padding-block: var(--home-section-py); }
/* WCAG 2.4.11: keyboard focus inside the pinned layer un-pins it, so the cover band never hides a focused card. */
#active-projects[data-stack-layer]:has(:focus-visible) { position: static; }
#active-projects .home-section__inner {
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--home-inset);
}
#projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Each item is a size container: a card that has grown wide (a short last row) turns horizontal (below). */
#projects-grid > li { display: flex; min-width: 0; container: home-project / inline-size; }
@media (min-width: 768px) and (max-width: 1023px) {
  #projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #projects-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* >= 1024: a wrapping row of --cols equal cards (§R14: 3, then 4 >= 1600, then 5 >= 2000; more columns, never
   stretched cards). The cards of a short last row grow to share that row, so no card sits beside empty cells
   (§R4). The 1px keeps rounding from wrapping a full row early. site.css's 4/5-column grid rules for
   #projects-grid have no effect on a flex box. */
@media (min-width: 1024px) {
  #projects-grid { --cols: 3; display: flex; flex-wrap: wrap; }
  #projects-grid > li { flex: 1 1 calc((100% - (var(--cols) - 1) * var(--home-grid-gap)) / var(--cols) - 1px); }
}
@media (min-width: 1600px) {
  #projects-grid { --cols: 4; }
}
@media (min-width: 2000px) {
  #projects-grid { --cols: 5; }
  /* 6, 11, … cards would leave one card alone on the last row of five: take a sixth column instead
     (the six active projects become one full row). */
  #projects-grid:has(> li:last-child:nth-child(5n + 6)) { --cols: 6; }
}

/* Surface, hover lift and press come from cards.css §3 (clay family). */
#projects-grid .content-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0.625rem;
  border-radius: var(--clay-radius);
  color: var(--ink);
  overflow: visible;
  text-decoration: none;
  --focus-ring: 2px solid var(--accent-ink);   /* site.css 3621 hands navy cards a gold ring */
}
/* §R11 blue / gold alternation (home.js toneClass); cards.css paints the surface from this hook. */
#projects-grid .content-card:is(.tone-a, .tone-b) { --card-surface: var(--home-tone); }

#projects-grid .content-card__media {
  position: relative;
  z-index: auto;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: #fff;                         /* figure composites: shown whole on white */
  box-shadow: 0 10px 20px -12px rgb(23 42 82 / 0.45);
}
/* The R3 media rim sits over the photo (an inset shadow on the frame would
   paint under the image). */
#projects-grid .content-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}
/* Covers run 1:1 to 3.1:1 with captions in the figure, so any crop cuts text: contain, never cover. */
#projects-grid .content-card__media img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  object-fit: contain;
  border-radius: inherit;
  transform: none;
  transition: transform 600ms var(--ease-out);
}
#projects-grid .content-card:hover .content-card__media img { transform: none; }

#projects-grid .content-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.5rem;
  padding: 1rem 0.875rem 0.625rem;
}
#projects-grid .content-card__title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: none;
  font-size: inherit;
}
#projects-grid .content-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.22rem + 0.55vw, 1.625rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  transition: color 220ms var(--ease-out);
}
#projects-grid .content-card__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
#projects-grid .content-card:is(:hover, :focus-visible) .content-card__name { color: var(--accent-ink); }
#projects-grid .content-card__excerpt {
  margin: 0;
  font: 400 0.9375rem/1.55 var(--font-sans);
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
#projects-grid .content-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.375rem;
  font: 600 0.875rem/1.2 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-ink);
}
#projects-grid .content-card__readmore svg {
  width: 1rem;
  height: 1rem;
  transition: transform 300ms var(--ease-out);
}
#projects-grid .content-card:hover .content-card__readmore svg { transform: none; }

/* A card that has grown wide (the full-width odd card at 768–1023, the shared cards of a short last row
   >= 1024) goes horizontal: image left, text right, so its 16:10 image never turns into a tall poster. The
   widest share (a lone card across a whole row) gives the image a third. Phones keep the stacked card. */
@media (min-width: 768px) {
  @container home-project (min-width: 36rem) {
    #projects-grid .content-card {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
      column-gap: 0.75rem;
    }
    #projects-grid .content-card__body { padding: 1rem 1.25rem; }
    #projects-grid .content-card__excerpt { -webkit-line-clamp: 3; line-clamp: 3; }
  }
  @container home-project (min-width: 64rem) {
    #projects-grid .content-card { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  }
}

/* ------------------------------------------------------------------
   6. News + publications band (§R5): two clay panels side by side (3fr / 2fr
      >= 1024). The band rides over the pinned projects layer
      ([data-stack-cover], site.css 3153: rounded top edge + rising shadow), on
      an opaque ground.
   ---------------------------------------------------------------- */
#home-updates.home-updates {
  padding-block: var(--home-section-py);
  background: var(--bg);
}
#home-updates .home-updates__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-grid-gap);
  align-items: stretch;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--home-inset);
}
@media (min-width: 1024px) {
  #home-updates .home-updates__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
#home-updates .home-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1rem, 0.75rem + 1.1vw, 1.75rem);
  border: 0;
  border-radius: var(--home-slab-radius);
  background: var(--clay);
  box-shadow: var(--clay-shadow);
}
/* Both panels stay neutral clay: the blue / gold items inside carry the colour (§R11). */
/* The pill never drops under the title in a narrow panel; the title wraps. */
#home-updates .home-head--panel { flex-wrap: nowrap; align-items: center; margin-bottom: 1rem; }
#home-updates .home-head--panel .section-header__title { min-width: 0; }
#home-updates .home-head--panel .section-header__title {
  font-size: clamp(1.375rem, 1.18rem + 0.75vw, 1.75rem);
  line-height: 1.15;
}

/* ---- 6a. News list: one lead card, then dated headline rows. ---- */
#news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  container-type: inline-size;
}
#news-list .news-home__lead { margin: 0 0 0.25rem; }
/* The lead takes any height the publications panel beside it adds (on wide screens five two-line paper rows
   outgrow the lead + four headlines), so the news panel never ends in an empty band (§R14). Stacked panels
   (< 1024) have no spare height, so nothing grows there. */
#news-list > .news-home__lead { display: flex; flex-direction: column; flex: 1 0 auto; }
#news-list > .news-home__lead > .news-card--home { flex: 1 0 auto; }

/* Lead card: cards.css clay family on the lighter "raised" face; the photo
   is inset with the R3 media shadow. */
#news-list .news-card--home {
  --card-surface: var(--home-tone, var(--home-raised));
  --focus-ring: 2px solid var(--accent-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 0.625rem;
  border-radius: 1.25rem;
  box-shadow: var(--home-item-shadow);
  color: var(--ink);
  overflow: visible;
  text-decoration: none;
  will-change: auto;
}
#news-list .news-card--home .news-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: var(--clay-blue);
  box-shadow: 0 10px 20px -12px rgb(23 42 82 / 0.45);
}
#news-list .news-card--home .news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: inherit;
  transform: none;
  transition: transform 600ms var(--ease-out);
}
#news-list .news-card--home:hover .news-card__media img { transform: none; }
/* Too small to fill the frame (markLowRes): shown whole on navy clay. */
#news-list .news-card__media.is-lowres { background: var(--clay-navy); }
#news-list .news-card__media.is-lowres img { object-fit: contain; }

/* Featured badge — solid gold, navy ink (gold ledger: lead card badge). */
#news-list .news-card--home .news-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.32rem 0.65rem;
  border: 0;
  border-radius: 999px;
  font: 700 0.75rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-transform: none;
  background: var(--brand-gold);
  color: var(--brand-blue-deep);
  box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.5), inset 1px 1px 2px rgb(255 255 255 / 0.55);
}

#news-list .news-card--home .news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.625rem;
  padding: 1rem 0.75rem 0.5rem;
}
#news-list .news-card--home .news-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink-strong);
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  transition: color 220ms var(--ease-out);
}
#news-list .news-card--home:is(:hover, :focus-visible) .news-card__title { color: var(--accent-ink); }
/* Meta AFTER the title (§R1): category chip + date. */
#news-list .news-card--home .news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  font: 500 0.8125rem/1.3 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
#news-list .news-card--home .news-card__meta time {
  font: inherit;
  color: inherit;
  font-variant-numeric: lining-nums tabular-nums;
}
#news-list .news-card--home .news-card__excerpt {
  margin: 0;
  font: 400 0.9375rem/1.55 var(--font-sans);
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
#news-list .news-card--home .news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  margin-top: auto;
  padding-top: 0.25rem;
  border: 0;
  font: 600 0.875rem/1.2 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-ink);
}
#news-list .news-card--home .news-card__more svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 300ms var(--ease-out);
}
#news-list .news-card--home:hover .news-card__more svg { transform: none; }

/* Side by side once the news column is 30rem: photo left, text right; the
   photo cell takes the text's height (min 15rem) instead of a fixed ratio.
   Between 30 and 40rem (the 3fr panel at 1024–1279px) the excerpt drops out
   so the lead stays as short as the photo and the two panels end level. */
@container (min-width: 30rem) {
  #news-list .news-card--home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: 0.5rem;
    align-items: stretch;
  }
  #news-list .news-card--home > .news-card__media { aspect-ratio: auto; min-height: 15rem; height: 100%; }
  #news-list .news-card--home .news-card__body { padding: 0.875rem 0.875rem 0.625rem 1rem; }
  #news-list .news-card--home .news-card__title { -webkit-line-clamp: 4; line-clamp: 4; }
}
@container (min-width: 30rem) and (max-width: 39.99rem) {
  #news-list .news-card--home .news-card__excerpt { display: none; }
}
@container (min-width: 40rem) {
  #news-list .news-card--home { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  #news-list .news-card--home .news-card__title { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* Category chip (news-ui newsBadge): a white clay mini-surface on the blue /
   gold items (§R3, §R11), sentence case, no border; the category colour
   stays on the dot and tints the label. */
#news-list .news-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--home-chip-shadow);
  font: 600 0.75rem/1 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
#news-list .news-badge__main {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.6rem;
  background: none;
  color: color-mix(in oklab, var(--cat) 62%, var(--ink-strong));
}
#news-list .news-badge__dot { width: 0.45rem; height: 0.45rem; }
#news-list .news-badge__sub {
  padding: 0.32rem 0.65rem 0.32rem 0;
  border: 0;
  font-weight: 500;
  color: var(--ink-2);
}
#news-list .news-badge__sub::before { content: "·" / ""; margin-right: 0.35rem; }

/* ---- 6b. Headline rows — 21st.dev 869 "Animated List" anatomy: raised clay
        row, a pressed date well, the title, the category chip after it. ---- */
#news-list .news-headline {
  --focus-ring: 2px solid var(--accent-ink);
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.875rem;
  align-items: center;
  padding: 0.625rem 0.875rem 0.625rem 0.625rem;
  border: 0;
  border-radius: var(--home-item-radius);
  background: var(--home-tone, var(--home-raised));
  box-shadow: var(--home-item-shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
#news-list .news-headline:is(:hover, :focus-visible) { background: var(--home-tone, var(--home-raised)); }
#news-list .news-headline:focus-visible { border-radius: var(--home-item-radius); }
#news-list .news-headline__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.55);     /* a lighter well of the row's own tone */
  box-shadow: var(--home-well);
  color: var(--ink-strong);
}
/* Longhands: the font shorthand would reset the .t-sharpen opsz setting. */
#news-list .news-headline__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 24;
  white-space: nowrap;
  color: inherit;
}
#news-list .news-headline__mon {
  margin-top: 0.2rem;
  font: 600 0.75rem/1 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
#news-list .news-headline__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}
#news-list .news-headline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  transition: color 220ms var(--ease-out);
}
#news-list .news-headline:is(:hover, :focus-visible) .news-headline__title { color: var(--accent-ink); }
#news-list .news-headline__arrow {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-2);
  transition: transform 200ms var(--ease-out), color 200ms var(--ease-out);
}
#news-list .news-headline:hover .news-headline__arrow { transform: none; }
#news-list .news-headline:is(:hover, :focus-visible) .news-headline__arrow { color: var(--accent-ink); }

@media (max-width: 480px) {
  #news-list .news-headline { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0.75rem; }
  #news-list .news-headline__date { width: 3.25rem; height: 3.25rem; }
  #news-list .news-headline__arrow { display: none; }
  #news-list .news-headline__title { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* ---- 6c. Publication rows: compact raised clay rows — title, authors
        (director bold), then year + type chips (§R1, §R5). ---- */
#pubs-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;           /* a shorter list spreads to the news panel's height */
  gap: 0.75rem;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
#pubs-list .pub-row {
  --focus-ring: 2px solid var(--accent-ink);
  padding: 0.875rem 1rem 0.9rem;
  border: 0;
  border-radius: var(--home-item-radius);
  background: var(--home-tone, var(--home-raised));
  box-shadow: var(--home-item-shadow);
  color: var(--ink);
  transform: none;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
#pubs-list .pub-row:hover { transform: none; background: var(--home-tone, var(--home-raised)); }
/* Bricolage 600 like every other publication title (§R2). It is not duplexed, so the hover is colour +
   underline only, never weight. */
#pubs-list .pub-row__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink-strong);
}
/* The 2-line clamp sits on the link, not the h3: an overflow:hidden h3 is a scroll
   container, so focusing the link scrolled its lines and clipped the ring. */
#pubs-list .pub-row__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 220ms var(--ease-out), text-decoration-color var(--duration-fast) var(--ease-out);
}
#pubs-list a.pub-row__title:is(:hover, :focus-visible) {
  color: var(--accent-ink);
  text-decoration-color: color-mix(in oklab, var(--accent-ink) 60%, transparent);
}
#pubs-list .pub-row__authors {
  margin: 0.3rem 0 0;
  font: 400 0.8125rem/1.45 var(--font-sans);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pubs-list .pub-row__authors strong { font-weight: 600; color: var(--ink); }
#pubs-list .pub-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
#pubs-list .pub-row__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #fff;                         /* white clay chip on blue / gold rows (§R11) */
  box-shadow: var(--home-chip-shadow);
  font: 600 0.75rem/1 var(--font-sans);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
#pubs-list .pub-row__chip--year { color: var(--accent-ink); }

/* Empty states (no news / no publications rows in content.json). */
#news-list .home-empty,
#pubs-list .home-empty {
  padding: 1.125rem 1.25rem;
  border: 0;
  border-radius: var(--home-item-radius);
  background: var(--home-raised);
  box-shadow: var(--home-item-shadow);
  font: 400 0.9375rem/1.5 var(--font-sans);
  color: var(--ink-2);
}

/* ------------------------------------------------------------------
   7. CTA slab (§R5) — navy clay, inset from the page edges: the statement
      and lede left, the three buttons right (>= 1024), so the slab is
      compact instead of a tall centred band. The band around it is opaque:
      the pinned projects layer must not show through the gutters. Buttons
      are cards.css §8 (white key + translucent white clay on navy).
   ---------------------------------------------------------------- */
body[data-page="home"] .home-band--cta {
  z-index: 1;
  max-width: none;
  padding-top: 0;
  padding-bottom: var(--home-section-py);
  background: var(--bg);
}
.cta-band[data-cta] {
  --focus-ring: 2px solid var(--brand-gold);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  max-width: none;                          /* the band's --home-inset sets the width (§R14) */
  margin-inline: 0;
  padding: clamp(1.75rem, 1.2rem + 2.2vw, 3rem) clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  border: 0;
  border-radius: var(--home-slab-radius);
  overflow: hidden;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(60% 130% at 100% 0%, rgb(0 114 206 / 0.32), transparent 62%),
    var(--home-navy-face);
  box-shadow: var(--clay-navy-shadow);
}
@media (min-width: 1024px) {
  .cta-band[data-cta] { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}
.cta-band[data-cta] .cta-band__text { min-width: 0; }
.cta-band[data-cta] .cta-band__title {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.cta-band[data-cta] .cta-sep {
  padding: 0 0.12em;
  font-style: normal;
  color: var(--brand-gold);
}
.cta-band[data-cta] .cta-band__lede {
  max-width: 46rem;
  margin: 0.75rem 0 0;
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.125rem)/1.6 var(--font-sans);
  color: rgb(255 255 255 / 0.82);
}
.cta-band[data-cta] .cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}
@media (min-width: 1024px) {
  .cta-band[data-cta] .cta-band__actions { justify-content: flex-end; max-width: 30rem; }
}
/* §R14: on the 1920px slab the 52px title and 46rem lede filled barely 60% of the text column, leaving a navy
   void before the buttons. The statement and lede grow with the slab (two lede lines, ~105 characters). */
@media (min-width: 1600px) {
  .cta-band[data-cta] .cta-band__title { font-size: clamp(3.25rem, 1.5rem + 2vw, 3.75rem); }
  .cta-band[data-cta] .cta-band__lede { max-width: 60rem; font-size: 1.1875rem; }
}

/* ------------------------------------------------------------------
   8. Hover motion — only when motion is welcome (DESIGN-SPEC §2.0 rule 6;
      REVISION-2 §R3: -4px lift + the hover shadow, 320ms; :active pressed).
      Every rest state above is the reduced-motion state.
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  #projects-grid .content-card:hover .content-card__media img { transform: scale(1.04); }
  #projects-grid .content-card:hover .content-card__readmore svg { transform: translateX(4px); }

  #news-list .news-card--home:hover { transform: translateY(-4px); box-shadow: var(--home-item-shadow-hover); }
  #news-list .news-card--home:hover .news-card__media img { transform: scale(1.03); }
  #news-list .news-card--home:hover .news-card__more svg { transform: translateX(3px); }

  #news-list .news-headline:hover { transform: translateY(-3px); box-shadow: var(--home-item-shadow-hover); }
  #news-list .news-headline:hover .news-headline__arrow { transform: translateX(3px); }
  #news-list .news-headline__day { transition: font-variation-settings 350ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  #news-list .news-headline:is(:hover, :focus-visible) .news-headline__day { font-variation-settings: "opsz" 72; }

  #pubs-list .pub-row:hover { transform: translateY(-3px); box-shadow: var(--home-item-shadow-hover); }
}
/* 12828 tilt: fine pointers only; home.js writes --tilt-x / --tilt-y. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  #director-section .director-card {
    transform: perspective(1800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 450ms var(--ease-out);
  }
}
@media (prefers-reduced-motion: reduce) {
  #news-list .news-headline,
  #pubs-list .pub-row,
  #news-list .news-card--home,
  #news-list .news-headline__arrow,
  #news-list .news-card--home .news-card__media img,
  #projects-grid .content-card__media img { transition: none; }
}

/* 2318 "Squishy": a held card or row presses into its panel. Kept after the
   hover rules (same specificity) so the press wins while the pointer is down;
   the pressed shadow is static, the squash is motion. */
#news-list :is(.news-card--home, .news-headline):active,
#pubs-list .pub-row:has(a:active) { box-shadow: var(--clay-pressed); }
@media (prefers-reduced-motion: no-preference) {
  #news-list :is(.news-card--home, .news-headline):active,
  #pubs-list .pub-row:has(a:active) { transform: translateY(0) scale(0.99); }
}

/* Forced colors: shadows vanish, so the rows and panels get a system edge. */
@media (forced-colors: active) {
  #pubs-list .pub-row,
  #news-list .news-headline,
  #home-updates .home-panel { border: 1px solid CanvasText; }
}
