/* ============================================================
   PROJECT CASE STUDY — modular / bento layout system
   Additive stylesheet. Load AFTER styles.css.
   Scoped to .case-page so nothing else on the site is affected.
   ============================================================ */

.case-page {
  /* --- local surface tokens (theme aware) --- */
  --panel: #ffffff;
  --panel-2: #ececec;
  --hairline: rgba(0, 0, 0, 0.10);
  --muted: rgba(17, 17, 17, 0.58);
  --band: #f0f0f0;

  /* --- project accent (Action Target brand blue) --- */
  --accent-project: #1573c4;
  --accent-project-soft: rgba(21, 115, 196, 0.14);

  /* --- rhythm --- */
  --shell: 1320px;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --cell-gap: clamp(0.75rem, 1.4vw, 1.25rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --r-lg: 22px;
  --r-md: 16px;
}

@media (prefers-color-scheme: dark) {
  .case-page {
    --panel: #1c1c1c;
    --panel-2: #232323;
    --hairline: rgba(255, 255, 255, 0.10);
    --muted: rgba(255, 255, 255, 0.58);
    --band: #131313;
    --accent-project: #4ea3ef;
    --accent-project-soft: rgba(78, 163, 239, 0.16);
  }
}

:root[data-theme="dark"] .case-page {
  --panel: #1c1c1c;
  --panel-2: #232323;
  --hairline: rgba(255, 255, 255, 0.10);
  --muted: rgba(255, 255, 255, 0.58);
  --band: #131313;
  --accent-project: #4ea3ef;
  --accent-project-soft: rgba(78, 163, 239, 0.16);
}

:root[data-theme="light"] .case-page {
  --panel: #ffffff;
  --panel-2: #ececec;
  --hairline: rgba(0, 0, 0, 0.10);
  --muted: rgba(17, 17, 17, 0.58);
  --band: #f0f0f0;
  --accent-project: #1573c4;
  --accent-project-soft: rgba(21, 115, 196, 0.14);
}

/* ------------------------------------------------------------
   Shared primitives
   ------------------------------------------------------------ */

.case-page main { padding-top: var(--header-height, 80px); }

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

.shell--wide { max-width: 1600px; }

.shell--bleed { max-width: none; }

/* Micro label — the spec-sheet voice from the bento reference */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.eyebrow--accent { color: var(--accent-project); }

.spec {
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--hairline);
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head .spec { text-align: right; flex: none; }

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .section-head .spec { text-align: left; }
}

/* ------------------------------------------------------------
   1 — HERO  (full-bleed band, editorial split)
   ------------------------------------------------------------ */

.case-hero {
  background: var(--band);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% auto -10%;
  height: 520px;
  background: radial-gradient(ellipse 50% 50% at 30% 50%, var(--accent-project-soft), transparent 70%);
  pointer-events: none;
}

.case-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.case-hero h1 {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0.75rem 0 1.25rem;
  text-wrap: balance;
}

.case-hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
  color: var(--text);
  opacity: 0.85;
}

/* Meta table — Client / Role / Scope / Year */
.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.meta-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.85rem;
  line-height: 1.4;
}

.meta-list dt,
.meta-list .meta-key {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15em;
}

.meta-list .meta-val { font-weight: 500; }

@media (max-width: 860px) {
  .case-hero__grid { grid-template-columns: 1fr; align-items: start; }
}

/* ------------------------------------------------------------
   2 — FULL-BLEED FILM
   ------------------------------------------------------------ */

.case-film {
  position: relative;
  background: #000;
  line-height: 0;
}

.case-film video {
  width: 100%;
  height: auto;
  display: block;
}

/* caption rail sitting over the bottom of the film */
.case-film__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2.25rem) var(--pad-x);
  color: #fff;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 45%, transparent 100%);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.case-film__rail .eyebrow,
.case-film__rail .spec { color: rgba(255, 255, 255, 0.72); }

.case-film__rail strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.3rem;
}

@media (max-width: 640px) {
  .case-film__rail { display: none; }
}

/* ------------------------------------------------------------
   3 — OVERVIEW  (double column + stat strip)
   ------------------------------------------------------------ */

.case-overview { padding-block: var(--section-y); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.split__aside { position: sticky; top: calc(var(--header-height, 80px) + 2rem); }

.split__aside h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0.6rem 0 0;
  text-wrap: balance;
}

.split__body p {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
  margin: 0 0 1.25rem;
  max-width: 62ch;
}

.split__body p:last-child { margin-bottom: 0; }

