:root {
  /* Primary accent — coral / orange-red */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1b1a17;
  --muted: #626057;
  --line: #dad7cf;
  --accent: #f4431e;
  --accent-light: color-mix(in srgb, var(--accent) 12%, #ffffff);
  /* Secondary accent — DCM editorial links, second pin, video metadata actions */
  --accent-2: #0b57d0;
  /* Step indices, stat figures, circular badges — charcoal */
  --numeral-ink: #2c2c2c;
  /* Canonical case palette — primary text, rules, warm surfaces */
  --ink: #0f0f0f;
  --ink-soft: #353330;
  --ink-muted: #6e6964;
  --rule: #dddbd6;
  --rule-soft: #ebe9e4;
  --bg-warm: #fafaf7;
  --bg-dark: #0a0a0a;
  --max-width: 1240px;
  --image-shadow-rest: 0 14px 30px rgba(16, 14, 11, 0.14);
  --image-shadow-hover: 0 28px 54px rgba(12, 10, 8, 0.24);
  /* Case pages: one vertical rhythm for section padding + stacked blocks.
     DCM (ad-creation) maps the same stack to --ad-stack for prose + component gaps. */
  --case-section-y: 3.2rem;
  --case-section-y-sm: 2.3rem;
  --case-stack: clamp(1.6rem, 2.6vw, 2.05rem);
  /* Overview band (aligned with Ad Creation case page) */
  --case-overview-line: rgba(0, 0, 0, 0.1);
  --case-meta-gap: calc(1.75rem * 1.1);
  /* Case title → first numbered section ("01 Overview" and DCM / IA / NFO / MMS equivalents) */
  --case-title-overview-gap: clamp(2.75rem, 5.5vw, 4.5rem);
  /* Hero image band — solid black behind preview screenshots */
  --hero-strip-bg: #000000;
  /* Primary stack aligned with New Product Switch (DM Sans + DM Mono) */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Courier New", monospace;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  /* Editorial chrome (01b) — shared nav + footer */
  --ed-ink: #1c2839;
  --ed-ink-muted: #6b6f76;
  --ed-ink-soft: #4f5563;
  --ed-rule: rgba(28, 40, 57, 0.18);
  --ed-rule-soft: rgba(28, 40, 57, 0.1);
  --ed-cream: #f5f2ea;
  --ed-navy-deep: #0f1a2a;
  --ed-paper: #ffffff;
  --ed-accent-deep: #d23811;
  --ed-accent-2: #d68c3e;
  --ed-shadow-card: 5px 5px 0 0 rgba(28, 40, 57, 0.12), 0 10px 24px rgba(28, 40, 57, 0.06);
  /* Site header — editorial gutters (~5–6vw), similar to wide portfolio rails */
  --header-padding-x: clamp(28px, 5.5vw, 88px);
  /* Typography — one scale for case pages, home listings, about, and longform case layouts */
  --type-body-size: 15px;
  --type-body-lh: 1.65;
  --type-case-hero-title: clamp(1.75rem, 4vw, 2.5rem);
  --type-case-hero-lh: 1.12;
  --type-case-hero-weight: 500;
  --type-case-hero-tracking: -0.02em;
  --type-section-title: clamp(26px, 4.5vw, 34px);
  --type-section-title-lh: 1;
  --type-section-subtitle: clamp(17px, 2.25vw, 21px);
  --type-section-subtitle-lh: 1.35;
  --type-section-num: 12px;
  --type-goal-text: clamp(20px, 2.8vw, 28px);
  --type-goal-text-lh: 1.35;
  --type-lede: clamp(17px, 1.9vw, 19px);
  --type-lede-lh: 1.65;
  --type-kicker: 10px;
  --type-prose-subhead: 1.12rem;
  --type-prose-subhead-lh: 1.35;
  /* Large metrics / hero numerals — one scale (not page-specific display sizes) */
  --type-stat: clamp(40px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  color: var(--text);
  background: var(--bg);
  line-height: var(--type-body-lh);
}

main {
  counter-reset: case-section;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: var(--image-shadow-rest);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 220ms ease;
}

.container {
  width: min(var(--max-width), calc(100% - 4rem));
  margin: 0 auto;
}

/* Header — editorial full-bleed rail: balanced viewport gutters; inner row is
   not capped at --max-width so title + nav sit wider than the centered body
   column (.container / hero). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Solid surface so sticky chrome matches on every route (body bg varies by page). */
  background: var(--surface);
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  /* Extra top inset so the nav row sits slightly lower in the sticky bar. */
  padding-top: calc(clamp(0.5rem, 1vw, 0.75rem) + 10px);
  padding-bottom: clamp(0.5rem, 1vw, 0.75rem);
  padding-inline: var(--header-padding-x);
}

/* Nav row — full viewport width minus header gutters (no 1240px cap here). */
.site-header .container.nav {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 56px;
  width: 100%;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav .site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2.25rem);
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #0f0f0f;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 2px;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  pointer-events: none;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.site-header--nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header--nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bar {
    transition: none;
  }
}

