/* Case study V2, shared by every case page that sets body.case-v2.
   Base reading styles (zero-specificity scope) first, then the V2 system: 1120 wide / 820 reading
   measure, seven text styles, processed figures, stacked opening, next-case card.
   Page folders keep only page-specific components. Change here = all V2 cases change. */

/* Rule Agent — reading styles, V1.
   Loaded only by this case. Text, assets, order and shared styles stay intact. */
:where(.case-v2) .case {
  --reading-body: #4F514C;
  --reading-caption: #6C6D67;
  --reading-section-gap: 72px;
  color: var(--reading-body);
}

/* Preserve the current face and reading measure; clarify the hierarchy. */
:where(.case-v2) .case .case-head h1 {
  font-size: 39px;
  text-wrap: pretty;
}
:where(.case-v2) .case .case-dek {
  color: var(--reading-body);
}
:where(.case-v2) .case .case-meta,
:where(.case-v2) .case .mobile-hint {
  color: var(--reading-caption);
}
:where(.case-v2) .case .prose > p {
  font-size: 16.5px;
  line-height: 1.68;
  margin-bottom: 20px;
}
:where(.case-v2) .case .prose > .eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .10em;
  margin: var(--reading-section-gap) auto 10px;
}
:where(.case-v2) .case .prose > h2 {
  font-size: 30px;
  line-height: 1.2;
  text-wrap: pretty;
  margin: 0 auto 24px;
}
:where(.case-v2) .case .prose > h3 {
  margin-bottom: 24px;
}

/* Chapter breaks are generous; figures and their captions stay together. */
:where(.case-v2) .case .prose > figure {
  margin: 40px 0;
}
:where(.case-v2) .case .prose > h2 + figure,
:where(.case-v2) .case .prose > h3 + figure {
  margin-top: 24px;
}
:where(.case-v2) .case figcaption {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--reading-caption);
  margin: 12px auto 0;
}

@media (max-width: 900px) {
  :where(.case-v2) .case {
    --reading-section-gap: 56px;
  }
  :where(.case-v2) .case .case-head h1 {
    font-size: 28px;
  }
  :where(.case-v2) .case .prose > h2 {
    font-size: 24px;
  }
  :where(.case-v2) .case .prose > figure {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  :where(.case-v2) .case .prose > h2 + figure,
  :where(.case-v2) .case .prose > h3 + figure {
    margin-top: 24px;
  }
}


/* Local case exploration: a wider, left-anchored reading grid.
   No capsule navigation. Existing copy and image assets stay intact. */
.case-v2 .case{
  --reading-measure: 820px;
  --a-panel: #f2f3ed;
  --a-panel-2: #f3f1e9;
  --a-border: #e1e3d9;
}

/* One shared left edge for the page title, reading blocks and image stages. */
.case-v2 .prose{ max-width: none; margin: 88px 0 0; }
.case-v2 .prose > p,
.case-v2 .prose > h2,
.case-v2 .prose > h3,
.case-v2 .prose > blockquote,
.case-v2 .prose > .eyebrow{
  margin-left: 0;
  margin-right: 0;
}
.case-v2 .prose > p,
.case-v2 .prose > blockquote{ max-width: var(--reading-measure); }
.case-v2 .prose p{ font-size: 18px; line-height: 1.7; }
.case-v2 .prose p:not(.eyebrow){ letter-spacing: 0; }
.case-v2 .prose > p{ margin-bottom: 24px; }
.case-v2 .prose > p:first-child{ margin-top: 0; }
.case-v2 .case .prose > .eyebrow{
  margin-top: 108px;
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .14em;
}
.case-v2 .case .prose > h2{
  max-width: 1040px;
  font-size: 36px;
  line-height: 1.24;
  letter-spacing: 0;
  text-wrap: pretty;
  margin-bottom: 28px;
}
.case-v2 .case .prose > h3{
  max-width: 940px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0;
  margin-top: 68px;
  margin-bottom: 26px;
}
/* Key sentence: a statement, not a quote. No side bar; a short accent rule above, larger type. */
.case-v2 .prose blockquote{
  margin: 56px 0 56px;
  padding: 0;
  border: 0;
  max-width: var(--reading-measure);
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}
.case-v2 .prose blockquote::before{ content: ""; display: block; width: 40px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--acc); }
/* No one-word last lines: headings and text wrap normally but never end on a lone word. */
.case-v2 .prose h2, .case-v2 .prose .fig-title, .case-v2 .prose .tp-title, .case-v2 .case-head h1{ text-wrap: pretty; }
.case-v2 .prose p, .case-v2 .prose li, .case-v2 .prose td, .case-v2 .prose th, .case-v2 figcaption{ text-wrap: pretty; }
.case-v2 .prose [id],
.case-v2 #overview{ scroll-margin-top: 40px; }