/* numbered deliverable rows */
.rundown {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.rundown li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
}

.rundown .num {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.3em;
}

.rundown h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rundown p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split__aside { position: static; }
}

/* Stat strip — quad row */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--cell-gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.stat {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 140px;
  justify-content: space-between;
}

.stat b {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stat-strip { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   4 — BENTO GRID
   ------------------------------------------------------------ */

.case-bento { padding: 0 0 var(--section-y); }

.bento {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(168px, 15.5vw, 232px);
  gap: var(--cell-gap);
}

/* every cell is a panel */
.bento > .reveal {
  display: block;
  height: 100%;
  min-width: 0;
}

.bento .tile {
  position: relative;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

/* --- image tiles --- */
.bento a.card,
.bento a.photo-item {
  border-radius: var(--r-lg);
  box-shadow: none;
  background: var(--panel);
  overflow: hidden;
  display: block;
  cursor: zoom-in;
}

/* neutralise the global card hover (white wash + blend) */
.bento a.card:hover {
  background: var(--panel);
  color: inherit;
}

.bento a.card img {
  border-radius: inherit;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2, .7, .3, 1);
}

.bento a.card:hover img {
  mix-blend-mode: normal;
  transform: scale(1.035);
}

/* caption that fades up on hover/focus */
.tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.15rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  text-align: left;
  z-index: 2;
}

.bento a.card:hover .tile__cap,
.bento a.card:focus-visible .tile__cap { opacity: 1; transform: none; }

.tile__cap .eyebrow { color: rgba(255, 255, 255, 0.7); }

.tile__cap strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* --- content tiles (no image) --- */
.tile--pad { padding: clamp(1.25rem, 2.2vw, 1.9rem); gap: 1rem; }

.tile__note {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.tile__big {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: auto 0 0;
  overflow-wrap: anywhere;
}

/* colour swatch module */
.swatches { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.1rem; }
.swatches:last-child { margin-top: auto; }
.tile--pad .swatches + .spec { margin-top: auto; padding-top: 1rem; }

.swatch {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.swatch .dot {
  width: clamp(38px, 4.5vw, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--hairline);
}

/* type specimen module */
.specimen {
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.specimen__set {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: break-word;
}

.specimen__abc { word-break: break-all; }

/* size ladder under a specimen */
.type-scale {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.type-scale li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.type-scale li:last-child { border-bottom: 0; }
.type-scale span:last-child { color: var(--muted); }

/* --- spans --- */
.c2 { grid-column: span 2; }
.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.r2 { grid-row: span 2; }
.r3 { grid-row: span 3; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c3, .c4 { grid-column: span 2; }
  .r3 { grid-row: span 2; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(240px, auto); }
  .c2, .c3, .c4 { grid-column: span 1; }
  .r2, .r3 { grid-row: span 1; }
}

/* ------------------------------------------------------------
   5 — FULL-WIDTH STATEMENT BAND
   ------------------------------------------------------------ */

.case-statement {
  background: var(--band);
  border-block: 1px solid var(--hairline);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.case-statement blockquote {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.case-statement blockquote span { color: var(--accent-project); }

.statement-note {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  max-width: 40ch;
}

/* ------------------------------------------------------------
   6 — TRIPLE ROW
   ------------------------------------------------------------ */

.case-triple { padding: var(--section-y) 0; }

.triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--cell-gap);
}

.triple > div { min-width: 0; }

.triple a.card {
  border-radius: var(--r-lg);
  box-shadow: none;
  background: var(--panel);
  border: 1px solid var(--hairline);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  cursor: zoom-in;
}

.triple a.card:hover { background: var(--panel); color: inherit; }

.triple a.card img {
  border-radius: inherit;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2, .7, .3, 1);
}

.triple a.card:hover img { mix-blend-mode: normal; transform: scale(1.035); }

.triple--portrait a.card { aspect-ratio: 4 / 5; }
.triple--square a.card { aspect-ratio: 1; }

.figure-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.75rem;
}

.figure-cap strong { font-size: 0.95rem; font-weight: 600; }

@media (max-width: 900px) { .triple { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .triple { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   7 — DOUBLE (image + copy)
   ------------------------------------------------------------ */

.case-double { padding: 0 0 var(--section-y); }

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.duo > .reveal { display: block; min-width: 0; }

.duo a.card {
  border-radius: var(--r-lg);
  box-shadow: none;
  background: var(--panel);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: block;
  cursor: zoom-in;
}

.duo a.card:hover { background: var(--panel); color: inherit; }
.duo a.card img { border-radius: inherit; height: auto; object-fit: contain; }
.duo a.card:hover img { mix-blend-mode: normal; }

.duo__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0.6rem 0 1rem;
  font-weight: 700;
}

.duo__copy p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 46ch;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
}

@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   8 — NEXT PROJECT
   ------------------------------------------------------------ */

.case-next {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.next-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-inline 0.35s cubic-bezier(.2, .7, .3, 1), color 0.25s ease;
}

.next-link:hover { padding-inline: 1rem; color: var(--accent-project); }

.next-link .title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.next-link .arrow { font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1; }

/* ------------------------------------------------------------
   Reveal on scroll (progressive enhancement — see inline bootstrap)
   ------------------------------------------------------------ */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(.2, .7, .3, 1),
              transform 0.55s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}

.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Motion preferences
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .bento a.card:hover img,
  .triple a.card:hover img { transform: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .next-link:hover { padding-inline: 0; }
  .split__aside { position: static; }
}

/* ============================================================
   ACCENT THEMES
   Each project page sets data-accent on <body class="case-page">.
   ============================================================ */

.case-page[data-accent="pupford"] {
  --accent-project: #e14f3d;          /* Pupford Persimmon Red, PMS 7417 C */
  --accent-project-soft: rgba(225, 79, 61, 0.13);
  --band: #fcf9e9;                    /* Pupford Chiffon Cream, PMS 9141 C 35% */
  --panel: #ffffff;
  --panel-2: #f5f1de;
  --hairline: rgba(87, 45, 47, 0.15);
  --muted: rgba(87, 45, 47, 0.66);    /* PMS 7631 C */
}

@media (prefers-color-scheme: dark) {
  .case-page[data-accent="pupford"] {
    --accent-project: #f2705d;
    --accent-project-soft: rgba(242, 112, 93, 0.16);
    --band: #17120f;
    --panel: #201a17;
    --panel-2: #2b2320;
    --hairline: rgba(252, 249, 233, 0.12);
    --muted: rgba(252, 249, 233, 0.6);
  }
}

:root[data-theme="dark"] .case-page[data-accent="pupford"] {
  --accent-project: #f2705d;
  --accent-project-soft: rgba(242, 112, 93, 0.16);
  --band: #17120f;
  --panel: #201a17;
  --panel-2: #2b2320;
  --hairline: rgba(252, 249, 233, 0.12);
  --muted: rgba(252, 249, 233, 0.6);
}

:root[data-theme="light"] .case-page[data-accent="pupford"] {
  --accent-project: #e14f3d;          /* Pupford Persimmon Red, PMS 7417 C */
  --accent-project-soft: rgba(225, 79, 61, 0.13);
  --band: #fcf9e9;                    /* Pupford Chiffon Cream, PMS 9141 C 35% */
  --panel: #ffffff;
  --panel-2: #f5f1de;
  --hairline: rgba(87, 45, 47, 0.15);
  --muted: rgba(87, 45, 47, 0.66);    /* PMS 7631 C */
}

/* ------------------------------------------------------------
   Full-bleed still (the photo equivalent of .case-film)
   ------------------------------------------------------------ */

.case-still { position: relative; line-height: 0; padding: 0; background: var(--panel-2); }

.case-still a.card { border-radius: 0; box-shadow: none; display: block; cursor: zoom-in; }
.case-still a.card:hover { background: none; color: inherit; }
.case-still a.card:hover img { mix-blend-mode: normal; }

.case-still img {
  width: 100%;
  height: clamp(340px, 64vh, 760px);
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  display: block;
}

/* ------------------------------------------------------------
   Statement band — filled variant
   ------------------------------------------------------------ */

.case-statement--fill {
  background: var(--accent-project);
  border-block-color: transparent;
  color: #fff;
}

.case-statement--fill blockquote span { color: rgba(255, 255, 255, 0.62); }

.case-statement--fill .statement-note,
.case-statement--fill .spec { color: rgba(255, 255, 255, 0.78); }

.case-statement--fill .statement-note { border-top-color: rgba(255, 255, 255, 0.32); }

/* ------------------------------------------------------------
   QUAD ROW — four-beat sequence
   ------------------------------------------------------------ */

.case-quad { padding: 0 0 var(--section-y); }

.quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--cell-gap);
}

.quad > div { min-width: 0; }

.quad a.card,
.strip a.card,
.illo-row a.card {
  border-radius: var(--r-lg);
  box-shadow: none;
  background: var(--panel);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: block;
  cursor: zoom-in;
}

.quad a.card:hover,
.strip a.card:hover,
.illo-row a.card:hover { background: var(--panel); color: inherit; }

.quad a.card img,
.strip a.card img,
.illo-row a.card img {
  border-radius: inherit;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2, .7, .3, 1);
}