/* Top-level nav — About link + Selected Projects trigger share the same label typography. */
.nav .site-nav-links > a,
.projects-dropdown > summary {
  color: #0f0f0f;
  text-decoration: none;
  font-family: var(--font-sans), "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.projects-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.projects-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.projects-dropdown summary::-webkit-details-marker {
  display: none;
}

/* Chevron points down toward the menu when open (path is a down-caret). */
.projects-dropdown .nav-chevron {
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  margin-top: 1px;
}

.projects-dropdown[open] .nav-chevron {
  opacity: 0.55;
}

.projects-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(228px, calc(100vw - 2rem));
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
  box-shadow: 0 1px 2px rgba(16, 14, 11, 0.04), 0 5px 18px rgba(16, 14, 11, 0.055);
  z-index: 25;
  display: grid;
}

.nav .site-nav-links .projects-menu a {
  text-decoration: none;
  font-family: var(--font-sans), "DM Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.012em;
  line-height: 1.35;
  color: #0f0f0f;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
}

.nav .site-nav-links .projects-menu a:hover,
.nav .site-nav-links .projects-menu a:focus-visible {
  color: #0f0f0f;
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.nav .site-nav-links .projects-menu a:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.nav .site-nav-links .projects-menu a[aria-current="page"] {
  background: transparent;
  font-weight: 600;
  color: #0f0f0f;
}

.nav .site-nav-links .projects-menu a[aria-current="page"]:hover,
.nav .site-nav-links .projects-menu a[aria-current="page"]:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 1023px) {
  .site-header .container.nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: none;
    white-space: normal;
  }

  .site-header:not(.site-header--nav-open) .nav .site-nav-links {
    display: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex: none;
    justify-content: flex-start;
    padding: 0.35rem 0 1rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .site-header--nav-open .nav .site-nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex: none;
    justify-content: flex-start;
    padding: 0.35rem 0 1rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: min(70vh, calc(100dvh - 5.5rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav .site-nav-links > .projects-dropdown {
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav .site-nav-links > .projects-dropdown > summary {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .projects-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.45rem;
    right: auto;
    left: auto;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
  }

  .nav .site-nav-links > a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* Site footer — markup in site-footer.js */
.site-footer {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding: 2rem 0 2.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  /* Same canvas as body (matches header + page ground per route) */
  background: inherit;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #666;
  letter-spacing: 0.02em;
  max-width: 26rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
}

.site-footer-nav a {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f0f0f;
  text-decoration: none;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Editorial site chrome (01b) — header + footer; markup from site-nav.js /
   site-footer.js. Uses --ed-* tokens and DM Mono / DM Sans stacks.
   -------------------------------------------------------------------------- */

.site-header.site-header--ed {
  padding: 0;
  border-bottom: 1px solid var(--ed-rule);
  overflow: visible;
}

.site-header.site-header--ed .ed-nav-bar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  box-sizing: border-box;
}

.site-header.site-header--ed .ed-nav-brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--ed-ink);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header.site-header--ed .ed-nav-brand:hover,
.site-header.site-header--ed .ed-nav-brand:focus-visible {
  color: var(--ed-accent-deep);
}

.site-header.site-header--ed .ed-nav-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header.site-header--ed .ed-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-header.site-header--ed .ed-nav-plain {
  color: var(--ed-ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition:
    border-color 0.12s ease,
    color 0.12s ease;
}

.site-header.site-header--ed .ed-nav-plain:hover,
.site-header.site-header--ed .ed-nav-plain:focus-visible {
  color: var(--ed-accent-deep);
  border-bottom-color: var(--ed-accent-deep);
}

.site-header.site-header--ed .ed-nav-plain[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--ed-accent-deep);
}

.site-header.site-header--ed .ed-nav-drop {
  position: relative;
  overflow: visible;
}

.site-header.site-header--ed .ed-nav-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: var(--ed-ink);
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0 0 3px;
  border: none;
  background: none;
  border-bottom: 1.5px solid transparent;
  transition:
    border-color 0.12s ease,
    color 0.12s ease;
}

.site-header.site-header--ed .ed-nav-trigger::-webkit-details-marker {
  display: none;
}

.site-header.site-header--ed .ed-nav-caret {
  font-size: 8px;
  transition: transform 0.15s ease;
}

.site-header.site-header--ed .ed-nav-drop:hover > .ed-nav-trigger,
.site-header.site-header--ed .ed-nav-drop:focus-within > .ed-nav-trigger {
  color: var(--ed-accent-deep);
  border-bottom-color: var(--ed-accent-deep);
}

.site-header.site-header--ed .ed-nav-drop[open] > .ed-nav-trigger .ed-nav-caret,
.site-header.site-header--ed .ed-nav-drop:hover > .ed-nav-trigger .ed-nav-caret,
.site-header.site-header--ed .ed-nav-drop:focus-within > .ed-nav-trigger .ed-nav-caret {
  transform: translateY(2px);
}

.site-header.site-header--ed .ed-nav-menu {
  position: absolute;
  top: 100%;
  /* Anchor to Work control’s right edge so the panel grows left — avoids clipping off the viewport */
  left: auto;
  right: 0;
  transform: translateY(8px);
  margin-top: 14px;
  min-width: min(320px, calc(100vw - 2rem));
  width: min(380px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  background: var(--ed-paper);
  border: 1.5px solid var(--ed-ink);
  border-radius: 12px;
  box-shadow: var(--ed-shadow-card);
  padding: 10px;
  z-index: 30;
}

.site-header.site-header--ed .ed-menu-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.site-header.site-header--ed .ed-menu-row + .ed-menu-row {
  border-top: 1px dashed var(--ed-rule-soft);
}

.site-header.site-header--ed .ed-menu-row:hover,
.site-header.site-header--ed .ed-menu-row:focus-visible {
  background: rgba(244, 67, 30, 0.06);
}

.site-header.site-header--ed .ed-menu-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-ink-muted);
  font-weight: 500;
  padding-top: 3px;
  text-align: right;
}

.site-header.site-header--ed .ed-menu-title {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ed-ink);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  text-transform: none;
  display: block;
}

