/* =========================================================
   Zena Zerai: Senior Product Designer
   A small, warm record store of selected work.
   ========================================================= */

:root {
  /* Palette: pulled from the dim record store: amber chandelier,
     warm sepia walls, deep crate shadows, cream record sleeves. */
  --bg:        #0E0B08;
  --bg-2:      #15100B;
  --surface:   #1B140E;
  --line:      #2A2018;
  --ink:       #F5EFE3;
  --ink-soft:  #C9BEAB;
  --muted:     #8A7A66;
  --amber:     #D67B3D;
  --amber-2:   #E9A05B;
  --cream:     #EFE4CB;

  /* Typography */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1280px;
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .15, 1);

  /* Max display width for FOS mockups. PNGs can be 2× the pixel size (e.g. 2048 wide) for Retina; keep this at the logical ~1024 layout cap. */
  --fos-mock-max-w: 1024px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Swapped by SPA navigation: outer wrapper only; player stays in body */
.spa-main {
  position: relative;
  z-index: 2;
}

.spa-main:focus {
  outline: none;
}

a { color: inherit; text-decoration: none; }

/* Small uppercase label, like a record-shop tag */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--center { justify-self: center; text-align: center; }
.kicker--right  { justify-self: end;    text-align: right;  }
.hero__top .kicker--right { grid-column: 3; }

/* Case study Toyota: louder experiment anchors (paired with semantic <strong>) */
.kicker.kicker--experiment-badge {
  text-transform: none;
  letter-spacing: 0.05em;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(12px, 0.85vw + 10px, 14px);
  line-height: 1.4;
  color: rgba(201, 190, 171, 0.88);
}

.kicker.kicker--experiment-badge strong {
  font-weight: 650;
  font-size: clamp(14px, 1vw + 10px, 17px);
  letter-spacing: 0.02em;
  color: var(--cream);
}

/* Italic display flourish: Studio-Namma style */
.italic {
  font-style: italic;
  color: var(--amber-2);
}

/* Subtle film grain over the whole page */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(14,11,8,0.85), rgba(14,11,8,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.nav__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(214, 123, 61, 0.7);
}
.nav__links {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav__links a { position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--amber);
  transition: right .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { right: 0; background: var(--amber); }
.nav__meta { justify-self: end; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 2px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(214, 123, 61, 0.35);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav__cta:hover {
  background: var(--amber-2);
  border-color: var(--amber-2);
  box-shadow: 0 0 28px rgba(214, 123, 61, 0.55);
}
.nav__cta-icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity .2s var(--ease);
}
.nav__cta:hover .nav__cta-icon { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(14,11,8,0.45) 55%, rgba(14,11,8,0.95) 100%),
    linear-gradient(to bottom, rgba(14,11,8,0.4) 0%, rgba(14,11,8,0.1) 30%, rgba(14,11,8,0.6) 80%, rgba(14,11,8,0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.hero__top {
  position: absolute;
  bottom: 28px;
  left: var(--pad);
  right: var(--pad);
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.hero__bottom {
  grid-template-columns: 1fr;
  justify-items: center;
}



.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 160px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
  text-align: center;
  text-shadow: 0 6px 40px rgba(0,0,0,0.55);
}
.hero__line { display: inline; }
.hero__line--italic {
  font-style: italic;
  color: var(--amber-2);
  text-shadow: 0 6px 60px rgba(214, 123, 61, 0.35);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 5vw + 8px, 32px);
  line-height: 1.2;
  margin: 0;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.hero__tagline {
  font-family: var(--sans);
  font-size: clamp(15px, 3vw + 9px, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.7;
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
}

.hero__bottom .kicker {
  font-size: clamp(11px, 1.75vw + 9px, 15px);
  font-weight: 400;
}

/* Hero · artist card */
.hero__right {
  position: absolute;
  top: clamp(200px, 30vh, 360px);
  right: var(--pad);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: clamp(150px, 15vw, 200px);
}

/* Email copy toast */
.email-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid rgba(245,235,215,0.15);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.email-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.85;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hero__scroll:hover { opacity: 1; transform: translate(-50%, 4px); }
.hero__scroll svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(4px);} }

/* ---------- Hero · Artist card (SZA-poster inspired) ---------- */
.artist-card {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 5px 5px 6px;
  background:
    linear-gradient(180deg, #1d160F 0%, #100B07 100%);
  border-radius: 5px;
  transform: rotate(3deg);
  transform-origin: 70% 100%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 14px 22px -10px rgba(0, 0, 0, 0.55),
    0 30px 50px -16px rgba(0, 0, 0, 0.7);
}
.artist-card:hover,
.artist-card:focus-visible {
  transform: rotate(-0.5deg) translateY(-8px);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 22px 30px -12px rgba(0, 0, 0, 0.55),
    0 44px 70px -20px rgba(0, 0, 0, 0.75);
}

.artist-card__paper {
  position: relative;
  background: #EFE7D2;
  color: #1a1410;
  padding: 12px 12px 14px;
  border-radius: 1px;
  display: grid;
  gap: 10px;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.10),
    inset 0 8px 14px -10px rgba(0, 0, 0, 0.35),
    inset 0 -6px 12px -10px rgba(0, 0, 0, 0.25);
}
.artist-card__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(0, 0, 0, 0.10), transparent 60%);
  mix-blend-mode: multiply;
  z-index: 0;
}
.artist-card__paper > * { position: relative; z-index: 1; }

.artist-card__bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: end;
  justify-self: end;
}
.artist-card__bar {
  width: 16px;
  height: 4px;
  border-radius: 1px;
}
.artist-card__bar--ink   { background: #1a1410; }
.artist-card__bar--peach { background: #E2A28D; }
.artist-card__bar--ochre { background: #C39444; }

.artist-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.artist-card__circle {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #E2A28D;
  z-index: 0;
}
.artist-card__square {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56%;
  aspect-ratio: 1;
  background: #C39444;
  z-index: 0;
}
.artist-card__photo-wrap {
  position: relative;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow:
    0 8px 18px -8px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.artist-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: grayscale(0.6) contrast(1.04) brightness(0.98);
  transition: filter .4s var(--ease), transform .6s var(--ease);
}
.artist-card:hover .artist-card__photo,
.artist-card:focus-visible .artist-card__photo {
  filter: grayscale(0) contrast(1.05) brightness(1);
  transform: scale(1.14);
}

.artist-card__foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}
.artist-card__sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4d3f30;
  line-height: 1.45;
}
.artist-card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: #4d3f30;
}

/* "Say hi on LinkedIn" pill that appears on hover */
.artist-card__hint {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translate(-50%, 0) rotate(-3deg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1410;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px 5px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.artist-card:hover .artist-card__hint,
.artist-card:focus-visible .artist-card__hint {
  opacity: 1;
  transform: translate(-50%, 6px) rotate(-3deg);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 22px 0;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 56px);
  color: var(--cream);
  animation: scroll 32s linear infinite;
  padding-left: 40px;
}
.marquee__track span:not(.marquee__star) { color: var(--cream); }
.marquee__star { color: var(--amber); font-style: normal; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section heading ---------- */
.section__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--pad) clamp(40px, 6vw, 64px);
  display: grid;
  gap: 18px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--cream);
}
.section__lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}
.section__note {
  max-width: 56ch;
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: clamp(12px, 1.1vw, 13px);
  line-height: 1.5;
  opacity: 0.6;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ---------- Crate of records (wide case study cards) ---------- */
.works {
  background: var(--bg);
  padding-bottom: clamp(80px, 10vw, 140px);
  /* overflow: visible so absolutely-positioned stacked cards can breathe */
  overflow: visible;
}

/* Catalogue intro is <p>; remove default paragraph margins so space to .crate matches .section__head padding only */
.works .section__head .section__lede,
.works .section__head .section__note {
  margin-block: 0;
}
.works .section__head .section__note {
  margin-top: 0.5rem;
}

.crate {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--pad);
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 64px);
}

@media (max-width: 880px) {
  .crate {
    gap: clamp(44px, 5.5vw, 64px);
  }
}

/* Homepage catalogue: allow slightly wider strip than generic --maxw (sticky stack clips from JS width on desktop) */
.page-home .works .crate {
  max-width: min(calc(var(--maxw) + 100px), 100%);
}

.record {
  position: relative;
  width: 100%;
  /* Tall enough for headline + body + pill row + footer; middle grid row uses min-content floor (no squashing) */
  aspect-ratio: 16 / 12;
  cursor: pointer;
}
.record__inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.record__front {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

/* FRONT: category, title + media, summary, stats / pills / CTA */
.record__face {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  /* minmax(min-content, 1fr): middle row never shrinks below copy + pills (1fr alone can min to 0 and causes overlap) */
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  row-gap: clamp(18px, 2.2vw, 28px);
  overflow: hidden;
}

.record__top-bar {
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  position: relative;
  z-index: 2;
}

.record__body {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);
  /* min-content: do not use 0 here — it lets the row shrink and pills can paint over the summary */
  min-height: min-content;
  position: relative;
  /* Above .record__face-foot so vinyl bleed (negative bottom %) is not covered by footer row */
  z-index: 3;
}

.record__title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(40px, 6vw, 80px);
  min-height: min-content;
  flex-shrink: 0;
}

/* Desktop only: pills sit in column 1 under body copy with a small gap; media spans both rows */
@media (min-width: 881px) {
  .record__title-row {
    grid-template-rows: auto auto;
    row-gap: clamp(6px, 0.85vw, 12px);
    padding-bottom: clamp(6px, 0.95vw, 12px);
    border-bottom: 1px dashed var(--line);
  }

  .record__title-row > .record__copy-col {
    grid-column: 1;
    grid-row: 1;
  }

  .record__title-row > .record__pills--hero {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .record__title-row > .record__media {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
  }
}

.record__copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 20px);
  min-width: 0;
  align-self: stretch;
}

.record__copy-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.2vw, 16px);
  min-width: 0;
}

.record__client {
  display: block;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--accent, var(--amber));
}

.record__face::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent, var(--amber));
}
.record__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 80% at 0% 0%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(0,0,0,0.5), transparent 65%);
  pointer-events: none;
}

/* Media block: image + vinyl (title column top-aligned with image) */
.record__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  padding: 0 0 clamp(16px, 3.5vw, 40px);
}

.record__image {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 10px;
  overflow: visible;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0),
    color-mix(in srgb, var(--accent, #D67B3D) 22%, #18140e);
  background-size: 22px 22px, 100%;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.record__image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.record__image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  z-index: 0;
}

.record__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.22);
  z-index: 2;
}

.record__image-placeholder svg {
  width: 26px;
  height: 26px;
}

.record__image-placeholder span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Vinyl disc: smaller, peeks from bottom-right corner of image */
.record__face-vinyl {
  position: absolute;
  bottom: -14%;
  right: -12%;
  z-index: 3;
  width: clamp(92px, 12vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 50%, #040404 0 7%, transparent 7%),
    repeating-radial-gradient(circle at 50% 50%, #0a0a0a 0 1px, #1c1c1c 1px 3px),
    #0d0d0d;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    -12px 8px 40px -8px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0,0,0,0.5);
}
.record__vinyl-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 32%,
    color-mix(in srgb, var(--accent, var(--amber)) 100%, #fff 30%),
    var(--accent, var(--amber)) 45%,
    color-mix(in srgb, var(--accent, var(--amber)) 35%, #000) 100%
  );
}
.record__vinyl-label::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0E0B08;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07);
}

.record__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, var(--amber));
}

.record__top-bar .record__cat {
  flex: 1;
  min-width: 0;
}

.record__title-row .record__title {
  max-width: min(100%, 36ch);
  min-width: 0;
}

.record__summary {
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
  max-width: min(48ch, 100%);
}

.record__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(21px, 3.1vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--cream);
}

.record__face-foot {
  position: relative;
  z-index: 1;
  grid-row: 3;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  padding-top: clamp(10px, 1.2vw, 16px);
  margin-top: 2px;
}
.record__face-foot-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: none;
}

.record__face-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cream);
  color: #1a1410;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: gap .3s var(--ease), background .2s var(--ease), transform .3s var(--ease);
}
.record__face-cta:hover {
  gap: 16px;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}
.record__face-cta svg { transition: transform .3s var(--ease); }
.record__face-cta:hover svg { transform: translateX(2px); }

/* BACK: header → tracklist → key metrics */
.record__back {
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent, var(--amber)) 18%, transparent), transparent 60%),
    linear-gradient(180deg, #1a1410 0%, #0E0B08 100%);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
}

.record__back-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.record__back-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--cream);
}
.record__back-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
  max-width: 70ch;
}

/* Tracklist: directly below body copy, grows to fill space */
.record__back-tracks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.record__back-tracks .record__pills {
  margin-top: 2px;
}

/* image (left) + tracklist + pills (right) */
.record__back-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 36px);
  min-height: 0;
}
.record__back-image {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.record__back-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.record__back-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.record__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.record__pills span {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 8px 14px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--amber)) 72%, #fff 12%);
  background: color-mix(in srgb, var(--accent, var(--amber)) 40%, #0E0B08);
  color: var(--cream);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--accent, var(--amber)) 25%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Case study card: full-width pill row under title + media (avoids collision with stats footer) */
.record__pills--hero {
  margin: 0;
  margin-top: 0;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  gap: 6px;
  padding: 0 0 clamp(8px, 1vw, 14px);
  border-top: none;
  border-bottom: 1px dashed var(--line);
}
.record__pills--hero span {
  font-size: 11px;
  letter-spacing: 0.11em;
  font-weight: 500;
  padding: 7px 13px 6px;
}

/* Homepage catalogue only: undo global record layout tweaks; keep tightened layout elsewhere (e.g. case-studies grid) */
.page-home .works .record__copy-col {
  align-self: start;
}
.page-home .works .record__media {
  padding-bottom: clamp(20px, 3vw, 36px);
}

@media (min-width: 881px) {
  .page-home .works .record {
    aspect-ratio: unset;
    height: auto;
  }
  .page-home .works .record__inner,
  .page-home .works .record__front {
    height: auto;
  }
  /* Balance copy + screenshot: nearer 1:1 so art reads larger on homepage */
  .page-home .works .record .record__title-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: clamp(36px, 5.2vw, 80px);
  }
  .page-home .works .record .record__title-row .record__title {
    max-width: min(100%, 46ch);
    font-size: clamp(24px, 3.45vw, 52px);
    line-height: 1.05;
  }
  .page-home .works .record .record__summary {
    max-width: min(56ch, 100%);
    font-size: clamp(14px, 1.12vw, 17px);
    line-height: 1.58;
  }
  .page-home .works .record .record__cat {
    font-size: 12px;
    letter-spacing: 0.14em;
  }
  .page-home .works .record .record__client {
    font-size: clamp(16px, 1.35vw, 20px);
  }
  .page-home .works .record__media {
    padding: 0;
    align-self: end;
  }
  .page-home .works .record__face {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    height: auto;
    row-gap: clamp(12px, 1.55vw, 26px);
    padding: clamp(28px, 5.2vw, 76px) clamp(32px, 5.6vw, 80px) 40px;
  }
  .page-home .works .record__title-row > .record__pills--hero {
    position: relative;
    z-index: 3;
  }
  .page-home .works .record__title-row > .record__pills--hero span {
    font-size: 12px;
    padding: 8px 14px 7px;
  }
  .page-home .works .record__face-foot {
    margin-top: -12px;
  }
  .page-home .works .record__stat-num {
    font-size: clamp(34px, 3.5vw, 52px);
  }
  .page-home .works .record__stats {
    gap: clamp(20px, 2.5vw, 40px);
  }
}

@media (min-width: 881px) and (max-width: 1279px) {
  .page-home .works .record .record__title-row {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    column-gap: clamp(34px, 4.8vw, 72px);
  }
  .page-home .works .record .record__face {
    row-gap: clamp(12px, 1.45vw, 24px);
    padding: clamp(26px, 5vw, 68px) clamp(28px, 5.2vw, 72px) 38px;
  }
}


/* FOOTER: key metrics + CTA */
.record__back-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
  margin-top: auto;
}
.record__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 48px);
}
.record__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.record__stat-num {
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.record__stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.35;
}

.record__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cream);
  color: #1a1410;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: gap .3s var(--ease), background .2s var(--ease), transform .3s var(--ease);
}
.record__cta:hover {
  gap: 16px;
  background: var(--ink);
  transform: translateY(-1px);
}
.record__cta svg { transition: transform .3s var(--ease); }
.record__cta:hover svg { transform: translateX(2px); }

/* tracklist (records back + about) */
.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.tracklist li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(138, 122, 102, 0.18);
}
.tracklist li:last-child { border-bottom: 0; }
.tracklist li > span:first-child { color: var(--accent, var(--amber)); }
.tracklist--lg { font-size: 13px; }
.tracklist--lg li {
  grid-template-columns: 36px 1fr auto;
  padding: 10px 0;
}

.link {
  margin-top: 8px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(214,123,61,0.35);
  padding-bottom: 4px;
  width: fit-content;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link:hover { color: var(--amber-2); border-color: var(--amber-2); }

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__copy { display: grid; gap: 20px; }
.about__copy p {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* Editorial lede: first paragraph reads like a magazine opener */
.about__lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.45 !important;
  color: var(--ink) !important;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* About page photo */
.about__photo-wrap {
  position: relative;
  width: min(100%, 400px);
  margin: 0 auto;
}

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 3px;
  border: 14px solid var(--cream);
  border-bottom-width: 52px;
  transform: rotate(-2deg);
  box-shadow:
    0 32px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease);
}

.about__photo:hover {
  transform: rotate(0deg) scale(1.01);
}

.about__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #3a2a18;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Inline amber highlight (e.g. "GWI") */
.about__highlight {
  color: var(--amber-2);
  font-style: italic;
}

/* B-sides section */
.about-bsides {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 100px) var(--pad);
}

.about-bsides__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.about-bsides__label {
  display: block;
}

.about-bsides__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.about-bside {
  display: grid;
  gap: 6px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.about-bside__num {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 72px);
  font-style: italic;
  color: var(--amber-2);
  line-height: 1;
}

.about-bside__title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.about-bside__note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Career history ── */
.career {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 100px) var(--pad);
}

.career__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.career__head {
  padding-top: 6px;
}

.career__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.career__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.career__item:first-child {
  border-top: 1px solid var(--line);
}

.career__role {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.career__title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.career__company {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent, var(--amber));
  letter-spacing: 0.04em;
}

.career__dates {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .career__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Side activities ── */
.side-acts {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 100px) var(--pad);
  overflow: hidden;
}

.side-acts__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.side-acts__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .side-acts__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .side-acts__row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Web / tablet grid: equal card heights, links bottom-aligned across each row */
@media (min-width: 561px) {
  .side-acts__row > .sa-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .side-acts__row .sa-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 6px;
  }

  .side-acts__row .sa-card__link {
    margin-top: auto;
  }
}

.sa-card {
  width: 100%;
}

/* Jewel case chrome */
.sa-card__jewel {
  position: relative;
  width: 100%;
  /* Wide jewel: extra horizontal room for art + caption */
  aspect-ratio: 1.42 / 1;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(165deg, #1a1712 0%, #14110d 55%, #12100c 100%);
  box-shadow:
    0 8px 28px rgba(18, 12, 8, 0.65),
    0 2px 8px rgba(18, 12, 8, 0.4),
    inset 0 1px 0 rgba(255, 236, 210, 0.045);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.28s cubic-bezier(0.22,1,0.36,1);
}

.sa-card:hover .sa-card__jewel {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow:
    0 20px 48px rgba(18, 12, 8, 0.78),
    0 6px 14px rgba(18, 12, 8, 0.48),
    inset 0 1px 0 rgba(255, 236, 210, 0.06);
}

.sa-card__spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 9px;
  z-index: 3;
  background: linear-gradient(to right, #181410 0%, #2a2218 60%, #181410 100%);
}

.sa-card__spine::before,
.sa-card__spine::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 244, 228, 0.1);
}

.sa-card__spine::before { top: 16px; }
.sa-card__spine::after  { bottom: 16px; }

.sa-card__img-wrap {
  position: absolute;
  top: 0;
  left: 9px;
  right: 0;
  bottom: 0;
  isolation: isolate;
  /* Light warmth: keeps colour lively vs heavy vintage mute */
  filter: sepia(0.06) saturate(0.93) brightness(0.98) contrast(0.99);
  transition: filter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-card:hover .sa-card__img-wrap {
  filter: sepia(0.03) saturate(1) brightness(1) contrast(1);
}

.sa-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Anchor crop so the right side of the art stays in frame */
.sa-card__img--focus-right {
  object-position: right center;
}

/* Full art visible, centred horizontally (and vertically) in the jewel */
.sa-card__img--center-contain {
  object-fit: contain;
  object-position: center center;
}

/* Placeholder shown when image is missing/broken */
.sa-card__img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 56px);
  font-style: italic;
  color: rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #1a1510 0%, #2a1e14 100%);
}

/* Hide fallback when real image loads */
.sa-card__img + .sa-card__img-fallback { display: none; }
.sa-card__img[src=""],
.sa-card__img:not([src]) {
  display: none;
}
.sa-card__img[src=""] + .sa-card__img-fallback,
.sa-card__img:not([src]) + .sa-card__img-fallback {
  display: flex;
}

.sa-card__glare {
  position: absolute;
  top: 0;
  left: 9px;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    135deg,
    rgba(238, 224, 200, 0.038) 0%,
    transparent 44%,
    transparent 56%,
    rgba(110, 88, 68, 0.022) 100%
  );
}

.sa-card__edge-r {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  z-index: 3;
  background: linear-gradient(to left, rgba(28, 20, 14, 0.48) 0%, transparent 100%);
}

/* Text below the case */
.sa-card__body {
  margin-top: 16px;
  display: grid;
  gap: 6px;
}

.sa-card__title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.sa-card__desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.sa-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.18s;
}

.sa-card__link:hover {
  color: var(--amber);
}

@media (max-width: 640px) {
  .sa-card {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }
}

.tracks {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  max-width: 540px;
}

/* ── Expandable track cards (about page) ── */
.tracklist-cards {
  border-top: 1px dotted rgba(138, 122, 102, 0.22);
}

.track-card {
  border-bottom: 1px dotted rgba(138, 122, 102, 0.22);
}

