:root {
  --case-night: #042443;
  --case-night-soft: #0a3658;
  --case-ink: #0b2b48;
  --case-blue: #087fb6;
  --case-accent: #31b9c8;
  --case-accent-soft: #d9f1f1;
  --case-paper: #f4f6f3;
  --case-white: #fff;
  --case-muted: #657889;
  --case-line: rgba(11, 54, 86, .14);
  --case-max: 1320px;
  --case-curve: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }

.case-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--case-paper);
  color: var(--case-ink);
  font-family: "Aptos", "Segoe UI Variable", ui-sans-serif, system-ui, sans-serif;
}

.case-page::after {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  content: "";
  opacity: .026;
}

.case-page main { overflow: clip; }

.case-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--case-night);
  color: #fff;
  transform: translateY(-160%);
  transition: transform .45s var(--case-curve);
}

.case-skip:focus { transform: translateY(0); }

.case-eyebrow {
  margin: 0;
  color: var(--case-accent);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.case-hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  padding: clamp(190px, 20vh, 240px) max(6vw, calc((100vw - var(--case-max)) / 2)) clamp(100px, 11vh, 140px);
  align-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 44%, rgba(25, 116, 159, .18), transparent 30%),
    linear-gradient(90deg, rgba(2, 27, 51, .98) 0%, rgba(3, 38, 67, .95) 38%, rgba(3, 39, 68, .68) 61%, rgba(3, 33, 58, .24) 100%),
    url("../assets/case-studies/case-hero-production-team.png") 66% center / cover no-repeat;
  color: #fff;
}

.case-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 17, 33, .04), rgba(1, 21, 40, .48)),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, .035) 25%);
  content: "";
  pointer-events: none;
}

.case-hero-grid {
  position: relative;
  z-index: 1;
  width: min(870px, 72vw);
}

.case-hero h1 {
  margin: 22px 0 28px;
  max-width: 900px;
  color: #fff;
  font-family: "Aptos Display", "Segoe UI Variable Display", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.6rem, 7.4vw, 7.2rem);
  font-weight: 610;
  letter-spacing: -.068em;
  line-height: .87;
  text-wrap: balance;
}

.case-hero h1 span { display: block; }

.case-hero-lead {
  max-width: 610px;
  margin: 0 0 34px;
  color: rgba(231, 242, 247, .76);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.case-text-link,
.case-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 17px;
  border-radius: 999px;
  color: inherit;
  font-size: .86rem;
  font-weight: 730;
  text-decoration: none;
  transition: color .45s var(--case-curve), background-color .45s var(--case-curve), transform .45s var(--case-curve), box-shadow .45s var(--case-curve), opacity .9s var(--case-curve), translate .9s var(--case-curve);
}

.case-text-link {
  padding: 6px 7px 6px 20px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17), 0 15px 38px rgba(0, 18, 34, .18);
}

.case-text-link i,
.case-button i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 1rem;
  font-style: normal;
  transition: transform .55s var(--case-curve), background-color .55s var(--case-curve);
}

.case-text-link:hover { background: #fff; color: var(--case-night); transform: translateY(-2px); }
.case-text-link:hover i { background: var(--case-accent-soft); transform: translate(2px, 2px); }
.case-text-link:active, .case-button:active { transform: scale(.98); }

.case-text-link:focus-visible,
.case-button:focus-visible {
  outline: 3px solid rgba(83, 213, 221, .62);
  outline-offset: 4px;
}

.case-index a:focus-visible {
  outline: 2px solid rgba(49, 185, 200, .72);
  outline-offset: -6px;
}

.case-hero-record {
  position: absolute;
  right: max(6vw, calc((100vw - var(--case-max)) / 2));
  bottom: 104px;
  z-index: 1;
  display: grid;
  min-width: 178px;
  padding-left: 20px;
  gap: 2px;
  box-shadow: inset 2px 0 0 rgba(84, 209, 218, .75);
}

.case-hero-record span,
.case-hero-record small,
.case-hero-caption {
  color: rgba(227, 241, 247, .58);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-hero-record strong {
  color: #fff;
  font-size: 3.7rem;
  font-weight: 520;
  letter-spacing: -.06em;
  line-height: .95;
}

.case-hero-caption {
  position: absolute;
  right: max(6vw, calc((100vw - var(--case-max)) / 2));
  bottom: 48px;
  z-index: 1;
  margin: 0;
}

.case-story-layout { position: relative; }

.case-index-wrap {
  position: sticky;
  top: 136px;
  z-index: 20;
  background: rgba(244, 246, 243, .94);
  box-shadow: 0 14px 36px rgba(9, 43, 70, .06), inset 0 -1px 0 rgba(7, 45, 72, .1);
  backdrop-filter: blur(18px);
}

.case-index {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), var(--case-max));
  min-height: 92px;
  margin: 0 auto;
  grid-template-columns: 150px 1fr;
  align-items: center;
  column-gap: clamp(24px, 5vw, 80px);
}