.quad a.card:hover img,
.strip a.card:hover img,
.illo-row a.card:hover img { mix-blend-mode: normal; transform: scale(1.035); }

.quad a.card { aspect-ratio: 1; }

.quad .step {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-top: 0.7rem;
}

.quad .step b { font-size: 0.9rem; font-weight: 600; }

@media (max-width: 900px) { .quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quad { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   PHOTO STRIP — full-bleed, mixed orientation
   ------------------------------------------------------------ */

.case-strip { padding: 0 0 var(--section-y); }

.strip {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--cell-gap);
  padding-inline: var(--pad-x);
}

.strip > div { min-width: 0; }
.strip a.card { height: 100%; }
.strip a.card img { width: 100%; height: 100%; }

.strip .w2 { grid-column: span 2; }
.strip .w3 { grid-column: span 3; }
.strip .h2 { grid-row: span 2; }

.strip--rows { grid-auto-rows: clamp(150px, 15vw, 230px); }

@media (max-width: 1000px) {
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip .w3 { grid-column: span 2; }
}

@media (max-width: 620px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip .w2, .strip .w3 { grid-column: span 2; }
  .strip .h2 { grid-row: span 1; }
  .strip--rows { grid-auto-rows: 190px; }
}

/* ------------------------------------------------------------
   ILLUSTRATION ROW — small repeated tiles
   ------------------------------------------------------------ */

.case-illo { padding: 0 0 var(--section-y); }

.illo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--cell-gap);
}