.track-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 26px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  user-select: none;
  transition: opacity 0.15s ease;
}
.track-card summary::-webkit-details-marker { display: none; }
.track-card summary:hover { opacity: 0.8; }

.track-card__num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.track-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.track-card[open] .track-card__icon { color: var(--amber); }

.track-card__title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.track-card__chevron {
  color: var(--muted);
  transition: transform 0.28s var(--ease), color 0.2s var(--ease);
  justify-self: end;
}
.track-card[open] .track-card__chevron {
  transform: rotate(180deg);
  color: var(--amber);
}

/* Smooth reveal: JS drives grid-template-rows between 0fr ↔ 1fr */
.track-card__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
  overflow: hidden;
}

.track-card__body-inner {
  overflow: hidden;
  padding: 0 4px 0 64px;
  padding-bottom: 0;
  transition: padding-bottom 0.32s var(--ease);
}
.track-card[open] .track-card__body-inner {
  padding-bottom: 18px;
}

.track-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.track-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.track-card__list li::before {
  content: '·';
  flex-shrink: 0;
  margin-top: calc(0.5lh - 7px);
  color: var(--amber);
  font-size: 15px;
  line-height: 1;
}

/* Spinning vinyl illustration */
.vinyl {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #050505 0 7%, transparent 7%),
    repeating-radial-gradient(circle at 50% 50%, #0a0a0a 0 1px, #181818 1px 3px),
    radial-gradient(circle at 50% 50%, #0c0c0c 0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(0,0,0,0.6);
  animation: spin 16s linear infinite;
}
.vinyl__disc { position: absolute; inset: 0; border-radius: 50%; }
.vinyl__grooves { display: none; } /* covered by background already */
.vinyl__label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--amber-2), var(--amber) 60%, #8a4520 100%);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.5),
    0 6px 24px -8px rgba(0,0,0,0.6);
}
.vinyl__label::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 8%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: #0E0B08; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.5);
}
.vinyl__label .kicker { color: rgba(20,12,5,0.7); font-size: 9px; }
.vinyl__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 22px);
  color: #1a0e05;
  line-height: 1;
}
.vinyl__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,0.08) 30deg, rgba(255,255,255,0) 70deg, rgba(255,255,255,0) 200deg, rgba(255,255,255,0.06) 230deg, rgba(255,255,255,0) 270deg);
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 140px) 0 40px;
}
.foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: 32px;
  justify-items: start;
}
.foot__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--cream);
}
.foot__cta {
  /* inherits nav__cta: no overrides needed */
}


.foot__row {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.foot__links {
  display: flex; flex-wrap: wrap; gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot__links a { transition: color .2s var(--ease); }
.foot__links a:hover { color: var(--amber); }
.foot__meta { display: flex; gap: 22px; }

.foot__cursor {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.45;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Lineup poster (clients) ---------- */
.lineup {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* Two-column layout: text left, pinned poster right */
.lineup__layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Override section head positioning inside lineup */
.lineup .section__head {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Poster column: pushes the frame to the right edge */
.lineup__floor {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: clamp(40px, 5vw, 60px) 0;
}
.lineup__floor::before,
.lineup__floor::after { display: none; }

/* ======================================
   LINEUP POSTER: image
   ====================================== */

.frame {
  position: relative;
  z-index: 2;
  width: min(320px, 88vw);
  max-height: 88vh;
  padding: 0;
  margin: 0;
  border-radius: 3px;
  transform: rotate(2deg);
  transform-origin: top center;
  overflow: hidden;
  box-shadow:
    0 24px 48px -8px rgba(0,0,0,0.45),
    0 8px 20px -4px rgba(0,0,0,0.28),
    5px 5px 0 0 rgba(0,0,0,0.16);
  transition: transform .5s var(--ease);
}
.frame:hover { transform: rotate(0.5deg) translateY(-6px); }

.frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- Hamburger button ---------- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
}
.nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), width .3s var(--ease);
  transform-origin: center;
}

/* X state when open */
.nav__hamburger.is-open .nav__hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.is-open .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav__hamburger.is-open .nav__hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 49;
  padding: 80px 32px 40px;
  background: rgba(14,11,8,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.mobile-nav__links a {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 42px);
  font-style: italic;
  color: var(--cream);
  opacity: 0.75;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245,234,215,0.08);
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.mobile-nav__links a:hover,
.mobile-nav__links a[aria-current="page"] {
  opacity: 1;
  color: var(--amber-2);
}
.mobile-nav__cta {
  margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav__links { display: none; }
  .nav__meta { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero__top { grid-template-columns: 1fr 1fr; left: var(--pad); right: var(--pad); }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .about__photo { transform: rotate(-1deg); }
  .about-bsides__grid { grid-template-columns: 1fr; }

  /* Artist card: flow below the main copy instead of floating over it */
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 100px;
    gap: 32px;
  }
  .hero__content {
    width: 100%;
  }
  .hero__right {
    position: static;
    width: min(220px, 58vw);
    align-self: center;
    margin: 0 auto;
  }

  .lp__title { font-size: clamp(16px, 5vw, 28px); }
}

/* Records: mobile: stacked image-top layout */
@media (max-width: 880px) {
  .record { aspect-ratio: unset; height: auto; cursor: default; }
  .record__inner { height: auto; }

  /* Front face becomes normal flow */
  .record__front { position: static; height: auto; }

  .record__top-bar,
  .record__body,
  .record__title-row,
  .record__copy-col,
  .record__copy-stack {
    display: contents;
  }

  /* Flatten to one grid: image → cat → client → title → summary → pills → metrics */
  .record__face {
    padding: 0;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto auto;
    row-gap: 0;
  }

  .record__media {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    padding: 0;
    /* Block layout: flex + align-items:stretch + grid auto row + aspect-ratio child
       can resolve to 0 height in WebKit (images vanish). Shrink-wrap from the image box. */
    display: block;
    height: auto;
    align-self: start;
  }
  .record__image {
    display: block;
    width: 100%;
    max-width: 100%;
    flex: none;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .record__cat {
    grid-row: 2;
    padding: 18px 20px 6px;
    font-size: 11px;
  }
  .record__top-bar .record__cat {
    flex: none;
  }

  .record__client {
    grid-row: 3;
    padding: 0 20px 8px;
    font-family: var(--sans);
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 600;
    color: var(--accent, var(--amber));
    line-height: 1.1;
  }

  .record__title {
    grid-row: 4;
    padding: 0 20px 10px;
    font-size: clamp(14px, 3.8vw, 18px);
  }
  .record__title-row .record__title {
    max-width: none;
  }

  .record__summary {
    grid-row: 5;
    margin: 0;
    padding: 0 20px 14px;
  }

  .record__pills--hero {
    grid-row: 6;
    margin: 0;
    padding: 0 20px 10px;
    justify-content: flex-start;
    border-bottom: 1px dashed var(--line);
  }

  .record__face-foot {
    grid-row: 7;
    grid-column: 1;
    padding: 10px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Homepage mobile: match case-studies .cs-card; keep sector | audience (hide A1 · only) */
  .page-home .works .record__cat-ndx {
    display: none;
  }
  .page-home .works .record {
    cursor: pointer;
  }
  .page-home .works .record:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--amber) 85%, transparent);
    outline-offset: 3px;
    border-radius: var(--radius);
  }

  .page-home .works .record__cat {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px 0 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--accent, var(--amber));
  }

  .page-home .works .record__front {
    border-radius: 0;
    overflow: visible;
  }

  .page-home .works .record__face {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto auto;
    row-gap: 0;
    column-gap: 12px;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .page-home .works .record__face::before,
  .page-home .works .record__face::after {
    display: none;
  }

  .page-home .works .record__media {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .page-home .works .record__image {
    height: 240px;
    max-height: 240px;
    aspect-ratio: unset;
    border-radius: 6px;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background:
      color-mix(in srgb, var(--accent, var(--amber)) 10%, var(--bg-2));
    background-size: 100%;
  }

  .page-home .works .record__image::before {
    border-radius: 6px;
  }

  .page-home .works .record__image > img {
    border-radius: 6px;
  }

  .page-home .works .record__image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent, var(--amber));
    z-index: 4;
    pointer-events: none;
  }

  .page-home .works .record__client {
    grid-row: 3;
    grid-column: 1;
    align-self: start;
    padding: 8px 0 0;
    margin: 0;
    font-family: var(--serif);
    /* Match .cs-card__project (case-studies listing) so namerow height matches */
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--cream);
  }

  .page-home .works .record__face-foot {
    display: flex !important;
    grid-row: 3;
    grid-column: 2;
    align-self: start;
    padding: 8px 0 0;
    margin: 0;
    border: none;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
  }

  .page-home .works .record__face-foot .record__stats {
    display: none !important;
  }

  .page-home .works .record__face-cta {
    padding: 0;
    border-radius: 0;
    background: none;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent, var(--amber)) 90%, var(--muted));
    gap: 6px;
  }

  .page-home .works .record__face-cta:hover {
    opacity: 0.7;
    gap: 10px;
    transform: none;
    background: none;
    color: color-mix(in srgb, var(--accent, var(--amber)) 90%, var(--muted));
  }

  .page-home .works .record__title {
    display: block !important;
    grid-row: 4;
    grid-column: 1 / -1;
    font-family: var(--sans, Inter, sans-serif);
    font-weight: 400;
    font-style: normal;
    /* Match .cs-card__title */
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--ink-soft);
    /* Same as .cs-card__body gap between namerow and title (10px) */
    margin: 10px 0 0;
    padding: 0;
    max-width: none;
  }

  .page-home .works .record__summary,
  .page-home .works .record__stats {
    display: none !important;
  }

  .page-home .works .record__pills--hero {
    grid-row: 5;
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 0 0;
    border-bottom: none;
    gap: 7px;
  }

  .page-home .works .record__pills--hero span {
    font-size: 11.5px;
    letter-spacing: 0.11em;
    padding: 8px 14px 7px;
  }

  .record__face-foot-actions {
    align-items: flex-start;
    width: 100%;
  }

  /* Hide desktop-only elements */
  .record__face-vinyl { display: none; }
}

@media (max-width: 820px) {
  .lineup__layout {
    grid-template-columns: 1fr;
  }
  .lineup__floor {
    justify-content: center;
    padding: 0 0 clamp(40px, 8vw, 60px);
  }
  .frame {
    transform: rotate(2deg);
    width: min(420px, 92%);
  }
  .frame:hover { transform: rotate(0.5deg) translateY(-6px); }
}

@media (max-width: 480px) {
  .nav__brand { font-size: 18px; }
  .nav { grid-template-columns: 1fr auto; }
  .marquee__track { font-size: 32px; gap: 24px; }
  /* Hero portrait card: stay large on small phones (was 110px card / 120px column) */
  .hero__right { width: min(200px, 64vw); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .vinyl,
  .hero__scroll svg { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Subtle nav lift on scroll */
.nav.is-scrolled {
  background: linear-gradient(to bottom, rgba(14,11,8,0.95), rgba(14,11,8,0.6));
  border-bottom: 1px solid var(--line);
}

/* ---------- About page ---------- */
.about--page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(72px + 60px);
  padding-bottom: 80px;
}

body.page-about .nav__links a:hover {
  color: var(--amber);
}

/* ---------- Testimonials (fan stack) ---------- */
.testimonials {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad) 120px;
}

.testimonials__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.testimonials__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
}

/* ── Fan container ── */
.t-fan {
  display: flex;
  align-items: flex-end;
  padding-top: 56px;
  padding-bottom: 48px;
  overflow: visible;
}

/* ── Individual card ── */
.t-card {
  --w: clamp(240px, 27vw, 330px);
  width: var(--w);
  flex-shrink: 0;
  min-height: clamp(300px, 30vw, 380px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 28px) clamp(20px, 2vw, 26px);
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  will-change: transform;
}

/* Stagger overlap: each card slides under the next */
.t-card + .t-card {
  margin-left: calc(var(--w) * -0.58);
}

/* Subtle warm tints so each card has its own identity */
.t-card--1 { background: #191209; z-index: 1; }
.t-card--2 { background: #1C1410; z-index: 2; }
.t-card--3 { background: #1F160F; z-index: 3; }
.t-card--4 { background: #231912; z-index: 4; }

/* Fan rotations: leftmost tilts most, rightmost nearly flat */
.t-card--1 { transform-origin: bottom center; transform: rotate(-9deg) translateY(12px); }
.t-card--2 { transform-origin: bottom center; transform: rotate(-4deg) translateY(6px); }
.t-card--3 { transform-origin: bottom center; transform: rotate(-1deg) translateY(2px); }
.t-card--4 { transform-origin: bottom center; transform: rotate(2deg)  translateY(5px); }

/* Lift card on hover */
.t-fan .t-card:hover {
  transform: rotate(0deg) translateY(-30px) !important;
  z-index: 10;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(214,123,61,0.45);
}

/* ── Quote ── */
.t-card__quote {
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(13px, 1.45vw, 15px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
  position: relative;
  padding-top: 32px;
}

.t-card__quote::before {
  content: '\201C';
  position: absolute;
  left: -4px;
  top: -10px;
  font-size: 80px;
  line-height: 1;
  color: var(--amber);
  opacity: 0.28;
  font-family: var(--serif);
  font-style: normal;
  pointer-events: none;
}

/* ── Footer: avatar + attribution ── */
.t-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Vinyl-label initials circle */
.t-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}

/* Inner groove ring */
.t-card__avatar::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color .4s var(--ease);
}

.t-card__meta {
  min-width: 0;
}

.t-card__name {
  font-family: var(--serif);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.25;
}

.t-card__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Avatar glow on hover */
.t-card:hover .t-card__avatar {
  border-color: var(--amber);
  color: var(--amber-2);
}

.t-card:hover .t-card__avatar::before {
  border-color: rgba(214, 123, 61, 0.35);
}

/* ── Mobile: vertical list ── */
@media (max-width: 700px) {
  .t-fan {
    flex-direction: column;
    align-items: stretch;
    padding-top: 16px;
    padding-bottom: 24px;
    gap: 12px;
  }
  .t-card {
    width: 100%;
    margin-left: 0 !important;
    min-height: auto;
  }
  .t-card--1, .t-card--2, .t-card--3, .t-card--4 {
    transform: none;
    z-index: auto;
  }
  .t-fan .t-card:hover {
    transform: none !important;
    box-shadow: 0 0 0 1px var(--amber);
  }
  .testimonials { padding-bottom: 80px; }
}

/* ---------- AI Explorations page ---------- */
.ai-explore {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(72px + 60px) var(--pad) 100px;
}

.ai-explore__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.ai-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}

.ai-card__inner {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.ai-card__badge {
  display: flex;
  align-items: center;
}

.ai-card__title {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.ai-card__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.ai-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ai-card__status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .ai-explore__grid { grid-template-columns: 1fr; }
  .ai-card__inner { padding: 24px; }
}

/* ---------- Case studies placeholder ---------- */
/* ---------- Case Studies page: hero ---------- */
.cs-page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px var(--pad) 60px;
}
.cs-page-hero__inner {
  display: grid;
  gap: 20px;
  max-width: 640px;
}
.cs-page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
}
.cs-page-hero__lede {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  margin: 0;
  max-width: 48ch;
}

.cs-page-hero--ai-explore {
  padding-bottom: 28px;
}

/* ---------- Case Studies page: 2-column grid ---------- */
.cs-grid-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 120px;
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Lightweight case study card ---------- */
.cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: opacity 0.2s var(--ease);
}

/* Listing cards: slower motion so scroll-reveal timings win over the base `.cs-card` rule */
.cs-grid-section .cs-grid > li.cs-card.reveal {
  transition:
    opacity 0.88s var(--ease),
    transform 0.88s var(--ease);
}

@media (hover: hover) {
  .cs-grid-section .cs-grid > li.cs-card:hover {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-grid-section .cs-grid > li.cs-card:hover {
    transform: none;
  }
}
.cs-card:hover .cs-card__image img {
  transform: scale(1.02);
}

/* Image panel at the top of each card */
.cs-card__image {
  position: relative;
  height: 340px;
  background: color-mix(in srgb, var(--accent, var(--amber)) 10%, var(--bg-2));
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 6px;
}
.cs-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.cs-card__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--accent, var(--amber)) 40%, transparent);
}
.cs-card__image-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}
.cs-card__image-placeholder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* Thin accent stripe at the very bottom of the image panel */
.cs-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--amber));
}

/* No longer needed: stripe was standalone before */
.cs-card__stripe { display: none; }

.cs-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 0;
  flex: 1;
}

.cs-card__kicker {
  color: color-mix(in srgb, var(--accent, var(--amber)) 90%, var(--muted));
}

.cs-card__project {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--cream);
  margin: 0;
}

.cs-card__title {
  font-family: var(--sans, Inter, sans-serif);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin: 0;
}

.cs-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.cs-card__namerow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cs-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 0;
  border-top: none;
}
.cs-card__pills span {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 8px 14px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--amber)) 72%, #fff 12%);
  background: color-mix(in srgb, var(--accent, var(--amber)) 40%, #0E0B08);
  color: var(--cream);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--accent, var(--amber)) 25%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cs-card__foot {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent, var(--amber)) 90%, var(--muted));
  text-decoration: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  transition: opacity .2s var(--ease), gap .2s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.cs-card__cta:hover {
  opacity: 0.7;
  gap: 10px;
}

.cs-card__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.cs-card__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cs-card__stat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.cs-card__stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.3;
}

/* Responsive: single column on narrow screens */
@media (max-width: 640px) {
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-card__image {
    height: 240px;
  }
  .cs-card__body {
    padding: 16px 0 0;
  }
  .cs-card__project {
    font-weight: 600;
  }
}

/* ---------- Case study detail: More to explore ---------- */
/* Inside .csd: no extra horizontal inset: parent already uses var(--pad) */
.cs-explore {
  padding: 72px 0 100px;
  border-top: 1px solid var(--line);
}
.cs-explore__heading {
  font-family: var(--sans, Inter, sans-serif);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 28px;
  text-transform: lowercase;
}
.cs-explore__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-explore__card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cs-explore__card:hover,
.cs-explore__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  outline: none;
}
.cs-explore__card:focus-visible {
  box-shadow: 0 0 0 2px var(--cream), 0 18px 48px rgba(0, 0, 0, 0.35);
}
.cs-explore__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.cs-explore__card:hover .cs-explore__img,
.cs-explore__card:focus-visible .cs-explore__img {
  transform: scale(1.04);
}
.cs-explore__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  font-family: var(--sans, Inter, sans-serif);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.4;
  color: var(--cream);
  background: linear-gradient(
    transparent 20%,
    color-mix(in srgb, #0a0806 88%, transparent)
  );
  opacity: 1;
  transition: opacity 0.28s var(--ease), background 0.28s var(--ease);
}
.cs-explore__card:hover .cs-explore__title,
.cs-explore__card:focus-visible .cs-explore__title {
  background: linear-gradient(
    transparent 35%,
    color-mix(in srgb, #0a0806 82%, transparent)
  );
}

@media (max-width: 640px) {
  .cs-explore__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- AI Shelf: CD case section (homepage) ---------- */
.ai-shelf {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px var(--pad) 80px;
  border-top: 1px solid var(--line);
}

.ai-shelf__head {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.cd-rack {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.cd-rack li {
  width: 200px;
  flex-shrink: 0;
}

/* Lit countertop behind CDs: separates jewel cases from the page field */
.ai-shelf .cd-rack {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background:
    radial-gradient(125% 85% at 50% -8%, rgba(255, 255, 255, 0.16) 0%, transparent 58%),
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--cream) 10%, var(--surface)) 0%,
      color-mix(in srgb, var(--surface) 88%, var(--bg)) 42%,
      color-mix(in srgb, var(--bg-2) 75%, black) 100%
    );
  border: 1px solid color-mix(in srgb, var(--ink-soft) 18%, var(--line));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 26px 70px rgba(0, 0, 0, 0.62);
}

/* Homepage only: tray hugs the CDs (same inset as section; no full-bleed bar) */
.ai-shelf:not(.ai-shelf--page) .cd-rack {
  width: fit-content;
  max-width: 100%;
}

/* The clickable card block */
.cd-case {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cd-case--peek {
  cursor: default;
  outline: none;
}

.cd-case--peek:focus-visible {
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--amber), 0 0 0 5px color-mix(in srgb, var(--amber) 25%, transparent);
}

/* Physical jewel case shell */
.cd-case__jewel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.03;
  border-radius: 3px;
  overflow: hidden;
  background: #050403;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 0 3px rgba(0, 0, 0, 0.72),
    0 6px 0 rgba(0, 0, 0, 0.35),
    0 14px 46px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -22px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cd-case:hover .cd-case__jewel {
  transform: translateY(-10px) rotate(-0.7deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 0 3px rgba(0, 0, 0, 0.62),
    0 8px 0 rgba(0, 0, 0, 0.32),
    0 30px 72px rgba(0, 0, 0, 0.94),
    0 12px 24px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -22px 40px rgba(0, 0, 0, 0.24);
}

/* Left spine: the binding edge */
.cd-case__spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 9px;
  z-index: 3;
  background: linear-gradient(to right, #030202 0%, #0d0a07 45%, #060503 80%, #020101 100%);
}

/* Hinge rivets on spine */
.cd-case__spine::before,
.cd-case__spine::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #221d17, #060403);
  border: 0.5px solid #020101;
}
.cd-case__spine::before { top: 16px; }
.cd-case__spine::after  { bottom: 16px; }

/* Cover artwork area */
.cd-case__front {
  position: absolute;
  top: 0;
  left: 9px;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, var(--cd-a) 0%, var(--cd-b) 55%, var(--cd-c) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cd-case__front--cover-photo .cd-case__cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

/* Abstract artwork motif */
.cd-case__art {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 24px rgba(255,255,255,0.06),
    inset 0 0 16px rgba(255,255,255,0.04);
}

.cd-case__art::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.07);
}

/* Label strip at bottom of artwork */
.cd-case__label {
  position: relative;
  z-index: 2;
  padding: 7px 10px 9px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cd-case__label-artist {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  display: block;
}

.cd-case__label-title {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.62);
  display: block;
  line-height: 1.2;
}

/* Plastic glare overlay */
.cd-case__glare {
  position: absolute;
  top: 0;
  left: 9px;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    130deg,
    rgba(255,255,255,0.13) 0%,
    rgba(255,255,255,0.04) 22%,
    transparent 48%
  );
  pointer-events: none;
  z-index: 5;
}