.case-index-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #758696;
  font-size: .62rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-index-status b { color: var(--case-ink); font-variant-numeric: tabular-nums; }

.case-index-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
}

.case-index a {
  position: relative;
  display: grid;
  padding: 0 clamp(14px, 2vw, 30px);
  align-content: center;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  color: #788896;
  text-decoration: none;
  transition: color .5s var(--case-curve), transform .5s var(--case-curve);
}

.case-index a::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 1px;
  background: rgba(8, 53, 83, .12);
  content: "";
}

.case-index a b {
  color: #9aabb7;
  font-size: .65rem;
  font-variant-numeric: tabular-nums;
  transition: color .5s var(--case-curve);
}

.case-index a span { font-size: .8rem; font-weight: 700; }
.case-index a:hover { color: var(--case-blue); transform: translateX(3px); }
.case-index a[aria-current="true"] { color: var(--case-ink); }
.case-index a[aria-current="true"] b { color: var(--case-accent); }

.case-index-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(8, 51, 81, .1);
}

.case-index-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--case-accent);
  transform: scaleX(.5);
  transform-origin: left;
  transition: transform .7s var(--case-curve);
}

.case-chapters {
  width: min(calc(100% - 48px), var(--case-max));
  margin: 0 auto;
}

.case-chapter {
  position: relative;
  display: grid;
  min-height: 780px;
  padding: clamp(120px, 13vw, 190px) 0;
  align-items: center;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 34px);
  scroll-margin-top: 0;
  isolation: isolate;
}

.case-chapter::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 54, 86, .16) 18%, rgba(11, 54, 86, .16) 82%, transparent);
  content: "";
}

.case-chapter-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 5;
}

.case-chapter-partnership .case-media-shell { grid-column: 6 / -1; }

.case-chapter-label {
  display: inline-flex;
  margin-bottom: clamp(40px, 6vw, 74px);
  align-items: baseline;
  gap: 9px;
  color: #80909b;
  font-size: .62rem;
  font-weight: 720;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.case-chapter-label b {
  color: var(--case-ink);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.case-chapter h2 {
  max-width: 620px;
  margin: 17px 0 26px;
  color: var(--case-night);
  font-family: "Aptos Display", "Segoe UI Variable Display", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3rem, 5.1vw, 5.4rem);
  font-weight: 560;
  letter-spacing: -.058em;
  line-height: .94;
  text-wrap: balance;
}

.case-deck {
  max-width: 570px;
  margin: 0;
  color: var(--case-muted);
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.case-fact {
  display: grid;
  max-width: 520px;
  margin-top: 38px;
  padding-top: 22px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 25px;
  box-shadow: inset 0 2px 0 var(--case-night);
}

.case-fact span {
  color: var(--case-blue);
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: 1;
}

.case-fact p {
  margin: 0;
  color: #667b8b;
  font-size: .76rem;
  line-height: 1.55;
}

.case-media-shell,
.case-evidence-gallery {
  --case-rx: 0deg;
  --case-ry: 0deg;
  position: relative;
  z-index: 1;
  padding: 7px;
  border-radius: 30px;
  background: rgba(10, 56, 88, .055);
  box-shadow: inset 0 0 0 1px rgba(9, 57, 90, .1), 0 34px 90px rgba(8, 48, 78, .14);
  transform: perspective(1200px) rotateX(var(--case-rx)) rotateY(var(--case-ry));
  transform-style: preserve-3d;
  transition: transform .85s var(--case-curve), box-shadow .85s var(--case-curve), opacity .9s var(--case-curve), translate .9s var(--case-curve);
}

.case-media-shell:hover,
.case-evidence-gallery:hover { box-shadow: inset 0 0 0 1px rgba(30, 156, 174, .2), 0 42px 110px rgba(7, 48, 78, .19); }

.case-chapter-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 23px;
  background: #e7edf0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .65);
}

.case-chapter-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1s var(--case-curve);
}