.site-header.site-header--ed .ed-menu-org {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-muted);
  font-weight: 500;
  margin-top: 3px;
}

.site-header.site-header--ed .ed-menu-arr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ed-ink-muted);
  padding-top: 4px;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.site-header.site-header--ed .ed-menu-row:hover .ed-menu-arr,
.site-header.site-header--ed .ed-menu-row:focus-visible .ed-menu-arr {
  color: var(--ed-accent-deep);
  transform: translateX(3px);
}

.site-header.site-header--ed .ed-menu-row[aria-current="page"] .ed-menu-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header.site-header--ed .ed-nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ed-ink);
  color: var(--ed-cream) !important;
  border: 1px solid var(--ed-ink);
  box-shadow: 2px 2px 0 0 rgba(28, 40, 57, 0.15);
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.site-header.site-header--ed .ed-nav-cta:hover,
.site-header.site-header--ed .ed-nav-cta:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 rgba(28, 40, 57, 0.22);
}

.site-header.site-header--ed .nav-toggle {
  color: var(--ed-ink);
}

.site-header.site-header--ed .nav-toggle:focus-visible {
  outline-color: var(--ed-ink);
}

.site-footer.site-footer--ed {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding: 24px clamp(20px, 4vw, 48px) 28px;
  border-top: 1px solid var(--ed-rule);
  background: inherit;
}

.site-footer.site-footer--ed .site-footer-ed {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ed-ink-muted);
}

.site-footer.site-footer--ed .site-footer-ed-sig {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 14px;
  color: var(--ed-ink);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.site-footer.site-footer--ed .site-footer-ed-type {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  color: var(--ed-ink-soft);
}

@media (max-width: 1023px) {
  .site-header.site-header--ed .ed-nav-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-header.site-header--ed .nav-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  .site-header.site-header--ed .ed-nav-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .site-header.site-header--ed:not(.site-header--nav-open) .ed-nav-links {
    display: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex: none;
    justify-content: flex-start;
    padding: 0.35rem 0 1rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--ed-rule-soft);
  }

  .site-header.site-header--ed.site-header--nav-open .ed-nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex: none;
    justify-content: flex-start;
    padding: 0.35rem 0 1rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--ed-rule-soft);
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: min(70vh, calc(100dvh - 5.5rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.site-header--ed .ed-nav-plain {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ed-rule-soft);
    border-radius: 0;
  }

  .site-header.site-header--ed .ed-nav-cta {
    display: inline-flex;
    justify-content: center;
    text-align: center;
    margin-top: 0.35rem;
    padding: 0.75rem 1rem;
    border-bottom: none;
  }

  .site-header.site-header--ed .ed-nav-drop {
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ed-rule-soft);
  }

  .site-header.site-header--ed .ed-nav-trigger {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .site-header.site-header--ed .ed-nav-menu {
    position: static;
    transform: none;
    left: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0.45rem;
    box-shadow: none;
    border: 1px solid var(--ed-rule-soft);
  }
}