/* Right locking edge */
.cd-case__edge-r {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to left, #030202, #0e0b07);
  z-index: 6;
}

/* Text info below the case */
.cd-case__info {
  margin-top: 14px;
  padding: 0 1px;
}

.cd-case__project {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.35;
}

.cd-case__desc {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.cd-case__detail {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 8px 0 0;
  opacity: 0.8;
}

/* Gatefold booklet: peels open beside the jewel (hover / focus-visible) */
.cd-case__booklet-shell {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  perspective: 900px;
}

.cd-case--booklet .cd-case__jewel {
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px;
}

.cd-case__booklet-panel {
  box-sizing: border-box;
  flex: 0 0 0;
  width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(38, 32, 24, 0.2);
  border-left: none;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    160deg,
    #f3efe6 0%,
    #e9e4da 52%,
    #ddd8cf 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform-origin: left center;
  transform: rotateY(-14deg);
  transition:
    flex-basis 0.42s var(--ease),
    max-width 0.42s var(--ease),
    width 0.42s var(--ease),
    opacity 0.32s var(--ease),
    padding 0.32s var(--ease),
    transform 0.45s var(--ease);
}

.cd-case__booklet-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(38, 32, 24, 0.55);
  margin-bottom: 8px;
}

.cd-case__booklet-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(38, 32, 24, 0.85);
  margin: 0;
}

.cd-case__booklet-hint {
  font-style: italic;
  font-size: 12px;
  opacity: 0.75;
}

.cd-rack li.cd-rack__item--booklet {
  position: relative;
  z-index: 0;
  transition: width 0.42s var(--ease), z-index 0s 0s;
}

@media (hover: hover) and (pointer: fine) {
  .cd-rack li.cd-rack__item--booklet:is(:hover, :focus-within) {
    width: min(392px, 86vw);
    z-index: 4;
    transition-delay: 0s, 0s;
  }

  .cd-case--booklet:is(:hover, :focus-within) .cd-case__booklet-panel {
    flex: 0 0 clamp(148px, 42vw, 176px);
    width: clamp(148px, 42vw, 176px);
    max-width: clamp(148px, 42vw, 176px);
    opacity: 1;
    padding: 14px 14px 14px 12px;
    transform: rotateY(0deg);
    pointer-events: none;
  }
}

@media not all and (hover: hover), (pointer: coarse) {
  .cd-case__booklet-hint {
    display: none;
  }

  /* Touch: booklet stays closed; jewel remains full-width */
}

@media (prefers-reduced-motion: reduce) {
  .cd-rack li.cd-rack__item--booklet,
  .cd-case__booklet-panel {
    transition-duration: 0.01ms;
  }

  .cd-case__booklet-panel {
    transform: none;
  }
}

.ai-shelf--page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--pad) 80px;
  border-top: none;
}

/* "View all" link */
.ai-shelf__more-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 56px;
}

.ai-shelf__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  transition: gap 0.25s var(--ease), color 0.2s var(--ease);
}

.ai-shelf__more:hover { gap: 14px; color: var(--amber-2); }

@media (max-width: 640px) {
  .cd-rack {
    gap: 24px;
  }
  .cd-rack:not(.cd-rack--ai-row) li {
    width: 160px;
  }
  /* Homepage AI explorations shelf: larger jewel cases on small screens */
  .ai-shelf:not(.ai-shelf--page) .cd-rack {
    justify-content: center;
  }
  .ai-shelf:not(.ai-shelf--page) .cd-rack li {
    width: min(268px, 100%);
  }
  .cd-case--booklet .cd-case__jewel {
    flex: 0 0 160px;
    width: 160px;
    max-width: 160px;
  }
}

/* Expandable sleeves: AI explorations: three CDs + featured pitch CD (640px hero text untouched; rack needs wider) */
.cd-rack.cd-rack--ai-row {
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.4vw, 20px);
  max-width: min(100%, var(--maxw));
  margin-left: 0;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Expanded: match home .crate width so CD + card share one row */
.cd-rack.cd-rack--ai-row:has(.cd-sleeve.cd-sleeve--expanded) {
  flex-wrap: wrap;
  max-width: min(1180px, 100%);
  overflow-x: visible;
}

.cd-rack.cd-rack--ai-row > li.cd-rack__item--pitch-link {
  flex: 0 0 auto;
  margin-left: auto;
  width: clamp(248px, 30vw, 340px);
  max-width: min(360px, 42vw);
}

.cd-case.cd-case--pitch-feature {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cd-rack__pitch-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
  line-height: 1.3;
}

/* Featured pitch jewel: slightly stronger type + padding on cover strip */
.cd-case.cd-case--pitch-feature .cd-case__label {
  padding: 9px 12px 11px;
}

.cd-case.cd-case--pitch-feature .cd-case__label-artist {
  font-size: 10px;
  letter-spacing: 0.11em;
}

.cd-case.cd-case--pitch-feature .cd-case__label-title {
  font-size: 15px;
}

.cd-case.cd-case--pitch-feature .cd-case__info {
  margin-top: 0;
}

.cd-case.cd-case--pitch-feature .cd-case__project {
  font-size: 17px;
}

.cd-case.cd-case--pitch-feature .cd-case__desc {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.cd-rack.cd-rack--ai-row > li.cd-rack__item--sleeve-wide {
  flex: 0 0 auto;
  width: clamp(168px, 22vw, 232px);
  max-width: min(246px, 31vw);
}

/* Hide pitch link when a sleeve expands (same focused layout as sibling sleeves) */
.cd-rack.cd-rack--ai-row:has(.cd-sleeve.cd-sleeve--expanded)
  > li.cd-rack__item--pitch-link {
  display: none;
}

/* Full-width row: chosen CD on the left, expanded panel on the right (crate card width) */
.cd-rack.cd-rack--ai-row > li.cd-rack__item--sleeve-wide:has(.cd-sleeve.cd-sleeve--expanded) {
  z-index: 5;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

.cd-rack.cd-rack--ai-row:has(.cd-sleeve.cd-sleeve--expanded) {
  padding-bottom: 0;
}

/* Only the opened CD stays visible: same focused layout for 1st, 2nd, or 3rd */
.cd-rack.cd-rack--ai-row:has(.cd-sleeve.cd-sleeve--expanded)
  > li.cd-rack__item--sleeve-wide:not(:has(.cd-sleeve.cd-sleeve--expanded)) {
  display: none;
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(4px, 0.85vw, 10px);
  width: 100%;
  position: relative;
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel {
  position: relative;
  left: auto;
  top: auto;
  flex: 1 1 auto;
  width: 100%;
  /* Same inner width as home .record cards (.crate max-width minus horizontal padding) */
  max-width: calc(1180px - 2 * var(--pad));
  min-width: 0;
  margin-top: 0;
  padding: clamp(16px, 3vw, 30px) clamp(14px, 2.5vw, 26px);
  /* Catalogue case-study shell: same corner radius + frame read, light “sleeve” treatment */
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--line) 24%, #bfb2a3 76%);
  box-shadow:
    0 36px 88px -32px rgba(0, 0, 0, 0.52),
    0 14px 36px -14px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(214, 123, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Amber rule + soft corner lighting: mirrors .record__face pseudos, tuned for cream */
.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--amber);
  z-index: 2;
  pointer-events: none;
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(135% 82% at 0% 0%, rgba(255, 255, 255, 0.38), transparent 58%),
    radial-gradient(115% 100% at 100% 100%, rgba(25, 18, 12, 0.08), transparent 64%);
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-case__jewel,
.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-case__info {
  display: block !important;
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-case.cd-case__toggle.cd-case--no-link {
  position: static;
  display: grid;
  grid-template-columns: 1fr min(28px, 9vw);
  grid-template-rows: auto auto auto;
  gap: 4px 4px;
  align-items: start;
  flex: 0 0 auto;
  align-self: flex-start;
  width: auto;
  max-width: min(220px, 28vw);
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-case__collapse-fab-label {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 92%, var(--ink) 8%);
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__featured {
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.12fr);
  gap: clamp(12px, 2.2vw, 28px);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__copy {
  align-self: start;
}

/* Polaroid column stretches to text height; mat + rail grow so bottom aligns with copy */
.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__media-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
  min-height: 0;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__media-shell .cd-sleeve__cover-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: min(640px, 100%);
  margin-left: auto;
  align-self: stretch;
  padding-bottom: 4px;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__polaroid .cd-sleeve__media-strip {
  flex: 1 1 auto;
  min-height: min(200px, 28vh);
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__polaroid .cd-sleeve__media-pane {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__cover-visual--desktop {
  flex: 1 1 auto;
  width: 100%;
  min-height: 220px;
  height: 100%;
  max-height: none;
  aspect-ratio: unset;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__media-slot {
  flex: 1 1 auto;
  width: 100%;
  min-height: 180px;
  height: 100%;
  max-height: none;
  aspect-ratio: unset;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__polaroid .cd-sleeve__cover-mat-caption {
  flex: 0 0 auto;
  padding: 18px 6px 22px;
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__polaroid .cd-sleeve__media-strip-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 4px 6px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(58, 42, 24, 0.72);
}

.cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__body-scroll {
  max-height: min(420px, 52vh);
}

@media (prefers-reduced-motion: reduce) {
  .cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__polaroid .cd-sleeve__media-strip {
    scroll-behavior: auto;
  }
}

@media (max-width: 840px) {
  .cd-rack.cd-rack--ai-row {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%;
    gap: clamp(10px, 2.5vw, 16px);
  }

  .cd-rack.cd-rack--ai-row > li.cd-rack__item--sleeve-wide {
    flex: 0 0 auto;
    width: clamp(148px, 26vw, 220px);
    max-width: min(246px, 34vw);
  }

  .cd-rack.cd-rack--ai-row > li.cd-rack__item--pitch-link {
    flex: 0 0 auto;
    margin-left: auto;
    width: clamp(180px, 48vw, 280px);
    max-width: min(300px, 88vw);
  }
}

.cd-sleeve {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.cd-case.cd-case__toggle.cd-case--no-link {
  display: grid;
  position: relative;
  grid-template-columns: 1fr min(28px, 9vw);
  grid-template-rows: auto auto;
  gap: 4px 4px;
  align-items: start;
  width: auto;
  max-width: 220px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cd-case.cd-case__toggle.cd-case--no-link::-moz-focus-inner {
  border: 0;
}

.cd-case.cd-case__toggle.cd-case--no-link:focus-visible {
  border-radius: 3px;
  box-shadow:
    0 0 0 2px var(--amber),
    0 0 0 5px color-mix(in srgb, var(--amber) 25%, transparent);
  outline: none;
}

.cd-case.cd-case__toggle.cd-case--no-link .cd-case__jewel {
  grid-column: 1;
  grid-row: 1;
}

.cd-case__toggle-chevron {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: 10px;
  height: 10px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}

.cd-case.cd-case__toggle.cd-case__toggle--open .cd-case__toggle-chevron {
  transform: rotate(225deg) translate(-3px, -3px);
}

.cd-case.cd-case__toggle.cd-case--no-link .cd-case__info {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 14px;
  padding: 0 1px;
}

.cd-case.cd-case__toggle.cd-case--no-link .cd-case__project,
.cd-case.cd-case__toggle.cd-case--no-link .cd-case__desc {
  display: block;
}

.cd-case__collapse-fab-label {
  display: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 92%, var(--ink) 8%);
}

/* FLIP morph: jewel animates into the large cover art slot */
.cd-sleeve.cd-sleeve--flip-opening .cd-case__jewel {
  visibility: hidden;
  opacity: 0;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  pointer-events: none;
  overflow: hidden;
}

.cd-sleeve.cd-sleeve--flip-opening .cd-case__toggle-chevron {
  visibility: hidden;
}

.cd-sleeve.cd-sleeve--flip-opening .cd-case__info {
  display: none;
}

.cd-sleeve.cd-sleeve--flip-opening .cd-case.cd-case__toggle.cd-case--no-link {
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.cd-sleeve.cd-sleeve--flip-opening .cd-sleeve__panel {
  margin-top: 14px;
  overflow: visible;
}

.cd-sleeve.cd-sleeve--flip-opening .cd-sleeve__cover-wrap {
  overflow: visible;
}

.cd-sleeve.cd-sleeve--flip-opening .cd-sleeve__cover-visual {
  position: relative;
  z-index: 2;
}

/* Expanded sleeve: Close control: top-right (copy column left, polaroid rail right) */
.cd-sleeve.cd-sleeve--expanded .cd-case__collapse-fab-label {
  display: inline;
}

.cd-sleeve.cd-sleeve--expanded .cd-case.cd-case__toggle.cd-case--no-link {
  position: absolute;
  top: clamp(14px, 2.8vw, 24px);
  right: clamp(14px, 3vw, 26px);
  left: auto;
  z-index: 8;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 8px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, #fdfcfa 92%, rgba(8, 6, 4, 0.06) 8%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--ink) 22%);
}

.cd-sleeve.cd-sleeve--expanded .cd-case__jewel,
.cd-sleeve.cd-sleeve--expanded .cd-case__info {
  display: none !important;
}

.cd-sleeve.cd-sleeve--expanded .cd-case__toggle-chevron {
  visibility: visible;
}

.cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel {
  overflow: visible;
}

.cd-sleeve__panel {
  margin-top: clamp(20px, 4vw, 32px);
  padding: clamp(22px, 3.8vw, 38px) clamp(18px, 3.2vw, 34px);
  border-radius: 3px;
  border: none;
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--cream) 22%, #fffdfa) 0%,
      color-mix(in srgb, var(--cream) 8%, #e8dfd0) 82%,
      #ddd2c4 130%
    );
  /* Always “picked up” polaroid matte: hovered lift */
  box-shadow:
    0 52px 120px -36px rgba(0, 0, 0, 0.9),
    0 28px 56px -20px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(0, 0, 0, 0.48),
    0 0 0 2px rgba(214, 123, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  position: relative;
  transform: translateY(-11px);
  isolation: isolate;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.55s var(--ease);
}

.cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel:hover {
  transform: translateY(-14px);
  box-shadow:
    0 56px 128px -32px rgba(0, 0, 0, 0.92),
    0 34px 64px -22px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(214, 123, 61, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .cd-sleeve__panel,
  .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel:hover {
    transition-duration: 0.01ms;
    transform: translateY(-4px);
  }
}

.cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel:hover {
  transform: translateY(-14px);
  box-shadow:
    0 42px 96px -28px rgba(0, 0, 0, 0.56),
    0 20px 44px -16px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(214, 123, 61, 0.22),
    0 0 0 2px rgba(214, 123, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel:hover {
    transform: translateY(-4px);
  }
}

.cd-sleeve__panel[hidden],
.cd-sleeve__panel:is([hidden]) {
  display: none !important;
  transform: none;
}

.cd-sleeve__panel:not([hidden]) {
  display: block !important;
}

.cd-sleeve__featured {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, 1.12fr);
  gap: clamp(18px, 3.8vw, 40px);
  align-items: start;
}

.cd-sleeve__media-shell {
  min-width: 0;
  width: 100%;
}

.cd-sleeve__media-shell .cd-sleeve__cover-wrap {
  margin-right: 0;
  margin-left: auto;
  max-width: min(448px, 100%);
}

/* Polaroid frame: tactile “picked up”; inner rail scrolls sideways */
.cd-sleeve__polaroid {
  transform: rotate(-1deg);
  box-shadow:
    0 44px 100px -28px rgba(0, 0, 0, 0.94),
    0 0 0 1px rgba(214, 123, 61, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cd-sleeve__polaroid:hover {
  transform: rotate(-0.5deg);
  box-shadow:
    0 50px 112px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(214, 123, 61, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cd-sleeve__media-strip {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  margin-bottom: 2px;
  scrollbar-width: auto;
}

.cd-sleeve__media-strip::-webkit-scrollbar {
  height: 10px;
}
.cd-sleeve__media-strip::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(42, 32, 24, 0.38);
}

.cd-sleeve__strip-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 4px 0;
}

.cd-sleeve__strip-nav__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 3px;
  border: 1px solid rgba(58, 42, 24, 0.32);
  background: color-mix(in srgb, var(--cream) 55%, #e8dfd0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  color: #2a2319;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.cd-sleeve__strip-nav__btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
  background: color-mix(in srgb, var(--cream) 35%, #f2e9dc);
  color: #1c1510;
}

.cd-sleeve__strip-nav__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--amber) 55%, transparent);
  outline-offset: 3px;
}

.cd-sleeve__strip-nav__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.cd-sleeve__strip-nav__status {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(58, 42, 24, 0.72);
  min-width: 5.5rem;
  text-align: center;
}

.cd-sleeve__media-pane {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-margin-inline-start: 0;
}

.cd-sleeve__media-slot {
  aspect-ratio: 16 / 10;
  min-height: 140px;
  max-height: min(54vh, 420px);
  border-radius: 2px;
  border: 1.5px dashed color-mix(in srgb, #3a2a18 30%, transparent 70%);
  background: color-mix(in srgb, var(--cream) 35%, #d8cbb8 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cd-sleeve__media-slot-hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-align: center;
  color: #5c4f40;
}

.cd-sleeve__media-slot-hint span {
  display: block;
  font-weight: 600;
  color: #3d3328;
  max-width: 28ch;
  margin-inline: auto;
}
.cd-sleeve__media-slot:has(img) {
  padding: 0;
  border-style: none;
  background: #0b0908;
}

.cd-sleeve__media-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cd-sleeve__media-slot:has(img) .cd-sleeve__media-slot-hint {
  display: none;
}

.cd-sleeve__media-strip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--amber) 45%, transparent);
  outline-offset: 4px;
  border-radius: 2px;
}

.cd-sleeve__media-strip-hint {
  margin: 0;
  padding: 10px 2px 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(58, 42, 24, 0.55);
  text-align: center;
}

/* Desktop-style viewport (~16×10): screen-recording friendly, video letterboxed where needed */
.cd-sleeve__cover-visual--desktop {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  min-height: 198px;
  max-height: min(54vh, 420px);
  background: #0b0908;
  overflow: hidden;
}

.cd-sleeve__cover-visual--desktop .cd-sleeve__cover-stack {
  position: absolute;
  inset: 0;
  min-height: 100%;
  height: 100%;
  width: 100%;
}

.cd-sleeve__cover-visual--desktop .cd-sleeve__cover-video {
  object-fit: contain;
  pointer-events: auto;
}

.cd-sleeve__cover-visual--desktop .cd-sleeve__cover-stack > .cd-sleeve__cover-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  z-index: 4;
}

/* Center-crop taller iframe vertically to hide VEED / letterbox bars at top & bottom */
.cd-sleeve__cover-visual--desktop .cd-sleeve__cover-stack > .cd-sleeve__embed-crop-y {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 4;
}

.cd-sleeve__cover-visual--desktop .cd-sleeve__embed-crop-y .cd-sleeve__cover-embed {
  position: absolute;
  inset: unset;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 128%;
  border: none;
  display: block;
  transform: translate(-50%, -50%);
}

/*
 * Premiere short: VEED bars on export — clip-path trims the aperture (undeniable framing change)
 * and the iframe stays vertically oversized so fewer player pixels sit in the watermark bands.
 */
.cd-sleeve__cover-visual--desktop .cd-sleeve__cover-stack > .cd-sleeve__embed-crop-y--premiere {
  clip-path: inset(11% 0 23% 0);
  /* Safari <15.4; harmless duplicate where unsupported */
  -webkit-clip-path: inset(11% 0 23% 0);
}

.cd-sleeve__cover-visual--desktop
  .cd-sleeve__cover-stack
  > .cd-sleeve__embed-crop-y--premiere
  .cd-sleeve__cover-embed {
  height: 185%;
  top: 53%;
}

.cd-sleeve__cover-visual--desktop .cd-sleeve__cover-surface {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: unset;
}

/* Polaroid matte shell shared by .cd-sleeve__polaroid (tilt + shadow above) */
.cd-sleeve__cover-wrap {
  position: relative;
  width: 100%;
  padding: 12px;
  padding-bottom: 0;
  background: var(--cream);
  border-radius: 3px;
  overflow: visible;
  align-self: start;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .cd-sleeve__polaroid,
  .cd-sleeve__polaroid:hover {
    transition-duration: 0.01ms;
  }
}

.cd-sleeve__cover-mat-caption {
  margin: 0;
  padding: 16px 6px 18px;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #3a2a18;
  line-height: 1.35;
  user-select: none;
}

/* CSS fallback / video layers (narrow card without --desktop uses tall poster frame) */
.cd-sleeve__cover-visual:not(.cd-sleeve__cover-visual--desktop) {
  height: 100%;
  min-height: 260px;
  border-radius: 2px;
  overflow: hidden;
}

.cd-sleeve__cover-stack {
  position: relative;
  width: 100%;
}

.cd-sleeve__cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s ease,
    visibility 0.42s;
}

.cd-sleeve__cover-visual:has(.cd-sleeve__cover-video source[src]:not([src=""])) .cd-sleeve__cover-video,
.cd-sleeve__cover-visual:has(.cd-sleeve__cover-video[src]:not([src=""])) .cd-sleeve__cover-video {
  opacity: 1;
  visibility: visible;
}

.cd-sleeve__cover-surface {
  position: relative;
  height: min(448px, 52vh);
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--cd-a) 0%, var(--cd-b) 55%, var(--cd-c) 100%);
}

.cd-sleeve__cover-disc {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.06),
    inset 0 0 16px rgba(255, 255, 255, 0.04);
}

.cd-sleeve__cover-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cd-sleeve__cover-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    transparent 48%
  );
}

.cd-sleeve__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  font-family: var(--sans);
  min-width: 0;
  padding: clamp(8px, 1.8vw, 18px) 2px clamp(8px, 1.8vw, 14px) 0;
}

.cd-sleeve__headline {
  font-family: inherit;
  font-size: clamp(1.15rem, 2.35vw, 1.78rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 clamp(11px, 2vw, 16px);
  letter-spacing: -0.032em;
}

.cd-sleeve__lede {
  font-family: inherit;
  font-size: clamp(13.75px, 1.72vw, 15px);
  font-weight: 400;
  line-height: 1.62;
  color: color-mix(in srgb, var(--muted) 52%, var(--ink) 48%);
  margin: 0 0 clamp(16px, 2.8vw, 22px);
}

.cd-sleeve__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 clamp(18px, 2.5vw, 26px);
}

.cd-sleeve__pills span {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 6px 11px 5px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--amber) 38%, #9a8a78 62%);
  background: color-mix(in srgb, #fffef9 92%, var(--cream) 8%);
  color: #3a3028;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(25, 18, 12, 0.07);
}

.cd-sleeve__detail-lead {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 68%, var(--ink) 32%);
  margin: 0 0 10px;
  line-height: 1.35;
}

.cd-sleeve__body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(228px, 34vh);
  overflow-y: auto;
  padding-right: 12px;
  margin-right: -4px;
  -webkit-overflow-scrolling: touch;
}

.cd-sleeve__body-scroll:focus {
  outline: none;
}

.cd-sleeve__body-scroll:focus-visible {
  outline: 1px dashed color-mix(in srgb, var(--amber) 50%, transparent);
  outline-offset: 3px;
}

.cd-sleeve__body-scroll p {
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.58;
  color: color-mix(in srgb, var(--ink-soft) 92%, var(--ink) 8%);
  margin: 0 0 11px;
}

.cd-sleeve__body-scroll p:last-child {
  margin-bottom: 0;
}

.cd-sleeve__label {
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
}

/* Light “print on cream mat” typography inside the floating card */
.cd-sleeve__panel .cd-sleeve__headline {
  color: #13100c;
}

.cd-sleeve__panel .cd-sleeve__lede {
  color: #4f4438;
}

.cd-sleeve__panel .cd-sleeve__detail-lead {
  color: rgba(73, 64, 52, 0.85);
}

.cd-sleeve__panel .cd-sleeve__body-scroll p {
  color: #383028;
}

.cd-sleeve__panel .cd-sleeve__label {
  color: #221c17;
}

/* Expanded AI sleeves: must override two-column .cd-sleeve__featured (higher-specificity desktop grid) */
@media (max-width: 900px) {
  /* Stack CD + subcopy, then expanded card underneath (tablet + mobile) */
  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(14px, 3vw, 22px);
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-case.cd-case__toggle.cd-case--no-link {
    align-self: center;
    max-width: min(220px, 88vw);
  }

  /* Default sleeve panel lift reads as overlapping the CD/subcopy when stacked */
  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel {
    transform: none;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel:hover {
    transform: translateY(-4px);
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__featured {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: clamp(14px, 3vw, 22px);
    align-items: stretch;
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__media-shell {
    order: -1;
    align-items: stretch;
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__copy {
    order: 1;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel,
  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__panel:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  .cd-sleeve__featured {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* AI explorations: expanded card spans shelf inset (full mobile width) */
  .ai-shelf--page
    .cd-rack.cd-rack--ai-row
    > li.cd-rack__item--sleeve-wide:has(.cd-sleeve.cd-sleeve--expanded) {
    width: calc(100% + 2 * var(--pad));
    max-width: none;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__media-shell .cd-sleeve__cover-wrap {
    flex: none;
    height: auto;
    max-width: none;
    margin-left: 0;
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__polaroid .cd-sleeve__media-strip {
    flex: none;
    min-height: 200px;
    scroll-snap-type: x proximity;
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__polaroid .cd-sleeve__media-pane {
    height: auto;
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__cover-visual--desktop {
    flex: none;
    height: auto;
    min-height: 180px;
    aspect-ratio: 16 / 10;
    max-height: min(52vh, 480px);
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve--expanded .cd-sleeve__media-slot {
    flex: none;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 140px;
    max-height: min(52vh, 480px);
  }

  .cd-sleeve__copy {
    min-height: 0;
  }

  .cd-sleeve__cover-wrap.cd-sleeve__polaroid {
    transform: rotate(-0.85deg);
    max-width: 100%;
    margin-inline: 0;
    margin-top: clamp(4px, 2vw, 12px);
  }

  .cd-rack.cd-rack--ai-row .cd-sleeve.cd-sleeve--expanded .cd-sleeve__cover-wrap.cd-sleeve__polaroid {
    margin-top: 0;
  }

  .cd-sleeve__cover-wrap.cd-sleeve__polaroid:hover {
    transform: rotate(-0.45deg);
  }

  .cd-sleeve__cover-surface {
    max-height: 42vh;
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-case__toggle-chevron {
    transition-duration: 0.01ms;
  }
}


/* =========================================================
   Case Study Detail pages  (csd-)
   Building blocks: reusable across all case studies.
   ========================================================= */

/* ── Shared article wrapper ──────────────────────────────── */
.csd {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 140px;
}

/* ── Back link ───────────────────────────────────────────── */
.csd-back-wrap {
  padding-top: 88px;
  padding-bottom: 36px;
}

.csd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.csd-back svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.csd-back:hover {
  color: var(--ink);
  gap: 12px;
}

.csd-back:hover svg {
  transform: translateX(-3px);
}

/* ── Case study detail: reveal polish + hovers on all shipped studies ── */

@media (prefers-reduced-motion: no-preference) {
  article.csd > .csd-back-wrap.reveal,
  article.csd > section.reveal:not(.gwi-pivot-drop) {
    transform: translateY(22px);
    transition:
      opacity 0.95s var(--ease),
      transform 0.95s var(--ease);
  }
}

@media (hover: hover) {
  article.csd .csd-hero__cover-inner img {
    transition: transform 0.65s var(--ease);
  }

  article.csd .csd-hero__cover:hover .csd-hero__cover-inner img {
    transform: scale(1.055);
  }

  article.csd .csd-meta__pills span {
    transition:
      border-color 0.3s var(--ease),
      color 0.3s var(--ease),
      background 0.3s var(--ease),
      transform 0.3s var(--ease),
      box-shadow 0.3s var(--ease);
  }

  article.csd .csd-meta__pills span:hover {
    border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
    color: var(--cream);
    background: color-mix(in srgb, var(--surface) 88%, rgba(214, 123, 61, 0.18));
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  }

  article.csd .csd-iterate__card {
    transition:
      transform 0.42s var(--ease),
      box-shadow 0.42s var(--ease),
      border-color 0.32s var(--ease);
  }

  article.csd .csd-iterate__card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.38),
      0 0 0 1px color-mix(in srgb, var(--amber) 32%, transparent);
    border-color: color-mix(in srgb, var(--amber) 38%, var(--line));
  }

  article.csd .csd-impact__stat {
    transition: transform 0.36s var(--ease);
    will-change: transform;
  }

  article.csd .csd-impact__stat:hover {
    transform: translateY(-5px);
  }

  article.csd .csd-fullimg .csd-fullimg__inner {
    transition: box-shadow 0.45s var(--ease), border-color 0.35s var(--ease);
  }

  article.csd .csd-fullimg:hover .csd-fullimg__inner {
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.45),
      0 0 0 1px color-mix(in srgb, var(--cream) 12%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  article.csd .csd-impact__stat,
  article.csd .csd-impact__stat:hover {
    transform: none;
  }

  article.csd .csd-hero__cover:hover .csd-hero__cover-inner img {
    transform: none;
  }

  article.csd .csd-meta__pills span:hover {
    transform: none;
  }

  article.csd .csd-iterate__card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  article.csd .csd-statement__accent {
    padding-bottom: 0.08em;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 calc(100% - 1px);
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.5s var(--ease);
  }

  article.csd .csd-statement:hover .csd-statement__accent,
  article.csd .csd-statement__accent:hover {
    background-size: 100% 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  article.csd .csd-statement__accent {
    text-decoration: underline;
    text-underline-offset: 0.12em;
    text-decoration-thickness: 1px;
  }
}

/* Case studies listing: stagger when the grid enters view */
@media (prefers-reduced-motion: no-preference) {
  .cs-grid-section .cs-grid > li.cs-card.reveal:nth-child(1) {
    transition-delay: 0.04s;
  }
  .cs-grid-section .cs-grid > li.cs-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
  }
  .cs-grid-section .cs-grid > li.cs-card.reveal:nth-child(3) {
    transition-delay: 0.16s;
  }
  .cs-grid-section .cs-grid > li.cs-card.reveal:nth-child(4) {
    transition-delay: 0.22s;
  }
  .cs-grid-section .cs-grid > li.cs-card.reveal:nth-child(5) {
    transition-delay: 0.28s;
  }
  .cs-grid-section .cs-grid > li.cs-card.reveal:nth-child(6) {
    transition-delay: 0.34s;
  }
}

/* ── BLOCK: Hero ─────────────────────────────────────────── */
.csd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

/* Prevent grid blowout (second column / cover fighting the text column to 0 width). */
.csd-hero > .csd-hero__inner,
.csd-hero > .csd-hero__cover {
  min-width: 0;
}

/* Hero without side cover (e.g. multi-study AI pages) */
.csd-hero--text-only {
  grid-template-columns: 1fr;
}

.csd-hero__inner {
  display: grid;
  gap: 22px;
}

/* Hero category tags: stronger read than global .kicker (nav, sections stay subtle) */
article.csd .csd-hero .kicker.csd-hero__kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 52ch);
  margin: 0;
  padding: 10px 18px;
  font-size: clamp(12px, 0.85vw + 10px, 15px);
  letter-spacing: 0.11em;
  font-weight: 500;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--cream);
  border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line));
  border-radius: 999px;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface) 82%, rgba(214, 123, 61, 0.14)),
    color-mix(in srgb, var(--bg-2) 94%, transparent)
  );
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--line) 70%, transparent),
    0 10px 28px rgba(0, 0, 0, 0.38);
}

.csd-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.93;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0;
}

.csd-hero__body {
  display: grid;
  gap: 16px;
  max-width: 52ch;
}

.csd-hero__summary {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* Cover image / placeholder */
.csd-hero__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.csd-hero__cover-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.csd-hero__cover-inner svg {
  width: 48px;
  height: 48px;
  opacity: 0.45;
}

.csd-hero__cover-inner span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* Real image (swap placeholder): inline layout only; no inline styles in HTML */
.csd-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ── BLOCK: Project meta ─────────────────────────────────── */
.csd-meta {
  padding: 40px 0 52px;
  border-bottom: 1px solid var(--line);
}

.csd-meta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}

.csd-meta__item {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 32px;
}

.csd-meta__item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

/* Full-width items (e.g. Role) span all columns */
.csd-meta__item--full {
  grid-column: 1 / -1;
  border-right: none;
  margin-right: 0;
  padding-right: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.csd-meta__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  padding: 0;
  font-weight: 400;
}

.csd-meta__value {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  padding: 0;
}

/* Role pill tags */
.csd-meta__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.csd-meta__pills span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: color-mix(in srgb, var(--surface) 78%, rgba(239, 228, 203, 0.12));
  border: 1px solid color-mix(in srgb, var(--line) 55%, var(--cream) 18%);
  border-radius: 100px;
  padding: 6px 12px;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .csd-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .csd-hero__cover {
    max-width: 560px;
  }

  .csd-meta__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 0;
  }

  .csd-meta__item {
    padding-right: 24px;
    margin-right: 24px;
  }

  .csd-meta__item:nth-child(even) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .csd-meta__item--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .csd-hero__title {
    font-size: clamp(40px, 10.5vw, 58px);
  }

  .csd-meta__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .csd-meta__item,
  .csd-meta__item--full {
    grid-column: span 1;
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
}