.illo-row > div { min-width: 0; }
.illo-row a.card { aspect-ratio: 4 / 5; }

@media (max-width: 900px) { .illo-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .illo-row { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------
   Bento extras
   ------------------------------------------------------------ */

/* a tile that shows the top of a very tall image (a scrolling page) */
.bento a.card--scroll img,
.tile--scroll img { object-position: top center; }

/* on hover, creep down the long page instead of scaling */
.bento a.card--scroll img {
  transition: object-position 4.5s ease-in-out, transform 0.6s ease;
}

.bento a.card--scroll:hover img {
  object-position: bottom center;
  transform: none;
}

/* tile with a flat brand colour instead of an image */
.bento .tile--fill,
.tile--fill {
  background: var(--accent-project);
  color: #fff;
  border-color: transparent;
}

.tile--fill .eyebrow { color: rgba(255, 255, 255, 0.72); }

/* show a designed piece whole - never crop through its typography */
.bento a.card--fit img {
  object-fit: contain;
  background: var(--panel-2);
}

/* contain-fit image tile for packshots on their own background */
.bento a.card--contain img {
  object-fit: contain;
  background: var(--panel-2);
  padding: clamp(10px, 1.6vw, 22px);
}

.duo--flip .duo__copy { order: -1; }

@media (max-width: 860px) { .duo--flip .duo__copy { order: 0; } }

/* ============================================================
   SIZING RESET
   styles.css sets `.photo-item { height: auto }` and
   `.photo-item img { height: auto }`, which beats `.card { height: 100% }`.
   Every module here sizes its own cells, so restate it.
   ============================================================ */

.case-page .bento a.card,
.case-page .strip a.card,
.case-page .case-still a.card { height: 100%; }

/* these size themselves from aspect-ratio - don't force a percentage height */
.case-page .triple a.card,
.case-page .quad a.card,
.case-page .illo-row a.card { height: auto; }

.case-page .bento a.card img,
.case-page .triple a.card img,
.case-page .quad a.card img,
.case-page .strip a.card img,
.case-page .illo-row a.card img {
  width: 100%;
  height: 100%;
}

.case-page .bento > .reveal,
.case-page .strip > .reveal { overflow: hidden; border-radius: var(--r-lg); }

/* long-page screenshots get a fixed window, not their full 10,000px */
.case-page .duo a.card--scroll {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  margin-inline: auto;
  height: auto;
}

.case-page .duo a.card--scroll img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: object-position 6s ease-in-out;
}

.case-page .duo a.card--scroll:hover img { object-position: bottom center; }

/* 4:5 tiles for card-shaped artwork (recipe cards, drawn-dog cards) */
.illo-row--tall a.card { aspect-ratio: 4 / 5; }

/* an image that is already a mockup - no panel chrome behind it */
.case-page .duo a.card--plain {
  background: none;
  border: 0;
  aspect-ratio: auto;
  max-width: 340px;
  margin-inline: auto;
}

.case-page .duo a.card--plain img {
  height: auto;
  object-fit: contain;
  border-radius: 0;
}


/* ============================================================
   LINE-SEGMENT COLOUR SYSTEM
   Seven product lines, each a flood colour plus its darker
   typography/illustration shade.
   ============================================================ */

.case-lines { padding: 0 0 var(--section-y); }

.line-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--cell-gap);
}