@media (max-width: 520px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer.site-footer--ed .site-footer-ed {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rail-label {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 0.8rem;
}

.floating-sidebar {
  position: fixed;
  top: 110px;
  left: 1.15rem;
  width: 180px;
  z-index: 15;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.2rem 0.1rem;
  backdrop-filter: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.floating-sidebar ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rail;
}

.floating-sidebar li {
  counter-increment: rail;
  margin-bottom: 0.55rem;
  font-size: 12px;
}

.floating-sidebar li::before {
  content: counter(rail, decimal-leading-zero) " ";
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: #666;
  opacity: 0.6;
  margin-right: 0.35rem;
}

.floating-sidebar a {
  color: #666;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 10px 6px 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.floating-sidebar a.is-active {
  color: #0f0f0f;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
}

.floating-sidebar a:hover,
.floating-sidebar a:focus-visible {
  color: #0f0f0f;
  background: rgba(0, 0, 0, 0.05);
}

.hero-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem 1.25rem 1.9rem;
  background: var(--hero-strip-bg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
}

.hero-strip img {
  flex: 0 0 clamp(300px, 34vw, 500px);
  height: clamp(240px, 25vw, 340px);
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  filter: saturate(1.04) contrast(1.03);
  transform-origin: center;
}

.hero-strip img:hover,
.hero-strip img:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 62px rgba(0, 0, 0, 0.5);
  filter: saturate(1.1) contrast(1.07);
}

/* Hero strip — NYT case studies only: match DCM case hero band (1100px rail, padding, shadows) */
body.case-study .hero-strip {
  display: block;
  padding: 24px 0 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
  background: var(--hero-strip-bg);
}

body.case-study .hero-strip-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  box-sizing: border-box;
}

body.case-study .hero-strip img {
  flex: 0 1 clamp(260px, 28vw, 560px);
  height: clamp(220px, 24vw, 380px);
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  scroll-snap-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(0, 0, 0, 0.12);
  border: none;
  filter: saturate(1.04) contrast(1.03);
}

body.case-study .hero-strip img:hover,
body.case-study .hero-strip img:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.34), 0 8px 22px rgba(0, 0, 0, 0.14);
  filter: saturate(1.08) contrast(1.05);
}

.section {
  padding: var(--case-section-y) 0;
  border-top: 1px solid var(--line);
}

/* Uniform gap between prose, galleries, figures, and annotations within a section */
.section:not(.intro-section) > * + * {
  margin-top: var(--case-stack);
}

.section:not(.intro-section) > .block {
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

.section:not(.intro-section) > .gallery-block,
.section:not(.intro-section) > .wide-image,
.section:not(.intro-section) > .gallery,
.section:not(.intro-section) > .annotation-experience {
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  line-height: 1.15;
}

h1,
h2 {
  font-family: var(--font-sans);
}

h1 {
  font-size: var(--type-case-hero-title);
  line-height: var(--type-case-hero-lh);
  font-weight: var(--type-case-hero-weight);
  letter-spacing: var(--type-case-hero-tracking);
  margin-bottom: 1.6rem;
}

.section:not(.intro-section) h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: var(--type-section-title);
  line-height: var(--type-section-title-lh);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.05rem;
}

.section:not(.intro-section) h2::before {
  counter-increment: case-section;
  content: counter(case-section, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  width: 2.2rem;
  display: inline-block;
  flex: 0 0 2.2rem;
}

body:not(.case-ad-creation):not(.page-home) h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  line-height: 1.3;
}

body:not(.case-ad-creation):not(.page-home) h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

p {
  margin: 0 0 1rem;
  color: #2f2c26;
}

.intro-section {
  display: block;
}

body.case-study .intro-section.section {
  padding-bottom: calc(var(--case-section-y) * 0.5);
}

/* NYT case studies — shared white canvas with global portfolio */
body.case-study {
  background-color: #ffffff;
  color: #0f0f0f;
}