/* ── BLOCK: Impact ───────────────────────────────────────── */
.csd-impact {
  padding: 44px 0 64px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 32px;
}

.csd-impact__header {
  display: grid;
  gap: 16px;
}

.csd-impact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
  max-width: 20ch;
}

.csd-impact__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.csd-impact__stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 40px;
  border-right: 1px solid var(--line);
  margin-right: 40px;
}

.csd-impact__stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.csd-impact__stat-num {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.9;
  color: var(--amber);
  letter-spacing: -0.03em;
  font-style: italic;
}

.csd-impact__stat-unit {
  font-size: 0.55em;
  letter-spacing: -0.01em;
  vertical-align: super;
}

.csd-impact__stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.45;
}

.csd-impact__note {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  max-width: 64ch;
  padding-left: 24px;
  border-left: 2px solid var(--line);
}

/* List variant: qualitative outcomes */
.csd-impact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 72ch;
}

.csd-impact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 10px 0;
}

.csd-impact__list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: calc(0.5lh - 4px);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(214, 123, 61, 0.7);
}

.csd-impact__list li strong {
  color: var(--ink);
  font-weight: 500;
}

/* Wrap lead-in <strong> + body copy so flex gap does not sit between emphasis and trailing text. */
.csd-impact__list-copy {
  flex: 1;
  min-width: 0;
}

/* Impact: three principles (BA+FOS combined page) */
.csd-impact--ai-principles {
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  justify-items: start;
}

.csd-impact--ai-principles .csd-impact__header {
  max-width: min(72ch, 100%);
}

.csd-impact--ai-principles .csd-impact__title {
  max-width: none;
}

.csd-impact__principles {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: csd-impact-principle;
}

.csd-impact--ai-principles .csd-impact__principles--cards {
  display: grid;
  gap: clamp(16px, 2.2vw, 22px);
  width: 100%;
  max-width: min(72ch, 100%);
}

.csd-impact__principle {
  margin: 0;
  padding: clamp(18px, 2.2vw, 24px) 0;
  padding-left: clamp(36px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  counter-increment: csd-impact-principle;
}

.csd-impact--ai-principles .csd-impact__principle {
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3.2vw, 36px);
  padding-left: clamp(52px, 5.5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
  background:
    linear-gradient(165deg, rgba(214, 123, 61, 0.09) 0%, transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, transparent 65%),
    var(--surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--line);
}

.csd-impact__principle:first-child {
  padding-top: 0;
}

.csd-impact__principle:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.csd-impact--ai-principles .csd-impact__principle:first-child,
.csd-impact--ai-principles .csd-impact__principle:last-child {
  padding-top: clamp(20px, 3vw, 28px);
  padding-bottom: clamp(20px, 3vw, 28px);
}

.csd-impact--ai-principles .csd-impact__principle:last-child {
  border-bottom: 1px solid var(--line);
}

.csd-impact__principle::before {
  content: counter(csd-impact-principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(18px, 2.2vw, 24px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.9;
}

.csd-impact__principle:first-child::before {
  top: 0;
}

.csd-impact--ai-principles .csd-impact__principle::before {
  left: clamp(22px, 3.2vw, 36px);
  top: clamp(20px, 3vw, 28px);
}

.csd-impact--ai-principles .csd-impact__principle:first-child::before {
  top: clamp(20px, 3vw, 28px);
}

.csd-impact__principle-title {
  font-family: var(--sans);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 0.55em;
}

.csd-impact__principle-text {
  margin: 0;
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Impact rows led by emoji (e.g. Hyundai Finance): hide default amber dot */
.csd-impact__list--lead-icons li::before {
  display: none;
  content: none;
}

.csd-impact__list--lead-icons .csd-impact__lead-icon {
  flex-shrink: 0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.35;
  width: 1.6em;
  text-align: center;
  margin-top: 0.12em;
}

.csd-impact--exp1-outcome .csd-impact__title {
  max-width: none;
}

/* Impact + sticky side media (e.g. embed) */
.csd-impact--with-side {
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.csd-impact__main {
  display: grid;
  gap: 32px;
  min-width: 0;
}

.csd-impact__embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}

.csd-impact__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── BLOCK: Iterate: horizontal scroll design cards ───────── */
.csd-iterate {
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 36px;
  min-width: 0;
}

.csd-iterate__intro {
  display: grid;
  gap: 14px;
  max-width: 72ch;
}

.csd-iterate__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
  max-width: 26ch;
}

.csd-iterate__lead {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ink-soft);
}

.csd-iterate__intro .csd-impact__list {
  margin-top: 4px;
}

.csd-iterate__shift {
  margin: 8px 0 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
}

.csd-iterate__scroll-wrap {
  position: relative;
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  /* Grid/flex min-size is content by default; without this the rail grows with all cards and never scrolls. */
  min-width: 0;
}

.csd-iterate__hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.csd-iterate__rail {
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  outline: none;
}

.csd-iterate__rail:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.csd-iterate__rail::-webkit-scrollbar {
  height: 6px;
}

.csd-iterate__rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.csd-iterate__scroll-wrap::after {
  content: '';
  position: absolute;
  top: 38px;
  right: var(--pad);
  bottom: 22px;
  width: min(80px, 14vw);
  background: linear-gradient(to left, var(--bg), transparent);
  pointer-events: none;
}

@media (max-width: 600px) {
  .csd-iterate__scroll-wrap::after {
    width: 36px;
  }
}

.csd-iterate__card {
  flex: 0 0 min(300px, min(82vw, 340px));
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.csd-iterate__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(165deg, rgba(214, 123, 61, 0.07), transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
}

.csd-iterate__thumb svg {
  width: 100%;
  max-height: 132px;
}

.csd-iterate__pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201, 96, 45, 0.35);
  border: 1px solid rgba(233, 160, 91, 0.35);
  color: var(--cream);
}

.csd-iterate__thumb--modal {
  align-items: stretch;
  padding: 14px;
}

.csd-iterate__fake-modal {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 11, 8, 0.85);
  display: grid;
  gap: 8px;
}

.csd-iterate__fake-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--cream);
}

.csd-iterate__fake-line {
  margin: 0;
  font-size: 11px;
  color: var(--ink);
}

.csd-iterate__fake-muted {
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

.csd-iterate__fake-note {
  margin: 0;
  font-size: 8px;
  line-height: 1.4;
  color: var(--amber-2);
}

.csd-iterate__thumb--alert {
  padding: 12px;
}

.csd-iterate__fake-alert {
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(21, 16, 11, 0.95);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.csd-iterate__fake-alert .csd-iterate__fake-title {
  font-size: 10px;
}

.csd-iterate__fake-alert .csd-iterate__fake-muted {
  font-size: 9px;
}

.csd-iterate__fake-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.csd-iterate__fake-btn {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.csd-iterate__fake-btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.csd-iterate__fake-btn--ghost {
  background: transparent;
}

.csd-iterate__thumb--actions {
  padding: 20px 16px;
}

.csd-iterate__fake-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 200px;
}

.csd-iterate__fake-actions .csd-iterate__fake-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
}

.csd-iterate__card-body {
  padding: 18px 18px 22px;
  display: grid;
  gap: 10px;
}

.csd-iterate__card-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0;
}

.csd-iterate__card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .csd-iterate__rail {
    scroll-snap-type: none;
  }
}

/* ── BLOCK: Outcome statements ───────────────────────────── */
.csd-outcome {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 56px;
}

.csd-outcome__header {
  display: grid;
  gap: 16px;
}

.csd-outcome__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
  max-width: 24ch;
}

.csd-outcome__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.csd-outcome__item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.csd-outcome__item:last-child {
  border-bottom: 1px solid var(--line);
}

.csd-outcome__stat {
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
  flex-shrink: 0;
  min-width: 6ch;
}

.csd-outcome__desc {
  font-family: var(--sans);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.csd-outcome__note {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

@media (max-width: 680px) {
  .csd-outcome__item {
    flex-direction: column;
    gap: 6px;
  }

  .csd-outcome__stat {
    min-width: unset;
  }
}

/* ── BLOCK: Background / Context ─────────────────────────── */
.csd-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
}

/* Text-only variant: add .csd-context--full when there's no image */
.csd-context--full {
  grid-template-columns: 1fr;
  max-width: 72ch;
}

/* FOS conclusion: prose left, key-feature bullets right */
.csd-context--fos-conclusion-split {
  max-width: none;
}

.csd-context--fos-conclusion-split .csd-context__body--conclusion-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(42%, 400px));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.csd-context--fos-conclusion-split .csd-context__conclusion-prose {
  display: grid;
  gap: 18px;
  max-width: 56ch;
}

.csd-context--fos-conclusion-split .csd-context__conclusion-aside p {
  margin: 0 0 0.35em;
}

.csd-context--fos-conclusion-split .csd-context__conclusion-aside .csd-context__list {
  margin-top: 0;
}

@media (max-width: 720px) {
  .csd-context--fos-conclusion-split .csd-context__body--conclusion-split {
    grid-template-columns: 1fr;
  }
}

/* Reflections-style row: prose column + decorative mock on the right */
.csd-context--reflection-mock {
  grid-template-columns: minmax(0, 1fr) minmax(160px, min(40vw, 460px));
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.csd-context--reflection-mock .csd-context__text {
  max-width: 56ch;
}

.csd-context__image--reflection-mock {
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 460px;
}

.csd-context__image--reflection-mock img {
  width: 100%;
  max-width: 460px;
  margin-inline-start: auto;
}

@media (max-width: 960px) {
  .csd-context--reflection-mock .csd-context__image--reflection-mock {
    justify-self: center;
    max-width: min(420px, 88vw);
  }

  .csd-context__image--reflection-mock img {
    margin-inline: auto;
    max-width: min(420px, 88vw);
  }
}

/* Publishing queue: intro row (copy | benefits), then full-width annotated mock */
.pins-queue-section.csd-context {
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 72px);
  align-items: stretch;
}

.pins-queue-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

.pins-queue-section .csd-context__text {
  max-width: 56ch;
}

.pins-queue-visual {
  width: 100%;
  min-width: 0;
}

.pins-queue-visual .pins-queue-annotate__asset.fos-concept__asset-wrap {
  margin-inline: auto;
}

@media (max-width: 720px) {
  .pins-queue-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.pins-queue-benefits {
  display: grid;
  gap: 14px;
}

.pins-queue-benefits > .kicker {
  margin: 0;
}

/* Planning Inspectorate: shared outcome bullets (Publishing queue benefits + End results) */
/* Each li wraps copy in .pins-qual-list__text so flex does not split <strong> and body into separate items. */
.csd-impact__list.pins-qual-list li {
  padding: clamp(12px, 1.8vw, 18px) 0;
  gap: 14px;
  line-height: 1.65;
}

.csd-impact__list.pins-qual-list .pins-qual-list__text {
  flex: 1;
  min-width: 0;
}

.csd-impact__list.pins-qual-list li::before {
  width: 8px;
  height: 8px;
  margin-top: calc(0.5lh - 4px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--amber) 45%, transparent),
    0 0 12px rgba(214, 123, 61, 0.75);
}

.pins-queue-benefits .csd-impact__list.pins-qual-list {
  max-width: none;
}