.line-col {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.line-col__flood {
  padding: 0.9rem 0.85rem 1.6rem;
  min-height: 168px;
}

.line-col__flood h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.line-col__type {
  padding: 0.9rem 0.85rem 1.2rem;
  margin-top: auto;
  min-height: 108px;
}

.line-col .spec { color: inherit; opacity: 0.78; }
.line-col__flood .spec,
.line-col__type .spec { font-size: 0.66rem; line-height: 1.5; }

@media (max-width: 1080px) { .line-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* primary pair, shown large above the line grid */
.primary-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cell-gap);
  margin-bottom: var(--cell-gap);
}

.primary-swatch {
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.primary-swatch h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.primary-swatch .spec { color: inherit; opacity: 0.8; }

@media (max-width: 620px) { .primary-pair { grid-template-columns: 1fr; } }

/* Buenos Aires if the Typekit kit carries it; graceful fallback if not */
.specimen,
.specimen__abc,
.brand-type { font-family: "buenos-aires", "din-2014", var(--font-stack); }

.weight-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}

.weight-list li { display: flex; justify-content: space-between; gap: 1rem; }
.weight-list b { color: var(--text); font-weight: 600; }

/* ============================================================
   CAROUSEL — a social carousel shown the way it was posted
   ============================================================ */

.case-carousels { padding: 0 0 var(--section-y); }

.carousel-row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--hairline);
}

.carousel-row:first-of-type { border-top: 0; padding-top: 0; }

.carousel-row__copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0.6rem 0 0.85rem;
}

.carousel-row__copy p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 42ch;
}

.carousel {
  position: relative;
  min-width: 0;
}

.carousel__viewport {
  display: flex;
  gap: var(--cell-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}

.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 clamp(180px, 22%, 260px);
  min-width: 0;
}

.carousel__slide a.card {
  display: block;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--panel);
  box-shadow: none;
  overflow: hidden;
  cursor: zoom-in;
}

.carousel__slide a.card:hover { background: var(--panel); color: inherit; }

.carousel__slide a.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.carousel__slide a.card:hover img { mix-blend-mode: normal; }

.carousel__num {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.45rem;
  display: block;
}

.carousel__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

.carousel__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--panel);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.carousel__btn:hover { background: var(--accent-project); border-color: transparent; color: #fff; }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.carousel__btn[disabled]:hover { background: var(--panel); color: var(--text); border-color: var(--hairline); }

.carousel__count { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .carousel-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .carousel__slide { flex: 0 0 46%; }
}

@media (max-width: 520px) {
  .carousel__slide { flex: 0 0 68%; }
}

/* ============================================================
   COLOURWAY CYCLER — one frame, cross-fading through variants
   ============================================================ */

.cycler {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 1;
  max-width: 460px;
}

.cycler img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.cycler img.is-on { opacity: 1; }

.cycler__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.25rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.cycler-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.cycler-row .duo__copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0.6rem 0 0.9rem;
  font-weight: 700;
}

@media (max-width: 860px) { .cycler-row { grid-template-columns: 1fr; } }

/* ============================================================
   Spacing fix: a section that follows the statement band needs
   its own top padding, not the band's edge.
   ============================================================ */

.case-statement + .case-strip,
.case-statement + section { padding-top: var(--section-y); }

/* wider ad grid */
.case-quad .quad + .quad { margin-top: var(--cell-gap); }

/* section heads now carry a numbered eyebrow above the title */
.section-head { align-items: flex-end; }
.section-head > div { min-width: 0; }
.section-head > div .eyebrow { margin-bottom: 0.45rem; }

/* tall page-scroll tiles in a quad */
.quad--tall a.card { aspect-ratio: 2 / 3; }
.quad--tall a.card img { object-position: top center; transition: object-position 5s ease-in-out; }
.quad--tall a.card:hover img { object-position: bottom center; transform: none; }

.quad .step b { font-size: 0.9rem; font-weight: 600; }

/* three-up stat strip */
.stat-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .stat-strip--3 { grid-template-columns: 1fr; } }