/* Screenshots and figures: flat edges, no card shadow (global img {} adds radius + shadow to everything). */
body.case-study .section img {
  border-radius: 2px;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

body.case-study .section img:hover,
body.case-study .section img:focus-visible {
  transform: none;
  box-shadow: none;
}

body.case-study .intro-section h1 {
  font-family: var(--font-sans);
  font-size: var(--type-case-hero-title);
  line-height: var(--type-case-hero-lh);
  font-weight: var(--type-case-hero-weight);
  letter-spacing: var(--type-case-hero-tracking);
  color: #0f0f0f;
}

body.case-study section.intro-section#overview h1 {
  margin-top: 0;
  margin-bottom: var(--case-title-overview-gap);
}

/* Case study hero eyebrow — accent rule + uppercase trail (Client · Focus · Context); used above page titles */
body.case-study .hero-eyebrow,
body.case-ad-creation .ad-hero > .ad-eyebrow,
body.page-ad-studio .ad-studio-root .ad-hero > .ad-eyebrow {
  font-family: "DM Mono", "Courier New", monospace;
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.case-study .hero-eyebrow::before,
body.case-ad-creation .ad-hero > .ad-eyebrow::before,
body.page-ad-studio .ad-studio-root .ad-hero > .ad-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Goal statement — matches DCM case study (.ad-goal) treatment; used on case study overviews */
body.case-study .case-goal {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 0 2.5rem;
}

body.case-study .case-goal-bar {
  width: 3px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--accent);
}

body.case-study .case-goal-kicker {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

body.case-study .case-goal-text {
  font-family: var(--font-sans);
  font-size: var(--type-goal-text);
  line-height: var(--type-goal-text-lh);
  letter-spacing: -0.02em;
  color: #0f0f0f;
  max-width: min(900px, 100%);
  margin: 0;
}

/* Section headers — aligned with DCM (.ad-section-header / .ad-section-rule) */
body.case-study .case-section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.625rem;
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

body.case-study .case-section-num {
  font-family: var(--font-sans);
  font-size: var(--type-section-num);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

body.case-study .case-section-title {
  font-family: var(--font-sans);
  font-size: var(--type-section-title);
  line-height: var(--type-section-title-lh);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #0f0f0f;
  margin: 0;
}

body.case-study .case-section-heading-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

body.case-study .case-section-subtitle {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-section-subtitle);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: var(--type-section-subtitle-lh);
  color: #353532;
  max-width: min(52rem, 100%);
}

body.case-study .case-section-header--with-subtitle {
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

body.case-study .case-section-header--with-subtitle .case-section-num {
  margin-top: 0.35rem;
}

body.case-study hr.case-section-rule {
  border: none;
  border-top: 1.5px solid #0f0f0f;
  margin: 0 0 1.25rem;
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

body.case-study .section:not(.intro-section) > .case-section-header + hr.case-section-rule {
  margin-top: 0;
}

body.case-study .section.intro-section > .case-section-header + hr.case-section-rule {
  margin-top: 0;
}

body.case-study .section:not(.intro-section) > hr.case-section-rule + * {
  margin-top: 0;
}

body.case-study .section.intro-section > hr.case-section-rule + * {
  margin-top: 0;
}

body.case-study .section:not(.intro-section) h2.case-section-title {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--type-section-title);
  line-height: var(--type-section-title-lh);
  letter-spacing: -0.03em;
  font-weight: 700;
}

body.case-study .section:not(.intro-section) h2.case-section-title::before {
  content: none;
  display: none;
}

body.case-study .block .case-subhead {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--type-prose-subhead);
  font-weight: 700;
  line-height: var(--type-prose-subhead-lh);
  margin: 0 0 0.75rem;
  color: #0f0f0f;
}

.intro-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--case-overview-line);
  border-bottom: none;
  padding: 1.5rem 0 0;
  justify-items: start;
  align-items: start;
}

.intro-columns article {
  min-width: 0;
  padding-right: 0.5rem;
  text-align: left;
}

.intro-columns h3 {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  line-height: 1.3;
  color: #0f0f0f;
}

/* Case pages use body.case-study but not body.case-ad-creation — beat portfolio h3 mono rule for every intro kicker (Context / Problem / Opportunity). */
body.case-study .intro-columns h3 {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

body.case-study .intro-columns h3:not(.accent) {
  color: #0f0f0f;
}

.intro-columns h3.accent {
  color: var(--accent);
}

.intro-columns p {
  font-size: var(--type-body-size);
  color: #333;
  line-height: var(--type-body-lh);
  margin: 0;
}

.intro-columns p + p {
  margin-top: 0.875rem;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: calc(1.5rem / 2);
  margin-top: var(--case-meta-gap);
  padding: 1.5rem 0 0.75rem;
  border-top: 1px solid var(--case-overview-line);
  justify-items: start;
  align-items: start;
}

.meta-row article {
  min-width: 0;
  padding: 0;
  text-align: left;
}

/* With `.intro-columns` above: match its `gap: 2rem` and article `padding-right` so meta columns line up */
#overview.intro-section .meta-row {
  column-gap: 2rem;
}