.csd-impact__list.pins-qual-list li + li {
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.csd-impact--pins-end-results .csd-findings__intro {
  max-width: 72ch;
}

/* End results: denser bullets (Publishing queue keeps shared .pins-qual-list defaults). */
.csd-impact--pins-end-results .csd-impact__list.pins-qual-list {
  max-width: min(68ch, 100%);
}

.csd-impact--pins-end-results .csd-impact__list.pins-qual-list li {
  padding: clamp(8px, 1.2vw, 13px) 0;
  gap: 12px;
  line-height: 1.52;
  font-size: clamp(14px, 1.08vw, 17px);
}

/* Planning Inspectorate: publishing queue, hotspots over screenshot */
.pins-queue-annotate {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.pins-queue-annotate__lede {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pins-queue-annotate__asset.fos-concept__asset-wrap {
  overflow: visible;
  max-width: min(100%, 1280px);
}

/* Publishing queue: img must stay in-flow; default .fos-concept__img is absolute for cropped frames */
.pins-queue-annotate__asset .fos-concept__img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  transform: none;
  pointer-events: none;
  user-select: none;
}

.pins-queue-annotate__caption {
  margin-top: 4px;
}

/*
 * Publishing queue hotspots: % are centre of marker, relative to full PNG (Publishing queue.png includes coloured margins around the white UI card).
 * Calibrated to asset: Select col ~30%; Actions ~74%; Remove ~89%; row 3 ~60% height, row 4 ~64%.
 */
.pins-queue-hotspots .pins-queue-hotspot--status {
  left: 38%;
  top: 40%;
}

.pins-queue-hotspots .pins-queue-hotspot--selection {
  left: 29.5%;
  top: 59.8%;
}

.pins-queue-hotspots .pins-queue-hotspot--viewedit {
  left: 74%;
  top: 59.8%;
}

.pins-queue-hotspots .pins-queue-hotspot--remove {
  left: 89%;
  top: 64.2%;
}

/* Copy stacked above a full-width block (e.g. expandable diagram) */
.csd-context--design-stack {
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
}

.csd-context--design-stack .csd-context__text {
  max-width: 72ch;
}

.csd-context--design-stack .csd-expandable-diagram {
  width: 100%;
  min-width: 0;
}

/* Native expandable media: summary toggles full-width scroll region */
.csd-expandable-diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.csd-expandable-diagram__summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  user-select: none;
}

.csd-expandable-diagram__summary::-webkit-details-marker {
  display: none;
}

.csd-expandable-diagram__summary-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.csd-expandable-diagram__icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  opacity: 0.65;
  align-self: center;
}

.csd-expandable-diagram[open] .csd-expandable-diagram__icon {
  transform: rotate(-135deg);
}

.csd-expandable-diagram__label {
  margin: 0;
}

.csd-expandable-diagram__hint {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

@media (min-width: 520px) {
  .csd-expandable-diagram__summary-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
  }

  .csd-expandable-diagram__hint {
    text-align: right;
    flex: 1 1 auto;
    min-width: max(140px, 25%);
  }
}

.csd-expandable-diagram__inner {
  border-top: 1px solid var(--line);
  padding-bottom: 16px;
}

.csd-expandable-diagram__scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(78vh, 720px);
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  background: var(--surface);
}

.csd-expandable-diagram__scroll:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--cream) 55%, transparent);
  outline-offset: -2px;
}

.csd-expandable-diagram__scroll img {
  width: auto;
  max-width: none;
  height: auto;
  max-height: min(76vh, 680px);
  display: block;
}

.csd-expandable-diagram__caption {
  padding: 14px 20px 0;
  margin: 0;
}

/* Two-column flip: image left, text right (DOM can stay text node → image; CSS swaps).
   Default without this class is text left | image right. */
.csd-context--reverse .csd-context__image {
  order: -1;
}

.csd-context__text {
  display: grid;
  gap: 24px;
}

.csd-context__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}

/* Match editorial punch in body copy; brand orange at display sizes */
.csd-context__title .csd-editorial__takeaway {
  font-weight: inherit;
  color: var(--amber);
}

.csd-context__body {
  display: grid;
  gap: 18px;
}

.csd-context__body .csd-context__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--cream);
  margin: 0;
}

.csd-context__body .csd-context__lede strong,
.csd-context__body > p strong,
.csd-context__body .csd-context__list li strong {
  font-weight: 600;
  color: var(--cream);
}

.csd-context__body p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.csd-context__body a.csd-inline-link {
  text-decoration: underline;
  text-decoration-color: rgba(214, 123, 61, 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.csd-context__body a.csd-inline-link:hover,
.csd-context__body a.csd-inline-link:focus-visible {
  color: var(--amber);
  text-decoration-color: rgba(214, 123, 61, 0.55);
}

.csd-context__title-note {
  font-family: var(--sans);
  font-size: 0.45em;
  font-style: normal;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.15em;
}

.csd-context__body .csd-context__list {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Disc bullets: marker vertically centred on the first text line (same rhythm as editorial lists) */
.csd-context__body .csd-context__list:not(.csd-context__list--numbered):not(.csd-context__list--cards) {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

.csd-context__body .csd-context__list:not(.csd-context__list--numbered):not(.csd-context__list--cards) li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.45em;
  padding: 3px 0;
}

.csd-context__body .csd-context__list:not(.csd-context__list--numbered):not(.csd-context__list--cards) li:last-child {
  margin-bottom: 0;
}

.csd-context__body .csd-context__list:not(.csd-context__list--numbered):not(.csd-context__list--cards) li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: calc(0.5lh - 3px);
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.85;
  box-shadow: 0 0 8px rgba(214, 123, 61, 0.45);
}

.csd-context__body .csd-context__list--numbered {
  list-style: decimal;
  padding-left: 1.35em;
}

.csd-context__body .csd-context__list--numbered li {
  display: list-item;
  padding: 0;
  margin-bottom: 0.45em;
}

.csd-context__body .csd-context__list--numbered li:last-child {
  margin-bottom: 0;
}

.csd-context__meta-line {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.csd-context__meta-line .muted {
  color: var(--muted);
  font-weight: 400;
}

.csd-context__body code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Image column */
.csd-context__image {
  display: grid;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 100px;
}

.csd-context__image-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.csd-context__image-placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.4;
}

.csd-context__image-placeholder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Wide flow / diagram: horizontal scroll inside sticky side column */
.csd-context__image-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  scrollbar-gutter: stable;
}

.csd-context__image-scroll:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--cream) 55%, transparent);
  outline-offset: 3px;
}

.csd-context__image .csd-context__image-scroll img {
  width: auto;
  max-width: none;
  height: auto;
  max-height: min(72vh, 560px);
  display: block;
  border: none;
  border-radius: 0;
}

/* Hyundai Finance soft-search flow: wide diagram; short viewport keeps kicker + caption in view; scroll inside for full asset */
.csd-context__image .hcuk-soft-search-flow-wrap {
  min-width: 0;
  position: relative;
}

/* Fade sits on viewport wrapper so it matches scroll frame height & radius (not a guessed offset below the hint). */
.csd-context__image .hcuk-soft-search-flow-viewport {
  position: relative;
  min-width: 0;
}

.csd-context__image .hcuk-soft-search-flow-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(104px, 22vw);
  pointer-events: none;
  z-index: 1;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(
    to left,
    color-mix(in oklab, var(--bg) 92%, transparent) 0%,
    color-mix(in oklab, var(--bg) 40%, transparent) 40%,
    color-mix(in oklab, var(--bg) 10%, transparent) 75%,
    transparent 100%
  );
}

@media (max-width: 600px) {
  .csd-context__image .hcuk-soft-search-flow-viewport::after {
    width: min(72px, 20vw);
  }
}

.csd-context__image .hcuk-soft-search-flow-scroll {
  height: min(42vh, 340px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--line) 85%, transparent) transparent;
}

.csd-context__image .hcuk-soft-search-flow-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.csd-context__image .hcuk-soft-search-flow-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.csd-context__image .hcuk-soft-search-flow-scroll img {
  max-height: none;
  height: 100%;
  width: auto;
}

@media (max-width: 960px) {
  .csd-context__image .hcuk-soft-search-flow-scroll {
    height: min(34vh, 260px);
  }
}

/* Full-width pitch / deck imagery inside case study */
.csd-context__text--pitch-wide {
  max-width: 100%;
}

.csd-pitch-figure {
  margin: 0;
}

.csd-pitch-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.csd-pitch-figure .csd-beforeafter__caption {
  padding-top: 12px;
}

/* Financial Ombudsman pitch: large crops with key-point cards beside mocks */
.fos-concepts {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.fos-concepts__head {
  max-width: 68ch;
  margin-bottom: 40px;
}

.fos-concepts__head--approach-split {
  max-width: none;
}

.fos-concepts__head--approach-split .fos-concepts__approach-intro {
  margin-top: 0.15em;
}

.fos-concepts__head--approach-split .fos-concepts__intro-text {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: min(56ch, 100%);
}

.fos-concepts__head--approach-split .fos-concepts__intro-text > p {
  margin: 0;
}

.fos-concepts__head--approach-split .fos-concepts__intro-text > p + p {
  margin-top: 1em;
}

.fos-concepts__approach-hed {
  font-weight: 600;
  color: rgba(246, 240, 228, 0.92);
  letter-spacing: 0.01em;
}

.fos-concepts__approach-grid {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2.2vw, 20px);
  counter-reset: fos-approach;
}

.fos-concepts__approach-card {
  margin: 0;
  counter-increment: fos-approach;
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background:
    linear-gradient(165deg, rgba(214, 123, 61, 0.07) 0%, transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    var(--surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.18);
}

.fos-concepts__approach-card::before {
  content: counter(fos-approach, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1;
}

.fos-concepts__approach-card-copy {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.fos-concepts__approach-card-copy strong {
  color: var(--cream);
  font-weight: 600;
}

.fos-concepts__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0.35em 0 0.5em;
}

.fos-concepts__lede {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.fos-concepts__lede > p + p,
.fos-concepts__lede > p + ul {
  margin-top: 1em;
}

.fos-concepts__approach-list {
  margin: 0.5em 0 0;
  padding-left: 1.25em;
}

.fos-concepts__approach-list li {
  margin-top: 0.45em;
}

.fos-concepts__approach-list li:first-child {
  margin-top: 0;
}

.fos-concept + .fos-concept {
  margin-top: 48px;
}

/* Image + key points (replaces hover hotspots on FOS mocks) */
.fos-concept__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, min(380px, 36vw));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

@media (max-width: 880px) {
  .fos-concept__row {
    grid-template-columns: 1fr;
  }
}

.fos-concept__key-card {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 24px);
  background:
    linear-gradient(165deg, rgba(214, 123, 61, 0.08) 0%, transparent 40%),
    var(--surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 40px rgba(0, 0, 0, 0.22);
}

.fos-concept__key-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fos-concept__key-item {
  margin: 0;
  padding: clamp(14px, 1.8vw, 18px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fos-concept__key-item:first-child {
  padding-top: 0;
}

.fos-concept__key-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.fos-concept__key-term {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.fos-concept__key-detail {
  margin: 0;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.fos-concept__frame {
  position: relative;
  --fos-crop-x: 50%;
  --fos-crop-y: 14%;
  --fos-zoom: 1.22;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.fos-concept__frame--tablet {
  --fos-crop-y: 30%;
  --fos-zoom: 1.14;
}

.fos-concept__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fos-crop-x) var(--fos-crop-y);
  transform: scale(var(--fos-zoom));
  transform-origin: center center;
  display: block;
  pointer-events: none;
  user-select: none;
}

.fos-concept__hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fos-hotspot {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.fos-hotspot__btn {
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: color-mix(in srgb, var(--cream) 22%, transparent);
  box-shadow:
    0 0 0 2px var(--cream),
    0 0 0 5px color-mix(in srgb, var(--cream) 28%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .fos-hotspot__btn {
    animation: fos-hotspot-pulse 2.8s ease-in-out infinite;
  }
}

@keyframes fos-hotspot-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--cream),
      0 0 0 5px color-mix(in srgb, var(--cream) 22%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--cream),
      0 0 0 11px color-mix(in srgb, var(--cream) 12%, transparent);
  }
}

.fos-hotspot__btn:hover,
.fos-hotspot__btn:focus-visible {
  animation: none;
  transform: scale(1.08);
  outline: none;
  box-shadow:
    0 0 0 2px var(--cream),
    0 0 0 6px color-mix(in srgb, var(--cream) 35%, transparent);
}

.fos-concept__label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 16px;
}

.fos-hotspot__popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(320px, calc(100vw - 48px));
  padding: 14px 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, #0a0a0a);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 5;
}

.fos-hotspot--note-below .fos-hotspot__popup {
  bottom: auto;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-6px);
}

.fos-hotspot--note-below:hover .fos-hotspot__popup,
.fos-hotspot--note-below:focus-within .fos-hotspot__popup,
.fos-hotspot--note-below.fos-hotspot--open .fos-hotspot__popup {
  transform: translateX(-50%) translateY(0);
}

.fos-hotspot:hover .fos-hotspot__popup,
.fos-hotspot:focus-within .fos-hotspot__popup,
.fos-hotspot.fos-hotspot--open .fos-hotspot__popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.fos-hotspot__popup strong {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.fos-hotspot__popup p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.fos-concept__caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 0;
}

/* Full exported mockup (no crop/zoom): image + overlay hotspots */
.fos-concept__frame--full {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* FOS mocks: logical max width; use 2× PNGs (~2048px) for Retina while keeping this cap. */

.fos-concept__asset-wrap {
  position: relative;
  display: block;
  line-height: 0;
  max-width: min(100%, var(--fos-mock-max-w));
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.csd-context--fos-mock .csd-context__image {
  justify-self: center;
}

.csd-context--fos-mock .csd-context__image img {
  max-width: min(100%, var(--fos-mock-max-w));
  margin-inline: auto;
  width: 100%;
}

.fos-concept__frame--full .fos-concept__img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
  pointer-events: none;
  user-select: none;
}

.fos-overview-figure {
  margin: 32px 0 0;
}

.fos-overview-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .fos-hotspot__btn {
    animation: none;
  }

  .fos-hotspot__popup {
    transition: none;
  }
}

/* Real image (swap placeholder) */
.csd-context__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.csd-context__caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── BLOCK: Goal + Approach (paired panels) ─────────────────── */
.csd-role-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: stretch;
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
}

.csd-role-summary__goal,
.csd-role-summary__approach {
  max-width: none;
}

.csd-role-summary--panels .csd-role-summary__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3.5vw, 36px) clamp(32px, 4.5vw, 44px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.csd-role-summary--panels .csd-role-summary__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  opacity: 0.65;
}

.csd-role-summary--panels .csd-role-summary__panel:hover {
  border-color: rgba(214, 123, 61, 0.28);
  transform: translateY(-2px);
}

.csd-role-summary__panel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.csd-role-summary__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--amber);
  opacity: 0.42;
  user-select: none;
}

.csd-role-summary--panels .csd-role-summary__panel:hover .csd-role-summary__index {
  opacity: 0.72;
}

.csd-role-summary__kicker {
  margin: 0;
  align-self: center;
}

.csd-role-summary__heading {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--cream);
  margin: 0;
}

.csd-role-summary__body {
  display: grid;
  gap: 16px;
}

.csd-role-summary__body p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.csd-role-summary__body p.csd-role-summary__lede {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.csd-role-summary__body p strong {
  font-weight: 600;
  color: var(--cream);
}

@media (max-width: 720px) {
  .csd-role-summary {
    grid-template-columns: 1fr;
  }

  .csd-role-summary--panels .csd-role-summary__panel:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csd-role-summary--panels .csd-role-summary__panel {
    transition: none;
  }

  .csd-role-summary--panels .csd-role-summary__panel:hover {
    transform: none;
  }
}

/* ── BLOCK: Toyota experiment strip (lead + evidence row) ─ */
.csd-toy-exp1 {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}

.csd-toy-exp1__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  max-width: none;
}

.csd-toy-exp1__intro-text {
  display: grid;
  gap: clamp(18px, 2.5vw, 26px);
  max-width: 54ch;
}

.csd-toy-exp1__intro .csd-context__body {
  gap: 18px;
}

/* Journey chart: keep readable but lighter than full column width */
.csd-toy-exp1__intro-visual img {
  width: 100%;
  max-width: min(100%, 380px);
  margin-inline: auto;
}

.csd-toy-exp1__evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.csd-toy-exp1__intro + .csd-toy-exp1__evidence {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: -8px;
  padding-block-start: clamp(40px, 5vw, 56px);
}

@media (max-width: 890px) {
  .csd-toy-exp1__intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .csd-toy-exp1__intro-text {
    max-width: none;
  }

  .csd-toy-exp1__evidence {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .csd-toy-exp1__intro + .csd-toy-exp1__evidence {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
}

/* Toyota · design explorations caption under paired placeholders */
.csd-toy-exp1-design__panels-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 0;
  line-height: 1.55;
}

.csd-beforeafter--exp1-explore-panels .csd-beforeafter__grid {
  margin-bottom: 0;
}

/* Toyota experiment one: full-height PDP screenshots */
.csd-beforeafter--toy-pdp-screens .csd-beforeafter__img-wrap:has(> img) {
  aspect-ratio: unset;
  min-height: 200px;
}

@media (min-width: 720px) {
  .csd-beforeafter--toy-pdp-screens .csd-beforeafter__img-wrap:has(> img) {
    min-height: 280px;
    max-height: min(78vh, 820px);
  }
}

.csd-beforeafter--toy-pdp-screens .csd-beforeafter__img-wrap img {
  height: auto;
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  object-position: center top;
}

/* Toyota experiment two: personalisation comparisons — equal panel height, comfy image padding */
.csd-beforeafter--toy-exp2-personalisation .csd-beforeafter__grid {
  align-items: stretch;
}

.csd-beforeafter--toy-exp2-personalisation .csd-beforeafter__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}

.csd-beforeafter--toy-exp2-personalisation .csd-beforeafter__img-wrap:has(> img) {
  aspect-ratio: unset;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: min(78vh, 820px);
  padding-block: clamp(14px, 2.8vw, 32px);
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .csd-beforeafter--toy-exp2-personalisation .csd-beforeafter__img-wrap:has(> img) {
    min-height: 280px;
  }
}

.csd-beforeafter--toy-exp2-personalisation .csd-beforeafter__img-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Toyota experiment one: insight takeaway (distinct from standard context prose) */
.csd-toy-insight-panel {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 9vw, 96px);
  background:
    radial-gradient(
      ellipse 85% 120% at 0% 40%,
      color-mix(in oklab, var(--amber) 16%, transparent) 0%,
      transparent 58%
    ),
    linear-gradient(
      165deg,
      color-mix(in oklab, var(--surface) 55%, var(--bg-2)),
      var(--bg-2)
    );
}

.csd-toy-insight-panel__frame {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.csd-toy-insight-panel__mark {
  flex: 0 0 6px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--amber-2),
    color-mix(in oklab, var(--amber) 75%, var(--surface))
  );
  box-shadow: 0 0 28px color-mix(in oklab, var(--amber) 35%, transparent);
}

.csd-toy-insight-panel__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  min-width: 0;
}

.csd-toy-insight-panel__label {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding-top: 4px;
}

.csd-toy-insight-panel__label .kicker {
  color: var(--cream);
  letter-spacing: 0.16em;
  max-width: 12em;
}

.csd-toy-insight-panel__index {
  font-family: var(--sans);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: color-mix(in oklab, var(--cream) 12%, transparent);
  user-select: none;
}

.csd-toy-insight-panel__body {
  display: grid;
  gap: clamp(18px, 2.8vw, 26px);
  padding-top: 0;
  border-left: none;
}

.csd-toy-insight-panel__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0;
  max-width: 18ch;
}

.csd-toy-insight-panel__title em {
  font-style: italic;
}

.csd-toy-insight-panel__lede {
  font-family: var(--sans);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0;
  max-width: 54ch;
  padding-bottom: clamp(4px, 1vw, 10px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

@media (max-width: 720px) {
  .csd-toy-insight-panel__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .csd-toy-insight-panel__label {
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
    justify-items: start;
    padding-top: 0;
    width: 100%;
  }

  .csd-toy-insight-panel__index {
    line-height: 0.72;
    margin-bottom: -0.06em;
  }

  .csd-toy-insight-panel__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csd-toy-insight-panel__mark {
    box-shadow: none;
  }
}



/* Experiment two: personalisation placement scroll (Toyota web mocks) */
.csd-toy-placement-visuals.csd-iterate {
  gap: clamp(24px, 4vw, 32px);
}

.csd-toy-placement-visuals .csd-iterate__rail {
  gap: 12px;
  align-items: stretch;
  scroll-padding-inline: clamp(14px, 3vw, 40px);
}

/* Thumb: image sizes the card horizontally; taller mocks for prominence */
.csd-toy-placement-visuals .csd-iterate__thumb--photo {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding-block: clamp(18px, 3.2vw, 40px);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  height: auto;
  min-height: min(58dvh, 600px);
}

.csd-toy-placement-visuals .csd-iterate__thumb--photo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72dvh, 840px);
  display: inline-block;
  vertical-align: middle;
}

@media (max-height: 720px) {
  .csd-toy-placement-visuals .csd-iterate__thumb--photo {
    min-height: min(48dvh, 440px);
  }

  .csd-toy-placement-visuals .csd-iterate__thumb--photo img {
    max-height: min(58dvh, 420px);
  }
}

/*
 * Inline-table so caption stays the same width as the screenshot column;
 * rail stretch keeps slides equal height; width hugs each image scale.
 */
.csd-toy-placement-visuals .csd-iterate__card {
  display: inline-table;
  table-layout: auto;
  border-collapse: collapse;
  border-spacing: 0;
  caption-side: bottom;
  flex: 0 0 auto;
  max-width: min(100%, calc(100vw - clamp(32px, 9vw, 72px)));
  scroll-snap-align: start;
  align-self: stretch;
  vertical-align: top;
  height: auto;
}

.csd-toy-placement-visuals .csd-iterate__card-body {
  display: table-caption;
  caption-side: bottom;
  box-sizing: border-box;
  width: auto;
  overflow-wrap: break-word;
  padding: clamp(12px, 2vw, 18px) clamp(14px, 2.2vw, 20px) clamp(16px, 2.4vw, 22px);
}

/* Softer edge fade so the next-card peek stays readable */
.csd-toy-placement-visuals .csd-iterate__scroll-wrap::after {
  width: min(36px, 7vw);
  background: linear-gradient(
    to left,
    var(--bg),
    color-mix(in srgb, var(--bg) 35%, transparent)
  );
}