/* the kit: a note between the primaries and the line grid */
.kit-note {
  margin: var(--cell-gap) 0;
  max-width: 62ch;
}

/* spec tiles under the line grid */
.kit-bento { margin-top: var(--cell-gap); }

/* two-up figure pair */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cell-gap);
}

.pair > div { min-width: 0; }

.pair a.card {
  display: block;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--panel);
  box-shadow: none;
  overflow: hidden;
  cursor: zoom-in;
}

.pair a.card:hover { background: var(--panel); color: inherit; }

.pair a.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--panel-2);
  border-radius: inherit;
}

.pair a.card:hover img { mix-blend-mode: normal; }

@media (max-width: 620px) { .pair { grid-template-columns: 1fr; } }

/* meta table now carries five rows including dates */
.meta-list li { grid-template-columns: 5.6rem 1fr; }

/* ============================================================
   FLIPBOOK — a stop-motion carousel played back as an animation
   ============================================================ */

.flipbook {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--panel-2);
  aspect-ratio: 4 / 5;
  max-width: 420px;
}

.flipbook img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.flipbook img.is-on { opacity: 1; }

.flipbook__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.7rem;
}

.flipbook__toggle {
  border: 1px solid var(--hairline);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.flipbook__toggle:hover { background: var(--accent-project); border-color: transparent; color: #fff; }

.flipbook__frame {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* story-format ads sit taller than the square set */
.quad--story a.card { aspect-ratio: 9 / 16; }

@media (prefers-reduced-motion: reduce) {
  .flipbook img { transition: none; }
}

/* landscape cells in a quad, for product-in-context frames */
.quad--wide a.card { aspect-ratio: 4 / 3; }

/* a quad carrying only three items */
.quad--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .quad--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quad--three { grid-template-columns: 1fr; } }

/* ============================================================
   PROGRESSION — an illustration walked from rough to shipped
   ============================================================ */

.progression {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--cell-gap);
  counter-reset: stage;
}

.stage { min-width: 0; }

.stage__frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: #fcf9e9;              /* Chiffon Cream — the illustration ground */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  cursor: zoom-in;
  box-shadow: none;
}

.stage__frame:hover { background: #fcf9e9; color: inherit; }

.stage__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(10px, 1.8vw, 26px);
  border-radius: inherit;
}

.stage__frame:hover img { mix-blend-mode: normal; }

.stage__num {
  position: absolute;
  top: 0.7rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #572d2f;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.stage__cap { padding-top: 0.75rem; }

.stage__cap strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stage__cap p {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 860px) { .progression { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .progression { grid-template-columns: 1fr; } }

/* ============================================================
   CAMPAIGN — one concept shown in both placements
   ============================================================ */

.campaign {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--cell-gap);
}

.ad-pair { min-width: 0; display: flex; flex-direction: column; gap: var(--cell-gap); }

.ad-pair a.card {
  display: block;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--panel);
  box-shadow: none;
  overflow: hidden;
  cursor: zoom-in;
}

.ad-pair a.card:hover { background: var(--panel); color: inherit; }

.ad-pair a.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.6s cubic-bezier(.2, .7, .3, 1);
}

.ad-pair a.card:hover img { mix-blend-mode: normal; transform: scale(1.03); }

.ad-pair__story { aspect-ratio: 9 / 16; }
.ad-pair__square { aspect-ratio: 1; }