#overview.intro-section .meta-row article {
  padding-right: 0.5rem;
}

.meta-row h4 {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 calc(0.25rem / 2);
}

.meta-row p {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  letter-spacing: 0;
  color: #0f0f0f;
}

.meta-row .meta-value-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  line-height: 1.35;
}

.meta-row p.meta-role-detail {
  margin-top: 0.4rem;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 400;
  color: #666;
}

.block {
  max-width: none;
}

.block > p,
.block > ol,
.block > ul {
  max-width: 920px;
}

/* Process cards: match section header / rule width (920px prose max-width would inset the grid vs 1160px titles) */
body.case-study .block > ol.process-list {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.gallery-block {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.gallery-block > h3 {
  color: #f4f2ef;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: none;
}

.gallery-block > p {
  color: rgba(244, 242, 239, 0.78);
}

.gallery-block--flow {
  width: min(100%, 1240px);
  padding: 1.5rem;
}

.gallery-block--flow .gallery.four {
  --gallery-image-h: 340px;
  gap: 1.1rem;
}

.gallery {
  display: grid;
  gap: 1rem;
  --gallery-image-h: 320px;
}

.gallery img {
  width: 100%;
  height: var(--gallery-image-h);
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 1px solid rgba(26, 23, 19, 0.12);
  cursor: pointer;
}

.gallery img:hover,
.gallery img:focus-visible {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--image-shadow-hover);
  filter: brightness(1.03) saturate(1.03);
}

.finding-list {
  width: min(100%, 1160px);
  margin-top: var(--case-stack);
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finding-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem 0.2rem;
  border-top: 1px solid var(--line);
}

.finding-row:first-child {
  border-top: none;
}

.finding-index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #c27858;
  letter-spacing: 0.02em;
}

.finding-copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
}

.finding-copy p {
  margin: 0;
  max-width: 900px;
}

.insight-row {
  margin-top: var(--case-stack);
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 1.25rem;
  align-items: start;
}

/* First row inside a pain sequence sits flush under the section intro block */
.pain-point-sequence > :first-child.insight-row {
  margin-top: 0;
}

.insight-copy h3 {
  margin-bottom: 0.6rem;
}

.insight-copy p {
  margin-bottom: 0;
}

.insight-media .wide-image {
  margin-top: 0;
}

.pain-point-sequence {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 0;
}

.pain-point-item {
  margin-top: var(--case-stack);
  padding-top: var(--case-stack);
  border-top: 1px solid var(--line);
}

.pain-point-item.insight-row {
  border-top: none;
  padding-top: 0;
}

.pain-point-sequence > .pain-point-item:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

body.case-product-switch .annotation-experience {
  grid-template-columns: 1fr;
}

.insight-note {
  margin-top: 0.8rem;
  display: inline-block;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, #ffffff);
  background: color-mix(in srgb, var(--accent) 14%, #ffffff);
  color: #2c2422;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 320px;
}

.gallery.four {
  grid-template-columns: repeat(4, 1fr);
  --gallery-image-h: 260px;
}

.gallery.three {
  grid-template-columns: repeat(3, 1fr);
  --gallery-image-h: 300px;
}

.gallery.two {
  grid-template-columns: repeat(2, 1fr);
  --gallery-image-h: 360px;
}

.gallery.one {
  grid-template-columns: 1fr;
  --gallery-image-h: 340px;
}

.wide-image {
  margin-top: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(19, 17, 13, 0.14);
}

.wide-image:hover,
.wide-image:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(14, 12, 10, 0.2);
}

/* Must follow base .gallery img / .wide-image — earlier case-study rules lost the cascade war. */
body.case-study .gallery img {
  height: auto;
  max-height: var(--gallery-image-h);
  width: 100%;
  object-fit: contain;
  object-position: top center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  box-shadow: none;
}

body.case-study .gallery img:hover,
body.case-study .gallery img:focus-visible {
  transform: none;
  box-shadow: none;
  filter: brightness(1.02);
}

body.case-study .gallery-block .gallery img {
  border-color: rgba(255, 255, 255, 0.14);
  background: #000000;
}