/* A calm hero on the same grid; project context no longer sits in a narrow rail. */
.case-v2 .a-hero{ padding-top: 72px; }
.case-v2 .project-kicker{
  margin: 0 0 22px;
  color: var(--acc);
  font-size: 14px;
  font-weight: 500;
}
.case-v2 .hero-heading{ display: block; }
.case-v2 .case-head h1{
  max-width: 920px;
  margin: 0;
  font-size: clamp(36px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: pretty;
}
.case-v2 .hero-visual{ margin: 46px 0 0; }
.case-v2 .case figcaption{
  max-width: var(--reading-measure);
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  text-align: left;
}
.case-v2 .hero-visual figcaption{ font-size: 12px; }
.case-v2 .case-head .mobile-hint{ margin: 16px 0 0; }

/* Additive scan aids: factual, quiet, and subordinate to the existing story. */
.case-v2 .case-facts{
  max-width: 920px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.case-v2 .case-facts dt{
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--reading-caption);
}
.case-v2 .case-facts dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.case-v2 .release-summary{
  max-width: var(--reading-measure);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin: 42px 0 0;
}
.case-v2 .release-summary > div{
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.case-v2 .release-summary h3,
.case-v2 .next-validation h3{
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--acc);
}
.case-v2 .release-summary p{
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--reading-body);
}
.case-v2 .next-validation{
  max-width: var(--reading-measure);
  margin: 34px 0 30px;
  padding: 3px 0 3px 20px;
  border-left: 2px solid var(--acc);
}
.case-v2 .next-validation p{
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

/* Wide, quiet image stages; captions are below, not squeezed beside them. */
.case-v2 .case .prose > figure{ margin: 44px 0 58px; }
.case-v2 .case .prose > h2 + figure,
.case-v2 .case .prose > h3 + figure{ margin-top: 34px; }
.case-v2 .prose > figure .frame{
  max-width: none;
  margin-left: 0;
  padding: 24px;
  background: var(--a-panel);
  border-color: var(--a-border);
  border-radius: 3px;
  box-shadow: none;
}

/* Mapping follows the same top-to-bottom, left-aligned rhythm. */

.case-v2 .case-return{
  max-width: var(--reading-measure);
  margin: 64px 0 0;
}

@media (max-width: 900px) {
  .case-v2 .case .prose > h2 { font-size: 32px; }
  .case-v2 .a-hero{ padding-top: 56px; }
  .case-v2 .case .prose > .eyebrow{ margin-top: 84px; }
  .case-v2 .prose{ margin-top: 68px; }
  .case-v2 .case-facts{ grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .case-v2 .case-facts > div:last-child{ grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .case-v2 .a-hero{ padding-top: 42px; }
  .case-v2 .case-head h1{ font-size: 32px; }
  .case-v2 .hero-visual{ margin-top: 32px; }
  .case-v2 .prose{ margin-top: 56px; }
  .case-v2 .prose p{ font-size: 17px; line-height: 1.7; }
  .case-v2 .case .prose > h2 { font-size: 27px; line-height: 1.24; }
  .case-v2 .case .prose > h3{ font-size: 23px; margin-top: 48px; }
  .case-v2 .case .prose > .eyebrow{ margin-top: 72px; margin-bottom: 16px; }
  .case-v2 .case .prose > figure{ margin: 32px 0 42px; }
  .case-v2 .prose > figure .frame{ padding: 12px; }
  .case-v2 .case figcaption{ font-size: 14px; margin-top: 14px; }
  .case-v2 .hero-visual figcaption{ font-size: 12px; }
  .case-v2 .case-facts{ grid-template-columns: 1fr; gap: 16px; margin-top: 26px; padding-top: 18px; }
  .case-v2 .case-facts > div:last-child{ grid-column: auto; }
  .case-v2 .release-summary{ grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
  .case-v2 .release-summary p{ font-size: 16px; }
  .case-v2 .next-validation{ margin: 30px 0 26px; padding-left: 17px; }
  .case-v2 .next-validation p{ font-size: 17px; }
  .case-v2 .case-return{ margin-top: 48px; }
}

/* Local review control: show each original screenshot without cropping. */

/* V2 opening: a plain-language overview replaces the dek, meta line and old facts. */
.case-v2 .case-overview{
  max-width: var(--reading-measure);
  margin: 26px 0 0;
}
.case-v2 .case-overview p{
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--reading-body);
  text-wrap: pretty;
}
.case-v2 .case-overview p:last-child{ margin-bottom: 0; }
.case-v2 .case-head .case-facts{ max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .case-v2 .case-head .case-facts{ grid-template-columns: 1fr 1fr; }
  .case-v2 .case-head .case-facts > div:last-child{ grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .case-v2 .case-overview p{ font-size: 17px; }
  .case-v2 .case-head .case-facts{ grid-template-columns: 1fr 1fr; gap: 16px 20px; }
}
.case-v2 .overview-row{
  display: grid;
  grid-template-columns: 140px minmax(0, var(--reading-measure));
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.case-v2 .overview-row:first-child{ border-top: 0; padding-top: 4px; }
.case-v2 .case-overview{ max-width: none; }
.case-v2 .overview-label{
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--acc);
}
.case-v2 .case-overview .overview-row p{ margin: 0; }
@media (max-width: 600px) {
  .case-v2 .overview-row{ grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}
.case-v2 .case .prose > .eyebrow:first-child{ margin-top: 0; }
.case-v2 .next-validation ul{ margin: 0; padding: 0; list-style: none; }
.case-v2 .next-validation li{
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--reading-body);
}
.case-v2 .next-validation li:last-child{ margin-bottom: 0; }
.case-v2 .next-validation li strong{ font-weight: 600; color: var(--ink); }

/* V2 processed screenshots: the image carries its own focus; no panel, labels or crop tricks. */
.case-v2 .fig-shot{ margin: 40px 0 0; }
.case-v2 .fig-shot figcaption{ margin-top: 14px; }
.case-v2 .fig-shot .zoom{ display: block; }
.case-v2 .fig-shot img{ display: block; width: 100%; height: auto; border: 1px solid var(--fig-border); border-radius: 6px; }
.case-v2{ --fig-border: #CFCBBF; }
.case-v2 .fig-narrow{ max-width: var(--reading-measure); }
.case-v2 .story-strip{ margin: 40px 0 0; }
.case-v2 .story-strip .strip-row{ display: grid; gap: 24px; }
.case-v2 .story-strip .strip-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-v2 .story-strip .strip-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc((100% - 48px) * 2 / 3 + 24px); }
.case-v2 .prose .story-strip .strip-k{ margin: 0 0 10px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.case-v2 .prose .story-strip .strip-row + .strip-k{ margin-top: 40px; }
.case-v2 .story-strip .zoom{ display: block; }
/* a small name tag on the first picture of a person who is hard to tell apart by dress alone */
.case-v2 .story-strip .tagged .zoom{ position: relative; }
.case-v2 .story-strip .who-tag{ position: absolute; transform: translateX(-50%); padding: 3px 8px 4px; border-radius: 4px; background: rgba(255,255,255,.9); color: #2E3A3A; font-size: 12px; line-height: 1.2; font-weight: 500; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 2px 6px rgba(30,50,50,.10), 0 0 0 1px rgba(30,50,50,.06); pointer-events: none; }
.case-v2 .story-strip img{ display: block; width: 100%; height: auto; border: 1px solid var(--fig-border); border-radius: 6px; }
.case-v2 .prose .story-strip p{ margin: 12px 0 0; font-size: 16px; line-height: 1.45; font-weight: 400; color: var(--ink); }
@media (max-width: 600px) { .case-v2 .story-strip .who-tag{ font-size: 11px; padding: 3px 8px 4px; left: 6px !important; bottom: 6px !important; transform: none; } .case-v2 .story-strip .strip-row{ gap: 20px 14px; } .case-v2 .story-strip .strip-3, .case-v2 .story-strip .strip-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } .case-v2 .prose .story-strip p{ font-size: 14px; } }
.case-v2 .fig-bare img{ border: 0; border-radius: 10px; }
/* Text inside figures, one scale for all of them: title 20/600, item heading 16/600, item text 16/400, label 14/400 muted. */
/* Thought panel: the designer's questions as cards beside a small cut-out figure. */
.case-v2 .think-panel{ --tp-bg: #F3F1EA; --tp-card: #FFFFFF; margin: 40px 0 0; max-width: var(--reading-measure); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: end; padding: 28px 32px 0; background: var(--tp-bg); border-radius: 8px; }
.case-v2 .prose .fig-title{ margin: 0 0 16px; max-width: var(--reading-measure); font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.case-v2 .prose .tp-title{ grid-column: 1 / -1; margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.case-v2 .tp-cards{ align-self: center; display: grid; gap: 10px; padding-bottom: 28px; }
.case-v2 .prose .tp-card{ margin: 0; padding: 10px 14px; background: var(--tp-card); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; line-height: 1.45; font-weight: 400; color: var(--ink); }
.case-v2 .tp-card span{ display: block; margin-bottom: 2px; font-size: 14px; font-weight: 400; color: var(--mut); }
.case-v2 .tp-fig{ display: block; height: calc(var(--h) / 1120 * 300px); width: auto; }
.case-v2 .tp-steps{ list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: tp; }
.case-v2 .prose .tp-steps li{ margin: 0; padding-left: 26px; position: relative; font-size: 16px; font-weight: 400; color: var(--ink); counter-increment: tp; }
.case-v2 .tp-steps li::before{ content: counter(tp); position: absolute; left: 0; top: 0; width: 18px; text-align: center; font-size: 14px; color: var(--mut); font-variant-numeric: tabular-nums; }
.case-v2 .prose .tp-again{ display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 400; color: var(--ink); }
.case-v2 .tp-again svg{ flex: none; color: var(--mut); margin-left: 1px; }
/* manual testing as a loop: four steps in a row, and a line that runs back to the start */
.case-v2 .prose .tp-loop{ padding: 18px 16px 16px; }
.case-v2 .tl-steps{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-v2 .prose .tl-steps li{ margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; line-height: 1.3; color: var(--ink); }
.case-v2 .tl-steps i{ position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tp-bg); color: var(--ink); }
.case-v2 .tl-steps li + li::before{ content: ""; position: absolute; top: 22px; right: calc(50% + 22px); width: calc(100% - 44px); border-top: 1.5px solid var(--line); }
.case-v2 .tl-steps li + li::after{ content: ""; position: absolute; top: 18px; left: calc(50% - 31px); border: 4.5px solid transparent; border-left: 6px solid var(--mut); }
.case-v2 .prose .tl-back{ position: relative; margin: 8px 12.5% 0; height: 22px; border: 1.5px solid var(--mut); border-top: 0; border-radius: 0 0 12px 12px; }
.case-v2 .tl-back::before{ content: ""; position: absolute; left: -6px; top: -8px; border: 5px solid transparent; border-bottom: 7px solid var(--mut); }
.case-v2 .tl-back span{ position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: 14px; line-height: 20px; color: var(--ink); }
.case-v2 .prose .tp-loop{ padding-bottom: 40px; }
/* thought dots: the questions float out of her head, as in the interview slides */
.case-v2 .tp-think .tp-cards{ position: relative; }
.case-v2 .tp-think .tp-cards::before, .case-v2 .tp-think .tp-cards::after{ content: ""; position: absolute; border-radius: 50%; background: var(--tp-card); border: 1px solid var(--line); }
.case-v2 .tp-think .tp-cards::before{ width: 14px; height: 14px; right: -22px; top: 38%; }
.case-v2 .tp-think .tp-cards::after{ width: 8px; height: 8px; right: -36px; top: 46%; }
@media (max-width: 600px) { .case-v2 .tp-think .tp-cards::before, .case-v2 .tp-think .tp-cards::after{ display: none; } }
@media (max-width: 600px) { .case-v2 .prose .fig-title{ font-size: 18px; } }
@media (max-width: 600px) { .case-v2 .think-panel{ grid-template-columns: 1fr; padding: 20px 18px 0; gap: 14px; } .case-v2 .prose .tp-title{ font-size: 18px; } .case-v2 .tp-cards{ padding-bottom: 0; } .case-v2 .tp-fig{ justify-self: end; height: calc(var(--h) / 1120 * 200px); } }
.case-v2 .habits{ margin: 40px 0 0; }
.case-v2 .habits-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case-v2 .habits-grid .zoom{ display: block; }
.case-v2 .habits-grid img{ display: block; width: 100%; height: auto; border: 1px solid var(--fig-border); border-radius: 6px; }
.case-v2 .prose .habits-grid p{ margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.case-v2 .habits-grid p span{ display: block; font-size: 14px; color: var(--mut); }
.case-v2 .habits-grid p b{ display: block; margin-top: 2px; font-weight: 400; }
.case-v2 .hb-img{ position: relative; }
.case-v2 .prose .habits-grid .hb-say{ position: absolute; top: 5%; left: 5%; right: 5%; margin: 0; padding: 8px 12px; background: #fff; color: #14161A; border: 1px solid #E3E0D7; border-radius: 10px; font-size: 14px; line-height: 1.35; box-shadow: 0 2px 8px rgba(20,22,26,.08); pointer-events: none; }
.case-v2 .hb-say::after{ content: ""; position: absolute; bottom: -7px; right: 26%; width: 12px; height: 12px; background: #fff; border-right: 1px solid #E3E0D7; border-bottom: 1px solid #E3E0D7; transform: rotate(45deg); }
@media (max-width: 700px) { .case-v2 .habits-grid{ grid-template-columns: 1fr; gap: 28px; } .case-v2 .habits-grid img{ max-width: 420px; } }
.case-v2 .case-head .fig-shot{ margin-top: 44px; }
.case-v2 .fig-rec{ display: block; width: 100%; height: auto; border: 1px solid var(--fig-border); border-radius: 6px; background: #F7F5F0; }
.case-v2 .fig-rec-steps{ list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.case-v2 .fig-rec-steps li{ position: relative; padding-top: 12px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); opacity: .38; transition: opacity .35s ease; }
.case-v2 .fig-rec-steps li::before, .case-v2 .fig-rec-steps li::after{ content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.case-v2 .fig-rec-steps li::before{ right: 0; background: var(--line); }
.case-v2 .fig-rec-steps li::after{ width: calc(var(--p, 0) * 100%); background: var(--acc); }
.case-v2 .fig-rec-steps li.on{ opacity: 1; color: var(--acc); }
@media (max-width: 600px) { .case-v2 .fig-rec-steps{ grid-template-columns: 1fr 1fr; gap: 14px 16px; } .case-v2 .fig-rec-steps li{ font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .case-v2 .fig-rec-steps li{ transition: none; } }
.case-v2 .fig-compare-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.case-v2 .prose .fig-compare .fig-col-label, .case-v2 .fig-col-label{ margin: 0 0 10px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.case-v2 .fig-compare img{ display: block; width: 100%; height: auto; border: 1px solid var(--fig-border); border-radius: 6px; }
@media (max-width: 700px) { .case-v2 .fig-compare-grid{ grid-template-columns: 1fr; gap: 24px; } }

/* V2 opening, round 4: title, facts and summaries share one 3-column grid; two text sizes only. */
.case-v2 .case-head h1{ max-width: none; font-size: clamp(32px, 3vw, 42px); }
.case-v2 .case-head .case-facts,
.case-v2 .case-head .case-overview{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.case-v2 .case-head .case-facts{ margin-top: 32px; padding-top: 0; border-top: 0; }
.case-v2 .case-head .case-facts > div:last-child{ grid-column: auto; }
.case-v2 .case-head .hero-visual{ margin-top: 40px; }
.case-v2 .case-head .hero-visual img{ display: block; width: 100%; height: auto; border: 1px solid var(--fig-border); border-radius: 6px; }
.case-v2 .case-head .case-overview{ margin-top: 40px; }
.case-v2 .case-head .overview-row{ display: block; padding: 0; border: 0; }
.case-v2 .case-head .overview-label{ margin: 0 0 8px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--acc); }
.case-v2 .case-overview .overview-row p{ font-size: 17px; line-height: 1.6; color: var(--reading-body); }
.case-v2 .case-overview .overview-row p.overview-sum{ margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.case-v2 .case-head .fig-video{ margin-top: 48px; }
@media (max-width: 900px) {
  .case-v2 .case-head .case-overview{ grid-template-columns: 1fr; gap: 28px; }
  .case-v2 .case-head .case-facts{ grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .case-v2 .case-head .case-facts > div:nth-child(2){ grid-column: 1 / -1; order: 3; }
}
@media (max-width: 600px) {
  .case-v2 .case-head .hero-visual{ margin-top: 28px; }
}

/* V2 type system: seven styles on the whole page.
   1 H1 · 2 H2 · 3 H3 · 4 label (sans, 14px semibold, accent) · 5 body 18 (bold for leads)
   6 pull quote (one) · 7 small 15 (captions, fact values, recording steps, column labels) */
.case-v2 .project-kicker,
.case-v2 .case .prose > .eyebrow,
.case-v2 .case-head .overview-label,
.case-v2 .case-head .case-facts dt,
.case-v2 .release-summary h3,
.case-v2 .next-validation h3{
  font-family: inherit;
  text-transform: none;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--acc);
}
.case-v2 .case-head .case-facts dt{ margin-bottom: 6px; }
.case-v2 .case-head .overview-label{ margin-bottom: 8px; }
.case-v2 .case .prose > p:not(.eyebrow),
.case-v2 .case-overview .overview-row p,
.case-v2 .release-summary p,
.case-v2 .next-validation li{ font-size: 18px; line-height: 1.65; color: var(--reading-body); }
.case-v2 .case-overview .overview-row p.overview-sum{ color: var(--ink); }
.case-v2 .case figcaption,
.case-v2 .case-head .case-facts dd,
.case-v2 .case-head .mobile-hint{ font-size: 15px; line-height: 1.55; }
.case-v2 .case figcaption{ color: var(--reading-caption); border: 0; padding-left: 0; }
.case-v2 .case-head .case-facts dd{ color: var(--ink); }
@media (max-width: 600px) {
  .case-v2 .case .prose > p:not(.eyebrow),
  .case-v2 .case-overview .overview-row p,
  .case-v2 .release-summary p,
  .case-v2 .next-validation li{ font-size: 17px; }
}
/* Recording steps: upcoming steps in caption grey (5:1), current step in accent. */
.case-v2 .fig-rec-steps li { opacity: 1; color: var(--reading-caption); transition: color .35s ease; }
.case-v2 .fig-rec-steps li.on { color: var(--acc); }
.case-v2 .case-overview .overview-row p.overview-label { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--acc); margin: 0 0 8px; }

/* V2 opening, round 5: a rule under the title; the three summaries stack in the reading column. */
.case-v2 .case-head .case-facts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-v2 .case-head .case-overview { grid-template-columns: 1fr; max-width: var(--reading-measure); gap: 32px; margin-top: 44px; }
/* Overview as one block: thin rules between the three items, tighter inner spacing. */
.case-v2 .case-head .case-overview { gap: 0; }
.case-v2 .case-head .overview-row { padding: 20px 0; border-top: 1px solid var(--line); }
.case-v2 .case-head .overview-row:first-child { border-top: 0; padding-top: 0; }
.case-v2 .case-head .overview-row:last-child { padding-bottom: 0; }
.case-v2 .case-overview .overview-row p.overview-label { margin: 0 0 2px; }
.case-v2 .case-overview .overview-row p.overview-sum { margin: 0 0 2px; }
.case-v2 .case-head .case-facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 72px; }
@media (max-width: 900px) { .case-v2 .case-head .case-facts { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.case-v2 .case-overview .overview-row p:not(.overview-label):not(.overview-sum) { line-height: 1.5; }

/* Comparison stacked full width, for screens that are unreadable at half width. */
.case-v2 .fig-compare--stack .fig-compare-grid { grid-template-columns: 1fr; gap: 32px; }

/* Grid of small exploration frames: three across, two on mobile. */
.case-v2 .fig-grid3__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.case-v2 .fig-grid3 .fig-col-label { margin: 0 0 8px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
@media (max-width: 700px) { .case-v2 .fig-grid3__cells { grid-template-columns: 1fr 1fr; gap: 18px 14px; } }

/* Rhythm, shared by every case page. Three levels of space:
   chapter (label + 40px title) opens after a small centred three-dot divider in a wide gap;
   section (28px h3) opens after a medium gap with no divider;
   inside a section, figures and key sentences sit close to their text. */
.case-v2 .case .prose > .eyebrow{ margin-top: 88px; }
.case-v2 .case .prose > .eyebrow::before{
  content: ""; display: block; width: 42px; height: 4px; margin: 0 0 88px calc(min(100%, var(--reading-measure)) / 2 - 21px);
  background: radial-gradient(circle, var(--mut) 1.8px, transparent 2.3px) 0 0 / 14px 4px repeat-x;
}
.case-v2 .case .prose > .eyebrow:first-child{ margin-top: 0; }
.case-v2 .case .prose > .eyebrow:first-child::before{ display: none; }
.case-v2 .case .prose > h2{ font-size: 40px; line-height: 1.2; }
.case-v2 .case .prose > h3{ font-size: 28px; line-height: 1.25; font-weight: 600; margin: 72px 0 16px; text-wrap: pretty; }
.case-v2 .case .prose > figure{ margin: 32px 0 40px; }
.case-v2 .case .prose > h3 + figure{ margin-top: 20px; }
.case-v2 .prose blockquote{ margin: 40px 0; font-size: clamp(21px, 2vw, 24px); }
@media (max-width: 900px) {
  .case-v2 .case .prose > .eyebrow{ margin-top: 64px; }
  .case-v2 .case .prose > .eyebrow::before{ margin-bottom: 64px; }
  .case-v2 .case .prose > h2{ font-size: 34px; }
}
@media (max-width: 600px) {
  .case-v2 .case .prose > .eyebrow{ margin-top: 52px; }
  .case-v2 .case .prose > .eyebrow::before{ margin-bottom: 52px; }
  .case-v2 .case .prose > h2{ font-size: 28px; }
  .case-v2 .case .prose > h3{ font-size: 23px; margin-top: 56px; }
  .case-v2 .case .prose > figure{ margin: 28px 0 32px; }
  .case-v2 .prose blockquote{ margin: 32px 0; }
}

/* Step player: frames stacked in one stage, crossfaded; labels reuse the recording step style. */
.case-v2 .fs-stage{ position: relative; border: 1px solid var(--fig-border); border-radius: 6px; overflow: hidden; background: #F7F5F0; }
.case-v2 .fs-stage img{ display: block; width: 100%; height: auto; opacity: 0; transition: opacity .35s ease; }
.case-v2 .fs-stage img + img{ position: absolute; inset: 0; }
.case-v2 .fs-stage img.on{ opacity: 1; }
.case-v2 .fs-labels button{ all: unset; cursor: pointer; display: block; }
.case-v2 .fs-labels button:focus-visible{ outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .case-v2 .fs-stage img{ transition: none; } }

/* Lightbox: full-screen view for figure images (case-lightbox.js). Fit first; select to see actual size. */
.lightbox{ position: fixed; inset: 0; z-index: 100; background: rgba(20,22,26,.88); display: flex; }
.lightbox[hidden]{ display: none; }
.lightbox-scroll{ flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; }
.lightbox-scroll img{ display: block; max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 4px; cursor: zoom-in; background: #fff; }
.lightbox.is-actual .lightbox-scroll{ display: block; }
.lightbox.is-actual .lightbox-scroll img{ max-width: none; max-height: none; width: auto; margin: 0 auto; cursor: zoom-out; }
.lightbox-close{ position: absolute; top: 12px; right: 16px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer; }
.lightbox-close:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
html.lightbox-open{ overflow: hidden; }
.case-v2 .fs-stage{ cursor: zoom-in; }

/* Tagged screen: a short label sits on the top edge of each highlighted part, so the screen explains itself. */
.case-v2 .fig-tagged .fig-col-label{ margin: 20px 0 8px; }
.case-v2 .fig-tagged .fig-title + .fig-col-label{ margin-top: 0; }
.case-v2 .shot-tags{ position: relative; }
.case-v2 .shot-tags img{ display: block; width: 100%; height: auto; border: 1px solid var(--fig-border); border-radius: 6px; }
.case-v2 .shot-tag{ position: absolute; margin-left: 10px; transform: translateY(-50%); padding: 3px 10px; border-radius: 999px; background: #145C61; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 6px rgba(20,22,26,.18); }
@media (max-width: 700px) { .case-v2 .shot-tag{ margin-left: 4px; padding: 1px 7px; font-size: 11px; } }
/* Plain list in running text: body size, a short accent dash, no indent beyond the dash. */
.case-v2 .prose > .plain-list{ max-width: var(--reading-measure); margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.case-v2 .prose .plain-list li{ position: relative; margin: 0; padding-left: 22px; font-size: 18px; line-height: 1.6; color: var(--reading-body); }
.case-v2 .prose .plain-list li::before{ content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 2px; background: var(--acc); }
.case-v2 .prose .plain-list strong{ font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .case-v2 .prose .plain-list li{ font-size: 17px; } }

.case-v2 .fig-compare-zoom{ margin-top: 24px; }
.case-v2 .fig-compare .shot-tags img{ border: 1px solid var(--fig-border); border-radius: 6px; }

/* Paired player: two screens change together; column labels above, tags shown only on their step. */
.case-v2 .fig-steps-pair .fs-stage{ border: 0; border-radius: 0; background: transparent; }
.case-v2 .fs-cols{ display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.7%; }
.case-v2 .fs-cols .fig-col-label{ margin: 0 0 8px; }
.case-v2 .fs-tag{ opacity: 0; transition: opacity .25s ease; }
.case-v2 .fs-stage[data-step="0"] .fs-tag[data-step="0"], .case-v2 .fs-stage[data-step="1"] .fs-tag[data-step="1"]{ opacity: 1; }
.case-v2 .fig-steps-pair .fs-stage img{ border: 0; border-radius: 0; }

/* Paired recording: column labels over the two halves; step labels are buttons that seek. */
.case-v2 .fig-video-pair .fs-cols{ column-gap: 1.8%; }
.case-v2 .fig-rec-steps button{ all: unset; cursor: pointer; display: block; }
.case-v2 .fig-rec-steps button:focus-visible{ outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 2px; }
.case-v2 .fig-video-pair .fig-rec-steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Paired recording, three beats: native controls off; short tags name each half; a small pause button. */
.case-v2 .vstage{ position: relative; }
.case-v2 .vstage video{ display: block; width: 100%; height: auto; background: #FCFBF7; cursor: pointer; }
.case-v2 .vstage::after{ content: ""; position: absolute; top: 0; bottom: 0; left: 48.39%; width: 3.23%; background: var(--paper); pointer-events: none; }
.case-v2 .vframe{ position: absolute; top: 0; bottom: 0; width: 48.39%; border: 1px solid var(--fig-border); border-radius: 6px; pointer-events: none; }
.case-v2 .vframe-l{ left: 0; } .case-v2 .vframe-r{ right: 0; }
.case-v2 .vtag{ position: absolute; top: -34px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: #145C61; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.case-v2 .vtag-l{ right: 51.62%; } .case-v2 .vtag-r{ right: 0; }
.case-v2 .vtag.on{ opacity: 1; }
.case-v2 .vpause{ position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 4px 12px; border: 0; border-radius: 999px; background: rgba(20,22,26,.6); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.case-v2 .vpause:focus-visible{ outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 600px) { .case-v2 .vtag{ top: -28px; padding: 1px 7px; font-size: 11px; } }

/* Checkpoint flow: her spec to the draft along one track; the three stops lift a small card above the line. */
/* One 16-column grid: endpoints and six checkpoints each take two columns, so every node sits on an even step;
   each card spans the four columns centred on its stop, so its stem drops straight onto the ring. */
.case-v2 .cpf{ --line-y: 22px; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); padding-top: 4px; }
.case-v2 .cpf-card{ grid-row: 1; position: relative; display: flex; flex-direction: column; align-items: flex-start; margin: 0 6px 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--plate); box-shadow: 0 4px 14px rgba(20,22,26,.05); }
.case-v2 .prose .cpf-card p{ margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.case-v2 .cpf-tap{ margin-top: auto; padding: 3px 10px; border-radius: 6px; background: var(--a-panel); font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.case-v2 .cpf-card::after{ content: ""; position: absolute; left: 50%; top: 100%; height: calc(24px + var(--line-y) - 7px); border-left: 1.5px dashed var(--faint); }
.case-v2 .cpf-k{ display: none; font-size: 13px; font-weight: 600; color: var(--acc); margin-bottom: 4px; }
.case-v2 .cpf-track{ grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; position: relative; }
.case-v2 .cpf-track::before{ content: ""; position: absolute; left: 6.25%; right: 6.25%; top: calc(var(--line-y) - 1px); height: 2px; background: var(--acc); opacity: .45; }
.case-v2 .cpf-n{ position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: calc(var(--line-y) * 2 + 10px); font-size: 14px; line-height: 1.3; text-align: center; color: var(--mut); }
.case-v2 .cpf-dot{ position: absolute; left: 50%; top: var(--line-y); width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--acc); }
.case-v2 .cpf-stop{ font-weight: 600; color: var(--acc); }
.case-v2 .cpf-stop .cpf-dot{ width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--acc); box-sizing: border-box; }
.case-v2 .cpf-ic{ position: absolute; left: 50%; top: var(--line-y); transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--plate); border: 1px solid var(--line); color: var(--acc); font-style: normal; }
.case-v2 .cpf-end{ font-weight: 600; color: var(--acc); }
.case-v2 .cpf-end-r .cpf-ic{ background: #145C61; border-color: #145C61; color: #fff; }
@media (max-width: 760px) {
  .case-v2 .cpf{ grid-template-columns: 1fr; }
  .case-v2 .cpf-card{ grid-row: auto; grid-column: 1 !important; margin: 0 0 12px; }
  .case-v2 .cpf-card::after{ display: none; }
  .case-v2 .cpf-k{ display: block; }
  .case-v2 .cpf-track{ grid-row: 1; grid-column: 1; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-bottom: 16px; }
  .case-v2 .cpf-track > *{ grid-column: auto !important; }
  .case-v2 .cpf-end{ display: none; }
  .case-v2 .cpf-track{ row-gap: 14px; }
  .case-v2 .cpf-track::before{ display: none; }
  .case-v2 .cpf-n{ padding-top: 20px; }
  .case-v2 .cpf-dot{ top: 6px; }
}
.case-v2 .fq-focus{ margin-left: -6px !important; padding: 4px 6px 4px 20px !important; border-radius: 6px; background: var(--a-panel); }
.case-v2 .four-q ul li.fq-focus::before{ left: 8px; top: 1em; }
/* Timeline: icon nodes on one line; the first and last steps carry the point, the middle three are quiet. */
.case-v2 .fig-stand{ margin-top: 32px; }
.case-v2 .stand-line{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; position: relative; }
.case-v2 .stand-line::before{ content: ""; position: absolute; left: 18px; right: calc(20% - 34px); top: 18px; height: 2px; background: var(--acc); opacity: .35; }
.case-v2 .prose .stand-line li{ position: relative; margin: 0; padding-top: 50px; font-size: 16px; line-height: 1.4; color: var(--reading-body); }
.case-v2 .sl-ic{ position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-sizing: border-box; background: var(--paper); border: 1.5px solid var(--line); color: var(--mut); font-style: normal; }
.case-v2 .sl-key .sl-ic{ background: #145C61; border-color: #145C61; color: #fff; }
.case-v2 .sl-next .sl-ic{ background: var(--paper); border: 2px dashed var(--acc); color: var(--acc); }
.case-v2 .sl-when{ display: block; font-size: 14px; color: var(--mut); }
.case-v2 .stand-line b{ display: block; margin-top: 2px; font-weight: 600; color: var(--mut); }
.case-v2 .sl-key .sl-when{ color: var(--acc); font-weight: 600; }
.case-v2 .sl-key b{ color: var(--ink); }
.case-v2 .sl-d{ display: block; margin-top: 6px; font-size: 15px; color: var(--reading-body); }
@media (max-width: 900px) {
  .case-v2 .stand-line{ grid-template-columns: 1fr; gap: 20px; }
  .case-v2 .stand-line::before{ display: none; }
  .case-v2 .prose .stand-line li:not(:last-child)::after{ content: ""; position: absolute; left: 17px; top: 36px; bottom: -20px; width: 2px; background: var(--acc); opacity: .35; }
  .case-v2 .prose .stand-line li{ padding: 6px 0 0 52px; min-height: 36px; }
}
/* On this page: one quiet row of section links under the overview, shared by the case pages. */
.case-v2 .case-toc{ margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.case-v2 .case-toc-label{ margin: 0; font-size: 14px; font-weight: 400; color: var(--mut); }
.case-v2 .case-toc ol{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.case-v2 .case-toc li{ font-size: 15px; line-height: 1.5; }
/* a faint middle dot between chapter names; no numbers, since the chapters themselves are not numbered */
.case-v2 .case-toc li + li::before{ content: "\00B7"; margin: 0 12px; color: var(--faint); }
.case-v2 .case-toc a{ color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.case-v2 .case-toc a:hover{ color: var(--acc); text-decoration-color: currentColor; }
.case-v2 .case-toc a:focus-visible{ outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 600px) { .case-v2 .case-toc{ gap: 6px 12px; } .case-v2 .case-toc li{ font-size: 14px; } .case-v2 .case-toc ol{ gap: 4px 16px; } .case-v2 .case-toc li + li::before{ content: none; } }

/* Four questions: one row of four columns, question first, then what was made; open items marked. */
.case-v2 .prose > .four-q{ list-style: none; margin: 32px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.case-v2 .prose .four-q > li{ margin: 0; padding-top: 14px; border-top: 2px solid var(--acc); font-size: 16px; line-height: 1.4; color: var(--ink); }
.case-v2 .fq-k{ display: block; font-size: 14px; font-weight: 600; color: var(--acc); }
.case-v2 .four-q b{ display: block; margin: 2px 0 10px; font-weight: 600; }
.case-v2 .four-q ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.case-v2 .prose .four-q ul li{ margin: 0; padding-left: 14px; position: relative; font-size: 15px; line-height: 1.4; color: var(--reading-body); }
.case-v2 .four-q ul li::before{ content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.case-v2 .four-q ul li.fq-open::before{ background: transparent; border: 1.5px solid var(--faint); box-sizing: border-box; }
.case-v2 .four-q em{ font-style: normal; font-size: 13px; color: var(--faint); }
@media (max-width: 900px) { .case-v2 .prose > .four-q{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .case-v2 .prose > .four-q{ grid-template-columns: 1fr; } }
.case-v2 .four-q ul a{ color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.case-v2 .four-q ul a:hover{ color: var(--acc); }

/* Eval cases: one compact table, a row per failure kind. */
.case-v2 .ev-table{ width: 100%; max-width: var(--reading-measure); border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.case-v2 .ev-table th, .case-v2 .ev-table td{ padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.case-v2 .ev-table thead th{ padding-top: 0; font-size: 14px; font-weight: 600; color: var(--mut); border-bottom-color: var(--acc); }
.case-v2 .ev-table tbody th{ width: 18%; font-weight: 600; color: var(--acc); }
.case-v2 .ev-table td{ color: var(--reading-body); }
.case-v2 .ev-table td:last-child{ width: 44%; color: var(--ink); }
@media (max-width: 600px) {
  .case-v2 .ev-table thead{ display: none; }
  .case-v2 .ev-table tr{ display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .case-v2 .ev-table th, .case-v2 .ev-table td{ display: block; width: auto !important; padding: 2px 0; border: 0; }
}

/* Hero facts: four columns at desktop (product, role, speed, outcome). */
.case-v2 .case-head .case-facts{ grid-template-columns: 1.1fr 1fr 0.8fr 1.3fr; column-gap: 40px; }
@media (max-width: 900px) { .case-v2 .case-head .case-facts{ grid-template-columns: 1fr 1fr; column-gap: 24px; } .case-v2 .case-head .case-facts > div:nth-child(2){ grid-column: auto; order: 0; } }
@media (max-width: 600px) { .case-v2 .case-head .case-facts{ grid-template-columns: 1fr; } }

/* Engineering demo, animated: a 1600 x 737 low-fi screen scaled to the figure width (--k set by the page script).
   The default state is the finished frame, so it reads the same with no script or reduced motion. */
.case-v2 .ea-box{ position: relative; width: 100%; aspect-ratio: 2400 / 1105; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px rgba(22,25,29,.08); background: #fff; }
.case-v2 .ea{ position: absolute; left: 0; top: 0; width: 1600px; height: 737px; transform: scale(var(--k, .7)); transform-origin: 0 0; display: grid; grid-template-columns: 26% minmax(0, 1fr); padding-top: 36px; background: #fff; color: #1F242B; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.case-v2 .ea p{ margin: 0; }
.case-v2 .ea-win{ position: absolute; left: 0; right: 0; top: 0; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #EEF0F2; border-bottom: 1px solid #E1E4E8; }
.case-v2 .ea-win i{ width: 10px; height: 10px; border-radius: 50%; background: #D3D7DC; }
.case-v2 .ea-chat{ display: flex; flex-direction: column; min-height: 0; background: #F1F3F5; border-right: 1px solid #E1E4E8; }
.case-v2 .ea-head{ display: flex; align-items: center; height: 66px; margin: 0 24px; border-bottom: 1px solid #E1E4E8; font-size: 21px; font-weight: 600; }
.case-v2 .ea-msgs{ flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 20px 24px; overflow: hidden; }
.case-v2 .ea-m{ padding: 15px 17px; border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 10px; font-size: 19px; line-height: 1.35; }
.case-v2 .ea-u{ background: #E2E6EA; margin-left: 40px; }
.case-v2 .ea .bar{ display: block; height: 12px; border-radius: 6px; background: #DDE1E6; }
.case-v2 .ea .w90{ width: 90%; } .case-v2 .ea .w70{ width: 70%; } .case-v2 .ea .w40{ width: 40%; }
.case-v2 .ea-dots{ flex-direction: row; gap: 7px; width: fit-content; display: none; }
.case-v2 .ea-dots i{ width: 9px; height: 9px; border-radius: 50%; background: #9AA1AA; animation: ea-dot 1s infinite; }
.case-v2 .ea-dots i:nth-child(2){ animation-delay: .15s; } .case-v2 .ea-dots i:nth-child(3){ animation-delay: .3s; }
.case-v2 .ea-input{ position: relative; min-height: 56px; margin: 0 24px 24px; padding: 15px 16px; border: 1px solid #D5DAE0; border-radius: 9px; background: #fff; font-size: 18px; line-height: 1.35; transition: border-color .2s; }
.case-v2 .ea-hint{ color: #A3AAB3; }
.case-v2 .ea-typed{ display: none; }
.case-v2 .ea-main{ min-width: 0; display: flex; flex-direction: column; min-height: 0; padding: 20px 30px 24px; }
.case-v2 .ea-top{ display: flex; align-items: center; gap: 13px; height: 54px; }
.case-v2 .ea-top b{ font-size: 30px; font-weight: 600; }
.case-v2 .ea-top .sp{ flex: 1; }
.case-v2 .ea-top .btn{ display: grid; place-items: center; width: 92px; height: 37px; border: 1.5px solid #C6CCD3; border-radius: 7px; }
.case-v2 .ea-top .btn i{ width: 46px; height: 8px; border-radius: 4px; background: #DDE1E6; }
.case-v2 .ea-top .btn.pri{ background: #1F242B; border-color: #1F242B; }
.case-v2 .ea-top .btn.pri i{ background: #5E646C; }
.case-v2 .ea-label{ margin: 14px 0 10px !important; font-size: 20px; font-weight: 600; color: #5B6168; }
.case-v2 .ea-code{ position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid #D5DAE0; border-radius: 9px; padding-top: 10px; }
.case-v2 .ea-row{ display: flex; height: 25px; align-items: center; font: 500 15px/25px ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; overflow: hidden; }
.case-v2 .ea-row .n{ flex: none; width: 50px; padding-right: 15px; text-align: right; color: #8A919A; font-variant-numeric: tabular-nums; }
.case-v2 .ea-row code{ font: inherit; color: #1F242B; background: none; padding: 0; }
.case-v2 .ea-row .s{ color: #23683F; } .case-v2 .ea-row .k{ color: #7A2FA8; } .case-v2 .ea-row .p{ color: #0B4F86; }
/* playing: the script sets these states; .is-done (the default) shows everything */
.case-v2 .ea:not(.is-done) .ea-u, .case-v2 .ea:not(.is-done) .ea-reply{ display: none; }
.case-v2 .ea.is-sent .ea-u{ display: flex; animation: ea-sent .3s ease-out; }
.case-v2 .ea.is-thinking .ea-dots{ display: flex; }
.case-v2 .ea.is-replied .ea-reply{ display: flex; animation: ea-in .35s ease-out; }
.case-v2 .ea.is-typing .ea-input{ border-color: #9FC4C2; }
.case-v2 .ea.is-typing .ea-hint, .case-v2 .ea.is-sending .ea-hint{ display: none; }
.case-v2 .ea.is-typing .ea-typed, .case-v2 .ea.is-sending .ea-typed{ display: block; }
.case-v2 .ea.is-sending .ea-typed{ transform: translateY(-12px); opacity: 0; transition: transform .25s ease-in, opacity .25s ease-in; }
.case-v2 .ea:not(.is-done) .ea-row:not(.on) .n, .case-v2 .ea:not(.is-done) .ea-row:not(.on) code{ opacity: 0; }
@keyframes ea-in{ from{ transform: translateY(8px); } to{ transform: none; } }
@keyframes ea-sent{ from{ transform: translateY(34px); } to{ transform: none; } }
@keyframes ea-dot{ 0%, 100%{ opacity: .3; } 50%{ opacity: 1; } }

/* Centred reading column (2026-10-26). Everything you read sits in one 820px column, centred in the 1120 frame
   and left-aligned inside it; wide figures keep the full frame, centred on the same axis.
   Narrow blocks (think panels, narrow shots, the eval table) live in the column; every other figure is wide. */
.case-v2 .case{ --col-in: max(0px, (100% - var(--reading-measure)) / 2); }
.case-v2 .case .case-head > :not(.hero-visual),
.case-v2 .case .prose > :is(p, h2, h3, blockquote, ul, ol, div, table, .think-panel, .fig-narrow, .fig-evals){
  margin-left: var(--col-in); margin-right: var(--col-in); max-width: none; }
.case-v2 .case .prose > figure:not(.think-panel, .fig-narrow, .fig-evals) > .fig-title{ margin-left: var(--col-in); margin-right: var(--col-in); max-width: none; }
.case-v2 .case .prose > .eyebrow::before{ margin-left: calc(50% - 21px); }
/* the page index needs a little more than the column; it starts on the column's edge and runs right */
.case-v2 .case .case-head > .case-toc{ margin-right: 0; }
/* the next-case link closes the reading column */
.case-v2 .case > .case-return{ margin-left: var(--col-in); margin-right: var(--col-in); max-width: none; }
/* below about 1000px the frame is barely wider than the column: one edge, no small step in */
@media (max-width: 1000px) { .case-v2 .case{ --col-in: 0px; } }


/* ============================================================================
   V3 system (2026-11-09): the case pages join the homepage's design canvas.
   Same faces (Schibsted Grotesk, Sora wordmark), same cool editor greys, same nav and footer, light only.
   The canvas language carries three things over, each with a job:
   - the layer tag you clicked on the homepage card opens the case, so the page is recognisably that card;
   - the cover is the selected frame on a canvas, and the project facts are its properties beside it;
   - the chapters stay in reach in a slim bar, the current one marked like the selected row of the layer menu.
   Everything below the opening stays quiet: reading styles keep their sizes and spacing.
   ============================================================================ */
@font-face {
  font-family:"Schibsted Grotesk"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url("/assets/fonts/schibsted-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family:"Schibsted Grotesk"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url("/assets/fonts/schibsted-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face { font-family:"Sora"; font-style:normal; font-weight:700; font-display:swap; src:url("/assets/fonts/sora-wordmark.woff2") format("woff2"); }

body.case-v2{
  color-scheme: light;
  --paper:#F6F7F8; --ink:#16191D; --mut:#5E646C; --faint:#9AA0A8; --line:#E2E5E9; --acc:#145C61; --plate:#FFFFFF;
  --sel:rgba(13,153,255,.20); --select:#0D99FF; --select-soft:#E5F4FF; --select-ink:#0A6FBA; --canvas:#ECEEF1; --grid:#E1E5EA;
  --pop-shadow:0 6px 18px rgba(22,25,29,.10), 0 0 0 1px rgba(22,25,29,.06);
  background: var(--paper); color: var(--mut);
  font-family:"Schibsted Grotesk","Hanken fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.case-v2 .case{ --reading-body:#3F454C; --reading-caption:#5E646C; --a-panel:#ECEEF1; --a-panel-2:#ECEEF1; --a-border:#E2E5E9; --fig-border:#D5D9DE;
  max-width: 1280px; padding: 0 48px; }
.case-v2 .think-panel{ --tp-bg:#ECEEF1; }
.case-v2 .fig-rec, .case-v2 .fs-stage{ background:#F1F3F5; }
.case-v2 .vstage video{ background: var(--paper); }
.case-v2 .prose .habits-grid .hb-say, .case-v2 .hb-say::after{ border-color: var(--line); }
.case-v2 :focus-visible{ outline-color: var(--select); }

/* nav and footer: the homepage's, measure for measure */
.cnav{ max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 24px 48px; color: var(--ink); }
.cbrand{ color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font: 700 19px/1 "Sora",sans-serif; letter-spacing: -0.02em; }
.cbrand img{ width: 26px; height: 30px; }
.clinks{ display: flex; gap: 32px; font-size: 16px; }
.clinks a{ color: inherit; text-decoration: none; }
.clinks a:hover{ text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 5px; }
.cfoot{ max-width: 1184px; margin: 96px auto 0; padding: 32px 0 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.cfoot a{ font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 5px; min-height: 36px; display: inline-flex; align-items: center; }
@media (max-width: 1280px) { .cfoot{ margin-left: 48px; margin-right: 48px; } }

/* headings take the homepage's display voice: heavier, tighter */
.case-v2 .case .prose > h2{ font-weight: 600; letter-spacing: -0.02em; line-height: 1.16; }
.case-v2 .case .prose > h3{ letter-spacing: -0.012em; }
.case-v2 .a-hero{ padding-top: 56px; }

/* Opening: tag and title on the plain page, on the nav's left edge; below them one canvas panel holds the project card
   (facts and cover). The title standing on the canvas edge is the homepage hero's own move and stays there. */
.canvas-bg{ border-radius: 8px; background-color: var(--canvas);
  background-image: linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px); background-size: 16px 16px; }
.case-v2 .case{ --h1: clamp(30px, 3.5vw, 48px); --pad: 48px; }
.case-v2 .case .case-head.a-hero > .case-tag, .case-v2 .case .case-head.a-hero > h1{ margin-left: 0; margin-right: 0; max-width: none; }
.case-v2 .case .case-head > .case-stage{ margin: 32px 0 0; max-width: none; padding: var(--pad); }
.case-v2 .case-tag{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; height: 26px; margin: 0 0 22px; }
.case-v2 .case-tag p{ margin: 0; }
.case-v2 .label{ display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: 6px; background: var(--select-soft); color: var(--ink); font-size: 13px; line-height: 1; font-weight: 400; white-space: nowrap; }
.case-v2 .label svg{ width: 18px; height: 18px; display: block; }
.case-v2 .case-tag .name{ font-size: 14px; line-height: 1.5; color: var(--mut); }
.case-v2 .case .case-head > h1{ margin-top: 0; margin-bottom: 0; font-size: var(--h1); line-height: 1.1; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
/* a two-sentence title breaks between the sentences when each fits on a line */
.case-v2 .case-head h1 .s{ display: inline-block; }
.case-v2 .case-head .case-stage .case-facts{ margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1.1fr 1fr .8fr 1.3fr; gap: 20px 40px; max-width: none;
  text-shadow: 0 0 2px var(--canvas), 2px 0 0 var(--canvas), -2px 0 0 var(--canvas), 0 2px 0 var(--canvas), 0 -2px 0 var(--canvas); }
.case-v2 .case-head .case-stage .case-facts:has(> div:nth-child(3):last-child){ grid-template-columns: 1fr 1.3fr 1fr; max-width: 860px; }
.case-v2 .case-head .case-stage .case-facts > div{ order: 0; grid-column: auto; }
.case-v2 .case-head .case-stage .case-facts dt{ margin: 0 0 2px; }
.case-v2 .case-head .case-stage .case-facts dd{ margin: 0; text-wrap: balance; }
.case-v2 .case-head .case-stage .hero-visual{ margin: 36px 0 0; }
.case-v2 .case-head .case-stage .hero-visual img{ border: 0; border-radius: 8px; box-shadow: 0 0 0 1px rgba(22,25,29,.07); }
@media (max-width: 1000px) {
  .case-v2 .case{ --pad: 32px; }
  .case-v2 .case-head .case-stage .case-facts, .case-v2 .case-head .case-stage .case-facts:has(> div:nth-child(3):last-child){ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .case-v2 .case{ padding: 0 20px; --pad: 16px; --h1: 28px; }
  .cnav{ padding: 20px; } .clinks{ gap: 20px; }
  .cfoot{ margin: 64px 20px 0; }
  .case-v2 .a-hero{ padding-top: 24px; }
  .case-v2 .case-head .case-stage .case-facts{ gap: 14px 20px; }
  .case-v2 .case .case-head > .case-stage{ margin-top: 24px; }
  .case-v2 .case-head .case-stage .hero-visual{ margin-top: 24px; }
}
@media (max-width: 480px) { .case-v2 .case-head .case-stage .case-facts, .case-v2 .case-head .case-stage .case-facts:has(> div:nth-child(3):last-child){ grid-template-columns: 1fr; } }

/* selection handles, shown only on hover: the homepage's cover behaviour */
.case-v2 .sel{ position: absolute; inset: -6px; border: 1.5px solid rgba(13,153,255,.7); pointer-events: none; opacity: 0; transition: opacity .15s; }
.case-v2 .sel i{ position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--select); }
.case-v2 .sel i:nth-child(1){ left: -5px; top: -5px; } .case-v2 .sel i:nth-child(2){ right: -5px; top: -5px; }
.case-v2 .sel i:nth-child(3){ left: -5px; bottom: -5px; } .case-v2 .sel i:nth-child(4){ right: -5px; bottom: -5px; }
/* next case: the same card as on the homepage */
.case-v2 .case-next{ gap: 48px; }
.case-v2 .case-next .nframe{ position: relative; display: block; }
.case-v2 .case-next img{ border: 0; border-radius: 8px; box-shadow: 0 0 0 1px rgba(22,25,29,.07); }
.case-v2 .case-next:hover .sel, .case-v2 .case-next:focus-visible .sel{ opacity: 1; }
.case-v2 .case-next-meta{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.case-v2 .case-next-name{ margin: 0; font-size: 14px; }
.case-v2 .case-next-title{ font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: 0; }
.case-v2 .case-next:hover .case-next-title{ text-decoration-thickness: 2px; text-underline-offset: 6px; }
.case-v2 .case-next-label{ font-size: 17px; color: var(--ink); }
@media (max-width: 700px) { .case-v2 .case-next{ grid-template-columns: 1fr; gap: 20px; } }
/* the one line to take away gets the homepage's highlighter, once per page */
.case-v2 .prose blockquote.principle::before{ display: none; }
.case-v2 .prose blockquote.principle .mark{ padding: 0 10px .16em 8px; margin: 0 -10px 0 -8px; background: url("/assets/home/v4/highlighter-01-mint.svg") 0 100% / 100% 88% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* chapter bar (case-nav.js): appears once the page index has scrolled away */
.case-v2 .prose > h2[id]{ scroll-margin-top: 112px; }
.chapbar{ position: fixed; z-index: 20; left: 0; right: 0; top: 0; background: rgba(246,247,248,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
  transform: translateY(-110%); transition: transform .22s ease; }
.chapbar.on{ transform: none; }
.chapbar-in{ max-width: 1280px; margin: 0 auto; padding: 0 48px; height: 52px; display: flex; align-items: center; gap: 20px; }
.chapbar-home{ flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chapbar-home img{ width: 19px; height: 22px; display: block; }
.chapbar ol{ list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.chapbar ol::-webkit-scrollbar{ display: none; }
.chapbar li a{ display: block; padding: 0 10px; height: 30px; line-height: 30px; border-radius: 6px; font-size: 14px; color: var(--mut); text-decoration: none; white-space: nowrap; }
.chapbar li a:hover{ color: var(--ink); }
.chapbar li a[aria-current]{ background: var(--select-soft); color: var(--select-ink); }
@media (max-width: 700px) {
  .chapbar-in{ padding: 0 12px; height: 48px; gap: 8px; }
  .chapbar-home span{ display: none; }
  .chapbar ol{ margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .chapbar{ transition: none; } }

/* Body figures in the same system (2026-11-09).
   Frames take the homepage cover's edge: 8px corners and a hairline, no drawn border. */
.case-v2 .prose :is(.fig-shot, .story-strip, .habits-grid, .fig-compare, .shot-tags) img,
.case-v2 .prose .fig-rec, .case-v2 .prose .fs-stage, .case-v2 .prose .vframe{ border: 0; border-radius: 8px; box-shadow: 0 0 0 1px rgba(22,25,29,.09); }
/* Pictures that open larger show the zoom cursor; no extra hover frame. */
.case-v2 .case a.zoom{ cursor: zoom-in; }
/* Phones: a three-panel story reads as three rows, picture left and its line beside it, so no panel is left alone. */
@media (max-width: 600px) {
  .case-v2 .story-strip .strip-3{ grid-template-columns: 1fr; gap: 14px; }
  .case-v2 .story-strip .strip-3 > div{ display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 14px; align-items: center; }
  .case-v2 .prose .story-strip .strip-3 p{ margin: 0; font-size: 15px; line-height: 1.4; }
}
/* between phone and desktop the panels are small too: the name tag stays inside its picture */
@media (max-width: 900px) { .case-v2 .story-strip .who-tag{ left: 6px !important; bottom: 6px !important; transform: none; } }

/* 404: the site's type, colours, nav and footer; one line and one link */
.notfound .case-head .nf-code{ margin: 0 0 16px; font-size: 14px; color: var(--mut); }
.notfound .case-head .nf-back{ margin: 28px 0 0; font-size: 16px; }
.notfound .case-head .nf-back a{ color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 5px; }
.notfound.case-v2 .case .case-head.a-hero > *{ margin-left: 0; margin-right: 0; }
.notfound .case-head{ min-height: 40vh; }