.ad-pair__cap { margin-top: auto; padding-top: 0.15rem; }
.ad-pair__cap b { display: block; font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.ad-pair__cap span { font-size: 0.7rem; color: var(--muted); }

@media (max-width: 1080px) { .campaign { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .campaign { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   MOTION — social video, looping
   ============================================================ */

.case-motion { padding: 0 0 var(--section-y); }

.motion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.motion-item { min-width: 0; }

.motion-item__frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: #000;
  aspect-ratio: 1080 / 1436;
  max-width: 460px;
}

.motion-item__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

.motion-item__cap { padding-top: 0.85rem; max-width: 460px; }
.motion-item__cap strong { display: block; font-size: 1rem; font-weight: 600; }
.motion-item__cap p { margin: 0.35rem 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 760px) { .motion-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STUDY LAYOUT — lighter case template for self-directed work
   Reuses case-hero / meta-list / split / rundown / section-head /
   case-next from above. Adds a full-bleed opener, an unboxed
   gallery grid with captions, and numbered chapters for pages
   that hold more than one piece.
   ============================================================ */

/* Full-bleed opener: edge to edge, no card chrome */
.study-opener {
  position: relative;
  line-height: 0;
  background: var(--panel-2);
}

.study-opener img {
  width: 100%;
  height: clamp(320px, 72vh, 820px);
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  display: block;
}

/* Gallery: plain grid, hairline gaps, captions under each figure */
.study-gallery { padding: 0 0 var(--section-y); }

.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cell-gap);
  align-items: start;
}

.study-grid--1 { grid-template-columns: minmax(0, 1fr); }
.study-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.study-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.study-grid .span-2 { grid-column: span 2; }

.study-fig { margin: 0; min-width: 0; }

/* Neutralise the index-grid .card chrome (flex, white hover, blend) */
.study-fig a.card,
.study-fig .frame {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: none;
  color: inherit;
  cursor: zoom-in;
  transform: none;
}

.study-fig .frame { cursor: default; }

.study-fig a.card:hover { background: var(--panel-2); color: inherit; }
.study-fig a.card:hover img { mix-blend-mode: normal; transform: scale(1.025); }

.study-fig img,
.study-fig video {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 4 / 3);
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  border-radius: 0;
  display: block;
  transition: transform 0.7s cubic-bezier(.2, .7, .3, 1);
}

.study-fig figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.study-fig figcaption .n {
  flex: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* Chapters: numbered sections for pages holding more than one piece */
.study-chapter { padding: 0 0 var(--section-y); }

.study-chapter .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.study-chapter .split { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.split__aside h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0.6rem 0 0;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .study-grid--3,
  .study-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .study-grid,
  .study-grid--3,
  .study-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .study-grid .span-2 { grid-column: auto; }
  .study-opener img { height: clamp(260px, 55vh, 520px); }
}

@media (prefers-reduced-motion: reduce) {
  .study-fig a.card:hover img { transform: none; }
}

/* ------------------------------------------------------------
   Study page accents (accent colour only; surfaces stay neutral)
   ------------------------------------------------------------ */

/* Beak and Comb red */
.case-page[data-accent="beak"] {
  --accent-project: #b3261e;
  --accent-project-soft: rgba(179, 38, 30, 0.13);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="beak"] {
    --accent-project: #e8574c;
    --accent-project-soft: rgba(232, 87, 76, 0.16);
  }
}
:root[data-theme="dark"] .case-page[data-accent="beak"] {
  --accent-project: #e8574c;
  --accent-project-soft: rgba(232, 87, 76, 0.16);
}
:root[data-theme="light"] .case-page[data-accent="beak"] {
  --accent-project: #b3261e;
  --accent-project-soft: rgba(179, 38, 30, 0.13);
}

/* Hollis amber */
.case-page[data-accent="hollis"] {
  --accent-project: #b3782a;
  --accent-project-soft: rgba(179, 120, 42, 0.14);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="hollis"] {
    --accent-project: #e0a24a;
    --accent-project-soft: rgba(224, 162, 74, 0.16);
  }
}
:root[data-theme="dark"] .case-page[data-accent="hollis"] {
  --accent-project: #e0a24a;
  --accent-project-soft: rgba(224, 162, 74, 0.16);
}
:root[data-theme="light"] .case-page[data-accent="hollis"] {
  --accent-project: #b3782a;
  --accent-project-soft: rgba(179, 120, 42, 0.14);
}

/* Mafia deco gold */
.case-page[data-accent="mafia"] {
  --accent-project: #9c7a2e;
  --accent-project-soft: rgba(156, 122, 46, 0.14);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="mafia"] {
    --accent-project: #d4ab4c;
    --accent-project-soft: rgba(212, 171, 76, 0.16);
  }
}
:root[data-theme="dark"] .case-page[data-accent="mafia"] {
  --accent-project: #d4ab4c;
  --accent-project-soft: rgba(212, 171, 76, 0.16);
}
:root[data-theme="light"] .case-page[data-accent="mafia"] {
  --accent-project: #9c7a2e;
  --accent-project-soft: rgba(156, 122, 46, 0.14);
}

/* Rud's Dirt brick */
.case-page[data-accent="ruds"] {
  --accent-project: #a8402f;
  --accent-project-soft: rgba(168, 64, 47, 0.13);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="ruds"] {
    --accent-project: #e0664f;
    --accent-project-soft: rgba(224, 102, 79, 0.16);
  }
}
:root[data-theme="dark"] .case-page[data-accent="ruds"] {
  --accent-project: #e0664f;
  --accent-project-soft: rgba(224, 102, 79, 0.16);
}
:root[data-theme="light"] .case-page[data-accent="ruds"] {
  --accent-project: #a8402f;
  --accent-project-soft: rgba(168, 64, 47, 0.13);
}