.case-media-shell:hover img,
.case-evidence-gallery:hover .case-gallery-main img { transform: scale(1.025); }

.case-chapter-media figcaption {
  display: flex;
  min-height: 52px;
  padding: 14px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #607687;
  font-size: .59rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.case-chapter-media figcaption time { color: #8b9aa5; font-style: normal; text-align: right; }

.case-watermark {
  position: absolute;
  top: clamp(80px, 9vw, 130px);
  right: 0;
  z-index: 0;
  color: rgba(11, 80, 113, .075);
  font-family: "Aptos Display", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(6rem, 12vw, 12rem);
  font-weight: 300;
  letter-spacing: -.08em;
  line-height: .8;
  pointer-events: none;
}

.case-chapter-performance {
  width: 100vw;
  min-height: 920px;
  margin-left: calc(50% - 50vw);
  padding-right: max(6vw, calc((100vw - var(--case-max)) / 2));
  padding-left: max(6vw, calc((100vw - var(--case-max)) / 2));
  background:
    radial-gradient(circle at 20% 34%, rgba(44, 151, 177, .16), transparent 28%),
    linear-gradient(145deg, #031f3b, #07365a 62%, #092f4f);
  color: #fff;
}

.case-chapter-performance::after { background: rgba(255, 255, 255, .08); }
.case-chapter-performance .case-document-shell { grid-column: 1 / span 7; }
.case-chapter-performance .case-chapter-copy { grid-column: 8 / -1; }
.case-chapter-performance .case-chapter-label { color: rgba(222, 239, 246, .48); }
.case-chapter-performance .case-chapter-label b,
.case-chapter-performance h2 { color: #fff; }
.case-chapter-performance .case-deck,
.case-chapter-performance .case-fact p { color: rgba(224, 239, 246, .67); }
.case-chapter-performance .case-fact { box-shadow: inset 0 2px 0 rgba(89, 204, 212, .72); }
.case-chapter-performance .case-fact span { color: #7cdee0; }
.case-chapter-performance .case-watermark { left: max(6vw, calc((100vw - var(--case-max)) / 2)); right: auto; color: rgba(255, 255, 255, .055); }
.case-document-shell { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 38px 100px rgba(0, 12, 28, .3); }
.case-document-media { padding: clamp(10px, 1.3vw, 18px); background: #f0f3f2; }
.case-document-media img { aspect-ratio: auto; border-radius: 14px; object-fit: contain; box-shadow: 0 16px 44px rgba(7, 34, 54, .12); }

.case-chapter-commerce {
  min-height: 1040px;
}

.case-chapter-commerce .case-chapter-copy {
  grid-column: 1 / span 5;
}

.case-commerce-shell {
  width: min(100%, 520px);
  grid-column: 7 / -1;
  justify-self: center;
  padding: 9px;
  background: #102c46;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 110px rgba(7, 42, 68, .22);
}

.case-commerce-media {
  background: #080a0d;
}

.case-commerce-media img {
  aspect-ratio: 747 / 1291;
  max-height: 820px;
  object-fit: contain;
}

.case-commerce-media figcaption {
  background: #f4f6f3;
}

.case-chapter-aid .case-chapter-copy { grid-column: 1 / span 5; }
.case-chapter-aid .case-evidence-gallery { grid-column: 6 / -1; }

.case-chapter-access h2 {
  max-width: 680px;
  font-size: clamp(2.65rem, 4vw, 4.4rem);
  line-height: .98;
}

.case-evidence-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.case-evidence-gallery .case-chapter-media { border-radius: 20px; }
.case-gallery-main { grid-column: 1 / -1; }
.case-gallery-main img { aspect-ratio: 16 / 8.8; object-position: center 44%; }
.case-gallery-detail img { aspect-ratio: 4 / 3; }
.case-gallery-detail figcaption { min-height: 46px; padding: 11px 14px; font-size: .53rem; }
.case-evidence-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-evidence-pair .case-gallery-detail img { aspect-ratio: 5 / 4; }
.case-evidence-pair:hover .case-gallery-detail img { transform: scale(1.018); }

.case-chapter-access {
  min-height: 980px;
}

.case-evidence-access {
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .78fr);
  align-items: stretch;
  padding: 9px;
  background: linear-gradient(145deg, rgba(8, 55, 87, .08), rgba(33, 151, 171, .06));
}

.case-evidence-access .case-chapter-media {
  display: grid;
  min-height: clamp(520px, 48vw, 680px);
  grid-template-rows: minmax(0, 1fr) auto;
  background: #f6f7f5;
}

.case-evidence-access .case-chapter-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 1.5vw, 20px);
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

.case-evidence-access:hover .case-chapter-media img { transform: scale(1.012); }

.case-closing {
  position: relative;
  min-height: 720px;
  padding: clamp(130px, 14vw, 200px) max(6vw, calc((100vw - var(--case-max)) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(47, 175, 190, .18), transparent 26%),
    var(--case-night);
  color: #fff;
}

.case-closing-inner { position: relative; z-index: 1; }

.case-closing h2 {
  max-width: 930px;
  margin: 20px 0 24px;
  color: #fff;
  font-family: "Aptos Display", "Segoe UI Variable Display", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4rem, 7vw, 7.1rem);
  font-weight: 560;
  letter-spacing: -.065em;
  line-height: .9;
  text-wrap: balance;
}

.case-closing-inner > p:not(.case-eyebrow) {
  max-width: 610px;
  color: rgba(225, 239, 245, .67);
  font-size: 1.02rem;
  line-height: 1.72;
}

.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.case-button { padding: 7px 7px 7px 21px; }
.case-button-primary { background: #fff; color: var(--case-night); box-shadow: 0 16px 40px rgba(0, 19, 36, .22); }
.case-button-primary i { background: var(--case-accent-soft); color: var(--case-night); }
.case-button-secondary { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.case-button:hover { transform: translateY(-3px); }
.case-button:hover i { transform: translate(3px, -2px) scale(1.05); }
.case-button-secondary:hover { background: rgba(255, 255, 255, .09); }

.case-closing-mark {
  position: absolute;
  right: -2vw;
  bottom: -5vw;
  color: rgba(255, 255, 255, .035);
  font-size: clamp(14rem, 34vw, 34rem);
  font-weight: 850;
  letter-spacing: -.1em;
  line-height: .7;
  pointer-events: none;
}

.case-page .subpage-footer { background: #031b34; }

.case-motion-enabled [data-case-hero-reveal],
.case-motion-enabled [data-case-reveal] {
  opacity: 0;
  translate: 0 34px;
}

.case-motion-enabled [data-case-hero-reveal]:not(.case-text-link),
.case-motion-enabled [data-case-reveal]:not(.case-media-shell):not(.case-evidence-gallery) {
  transition: opacity .9s var(--case-curve), translate .9s var(--case-curve);
}

.case-motion-enabled.case-loaded [data-case-hero-reveal],
.case-motion-enabled [data-case-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

.case-motion-enabled.case-loaded:not(.case-intro-complete) .case-hero h1 { transition-delay: .08s; }
.case-motion-enabled.case-loaded:not(.case-intro-complete) .case-hero-lead { transition-delay: .16s; }
.case-motion-enabled.case-loaded:not(.case-intro-complete) .case-text-link { transition-delay: .24s; }
.case-motion-enabled.case-loaded:not(.case-intro-complete) .case-hero-record { transition-delay: .3s; }
.case-motion-enabled.case-loaded:not(.case-intro-complete) .case-hero-caption { transition-delay: .36s; }

@media (max-width: 1080px) {
  .case-index { width: calc(100% - 32px); grid-template-columns: 118px 1fr; column-gap: 18px; }
  .case-index a { padding-inline: 14px; }
  .case-chapters { width: calc(100% - 40px); }
  .case-chapter-copy { grid-column: 1 / span 5; }
  .case-chapter-partnership .case-media-shell { grid-column: 6 / -1; }
}

@media (max-width: 860px) {
  .case-hero-grid { width: min(760px, 88vw); }
  .case-hero-record { bottom: 86px; }
  .case-hero-caption { display: none; }

  .case-index-wrap { top: 74px; }
  .case-index { display: block; width: 100%; min-height: 82px; overflow-x: auto; scrollbar-width: none; }
  .case-index::-webkit-scrollbar { display: none; }
  .case-index-status { display: none; }
  .case-index-links { min-width: 650px; min-height: 80px; }
  .case-index a { padding-inline: 20px; }
  .case-index-progress { position: sticky; left: 0; width: 100vw; }

  .case-chapter,
  .case-chapter-performance {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .case-chapter-copy,
  .case-chapter-partnership .case-media-shell,
  .case-chapter-performance .case-document-shell,
  .case-chapter-performance .case-chapter-copy,
  .case-chapter-commerce .case-chapter-copy,
  .case-commerce-shell,
  .case-chapter-aid .case-chapter-copy,
  .case-chapter-aid .case-evidence-gallery { grid-column: 1; }

  .case-evidence-access {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, .8fr);
  }

  .case-chapter-commerce { min-height: 0; }
  .case-commerce-shell { width: min(100%, 520px); }

  .case-chapter-performance .case-document-shell { order: 2; }
  .case-chapter-performance .case-chapter-copy { order: 1; }
  .case-watermark { top: 74px; }
}

@media (max-width: 640px) {
  .case-page::after { opacity: .018; }
  .case-hero {
    min-height: 720px;
    padding: 132px 20px 128px;
    align-content: start;
    background:
      linear-gradient(90deg, rgba(2, 28, 52, .97) 0%, rgba(3, 38, 67, .9) 62%, rgba(3, 36, 63, .46) 100%),
      url("../assets/case-studies/case-hero-production-team.png") 64% center / cover no-repeat;
  }
  .case-hero::before { background: linear-gradient(180deg, rgba(1, 17, 33, .08), rgba(1, 21, 40, .56)); }
  .case-hero-grid { width: 100%; }
  .case-hero h1 { margin-top: 18px; font-size: clamp(3rem, 13vw, 3.55rem); line-height: .91; letter-spacing: -.057em; }
  .case-hero-lead { max-width: 330px; margin-bottom: 28px; font-size: .94rem; line-height: 1.62; }
  .case-hero-record { right: 20px; bottom: 36px; min-width: 132px; padding-left: 14px; }
  .case-hero-record strong { font-size: 2.7rem; }
  .case-hero-caption { display: none; }

  .case-index-links { min-width: 430px; }
  .case-index a { grid-template-columns: 28px 1fr; }
  .case-index a span { font-size: .75rem; }

  .case-chapters { width: calc(100% - 32px); }
  .case-chapter { padding: 100px 0 110px; scroll-margin-top: 0; gap: 38px; }
  .case-chapter-performance { width: 100vw; margin-left: calc(50% - 50vw); padding: 104px 20px 112px; }
  .case-chapter-label { margin-bottom: 42px; }
  .case-chapter h2 { font-size: clamp(3rem, 14vw, 4rem); line-height: .93; }
  .case-chapter-access h2 { font-size: clamp(2.45rem, 11.5vw, 3.25rem); line-height: .96; }
  .case-deck { font-size: .96rem; }
  .case-fact { grid-template-columns: 1fr; gap: 8px; }
  .case-fact span { font-size: 3.45rem; }

  .case-media-shell,
  .case-evidence-gallery { padding: 5px; border-radius: 22px; }
  .case-chapter-media { border-radius: 17px; }
  .case-chapter-media img { aspect-ratio: 4 / 3; }
  .case-document-media img { aspect-ratio: auto; }
  .case-commerce-media img { aspect-ratio: 747 / 1291; }
  .case-evidence-access { grid-template-columns: 1fr; }
  .case-evidence-access .case-chapter-media { min-height: auto; }
  .case-evidence-access .case-chapter-media img { height: auto; aspect-ratio: auto; }
  .case-chapter-media figcaption { min-height: 0; padding: 12px 13px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .case-chapter-media figcaption time { text-align: left; }
  .case-evidence-gallery { gap: 5px; }
  .case-gallery-main img { aspect-ratio: 4 / 3; }
  .case-gallery-detail figcaption { display: none; }
  .case-evidence-pair { grid-template-columns: 1fr; }
  .case-evidence-pair .case-gallery-detail img { aspect-ratio: 16 / 10; }
  .case-watermark { top: 56px; font-size: 6.8rem; }

  .case-closing { min-height: 670px; padding: 116px 20px 128px; }
  .case-closing h2 { font-size: clamp(3.5rem, 15vw, 4.8rem); }
  .case-actions { align-items: stretch; flex-direction: column; }
  .case-button { width: 100%; justify-content: space-between; }
  .case-closing-mark { right: -10vw; bottom: -4vw; }
}

/* Mobile evidence layout: keep source records legible without altering desktop. */
@media (max-width: 760px) {
  .case-page.case-motion-enabled [data-case-hero-reveal],
  .case-page.case-motion-enabled [data-case-reveal] {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }

  .case-page .case-media-shell,
  .case-page .case-evidence-gallery {
    transform: none !important;
  }

  .case-page .case-document-shell {
    position: relative;
    width: calc(100% + 4px);
    margin-left: -2px;
    padding: 5px;
    border-radius: 18px;
  }

  .case-page .case-document-shell::before {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 3;
    padding: 5px 7px;
    color: #fff;
    background: rgba(3, 35, 60, .82);
    content: "Swipe to inspect  →";
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    pointer-events: none;
    text-transform: uppercase;
  }

  .case-page .case-document-media {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 7px;
    border-radius: 14px;
    scrollbar-color: #49b2c0 rgba(6, 42, 67, .1);
    scrollbar-width: thin;
  }

  .case-page .case-document-media img {
    width: 650px !important;
    max-width: none !important;
    height: auto !important;
    border-radius: 9px;
  }

  .case-page .case-document-media figcaption {
    position: sticky;
    left: 0;
    width: calc(100vw - 58px);
    min-height: 42px;
    padding: 10px 8px 3px;
    background: #f0f3f2;
  }

  .case-page .case-commerce-shell {
    width: min(88%, 320px) !important;
    margin-right: 2px;
    margin-left: auto;
    justify-self: end;
    padding: 6px;
    border-radius: 20px;
  }

  .case-page .case-commerce-media { border-radius: 15px; }

  .case-page .case-commerce-media img {
    width: 100% !important;
    height: auto !important;
    max-height: none;
    aspect-ratio: auto;
  }

  .case-page .case-commerce-media figcaption {
    min-height: 48px;
    padding: 11px 12px;
  }

  .case-page .case-evidence-access {
    display: grid !important;
    overflow: visible;
    padding: 0;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 0 !important;
    background: transparent;
    box-shadow: none;
  }

  .case-page .case-evidence-access .case-access-wide {
    z-index: 1;
    grid-column: 1 / -1;
    border: 5px solid #fff;
    border-radius: 17px;
    box-shadow: 0 18px 42px rgba(8, 48, 78, .13);
  }

  .case-page .case-evidence-access .case-access-tall {
    z-index: 2;
    margin-top: -30px;
    grid-column: 4 / -1;
    border: 5px solid #fff;
    border-radius: 17px;
    box-shadow: 0 24px 52px rgba(8, 48, 78, .19);
  }

  .case-page .case-evidence-access .case-chapter-media {
    min-height: 0;
    background: #fff;
  }

  .case-page .case-evidence-access .case-chapter-media img {
    width: 100% !important;
    height: auto !important;
    padding: 7px;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .case-page .case-evidence-access .case-chapter-media figcaption {
    display: flex !important;
    min-height: 40px;
    padding: 9px 8px;
    gap: 3px;
    background: #f5f7f6;
    font-size: 7px;
    letter-spacing: .07em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-page *, .case-page *::before, .case-page *::after { transition-duration: .001ms !important; }
  .case-motion-enabled [data-case-hero-reveal],
  .case-motion-enabled [data-case-reveal] { opacity: 1; translate: none; }
  .case-media-shell,
  .case-evidence-gallery { transform: none !important; }
}