body.case-study .section:not(.intro-section) > .gallery {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

body.case-study .section:not(.intro-section) > .gallery img {
  border-color: rgba(255, 255, 255, 0.14);
  background: #000000;
}

body.case-study .wide-image {
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

body.case-study .wide-image:hover,
body.case-study .wide-image:focus-visible {
  transform: none;
  box-shadow: none;
}

.process-list {
  list-style: none;
  margin: var(--case-stack) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  counter-reset: process;
  align-items: stretch;
}

.process-list li {
  counter-increment: process;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1rem 1.15rem;
  box-shadow: 0 8px 18px rgba(22, 20, 15, 0.05);
  min-height: 100%;
}

body.case-product-switch .section {
  padding: var(--case-section-y) 0;
}

/* Product Switch — primary headings: sans (DM Sans, aligned with New Product Switch) */
body.case-study.case-product-switch .case-section-num {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--type-section-num);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

body.case-study.case-product-switch .case-section-title,
body.case-study.case-product-switch .section:not(.intro-section) h2.case-section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--type-section-title);
  line-height: var(--type-section-title-lh);
  letter-spacing: -0.03em;
}

body.case-study.case-product-switch .intro-section h1 {
  font-family: var(--font-sans);
  font-size: var(--type-case-hero-title);
  line-height: var(--type-case-hero-lh);
  font-weight: var(--type-case-hero-weight);
  letter-spacing: var(--type-case-hero-tracking);
}

body.case-product-switch .block > h3 {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--type-prose-subhead);
  font-weight: 700;
  line-height: var(--type-prose-subhead-lh);
  margin-bottom: 0.75rem;
}

body.case-product-switch #designs .block--creating-wireframes > .design-wireframes-lead-title {
  font-family: var(--font-sans);
  font-size: var(--type-section-title);
  line-height: var(--type-section-title-lh);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f0f0f;
  margin: 0 0 0.45rem;
  text-transform: none;
}

body.case-product-switch #designs .wireframes-section-kicker {
  margin: 0 0 0.85rem;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

body.case-product-switch #designs .wireframes-annotated-figure {
  margin: var(--case-stack) 0 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

body.case-product-switch #designs .wireframes-annotated-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: none;
}

body.case-product-switch .process-list li {
  padding: 1.1rem 1.1rem 1.15rem 1.15rem;
}

/* User Research — same visual pattern as DCM “Exploring workflow models” (numeral | image | copy rows). Scoped here only. */
body.case-product-switch #research .case-prose {
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

body.case-product-switch #research .case-prose h3 {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: var(--text);
}

/* Exclude pull-quote copy inside blockquote — otherwise .case-prose p { font-size: 15px } wins on specificity */
body.case-product-switch #research .case-prose p:not(.case-research-quote-text) {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  max-width: min(100%, 1160px);
  margin: 0 0 1em;
}

body.case-product-switch #research .case-research-quote {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  margin: 0 0 1em;
  padding: 0;
  border: none;
  width: 100%;
  max-width: min(100%, 1160px);
  box-sizing: border-box;
  background: none;
}

body.case-product-switch #research .case-research-quote-bar {
  width: 3px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--accent);
}

body.case-product-switch #research .case-research-quote-text {
  margin: 0;
  padding: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.85vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-style: normal;
  color: #2a2623;
}

body.case-product-switch #research hr.case-research-divider {
  border: none;
  border-top: 1px solid rgba(27, 26, 23, 0.12);
  margin: 0;
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

body.case-product-switch #research .case-prose:not(:last-child) > :last-child {
  margin-bottom: var(--case-stack);
}

body.case-product-switch #research .case-research-questions {
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

body.case-product-switch #research .case-research-questions h3 {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: var(--text);
}

body.case-product-switch #research .case-research-questions > p {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  max-width: min(100%, 1160px);
  margin: 0 0 1em;
}

body.case-product-switch #research .case-research-questions ul {
  margin: 0;
  padding-left: 1.15rem;
  max-width: min(100%, 1160px);
}

body.case-product-switch #research .case-research-questions li {
  margin-bottom: 0.45rem;
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

body.case-product-switch #research .case-prose + article.case-explore {
  margin-top: 0;
}

body.case-product-switch #research > article.case-explore + article.case-explore {
  margin-top: 0;
}

body.case-product-switch #research .case-explore {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 520px;
  column-gap: clamp(1.5rem, 2.2vw, 2rem);
  row-gap: 0;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  width: min(100%, 1160px);
  margin-left: 0;
  margin-right: auto;
}

body.case-product-switch #research .case-explore:first-of-type {
  padding-top: 1.5rem;
}

body.case-product-switch #research .case-explore:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 1.5rem;
}