.csd-toy-placement-visuals .csd-iterate__card-title {
  font-size: clamp(14px, 1.08vw, 17px);
}

.csd-toy-placement-visuals .csd-iterate__card-desc {
  font-size: clamp(13px, 1.02vw, 15px);
  line-height: 1.45;
  margin-top: 8px;
}

.csd-toy-placement-visuals .csd-toy-placement-visuals__card--winner {
  border-color: color-mix(in srgb, var(--amber) 42%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--amber) 28%, transparent),
    0 14px 44px rgba(0, 0, 0, 0.22);
}

/* Winner: rationale sits on the mock like a stamp / tooltip */
.csd-toy-placement-visuals__winner-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 2;
  max-width: min(360px, 62%);
  padding: 14px 15px 15px;
  border-radius: 12px;
  background: rgba(14, 11, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--amber) 38%, var(--line));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 28px rgba(0, 0, 0, 0.38);
}

.csd-toy-placement-visuals__winner-stamp-title {
  display: block;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: clamp(10px, 0.82vw, 12px);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(252, 248, 242, 0.95);
}

.csd-toy-placement-visuals__rationale--stamp {
  margin: 0;
  padding-left: 1em;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.48;
  color: rgba(232, 224, 212, 0.92);
}

.csd-toy-placement-visuals__rationale--stamp li + li {
  margin-top: 6px;
}

@media (max-width: 639px) {
  .csd-toy-placement-visuals__winner-stamp {
    top: 8px;
    right: 8px;
    max-width: min(300px, 72%);
    padding: 11px 12px 12px;
  }

  .csd-toy-placement-visuals__rationale--stamp {
    font-size: clamp(11px, 3.2vw, 13px);
  }
}

/* ── BLOCK: Editorial / body copy (typography-only stripes) ─ */
.csd-editorial {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
}

.csd-editorial__inner {
  max-width: 62ch;
  display: grid;
  gap: clamp(56px, 8vw, 96px);
}

/* Match .csd-context gutters so split columns align with picture/text blocks */
.csd-editorial__inner--split {
  max-width: none;
  width: 100%;
}

/* Narrative column | trade-off lists column */
.csd-editorial__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Full-width reading flow, then block beneath (e.g. GWI build + scrollable cards) */
.csd-editorial__split--stacked {
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 36px);
}

/* One thematic stripe: label + title + flowing copy */
.csd-editorial__chunk {
  display: grid;
  gap: 20px;
}

.csd-editorial .kicker {
  color: rgba(201, 190, 171, 0.72);
}

.csd-editorial__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}

.csd-editorial__title-accent {
  font-family: var(--serif);
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  color: var(--amber-2);
}

.csd-editorial__body {
  display: grid;
  gap: 18px;
}

.csd-editorial__body p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0;
}

/* Bridge line before a list (“Through:”, etc.) */
.csd-editorial__bridge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 -4px;
}

/* Bullet list: circular markers, aligned with body */
.csd-editorial__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.csd-editorial__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  padding: 3px 0;
}

/* Bullet sits on the same vertical band as the first line of text */
.csd-editorial__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.54em;
  margin-top: calc(0.5lh - 3px);
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.85;
  box-shadow: 0 0 8px rgba(214, 123, 61, 0.45);
}

/* Trade-offs column: fits more viewport height alongside narrative */
.csd-editorial__body--tradeoffs {
  gap: clamp(12px, 2.5vw, 16px);
}

.csd-editorial__body--tradeoffs > p:last-of-type {
  font-size: clamp(12.75px, 0.92vw + 10px, 14px);
  line-height: 1.62;
}

.csd-editorial__body--tradeoffs .csd-editorial__bridge {
  font-size: 10px;
  margin: 4px 0 -6px;
}

.csd-editorial__body--tradeoffs .csd-editorial__bridge:first-of-type {
  margin-top: 0;
}

.csd-editorial__body--tradeoffs .csd-editorial__list li {
  font-size: clamp(12.75px, 0.92vw + 10px, 14px);
  line-height: 1.62;
  padding: 1px 0;
  gap: 11px;
}

/* Prioritised: check-circle (amber accent) */
.csd-editorial__list--prioritised li::before {
  width: 18px;
  height: 18px;
  margin-top: calc(0.5lh - 9px);
  border-radius: 0;
  background: transparent none;
  opacity: 1;
  box-shadow: none;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 17px 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='7.5' stroke='%23D67B3D' stroke-opacity='0.55' stroke-width='1.2'/%3E%3Cpath d='M6.25 10.1 8.85 12.65 13.95 7.05' stroke='%23E9A05B' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Deferred: pause-in-circle (muted: “parked”) */
.csd-editorial__list--deferred li::before {
  width: 18px;
  height: 18px;
  margin-top: calc(0.5lh - 9px);
  border-radius: 0;
  background: transparent none;
  opacity: 1;
  box-shadow: none;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 17px 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='7.5' stroke='%238A7A66' stroke-opacity='0.75' stroke-width='1.2'/%3E%3Cpath d='M7.85 7.05v6.3M12.35 7.05v6.3' stroke='%238A7A66' stroke-opacity='0.92' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Inline punch: end-of-section takeaway */
.csd-editorial__takeaway {
  font-weight: 600;
  color: var(--cream);
}

/* Highlight block: pull quote / key insight */
.csd-editorial__callout {
  margin: 0;
  padding: 20px 22px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: linear-gradient(135deg, rgba(27, 20, 14, 0.95), rgba(21, 16, 11, 0.65));
  box-shadow: inset 0 1px 0 rgba(245, 239, 227, 0.04);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.72;
  color: var(--ink-soft);
}

.csd-editorial__callout strong {
  font-weight: 600;
  color: var(--cream);
}

/* Soft span highlight (subtle ink lift, no heavy box) */
.csd-editorial__hl {
  padding: 0 0.15em;
  margin: 0 -0.05em;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    transparent 0.55em,
    rgba(214, 123, 61, 0.22) 0.55em,
    rgba(214, 123, 61, 0.14) 100%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 680px) {
  .csd-editorial {
    padding: 56px 0 56px;
  }

  .csd-editorial__inner {
    gap: 48px;
  }
}

/* ── Responsive: Impact + Context ────────────────────────── */
@media (max-width: 960px) {
  .csd-impact__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }

  .csd-impact__stat:nth-child(even) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .csd-context {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Stack with reading flow: body copy before image on narrow screens */
  .csd-context--reverse .csd-context__text {
    order: 0;
  }

  .csd-context--reverse .csd-context__image {
    order: 1;
  }

  .csd-context__image {
    position: static;
    max-width: 560px;
  }

  .csd-impact--with-side {
    grid-template-columns: 1fr;
  }

  .csd-editorial__split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .csd-impact__stats {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }

  .csd-impact__stat {
    padding-right: 24px;
    margin-right: 24px;
  }

  .csd-impact__stat:nth-child(even) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
}

/* ── BLOCK: Statement / Hypothesis ──────────────────────── */
.csd-statement {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
}

.csd-statement__text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0;
}

.csd-statement__fade {
  color: var(--muted);
}

.csd-statement__accent {
  color: var(--accent, var(--amber-2));
}

.csd-statement--compact {
  gap: 16px;
  padding: 56px 0 64px;
}

.csd-statement__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.csd-statement__text--compact {
  font-weight: 500;
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  max-width: 42em;
}

.csd-statement__note {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0;
}

.nav__cta--scope-note {
  padding: 6px 11px;
  font-size: 11px;
}

/* ── BLOCK: Pull Quote ───────────────────────────────────── */
.csd-quote {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.csd-quote__kicker {
  display: block;
}

.csd-quote__block {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 800px;
}

.csd-quote__mark {
  color: var(--amber);
  opacity: 0.7;
  flex-shrink: 0;
}

.csd-quote__text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0;
}

.csd-quote__attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.csd-quote__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.csd-quote__org {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── BLOCK: Before / After ───────────────────────────────── */
.csd-beforeafter {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 64px;
}

.csd-beforeafter__intro {
  display: grid;
  gap: 20px;
}

.csd-beforeafter__intro .csd-statement__text {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400;
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.csd-beforeafter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Image panel */
.csd-beforeafter__panel {
  display: grid;
  gap: 24px;
  margin: 0;
}

.csd-beforeafter__img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 10;
}

/* Real image: swap the placeholder div for an <img> with this class */
.csd-beforeafter__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BA Visual direction: equal frames for both mocks, sharper before vs after read */
/* BA × FO Part 2: copy column + Cloudinary prototype video */
.ba-case-p2 .csd-editorial__split {
  min-width: 0;
}

.ba-case-p2__video-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

/* Desktop: row height follows the taller column; video frame grows so its column matches copy height */
@media (min-width: 961px) {
  .ba-case-p2 .csd-editorial__split {
    align-items: stretch;
  }

  .ba-case-p2__video-stack {
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  .ba-case-p2 .csd-video__frame {
    aspect-ratio: unset;
    height: 100%;
    min-height: 0;
  }
}

.ba-booking-beforeafter .csd-beforeafter__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ba-booking-beforeafter .csd-beforeafter__img-wrap {
  aspect-ratio: 16 / 10;
  min-height: 0;
  min-width: 0;
}

.ba-booking-beforeafter .csd-beforeafter__img-wrap img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  display: block;
}

/* Same 16×10 frame as “After”; before art is wider — cover + pin fills the box (phones stay one row height). */
.ba-booking-beforeafter .csd-beforeafter__panel--ba-before .csd-beforeafter__img-wrap {
  border-width: 2px;
  border-color: rgba(239, 228, 203, 0.35);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(239, 228, 203, 0.12), transparent 55%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ba-booking-beforeafter .csd-beforeafter__panel--ba-before .csd-beforeafter__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ba-booking-beforeafter .csd-beforeafter__panel--ba-after .csd-beforeafter__img-wrap {
  border-width: 2px;
  border-color: rgba(94, 140, 200, 0.45);
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(40, 70, 120, 0.28), transparent 50%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.55), rgba(8, 14, 24, 0.85));
  box-shadow:
    inset 0 1px 0 rgba(120, 170, 230, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.ba-booking-beforeafter .csd-beforeafter__panel--ba-before .csd-beforeafter__badge {
  background: rgba(239, 228, 203, 0.18);
  border-color: rgba(239, 228, 203, 0.4);
  color: var(--cream);
}

.ba-booking-beforeafter .csd-beforeafter__panel--ba-after .csd-beforeafter__badge.csd-beforeafter__badge--after {
  background: rgba(40, 80, 140, 0.55);
  border-color: rgba(130, 175, 230, 0.55);
  color: #c8dbf5;
}

/* HCUK design-system row: comfortable reading width in text column */
.hcuk-design-system-gallery .csd-context__text .csd-context__body {
  max-width: 56ch;
}

.hcuk-delivered-video-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hcuk-design-system-gallery__rail {
  min-width: 0;
}

.hcuk-design-system-gallery .csd-context__image figure {
  margin: 0;
}

/* HCUK design system: swipe / scroll between tokens and components slides (GWI framing rail pattern) */
.hcuk-ds-swipe.csd-context__image {
  position: static;
  min-width: 0;
}

.hcuk-ds-swipe .csd-iterate__hint {
  margin-bottom: 14px;
}

.hcuk-ds-swipe .csd-iterate__scroll-wrap {
  min-width: 0;
  width: 100%;
}

.hcuk-ds-swipe .csd-iterate__rail {
  width: 100%;
  gap: clamp(18px, 2.5vw, 28px);
}

.hcuk-ds-swipe .csd-iterate__card {
  flex: 0 0 100%;
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hcuk-ds-swipe .csd-iterate__thumb {
  aspect-ratio: 16 / 10;
}

.hcuk-ds-swipe .csd-iterate__thumb--photo {
  padding: 0;
  overflow: hidden;
}

/* Same thumb frame for tokens + components: 2-up grid, padding, and contained images */
.hcuk-ds-swipe__thumb--tokens .csd-ds-split__tokens-mosaic,
.hcuk-ds-swipe__thumb--components .csd-ds-split__components-inner--pair {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: clamp(6px, 1.8vw, 14px);
  align-items: center;
  justify-items: center;
  align-content: center;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
}

.hcuk-ds-swipe__thumb--tokens .csd-ds-split__tokens-mosaic img,
.hcuk-ds-swipe__thumb--components .csd-ds-split__components-inner--pair img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
}

.hcuk-ds-swipe .csd-iterate__card-body {
  padding: 22px 22px 26px;
  /* Equal text band so both cards share the same overall height */
  min-height: clamp(7.5rem, 22vw, 9.5rem);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hcuk-ds-swipe .csd-iterate__card-desc {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
}

.hcuk-ds-swipe .csd-iterate__card-title {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 19px);
}

.hcuk-ds-swipe .csd-iterate__scroll-wrap::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100px, 18vw);
  background: linear-gradient(
    to left,
    rgba(14, 11, 8, 0.5) 0%,
    rgba(14, 11, 8, 0.16) 50%,
    transparent 100%
  );
}

.hcuk-design-system-gallery .hcuk-ds-swipe img {
  border: none;
  border-radius: 0;
}

@media (max-width: 560px) {
  .hcuk-ds-swipe__thumb--tokens .csd-ds-split__tokens-mosaic,
  .hcuk-ds-swipe__thumb--components .csd-ds-split__components-inner--pair {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hcuk-ds-swipe .csd-iterate__card {
    scroll-snap-stop: normal;
  }
}

/* HCUK iteration rail: UI screenshots fill the thumb (no padded well / no img shadow) */
.hcuk-iterate-visuals .csd-iterate__thumb--photo {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}

.hcuk-iterate-visuals .csd-iterate__thumb--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* HCUK: slightly wider iteration cards (both testing + refined rails) */
.hcuk-iterate-visuals .csd-iterate__card {
  flex: 0 0 min(318px, min(86vw, 376px));
}

.hcuk-iterate-expand__intro-lead {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hcuk-iterate-expand__thumb-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}

.hcuk-iterate-expand__thumb-pending-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
  text-align: center;
  padding: 0 16px;
  line-height: 1.45;
}

/* HCUK launch block: prose left, success metric cards right */
.hcuk-launch-outcomes .csd-context__text {
  max-width: 56ch;
}

.hcuk-launch-outcomes .csd-context__body .csd-impact__list {
  margin-top: 4px;
}

.hcuk-success-metrics {
  gap: clamp(14px, 2.5vw, 22px);
  min-width: 0;
}

.hcuk-success-metrics__kicker {
  margin: 0;
}

.hcuk-success-metrics__stack {
  display: grid;
  gap: clamp(11px, 1.8vw, 14px);
}

.hcuk-metric-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2vw, 18px);
  align-items: start;
  padding: clamp(16px, 2.4vw, 22px);
  padding-left: clamp(14px, 2vw, 18px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      148deg,
      rgba(214, 123, 61, 0.11) 0%,
      rgba(27, 20, 14, 0.55) 42%,
      var(--surface) 100%
    );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.25, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.25s ease;
}

.hcuk-metric-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    120% 80% at 100% 0%,
    rgba(233, 160, 91, 0.09),
    transparent 55%
  );
}

.hcuk-metric-card--accent {
  border-color: rgba(214, 123, 61, 0.35);
  background:
    linear-gradient(
      152deg,
      rgba(214, 123, 61, 0.18) 0%,
      rgba(22, 20, 18, 0.65) 50%,
      var(--surface) 100%
    );
}

.hcuk-metric-card__glyph {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--amber-2);
  background: rgba(214, 123, 61, 0.12);
  border: 1px solid rgba(214, 123, 61, 0.22);
}

.hcuk-metric-card--accent .hcuk-metric-card__glyph {
  color: var(--cream);
  background: rgba(214, 123, 61, 0.22);
  border-color: rgba(233, 160, 91, 0.35);
}

.hcuk-metric-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hcuk-metric-card__title {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.hcuk-metric-card__desc {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hcuk-metric-card__highlight {
  font-weight: 600;
  color: var(--amber-2);
}

@media (hover: hover) {
  .hcuk-metric-card:hover {
    border-color: rgba(214, 123, 61, 0.42);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.07) inset,
      0 18px 48px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(214, 123, 61, 0.12);
  }

  .hcuk-metric-card:nth-child(odd):hover {
    transform: translateY(-5px) rotate(-0.4deg);
  }

  .hcuk-metric-card:nth-child(even):hover {
    transform: translateY(-5px) rotate(0.4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hcuk-metric-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .hcuk-metric-card:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .hcuk-success-metrics.csd-context__image {
    position: static;
    max-width: none;
  }
}

/* Placeholder (remove once real screenshots are in) */
.csd-beforeafter__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.csd-beforeafter__placeholder--stripe {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.042),
      rgba(255, 255, 255, 0.042) 7px,
      rgba(255, 255, 255, 0.015) 7px,
      rgba(255, 255, 255, 0.015) 14px
    ),
    var(--surface);
}

.csd-beforeafter__placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.35;
}

.csd-beforeafter__placeholder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
}

/* Before / After badge */
.csd-beforeafter__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  z-index: 2;
}

.csd-beforeafter__badge--after {
  background: rgba(214, 123, 61, 0.12);
  border-color: rgba(214, 123, 61, 0.35);
  color: var(--amber-2);
}

/* Caption below image */
.csd-beforeafter__caption {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.csd-beforeafter__caption-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.csd-beforeafter__caption p {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.csd-beforeafter__caption-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.csd-beforeafter__caption-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.csd-beforeafter__caption-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: calc(0.5lh - 2.5px);
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.85;
}

.csd-beforeafter__caption-list li + li {
  margin-top: 0.35em;
}

/* PINS design iterate: document storage screenshots stay fully visible */
.pins-design-iterate .csd-beforeafter__img-wrap:has(> img) {
  aspect-ratio: unset;
  min-height: 220px;
}

@media (min-width: 720px) {
  .pins-design-iterate .csd-beforeafter__img-wrap:has(> img) {
    min-height: 260px;
    max-height: min(52vw, 560px);
  }
}

.pins-design-iterate .csd-beforeafter__img-wrap:has(> img) img {
  height: auto;
  max-height: min(52vw, 560px);
  object-fit: contain;
  object-position: center top;
  margin: 0 auto;
}

/* PINS: before/after pills readable on light UI screenshots */
.pins-design-iterate .csd-beforeafter__badge {
  background: rgba(14, 11, 8, 0.94);
  color: var(--cream);
  border: 1px solid rgba(239, 228, 203, 0.45);
  font-weight: 600;
  padding: 5px 12px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.pins-design-iterate .csd-beforeafter__badge--after {
  background: linear-gradient(180deg, #e9954f 0%, #c96a32 100%);
  color: #0e0b08;
  border-color: rgba(14, 11, 8, 0.35);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(14, 11, 8, 0.2);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .csd-beforeafter__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* BA Visual direction: swipe between full-width Before / After mocks */
  .ba-booking-beforeafter .csd-beforeafter__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    grid-template-columns: unset;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    padding-bottom: 10px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  .ba-booking-beforeafter .csd-beforeafter__grid::-webkit-scrollbar {
    height: 6px;
  }

  .ba-booking-beforeafter .csd-beforeafter__grid::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 99px;
  }

  .ba-booking-beforeafter .csd-beforeafter__panel {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

/* ── BLOCK: Key Findings ─────────────────────────────────── */
.csd-findings {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 64px;
}

.csd-findings__header {
  display: grid;
  gap: 20px;
  max-width: 56ch;
}

.csd-findings__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}

.csd-findings__intro {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* Card grid */
.csd-findings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Four discovery/process cards on one row (e.g. Hyundai Finance) */
.csd-findings--four-across .csd-findings__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.csd-findings--four-across .csd-finding:last-child {
  grid-column: auto;
  max-width: none;
}

@media (max-width: 1100px) {
  .csd-findings--four-across .csd-findings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .csd-findings--four-across .csd-findings__grid {
    grid-template-columns: 1fr;
  }
}

/* Individual card */
.csd-finding {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

/* Amber top stripe: grows in on hover */
.csd-finding::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.csd-finding:hover::before {
  opacity: 1;
}

.csd-finding:hover {
  border-color: rgba(214, 123, 61, 0.3);
  transform: translateY(-3px);
}

/* Large italic number */
.csd-finding__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(52px, 5vw, 72px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--amber);
  opacity: 0.35;
  display: block;
  transition: opacity 0.3s var(--ease);
  user-select: none;
}

.csd-finding:hover .csd-finding__num {
  opacity: 0.65;
}

/* Card text content */
.csd-finding__content {
  display: grid;
  gap: 12px;
}

.csd-finding__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.csd-finding__desc {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* Findings: business objectives (icon chips) */
.csd-findings--objectives .csd-finding--objective {
  gap: 20px;
}

.csd-findings--objectives .csd-finding--objective .csd-finding__num {
  display: none;
}

.csd-finding__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 123, 61, 0.14);
  color: var(--amber);
}

.csd-finding__icon svg {
  display: block;
}

@media (max-width: 960px) {
  .csd-findings--objectives .csd-findings__grid {
    grid-template-columns: 1fr;
  }

  .csd-findings--objectives .csd-finding:last-child {
    grid-column: span 1;
    max-width: none;
  }
}

/* Hyundai Finance: dealer pain thread (discovery): timeline, not objective cards */
.csd-dealer-pain {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(40px, 5vw, 56px);
}

.csd-dealer-pain__head {
  display: grid;
  gap: 18px;
  max-width: 52ch;
}

.csd-dealer-pain__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}

.csd-dealer-pain__lede {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.csd-dealer-pain__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0;
}

.csd-dealer-pain__list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(214, 123, 61, 0.5) 0%,
    rgba(214, 123, 61, 0.15) 50%,
    rgba(42, 32, 24, 0.85) 100%
  );
}

.csd-dealer-pain__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: clamp(20px, 4vw, 36px);
  padding: clamp(24px, 3.5vw, 32px) 0;
  border-bottom: 1px dashed rgba(138, 122, 102, 0.35);
  align-items: start;
}

.csd-dealer-pain__item:first-child {
  padding-top: 0;
}

.csd-dealer-pain__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.csd-dealer-pain__marker {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  margin-top: 0.35em;
  background: var(--bg);
  border: 2px solid var(--amber);
  box-shadow: 0 0 0 4px var(--bg);
  flex-shrink: 0;
}

.csd-dealer-pain__body {
  display: grid;
  gap: 10px;
}