/* Sabriel navy */
.case-page[data-accent="book"] {
  --accent-project: #2f4a7a;
  --accent-project-soft: rgba(47, 74, 122, 0.14);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="book"] {
    --accent-project: #7c9ad4;
    --accent-project-soft: rgba(124, 154, 212, 0.16);
  }
}
:root[data-theme="dark"] .case-page[data-accent="book"] {
  --accent-project: #7c9ad4;
  --accent-project-soft: rgba(124, 154, 212, 0.16);
}
:root[data-theme="light"] .case-page[data-accent="book"] {
  --accent-project: #2f4a7a;
  --accent-project-soft: rgba(47, 74, 122, 0.14);
}

/* Poster graphite */
.case-page[data-accent="posters"] {
  --accent-project: #3a3a3a;
  --accent-project-soft: rgba(58, 58, 58, 0.12);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="posters"] {
    --accent-project: #bdbdbd;
    --accent-project-soft: rgba(189, 189, 189, 0.14);
  }
}
:root[data-theme="dark"] .case-page[data-accent="posters"] {
  --accent-project: #bdbdbd;
  --accent-project-soft: rgba(189, 189, 189, 0.14);
}
:root[data-theme="light"] .case-page[data-accent="posters"] {
  --accent-project: #3a3a3a;
  --accent-project-soft: rgba(58, 58, 58, 0.12);
}

/* Mars rust */
.case-page[data-accent="mars"] {
  --accent-project: #b8512a;
  --accent-project-soft: rgba(184, 81, 42, 0.13);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="mars"] {
    --accent-project: #e57a4d;
    --accent-project-soft: rgba(229, 122, 77, 0.16);
  }
}
:root[data-theme="dark"] .case-page[data-accent="mars"] {
  --accent-project: #e57a4d;
  --accent-project-soft: rgba(229, 122, 77, 0.16);
}
:root[data-theme="light"] .case-page[data-accent="mars"] {
  --accent-project: #b8512a;
  --accent-project-soft: rgba(184, 81, 42, 0.13);
}

/* SocialClimb: navy / orange / sky. Orange is the accent; the band takes a
   cool tint so the hero sits closer to the brand than the neutral default. */
.case-page[data-accent="socialclimb"] {
  --accent-project: #d96a1c;
  --accent-project-soft: rgba(233, 123, 44, 0.14);
  --band: #eef3f7;
  --panel-2: #e4ebf1;
  --hairline: rgba(15, 53, 86, 0.14);
  --muted: rgba(15, 53, 86, 0.62);
}
@media (prefers-color-scheme: dark) {
  .case-page[data-accent="socialclimb"] {
    --accent-project: #f0904a;
    --accent-project-soft: rgba(240, 144, 74, 0.16);
    --band: #0e1a26;
    --panel-2: #172634;
    --hairline: rgba(255, 255, 255, 0.10);
    --muted: rgba(255, 255, 255, 0.6);
  }
}
:root[data-theme="dark"] .case-page[data-accent="socialclimb"] {
  --accent-project: #f0904a;
  --accent-project-soft: rgba(240, 144, 74, 0.16);
  --band: #0e1a26;
  --panel-2: #172634;
  --hairline: rgba(255, 255, 255, 0.10);
  --muted: rgba(255, 255, 255, 0.6);
}
:root[data-theme="light"] .case-page[data-accent="socialclimb"] {
  --accent-project: #d96a1c;
  --accent-project-soft: rgba(233, 123, 44, 0.14);
  --band: #eef3f7;
  --panel-2: #e4ebf1;
  --hairline: rgba(15, 53, 86, 0.14);
  --muted: rgba(15, 53, 86, 0.62);
}

/* Video inside the image + copy duo (same frame treatment as a.card) */
.duo__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.duo__media video { width: 100%; height: auto; display: block; }

/* Smaller display tile for three-line headlines */
.tile__big--sm { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

/* Progression, six-up: three across so the frames stay large enough to read.
   Square frames; thumbnails are pre-cropped to the drawing, the lightbox
   opens the full canvas. */
.progression--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.progression--six .stage__frame { aspect-ratio: 1 / 1; }
.progression--six .stage__frame img { padding: 0; }
.progression--six .stage__frame--cover img { object-fit: cover; object-position: 50% 45%; }
@media (max-width: 860px) { .progression--six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .progression--six { grid-template-columns: 1fr; } }