body.case-product-switch #research .case-bignum {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--numeral-ink);
  font-weight: 700;
}

body.case-product-switch #research .case-exp-img {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: end;
  align-self: start;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
  cursor: zoom-in;
}

body.case-product-switch #research .case-exp-img:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.96;
}

body.case-product-switch #research .case-exp-img img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(360px, 52vh);
  height: auto;
  object-fit: contain;
  object-position: top right;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  transition: none;
  filter: none;
}

body.case-product-switch #research .case-exp-copy {
  padding-top: 4px;
}

body.case-product-switch #research .case-exp-eyebrow {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.625rem;
}

body.case-product-switch #research .case-exp-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: none;
  font-weight: 700;
  color: #0f0f0f;
  margin: 0 0 1.125rem;
}

body.case-product-switch #research .case-exp-concept {
  font-size: 14.5px;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

@media (max-width: 960px) {
  body.case-product-switch #research .case-explore {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    column-gap: unset;
    row-gap: unset;
  }

  body.case-product-switch #research .case-exp-img {
    justify-self: start;
  }

  body.case-product-switch #research .case-exp-img img {
    object-position: top left;
  }

  body.case-product-switch #research .case-bignum {
    font-size: 44px;
  }
}

.process-list li::before {
  content: counter(process);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--numeral-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}

.process-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.annotation-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: clamp(0.95rem, 1.8vw, 1.35rem);
  align-items: start;
}

.annotation-canvas {
  margin: 0;
  position: relative;
}

.annotation-canvas .wide-image {
  margin-top: 0;
  border-color: rgba(30, 27, 22, 0.16);
}

.annotation-main-image {
  transition: opacity 220ms ease;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #201d17;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(44, 44, 44, 0.35);
  animation: hotspot-ping 1.8s ease-out infinite;
}

.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 16px 30px rgba(244, 67, 30, 0.44);
}

.annotation-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: var(--surface);
  box-shadow: 0 12px 20px rgba(26, 22, 15, 0.08);
  position: sticky;
  top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  img,
  .hero-strip img,
  .gallery img,
  .wide-image,
  .hotspot {
    transition: none !important;
    animation: none !important;
  }
}

.annotation-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent);
}

.annotation-panel h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.annotation-tip {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

ol,
ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.8rem;
}

.phone-shot {
  margin: 1.1rem auto 0;
  width: min(320px, 90%);
  border: 1px solid var(--line);
}

@media (min-width: 1200px) {
  /* In-page TOC rail (DCM / IA only). Global header chrome is unchanged — same `.container` as every page. */
  body:has(.floating-sidebar) {
    --rail-start: max(
      0.5rem,
      calc(170px + max(0px, (100vw - 170px - 1.5rem - 1100px) * 0.5) - 380px)
    );
  }

  /* Case study main column clears the left TOC; site header stays full-width + centered like index/about. */
  body:has(.floating-sidebar) main {
    padding-left: 170px;
  }

  body:has(.floating-sidebar) .floating-sidebar {
    left: var(--rail-start);
  }

  body:has(.floating-sidebar).hero-visible main {
    padding-left: 0;
  }

  body:has(.floating-sidebar).hero-visible .floating-sidebar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes hotspot-ping {
  0% {
    opacity: 1;
    transform: scale(0.75);
  }
  70% {
    opacity: 0;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@media (max-width: 1100px) {
  .floating-sidebar {
    display: none;
  }

  .container {
    width: min(var(--max-width), calc(100% - 3rem));
  }

  .intro-columns {
    grid-template-columns: 1fr;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-strip {
    padding: 1rem;
    scroll-padding-inline: 50%;
  }

  .hero-strip img {
    flex: 0 0 85%;
    height: 220px;
  }

  body.case-study .hero-strip {
    padding: 16px 0 32px;
  }

  body.case-study .hero-strip-inner {
    padding: 0 clamp(0.75rem, 4vw, 1.25rem);
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  body.case-study .hero-strip img {
    flex: 0 0 85%;
    max-width: 85vw;
    height: 220px;
    object-fit: cover;
  }

  .gallery.four,
  .gallery.three,
  .gallery.two,
  .process-list {
    grid-template-columns: 1fr;
  }

  .annotation-experience {
    grid-template-columns: 1fr;
  }

  .insight-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .finding-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 1rem 0.1rem;
  }

  .finding-copy h3 {
    font-size: 1.12rem;
  }

  .annotation-panel {
    position: static;
  }

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

  body.case-study .intro-section.section {
    padding-bottom: calc(var(--case-section-y-sm) * 0.5);
  }
}