.csd-dealer-pain__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-2);
}

.csd-dealer-pain__text {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 62ch;
}

@media (max-width: 520px) {
  .csd-dealer-pain__list::before {
    left: 8px;
  }

  .csd-dealer-pain__item {
    grid-template-columns: 18px 1fr;
    gap: 16px;
  }

  .csd-dealer-pain__marker {
    width: 17px;
    height: 17px;
    margin-top: 0.42em;
    box-shadow: 0 0 0 3px var(--bg);
  }
}

/* ── Responsive: Key Findings ────────────────────────────── */
@media (max-width: 960px) {
  .csd-findings__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .csd-finding:last-child {
    grid-column: span 2;
    max-width: 480px;
  }

  .csd-findings--four-across .csd-finding:last-child {
    grid-column: span 1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .csd-findings__grid {
    grid-template-columns: 1fr;
  }

  .csd-finding:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .csd-finding {
    padding: 28px 24px 32px;
  }
}

/* BA smart booking (british-airways.html): four journey cards as 2×2, not 3+1 */
.ba-booking-findings .csd-findings__grid {
  grid-template-columns: repeat(2, 1fr);
}

.ba-booking-findings .csd-finding:last-child {
  grid-column: span 1;
  max-width: none;
}

@media (max-width: 600px) {
  .ba-booking-findings .csd-findings__grid {
    grid-template-columns: 1fr;
  }
}

/* Valtech hackathon: four-step RAG pipeline as 2×2 */
.valtech-rag-findings .csd-findings__grid {
  grid-template-columns: repeat(2, 1fr);
}

.valtech-rag-findings .csd-finding:last-child {
  grid-column: span 1;
  max-width: none;
}

@media (max-width: 960px) {
  .valtech-rag-findings .csd-findings__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valtech-rag-findings .csd-finding:last-child {
    grid-column: span 1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .valtech-rag-findings .csd-findings__grid {
    grid-template-columns: 1fr;
  }
}

/* BA flow diagram (british-airways.html): linear booking journey */
.ba-flow-diagram {
  margin: 0 0 48px;
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(27, 22, 18, 0.55), rgba(18, 15, 12, 0.35));
}

.ba-flow-diagram__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.ba-flow-diagram__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.ba-flow-diagram__segment {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  min-width: 0;
}

.ba-flow-diagram__segment:last-child .ba-flow-diagram__arrow {
  display: none;
}

.ba-flow-diagram__step {
  display: flex;
  gap: 14px;
  padding: 18px 16px 20px;
  min-width: min(200px, 42vw);
  max-width: 220px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(245, 239, 227, 0.04);
}

.ba-flow-diagram__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--amber-2);
  border: 1px solid rgba(214, 123, 61, 0.35);
  border-radius: 8px;
  background: rgba(214, 123, 61, 0.08);
}

.ba-flow-diagram__body {
  min-width: 0;
}

.ba-flow-diagram__title {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.25;
}

.ba-flow-diagram__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.ba-flow-diagram__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.4em;
}

.ba-flow-diagram__list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: calc(0.5lh - 2.5px);
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.9;
}

.ba-flow-diagram__list li:last-child {
  margin-bottom: 0;
}

.ba-flow-diagram__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: rgba(214, 123, 61, 0.55);
  line-height: 1;
  user-select: none;
}

@media (max-width: 900px) {
  .ba-flow-diagram__track {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    gap: 0;
  }

  .ba-flow-diagram__segment {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .ba-flow-diagram__segment .ba-flow-diagram__arrow {
    display: flex;
    width: 100%;
    height: 28px;
    transform: rotate(90deg);
  }

  .ba-flow-diagram__segment:last-child .ba-flow-diagram__arrow {
    display: none;
  }

  .ba-flow-diagram__step {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* Planning Inspectorate: publish flow before / after (no bitmap) */
.pins-flow {
  margin: 0;
  min-width: 0;
  width: 100%;
  padding: 24px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(27, 22, 18, 0.72), rgba(14, 11, 8, 0.55));
}

.pins-flow__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pins-flow__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pins-flow__toolbar-notes {
  flex: 1 1 220px;
  min-width: 0;
}

.pins-flow__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(12px, 1.6vw, 13px);
  line-height: 1.45;
  color: var(--muted);
}

.pins-flow__note strong {
  font-weight: 600;
  color: var(--ink-soft);
}

.pins-flow__note-badge {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink-soft);
  background: transparent;
  box-shadow: 0 0 0 1px var(--line);
}

.pins-flow__note-badge--done {
  border-color: var(--amber);
  background: var(--bg);
  box-shadow: 0 0 16px rgba(214, 123, 61, 0.45);
}

.pins-flow__note--after {
  display: none;
}

.pins-flow__checkbox:checked ~ .pins-flow__toolbar .pins-flow__note--before {
  display: none;
}

.pins-flow__checkbox:checked ~ .pins-flow__toolbar .pins-flow__note--after {
  display: flex;
}

.pins-flow__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  user-select: none;
}

.pins-flow__toggle-ui {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pins-flow__toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-soft);
  transition: transform 0.25s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pins-flow__checkbox:checked ~ .pins-flow__toolbar .pins-flow__toggle-ui {
  border-color: rgba(214, 123, 61, 0.45);
  box-shadow: 0 0 20px rgba(214, 123, 61, 0.2);
}

.pins-flow__checkbox:checked ~ .pins-flow__toolbar .pins-flow__toggle-knob {
  transform: translateX(18px);
  background: var(--amber);
  box-shadow: 0 0 12px rgba(214, 123, 61, 0.55);
}

.pins-flow__toggle:focus-within .pins-flow__toggle-ui {
  outline: 2px solid rgba(214, 123, 61, 0.55);
  outline-offset: 3px;
}

.pins-flow__toggle-text--on {
  display: none;
}

.pins-flow__checkbox:checked ~ .pins-flow__toolbar .pins-flow__toggle-text--off {
  display: none;
}

.pins-flow__checkbox:checked ~ .pins-flow__toolbar .pins-flow__toggle-text--on {
  display: inline;
}

.pins-flow__viewport {
  position: relative;
  min-width: 0;
}

.pins-flow__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 2px 14px;
  margin: 0 -4px;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.pins-flow__track::-webkit-scrollbar {
  height: 6px;
}

.pins-flow__track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.pins-flow__track--after {
  display: none;
}

.pins-flow__checkbox:checked ~ .pins-flow__viewport .pins-flow__track--before {
  display: none;
}

.pins-flow__checkbox:checked ~ .pins-flow__viewport .pins-flow__track--after {
  display: flex;
}

.pins-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  font-size: 15px;
  color: rgba(214, 123, 61, 0.5);
  user-select: none;
  line-height: 1;
}

.pins-flow-col {
  flex: 1 1 0;
  min-width: min(200px, 78vw);
  max-width: 260px;
  padding: 16px 14px 18px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(245, 239, 227, 0.035);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pins-flow-col--improved {
  border-color: rgba(214, 123, 61, 0.22);
}

.pins-flow-col__header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 190, 171, 0.45);
  background: rgba(14, 11, 8, 0.35);
  width: fit-content;
  max-width: 100%;
  line-height: 1.35;
}

.pins-flow-col__list {
  margin: 0;
  padding: 0 0 0 1.15em;
  list-style: decimal;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.pins-flow-col__item {
  margin-bottom: 0.35em;
  padding-left: 0.15em;
}

.pins-flow-col__item:last-child {
  margin-bottom: 0;
}

.pins-flow-col__item--focus {
  color: var(--ink);
}

.pins-flow-col__item--focus::marker {
  color: var(--amber);
}

.pins-flow-col__pain {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(245, 239, 227, 0.92);
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(196, 92, 74, 0.45);
  background: rgba(196, 92, 74, 0.12);
}

.pins-flow-col__cta {
  margin: 0;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--bg);
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  border: 1px solid rgba(214, 123, 61, 0.85);
  box-shadow: 0 0 16px rgba(214, 123, 61, 0.25);
  line-height: 1.35;
}

.pins-flow__caption {
  margin: 18px 0 0;
  max-width: none;
  padding: 0;
}

.pins-flow__caption strong {
  font-weight: 600;
  color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  .pins-flow__toggle-knob,
  .pins-flow__toggle-ui {
    transition: none;
  }
}

@media (max-width: 720px) {
  .pins-flow {
    padding-inline: 16px;
  }

  .pins-flow__arrow {
    width: 18px;
    font-size: 13px;
  }
}

/* ── BLOCK: Full image: scroll-linked flip ──────────────── */
.csd-fullimg {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
}

/* Perspective wrapper: keeps the 3-D context */
.csd-fullimg__scene {
  perspective: 1400px;
  perspective-origin: 50% 60%;
}

/* The element JS drives via rotateX */
.csd-fullimg__inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  transform-origin: bottom center;
  will-change: transform;
  /* starting tilt set inline by JS; fallback for no-JS */
  transform: perspective(1400px) rotateX(14deg);
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  .csd-fullimg__inner {
    transform: none !important;
  }
}

/* Placeholder */
.csd-fullimg__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
}

.csd-fullimg__placeholder svg {
  width: 64px;
  height: 48px;
  opacity: 0.35;
}

.csd-fullimg__placeholder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
}

/* Real image */
.csd-fullimg__inner img,
.csd-fullimg__inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption */
.csd-fullimg__caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── BLOCK: Quotes ───────────────────────────────────────── */
.csd-quotes {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 48px;
}

.csd-quotes__kicker {
  display: block;
}

.csd-quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── BLOCK: Single pull-quote ────────────────────────────── */
.csd-pullquote {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.csd-pullquote__kicker {
  text-align: center;
}

.csd-pullquote__inner {
  margin: 0;
  max-width: min(82ch, 100%);
  text-align: center;
  display: grid;
  gap: 24px;
}

.csd-pullquote--wide .csd-pullquote__inner {
  max-width: min(92ch, 100%);
}

.csd-pullquote__inner::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.72;
  color: var(--amber);
  opacity: 0.5;
  display: block;
  margin-bottom: -0.08em;
}

.csd-pullquote__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.5vw, 48px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  margin-top: -12px;
  padding: 0;
}

.csd-pullquote__attr {
  display: grid;
  gap: 4px;
}

.csd-pullquote__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}

.csd-pullquote__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

/* Pull-quote variant: centered client testimonial (sans, bold title, muted org) */
.csd-pullquote--client-quote .csd-pullquote__inner::before {
  font-family: var(--sans);
  font-size: clamp(52px, 10vw, 80px);
  line-height: 0.85;
  color: var(--ink);
  opacity: 1;
}

.csd-pullquote--client-quote .csd-pullquote__text {
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  font-weight: 400;
}

.csd-pullquote--client-quote .csd-pullquote__name {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.csd-pullquote--client-quote .csd-pullquote__role {
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

/* ── Multiple quotes: card style ── */
.csd-quote {
  margin: 0;
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}

.csd-quote:hover {
  transform: translateY(-10px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(214, 123, 61, 0.4);
}

/* Opening quotation mark: cards */
.csd-quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  color: var(--amber);
  opacity: 0.28;
  position: absolute;
  top: 14px;
  left: 24px;
  pointer-events: none;
}

.csd-quote__text {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 36px;
  flex: 1;
}

.csd-quote__attr {
  display: grid;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}


.csd-quote__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}

.csd-quote__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

/* Responsive */
@media (max-width: 860px) {
  .csd-quotes__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Outside of design ── */
.outside-design {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 100px) var(--pad);
}

.outside-design__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.outside-design__head {
  padding-top: 6px;
}

.outside-design__body {
  display: grid;
  gap: 32px;
}

.outside-design__desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* Liner-notes style shout-outs for favourite artists */
.outside-design__artist {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  line-height: inherit;
  letter-spacing: 0.02em;
  color: var(--cream);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.1em;
  text-shadow: 0 0 32px rgba(245, 239, 227, 0.14);
}

/* Cool marker bar: sparse, atmospheric */
.outside-design__artist--radiohead,
.outside-design__artist--deftones {
  letter-spacing: 0.06em;
  background: linear-gradient(
    transparent 56%,
    rgba(130, 158, 188, 0.45) 56%,
    rgba(130, 158, 188, 0.45) 86%,
    transparent 86%
  );
}

/* Warm sunset marker: intimate singer-songwriter tone */
.outside-design__artist--svetten {
  font-style: italic;
  letter-spacing: 0.05em;
  background: linear-gradient(
    transparent 56%,
    rgba(233, 176, 120, 0.48) 56%,
    rgba(233, 176, 120, 0.48) 86%,
    transparent 86%
  );
}

.outside-design__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.outside-design__photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface);
}

/* Polaroid treatment, matches hero .about__photo */
.outside-design__photo-wrap--polaroid {
  overflow: visible;
  aspect-ratio: unset;
  border-radius: 0;
  background: transparent;
  position: relative;
  width: 100%;
  max-width: min(100%, 360px);
  margin: 0 auto;
}

.outside-design__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s var(--ease);
}

.outside-design__photo--polaroid {
  height: auto;
  aspect-ratio: 4 / 5;
  object-position: center center;
  display: block;
  border-radius: 3px;
  border: 14px solid var(--cream);
  border-bottom-width: 52px;
  transform: rotate(-2deg);
  box-shadow:
    0 32px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.outside-design__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #3a2a18;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
}

.outside-design__photo-wrap:not(.outside-design__photo-wrap--polaroid):hover .outside-design__photo {
  transform: scale(1.03);
}

.outside-design__photo-wrap--polaroid:hover .outside-design__photo--polaroid {
  transform: rotate(0deg) scale(1.01);
}

@media (max-width: 820px) {
  .outside-design__photo--polaroid {
    transform: rotate(-1deg);
  }
}

.outside-design__release {
  display: grid;
  gap: 16px;
  align-content: start;
}

.outside-design__album-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface);
}

.outside-design__album-link-cover {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  outline-offset: 3px;
}

.outside-design__album-link-cover:focus-visible {
  outline: 2px solid var(--amber-2);
}

.outside-design__album {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.outside-design__album-wrap:hover .outside-design__album {
  transform: scale(1.03);
}

.outside-design__album-info {
  display: grid;
  gap: 4px;
}

.outside-design__album-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.outside-design__album-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin: 0;
}

@media (max-width: 640px) {
  .outside-design__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .outside-design__media {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* ── BLOCK: Video embed ──────────────────────────────────── */
.csd-video {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
}

.csd-video__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 16:9 responsive iframe container */
.csd-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.csd-video__frame iframe,
.csd-video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.csd-video__frame video {
  object-fit: contain;
  background: #0d0d0f;
}

.csd-video__caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.csd-video__caption code {
  font-family: var(--mono);
  font-size: 1em;
  text-transform: none;
  letter-spacing: 0.04em;
}

/* GWI case study: scope panels, nested rails, narrative + build rail */
.csd-gwi-impact-narrative__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  grid-template-rows: auto auto auto;
  column-gap: 72px;
  row-gap: 20px;
  align-items: start;
}

.csd-gwi-impact-narrative__kicker {
  grid-column: 1;
  grid-row: 1;
}

.csd-gwi-impact-narrative__title {
  grid-column: 1;
  grid-row: 2;
}

.csd-gwi-impact-narrative__cards {
  grid-column: 2;
  grid-row: 2 / 4;
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.csd-gwi-impact-narrative__lede {
  grid-column: 1;
  grid-row: 3;
  max-width: 40ch;
  margin-top: -14px;
  padding-top: 0;
}

.csd-gwi-impact-narrative__lede p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.csd-gwi-impact-narrative__cards > li {
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  min-height: 5.5em;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
}

.csd-gwi-impact-narrative__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csd-gwi-impact-narrative__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.csd-gwi-impact-narrative__card-text {
  flex: 1;
  min-width: 0;
}

/* Icon tints: map to copy: people & access, security risk, uneven experience, product–market gap */
.csd-gwi-impact-narrative__card--effort .csd-gwi-impact-narrative__icon {
  background: rgba(214, 123, 61, 0.22);
  color: var(--amber-2);
  box-shadow: inset 0 0 0 1px rgba(214, 123, 61, 0.35);
}

.csd-gwi-impact-narrative__card--risk .csd-gwi-impact-narrative__icon {
  background: rgba(212, 90, 90, 0.2);
  color: #E89191;
  box-shadow: inset 0 0 0 1px rgba(212, 90, 90, 0.35);
}

.csd-gwi-impact-narrative__card--experience .csd-gwi-impact-narrative__icon {
  background: rgba(96, 168, 184, 0.18);
  color: #7EC4D4;
  box-shadow: inset 0 0 0 1px rgba(96, 168, 184, 0.32);
}

.csd-gwi-impact-narrative__card--gap .csd-gwi-impact-narrative__icon {
  background: rgba(155, 135, 201, 0.2);
  color: #B9A8E0;
  box-shadow: inset 0 0 0 1px rgba(155, 135, 201, 0.35);
}

.csd-gwi-impact-narrative__card--effort {
  background: linear-gradient(
    155deg,
    rgba(214, 123, 61, 0.1) 0%,
    var(--surface) 48%
  );
}

.csd-gwi-impact-narrative__card--risk {
  background: linear-gradient(
    155deg,
    rgba(212, 90, 90, 0.08) 0%,
    var(--surface) 48%
  );
}

.csd-gwi-impact-narrative__card--experience {
  background: linear-gradient(
    155deg,
    rgba(96, 168, 184, 0.09) 0%,
    var(--surface) 48%
  );
}

.csd-gwi-impact-narrative__card--gap {
  background: linear-gradient(
    155deg,
    rgba(155, 135, 201, 0.09) 0%,
    var(--surface) 48%
  );
}

@media (max-width: 960px) {
  .csd-gwi-impact-narrative__layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    column-gap: 0;
    row-gap: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .csd-gwi-impact-narrative__kicker,
  .csd-gwi-impact-narrative__title,
  .csd-gwi-impact-narrative__lede,
  .csd-gwi-impact-narrative__cards {
    grid-column: auto;
    grid-row: auto;
  }

  .csd-gwi-impact-narrative__lede {
    max-width: none;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .csd-gwi-impact-narrative__cards {
    grid-template-columns: 1fr;
  }
}

/* GWI: impact header tighter to body (list / narrative intro) */
.csd-case--gwi .csd-impact {
  gap: 22px;
}

.csd-case--gwi .csd-impact__list {
  max-width: 68ch;
}

/* “Using AI to move faster”: interactive cards instead of bullets */
.csd-case--gwi .csd-context__body .csd-context__list--cards {
  list-style: none;
  padding: 0;
  margin: 0.65em 0 1em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: clamp(10px, 2vw, 14px);
}

/* GWI Acceleration: keep kicker, title, copy, and cards on one measure; left-aligned */
.csd-case--gwi .gwi-acceleration .csd-context__text {
  max-width: min(72ch, 100%);
}

.csd-case--gwi .gwi-acceleration .csd-context__body .csd-context__list--cards {
  width: 100%;
  justify-content: start;
  justify-items: stretch;
}

.csd-case--gwi .csd-context__body .csd-context__list--cards li {
  display: grid;
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(214, 123, 61, 0.1), rgba(22, 20, 18, 0.55));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1),
    box-shadow 0.32s ease;
  text-wrap: balance;
}

.csd-case--gwi .gwi-acceleration .csd-context__body .csd-context__list--cards li {
  text-align: left;
  text-wrap: pretty;
  justify-self: stretch;
}

.csd-case--gwi .csd-context__body .csd-context__list--cards li strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
  line-height: 1.25;
}

.csd-case--gwi .csd-context__body .csd-context__list--cards li .csd-gwi-ai-card__desc {
  display: block;
  font-family: var(--sans);
  font-size: clamp(12px, 0.98vw, 14px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

.csd-case--gwi .csd-context__body .csd-context__list--cards li::before {
  display: none;
  content: none;
}

.csd-case--gwi .csd-context__body .csd-context__list--cards li:hover {
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(214, 123, 61, 0.28);
}

.csd-case--gwi .csd-context__body .csd-context__list--cards li:nth-child(odd):hover {
  transform: translateY(-8px) rotate(-1deg);
}

.csd-case--gwi .csd-context__body .csd-context__list--cards li:nth-child(even):hover {
  transform: translateY(-8px) rotate(1deg);
}

@media (prefers-reduced-motion: reduce) {
  .csd-case--gwi .csd-context__body .csd-context__list--cards li {
    transition: box-shadow 0.2s ease;
  }

  .csd-case--gwi .csd-context__body .csd-context__list--cards li:nth-child(n):hover {
    transform: none;
  }
}

.csd-case--gwi .csd-editorial__list .csd-editorial__takeaway {
  color: var(--amber);
}

.csd-case--gwi .csd-context__body .csd-context__list .csd-editorial__takeaway {
  color: var(--amber);
}

.csd-gwi-scope-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 28px);
  margin-top: 10px;
}

.csd-gwi-scope-panels__panel {
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(214, 123, 61, 0.07), transparent);
  display: grid;
  gap: 14px;
  align-content: start;
}

.csd-gwi-scope-panels__panel--out {
  background: linear-gradient(165deg, rgba(138, 122, 102, 0.08), transparent);
}

.csd-gwi-scope-panels__title {
  font-family: var(--sans);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
}

.gwi-iterate__scroll-wrap--nested {
  margin-inline: 0;
  padding-inline: 0;
}

.gwi-iterate__scroll-wrap--nested .csd-iterate__rail {
  scroll-padding-inline: 0;
}

/* GWI Foundation: crop asset bottom (Outstanding Questions) so the card grid fits the column */
.gwi-foundation-object-model {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 2604 / 2050;
}

.gwi-foundation-object-model img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: none;
  border-radius: 0;
}

/* GWI: stacked before/after rows (object model + admin vs iteration) */
.gwi-design-iterations__pairs {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
}

.gwi-design-iterations__lead {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}

/* GWI design iterations: uniform image cards; screenshots fill frame (crop) */
.gwi-design-iterations .csd-beforeafter__img-wrap {
  aspect-ratio: 16 / 10;
  width: 100%;
  min-height: 0;
}

.gwi-design-iterations .csd-beforeafter__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Badges sit on busy screenshots: solid fills + shadow for legibility */
.gwi-design-iterations .csd-beforeafter__badge {
  background: rgba(14, 11, 8, 0.94);
  color: var(--cream);
  border: 1px solid rgba(239, 228, 203, 0.45);
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.gwi-design-iterations .csd-beforeafter__badge--after {
  background: #c96a32;
  background: linear-gradient(180deg, #e9954f 0%, #c96a32 100%);
  color: #0e0b08;
  border-color: rgba(14, 11, 8, 0.35);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(14, 11, 8, 0.2);
}

/* GWI Pivot: scroll-triggered “dropped in” block (whole section lands as you scroll) */
.gwi-pivot-drop {
  overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .gwi-pivot-drop--arm:not(.gwi-pivot-drop--landed) .gwi-pivot-drop__surface {
    opacity: 0;
    transform: translate3d(0, -52px, 0) scale(0.96) rotate(-0.9deg);
    transform-origin: 50% 0;
    filter: blur(1px);
    transition:
      opacity 0.45s ease,
      transform 0s,
      filter 0.45s ease;
    will-change: transform, opacity, filter;
  }

  .gwi-pivot-drop--arm.gwi-pivot-drop--landed .gwi-pivot-drop__surface {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: blur(0);
    transition:
      opacity 0.55s cubic-bezier(0.2, 0.85, 0.28, 1),
      transform 0.82s cubic-bezier(0.2, 1.15, 0.42, 1),
      filter 0.45s ease;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gwi-pivot-drop .gwi-pivot-drop__surface {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* GWI Direction: wider media column, larger embed, tidier capability list */
.csd-context.gwi-direction {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.28fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}

.gwi-direction .gwi-direction__media {
  max-width: none;
  width: 100%;
}

.gwi-direction .gwi-direction__media .csd-video__frame {
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 38vw, 560px);
  border-radius: clamp(14px, 2vw, 22px);
}

.gwi-direction .gwi-direction__list {
  gap: 0;
  margin-top: 4px;
}

/* Block + absolute marker: flex would split <strong> and adjacent text into separate flex items. */
.csd-context.gwi-direction .csd-context__body .gwi-direction__list li {
  display: block;
  position: relative;
  margin-bottom: 0;
  padding: clamp(10px, 1.2vw, 14px) 0;
  padding-left: calc(12px + 10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

.csd-context.gwi-direction .csd-context__body .gwi-direction__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.csd-context.gwi-direction .csd-context__body .gwi-direction__list li::before {
  position: absolute;
  left: 0;
  top: calc(clamp(10px, 1.2vw, 14px) + 0.5lh - 3px);
  flex-shrink: unset;
  margin-top: 0;
  margin-right: 0;
}

@media (max-width: 960px) {
  .csd-context.gwi-direction {
    grid-template-columns: 1fr;
  }

  .gwi-direction .gwi-direction__media .csd-video__frame {
    min-height: clamp(200px, 52vw, 420px);
  }
}

/* GWI: admin role validation (individual + bulk) */
.gwi-admin-rules {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.gwi-admin-rules__intro {
  max-width: 72ch;
  margin-bottom: clamp(36px, 5vw, 52px);
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}

.gwi-admin-rules__lede {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.gwi-admin-rules__lede strong {
  font-weight: 600;
  color: var(--cream);
}

.gwi-admin-rules__block + .gwi-admin-rules__block {
  margin-top: clamp(40px, 5.5vw, 64px);
}

.gwi-admin-rules__block-title {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  font-family: var(--sans);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.gwi-admin-rules__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.8vw, 32px);
  align-items: start;
}

.gwi-admin-rules__figure {
  margin: 0;
  display: grid;
  gap: 12px;
}

.gwi-admin-rules__shot {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.gwi-admin-rules__shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.gwi-admin-rules__caption {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .gwi-admin-rules__grid {
    grid-template-columns: 1fr;
  }
}

.gwi-pivot-drop .gwi-pivot-drop__surface .csd-context__title {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.06;
}

/* GWI “Mapping a fragmented ecosystem”: HTML diagram (corner tools + centred spreadsheets “The Glue”) */
.gwi-system-diagram {
  width: 100%;
  max-width: 560px;
}

.gwi-system-diagram__grid {
  list-style: none;
  margin: 0;
  padding: clamp(18px, 3.5vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(148px, 38vw), auto) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    'nw . ne'
    '. glue .'
    'sw . se';
  gap: clamp(12px, 2.5vw, 22px);
  min-height: min(360px, 56vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 90% 75% at 50% 50%, color-mix(in oklab, var(--cream) 5%, transparent) 0%, transparent 62%),
    var(--surface);
  align-items: center;
}

.gwi-system-diagram__card {
  margin: 0;
  padding: clamp(12px, 2vw, 16px) clamp(14px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(165deg, color-mix(in oklab, var(--cream) 6%, transparent), color-mix(in oklab, var(--bg) 88%, transparent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  display: grid;
  gap: 4px;
  max-width: 100%;
}

.gwi-system-diagram__card--corner:nth-child(1) {
  grid-area: nw;
  justify-self: start;
  align-self: start;
}

.gwi-system-diagram__card--corner:nth-child(2) {
  grid-area: ne;
  justify-self: end;
  align-self: start;
}

.gwi-system-diagram__card--center {
  grid-area: glue;
  justify-self: center;
  align-self: center;
  padding: clamp(16px, 2.8vw, 22px) clamp(18px, 3vw, 26px);
  border-color: color-mix(in srgb, var(--amber) 42%, var(--line));
  background: linear-gradient(
    165deg,
    color-mix(in oklab, var(--amber) 14%, transparent),
    color-mix(in oklab, var(--bg) 82%, transparent)
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.gwi-system-diagram__card--corner:nth-child(4) {
  grid-area: sw;
  justify-self: start;
  align-self: end;
}

.gwi-system-diagram__card--corner:nth-child(5) {
  grid-area: se;
  justify-self: end;
  align-self: end;
}

.gwi-system-diagram__name {
  display: block;
  font-family: var(--sans);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--cream);
}

.gwi-system-diagram__role {
  display: block;
  font-family: var(--sans);
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-soft);
}

.gwi-system-diagram__glue {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 2px;
}

@media (max-width: 420px) {
  .gwi-system-diagram__grid {
    min-height: 0;
    gap: 8px;
    padding: 14px;
  }

  .gwi-system-diagram__card {
    padding: 10px 12px;
  }

  .gwi-system-diagram__card--center {
    padding: 14px 16px;
  }
}

.gwi-framing-visuals.csd-context__image {
  position: static;
  min-width: 0;
}

.gwi-framing-visuals .csd-iterate__scroll-wrap {
  min-width: 0;
  width: 100%;
}

/* One slide per view: scroll / swipe between narratives (wider cards). */
.gwi-framing-visuals .csd-iterate__rail {
  width: 100%;
  gap: clamp(18px, 2.5vw, 28px);
}

.gwi-framing-visuals .csd-iterate__card {
  flex: 0 0 100%;
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gwi-framing-visuals .csd-iterate__thumb {
  aspect-ratio: 16 / 10;
}

.gwi-framing-visuals .csd-iterate__thumb svg {
  max-height: min(200px, 28vw);
}

.gwi-framing-visuals .csd-iterate__thumb--photo {
  padding: 0;
  overflow: hidden;
}

.gwi-framing-visuals .csd-iterate__thumb--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PX story art: trim a strip of empty/white from the top of the frame */
.gwi-framing-visuals .csd-iterate__thumb--photo-framing-px img {
  object-position: center 70%;
}

.gwi-framing-visuals .csd-iterate__card-body {
  padding: 22px 22px 26px;
}

.gwi-framing-visuals .csd-iterate__card-title {
  font-size: clamp(16px, 1.25vw, 19px);
}

.gwi-framing-visuals .csd-iterate__card-desc {
  font-size: clamp(14px, 1.05vw, 16px);
}

.gwi-framing-visuals .csd-iterate__scroll-wrap::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100px, 18vw);
  background: linear-gradient(
    to left,
    rgba(14, 11, 8, 0.5) 0%,
    rgba(14, 11, 8, 0.16) 50%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .gwi-framing-visuals .csd-iterate__card {
    scroll-snap-stop: normal;
  }
}

/* GWI: Discovery: single block (intro + scrollable artefacts) */
.gwi-discovery-visuals {
  gap: clamp(14px, 3vw, 22px);
}

.gwi-discovery-visuals .csd-iterate__title {
  max-width: 40ch;
}

.gwi-discovery-visuals__intro {
  gap: 12px;
}

.gwi-discovery-visuals__body {
  margin: 0;
}

.gwi-discovery-visuals__artefacts-label {
  margin: 0;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.gwi-discovery-visuals__scroll-wrap {
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  min-width: 0;
}

.gwi-discovery-visuals .csd-iterate__card {
  flex: 0 0 min(352px, min(78vw, 428px));
  scroll-snap-align: start;
}

.gwi-discovery-visuals .csd-iterate__thumb svg {
  max-height: 152px;
}

.gwi-discovery-visuals .csd-iterate__thumb--photo {
  padding: 0;
  overflow: hidden;
}

.gwi-discovery-visuals .csd-iterate__thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* User interview artefact: keep right side (flow / video) in frame when card crops */
.gwi-discovery-visuals .csd-iterate__thumb--photo-anchor-right img {
  object-position: right center;
}

/* GWI: Design system column: large image slot + caption (add .csd-gwi-ds-placeholder__img when ready) */
.csd-gwi-ds-placeholder {
  margin: 0;
  display: grid;
  gap: clamp(16px, 2vw, 20px);
  width: 100%;
  min-width: 0;
}

.csd-gwi-ds-placeholder__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: clamp(320px, 42vw, 520px);
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--line) 85%, var(--muted));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.csd-gwi-ds-placeholder__img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.csd-gwi-ds-placeholder__frame:has(.csd-gwi-ds-placeholder__img[src]:not([src=""])) {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
  aspect-ratio: auto;
  min-height: 0;
}

.csd-gwi-ds-placeholder__frame:has(.csd-gwi-ds-placeholder__img[src]:not([src=""])) .csd-gwi-ds-placeholder__empty {
  display: none;
}

.csd-gwi-ds-placeholder__frame:has(.csd-gwi-ds-placeholder__img[src]:not([src=""])) .csd-gwi-ds-placeholder__img {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: unset;
}

.csd-gwi-ds-placeholder__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  pointer-events: none;
}

.csd-gwi-ds-placeholder__icon {
  width: clamp(52px, 8vw, 72px);
  height: clamp(52px, 8vw, 72px);
  opacity: 0.38;
}

.csd-gwi-ds-placeholder__empty-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}

.csd-gwi-ds-placeholder__meta {
  display: grid;
  gap: 10px;
  padding: 0 2px;
}

.csd-gwi-ds-placeholder__meta .kicker {
  margin: 0;
}

.csd-gwi-ds-placeholder__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(17px, 1.25vw, 19px);
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}

.csd-gwi-ds-placeholder__desc {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Lightweight design-system showcase: top = token imagery, bottom = components (images or HTML) */
.csd-ds-split {
  margin: 0;
  display: grid;
  gap: clamp(16px, 2vw, 20px);
  width: 100%;
  min-width: 0;
}

.csd-ds-split__shell {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 0;
}

.csd-ds-split__tokens,
.csd-ds-split__components {
  position: relative;
  min-width: 0;
}

.csd-ds-split__eyebrow {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  pointer-events: none;
}

.csd-ds-split__tokens {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  min-height: min(280px, 52vw);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, #0a0806);
  position: relative;
  overflow: hidden;
}

/* Fill the ratio box reliably (percentage heights on imgs are flaky inside aspect-ratio) */
.csd-ds-split__tokens > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Several token exports in one band (e.g. colour ramp + type scale PNGs) */
.csd-ds-split__tokens--mosaic {
  display: block;
}

/* Mosaic sits in the same aspect-ratio pane as single img */
.csd-ds-split__tokens--mosaic .csd-ds-split__tokens-mosaic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.csd-ds-split__tokens-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1px;
  min-height: inherit;
  background: var(--line);
}

.csd-ds-split__tokens-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.csd-ds-split__components {
  flex: 1 1 auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csd-ds-split__components-inner {
  width: 100%;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csd-ds-split__components-inner img {
  width: 100%;
  height: auto;
  max-height: min(420px, 50vh);
  object-fit: contain;
  object-position: center;
  display: block;
}

.csd-ds-split__components-inner--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.csd-ds-split__components-inner--pair img {
  max-height: min(360px, 46vh);
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 560px) {
  .csd-ds-split__components-inner--pair {
    grid-template-columns: 1fr;
  }
}

/* Live HTML component demos: full width, no inner chrome */
.csd-ds-split__components--raw {
  align-items: stretch;
  justify-content: stretch;
}

.csd-ds-split__components--raw .csd-ds-split__components-inner {
  border: none;
  background: transparent;
  border-radius: 0;
}

.csd-ds-split__components--raw .csd-ds-split__components-inner > * {
  width: 100%;
}

.csd-ds-split__meta {
  display: grid;
  gap: 10px;
  padding: 0 2px;
}

.csd-ds-split__meta .kicker {
  margin: 0;
}

.csd-ds-split__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(17px, 1.25vw, 19px);
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}

.csd-ds-split__desc {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Undo global `.csd-context__image img` borders/radius inside the split shell */
.csd-context__image .csd-ds-split img {
  border: none;
  border-radius: 0;
}

.csd-context__image .csd-ds-split__components-inner img {
  border-radius: inherit;
}

.csd-gwi-build-rail__scroll {
  max-height: min(280px, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-right: 4px;
  margin-right: -4px;
  outline: none;
}

.csd-gwi-build-rail__scroll:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber-2) 55%, transparent);
  border-radius: 12px;
}

.csd-gwi-build-rail__scroll::-webkit-scrollbar {
  width: 6px;
}

.csd-gwi-build-rail__scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

.csd-gwi-build-rail__scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 3px;
}

.csd-gwi-build-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.csd-gwi-build-rail__list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 11, 8, 0.55);
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.csd-gwi-build-rail__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .csd-gwi-scope-panels {
    grid-template-columns: 1fr;
  }
}

/* GWI-only hovers (shared case-study polish lives under .csd-back / article.csd) */

@media (hover: hover) {
  /* Discovery artefact cards: scale up on hover so thumbnails read larger */
  .csd-case--gwi .gwi-discovery-visuals .csd-iterate__card {
    position: relative;
    z-index: 0;
    transform-origin: center bottom;
  }

  .csd-case--gwi .gwi-discovery-visuals .csd-iterate__card:hover {
    z-index: 4;
    transform: translateY(-10px) scale(1.045);
  }

  .csd-case--gwi .csd-gwi-impact-narrative__cards > li {
    transition:
      transform 0.38s var(--ease),
      box-shadow 0.38s var(--ease),
      border-color 0.28s var(--ease);
  }

  .csd-case--gwi .csd-gwi-impact-narrative__cards > li:hover {
    transform: translateY(-5px);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.3),
      0 0 0 1px color-mix(in srgb, var(--cream) 18%, transparent);
    border-color: color-mix(in srgb, var(--cream) 22%, var(--line));
  }

  .csd-case--gwi .csd-gwi-scope-panels__panel {
    transition:
      transform 0.38s var(--ease),
      border-color 0.28s var(--ease),
      box-shadow 0.38s var(--ease);
  }

  .csd-case--gwi .csd-gwi-scope-panels__panel:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--amber) 38%, var(--line));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  }

  .csd-case--gwi .csd-gwi-ds-placeholder__frame,
  .hcuk-design-system-gallery .hcuk-ds-swipe .csd-iterate__card {
    transition:
      transform 0.48s var(--ease),
      box-shadow 0.48s var(--ease),
      border-color 0.28s var(--ease);
  }

  .csd-case--gwi .csd-gwi-ds-placeholder__frame:hover,
  .hcuk-design-system-gallery .hcuk-ds-swipe .csd-iterate__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  }

  .csd-case--gwi .csd-gwi-build-rail__list li {
    transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
  }

  .csd-case--gwi .csd-gwi-build-rail__list li:hover {
    border-color: color-mix(in srgb, var(--amber) 40%, var(--line));
    background: rgba(214, 123, 61, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .csd-case--gwi .csd-gwi-impact-narrative__cards > li,
  .csd-case--gwi .csd-gwi-scope-panels__panel,
  .csd-case--gwi .csd-gwi-ds-placeholder__frame,
  .hcuk-design-system-gallery .hcuk-ds-swipe .csd-iterate__card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .csd-case--gwi .csd-gwi-impact-narrative__cards > li:hover,
  .csd-case--gwi .csd-gwi-scope-panels__panel:hover,
  .csd-case--gwi .csd-gwi-ds-placeholder__frame:hover,
  .hcuk-design-system-gallery .hcuk-ds-swipe .csd-iterate__card:hover,
  .csd-case--gwi .gwi-discovery-visuals .csd-iterate__card:hover {
    transform: none;
  }
}

/* ── Spotify playlist FAB + popover ──────────────────────── */
.spotify-fab {
  position: fixed;
  z-index: 199;
  right: max(18px, var(--pad));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.spotify-fab > * {
  pointer-events: auto;
}

.spotify-fab__panel {
  width: min(100vw - 36px, 380px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(20, 17, 14, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.spotify-fab--open .spotify-fab__panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spotify-fab__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.spotify-fab__panel-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.spotify-fab__panel-close {
  background: transparent;
  border: none;
  padding: 4px;
  margin: -4px -4px -4px 0;
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.spotify-fab__panel-close:hover {
  color: var(--ink);
  background: var(--surface);
}

.spotify-fab__embed iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
  vertical-align: bottom;
}

/* Trigger = invisible hit area; only turntable + play chip read as UI */
.spotify-fab__trigger {
  position: relative;
  width: auto;
  height: auto;
  min-width: 112px;
  min-height: 112px;
  padding: 8px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.spotify-fab__trigger:hover .spotify-fab__art,
.spotify-fab__trigger:focus-visible .spotify-fab__art {
  transform: translateY(-5px);
}

.spotify-fab__trigger:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
  border-radius: 4px;
}

.spotify-fab__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  z-index: 1;
  transition: transform 0.28s var(--ease);
  /* Raised platter: rim light + deep cast shadow */
  filter:
    drop-shadow(0 -1px 0 rgba(255, 248, 235, 0.06))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5))
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
}

.spotify-fab__turntable {
  width: 100%;
  height: 100%;
  display: block;
  /* Slight physical tilt: reads as object sitting above the page */
  transform: perspective(380px) rotateX(6deg);
  transform-origin: 50% 65%;
}

.spotify-fab__play-ring {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--amber-2) 0%, var(--amber) 100%);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 6px 16px rgba(214, 123, 61, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  z-index: 2;
}

/* Pulse only once the Spotify embed is loaded (see script.js sync). */
.spotify-fab__trigger--playing .spotify-fab__play-ring {
  animation: spotify-fab-pulse 2.2s var(--ease) infinite;
}

.spotify-fab__play {
  margin-left: 2px;
}

.spotify-fab__pause {
  display: none;
}

.spotify-fab__trigger--playing .spotify-fab__play {
  display: none;
}

.spotify-fab__trigger--playing .spotify-fab__pause {
  display: block;
}

@keyframes spotify-fab-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Mobile: smaller FAB, sit closer to viewport bottom; no amber transport chip */
@media (max-width: 820px) {
  .spotify-fab {
    right: max(12px, var(--pad));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .spotify-fab__panel {
    width: min(100vw - 24px, 360px);
  }

  .spotify-fab__trigger {
    min-width: 76px;
    min-height: 76px;
    padding: 4px;
  }

  .spotify-fab__art {
    width: 62px;
    height: 62px;
    filter:
      drop-shadow(0 -1px 0 rgba(255, 248, 235, 0.05))
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4))
      drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  }

  .spotify-fab__play-ring {
    top: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: rgba(14, 11, 8, 0.72);
    color: rgba(246, 240, 230, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: none;
  }

  .spotify-fab__trigger--playing .spotify-fab__play-ring {
    animation: none;
  }

  .spotify-fab__play-ring .spotify-fab__play,
  .spotify-fab__play-ring .spotify-fab__pause {
    width: 13px;
    height: 13px;
  }

  .spotify-fab__trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 4px;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotify-fab__play-ring {
    animation: none;
  }
  .spotify-fab__panel {
    transition: opacity 0.15s ease, visibility 0.15s;
    transform: none;
  }
  .spotify-fab--open .spotify-fab__panel {
    transform: none;
  }
  .spotify-fab__trigger:hover .spotify-fab__art,
  .spotify-fab__trigger:focus-visible .spotify-fab__art {
    transform: none;
  }
  .spotify-fab__turntable {
    transform: none;
  }
}

/* ─── Case study password gate ───────────────────────────────── */

html.case-study-locked {
  overflow: hidden;
}

html.case-study-locked body > *:not(#case-study-lock-root) {
  visibility: hidden !important;
  pointer-events: none !important;
}

#case-study-lock-root.case-study-lock-root:not([hidden]) {
  display: grid;
  visibility: visible !important;
  pointer-events: auto !important;
}

.case-study-lock-root {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  place-items: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.case-study-lock__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 4, 0.72);
  backdrop-filter: blur(10px);
}

.case-study-lock__panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: rgba(28, 22, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.case-study-lock__kicker {
  margin-bottom: 0.5rem;
}

.case-study-lock__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  color: rgba(249, 244, 235, 0.96);
  margin: 0 0 0.75rem;
}

.case-study-lock__hint {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(224, 210, 195, 0.75);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.case-study-lock__hint--secondary {
  margin-bottom: 1.05rem;
  font-size: 0.8125rem;
  color: rgba(224, 210, 195, 0.62);
}

.case-study-lock__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.case-study-lock__input {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 10, 7, 0.9);
  color: rgba(249, 244, 235, 0.95);
  outline: none;
}

.case-study-lock__input:focus {
  border-color: rgba(214, 123, 61, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 123, 61, 0.15);
}

.case-study-lock__submit {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(214, 123, 61, 0.95);
  color: #1c1410;
  transition: background 0.15s ease, transform 0.15s ease;
}

.case-study-lock__submit:hover {
  background: rgba(229, 140, 76, 1);
}

.case-study-lock__submit:active {
  transform: scale(0.98);
}

.case-study-lock__submit:focus-visible {
  outline: 2px solid rgba(249, 244, 235, 0.85);
  outline-offset: 2px;
}

.case-study-lock__error {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 160, 140, 0.95);
  margin: 0.85rem 0 0;
  line-height: 1.4;
}

.case-study-lock-root .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
