:root {
  font-family: Inter, "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #17211b;
  background: #f5f4ef;
  --ink: #17211b;
  --muted: #687169;
  --paper: #f5f4ef;
  --cream: #ebe9df;
  --green: #244d3e;
  --deep-green: #10271f;
  --lime: #d5e24c;
  --line: rgba(23,33,27,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.case-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 66px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: rgba(16,39,31,.94);
  color: #fff;
  backdrop-filter: blur(14px);
  font-size: 12px;
  letter-spacing: .04em;
}
.case-nav-brand { font-weight: 800; }
.case-nav-meta { display: flex; gap: 28px; color: rgba(255,255,255,.62); }
.case-nav-back { justify-self: end; font-weight: 700; }
.case-nav a { transition: opacity .2s ease; }
.case-nav a:hover { opacity: .6; }

.case-hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 56% 40%, #285744 0%, #18382c 48%, #0f241c 100%);
  background-size: 42px 42px, 42px 42px, auto;
  color: #fff;
}
.case-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255,255,255,.18);
}
.case-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1440px, 92vw);
  min-height: 900px;
  margin: 0 auto;
  padding: 50px 0 62px;
  display: flex;
  flex-direction: column;
}
.case-hero-watermark {
  position: absolute;
  left: 1.5vw;
  top: -3vw;
  color: rgba(255,255,255,.055);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(190px, 26vw, 520px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.045em;
  white-space: nowrap;
  pointer-events: none;
}
.case-eyebrow, .story-index, .facts-label, .gallery-heading p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.case-eyebrow { color: var(--lime); }
h1 {
  max-width: 1050px;
  margin: 0;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(70px, 7vw, 112px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.07em;
}
.device-stage {
  position: relative;
  min-height: 520px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(112px, 140px) minmax(270px, 350px) minmax(0, 830px);
  align-items: end;
  justify-content: center;
  column-gap: clamp(18px, 2vw, 34px);
  padding: 20px 1.5% 34px;
  isolation: isolate;
}
.device {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 28px 38px rgba(0,0,0,.42));
}
.device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d7d9d8;
}
.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(.78) saturate(.82);
}
.device-laptop {
  z-index: 2;
  aspect-ratio: 16 / 9.8;
  padding: 12px 12px 17px;
  border: 1px solid #9da3a7;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(145deg, #f4f5f5 0%, #c8cccf 34%, #a4aaae 72%, #e2e4e5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 2px rgba(83,89,93,.28),
    0 1px 0 rgba(255,255,255,.46);
}
.device-laptop .device-screen {
  border: 2px solid #171a1b;
  border-radius: 7px 7px 2px 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.device-laptop .device-camera,
.device-tablet .device-camera {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #59605d;
}
.device-laptop .device-camera {
  background: #62686b;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}
.laptop-base {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -24px;
  height: 25px;
  border-radius: 3px 3px 22px 22px;
  border-top: 1px solid #eef0f1;
  background: linear-gradient(#dfe2e4 0%, #b9bec2 44%, #8f969a 72%, #cbd0d2 100%);
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,.42),
    0 8px 16px rgba(0,0,0,.3);
}
.laptop-base::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 0;
  width: 16%;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(#858c90, #c8ccce);
  box-shadow: inset 0 1px 2px rgba(50,55,58,.42);
}
.device-tablet {
  z-index: 3;
  aspect-ratio: 4 / 3;
  padding: 11px;
  border: 2px solid #343b38;
  border-radius: 19px;
  background: linear-gradient(145deg,#303633,#090c0b 70%);
  box-shadow: inset 0 0 0 2px #090c0b;
}
.device-tablet .device-screen { border-radius: 9px; }
.device-tablet .device-screen img { object-position: center; }
.device-phone {
  z-index: 4;
  aspect-ratio: 9 / 19.2;
  padding: 8px;
  border: 2px solid #373d3b;
  border-radius: 28px;
  background: linear-gradient(145deg,#303633,#070908 70%);
  box-shadow: inset 0 0 0 2px #050706;
}
.device-phone .device-screen { border-radius: 20px; }
.device-phone .device-screen img { object-position: center; }
.device-phone-speaker {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  width: 38%;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #050706;
}
.case-title-en { margin: 10px 0 0; color: rgba(255,255,255,.48); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.case-hero-bottom {
  position: relative;
  z-index: 6;
  margin-top: 4px;
  padding-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.case-hero-copy > p:last-child { max-width: 660px; margin: 22px 0 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.8; }
.case-hero-actions { display: flex; gap: 10px; }
.case-button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.42); font-size: 13px; font-weight: 700; transition: .2s ease; }
.case-button-light { border-color: var(--lime); background: var(--lime); color: var(--deep-green); }
.case-button:hover { transform: translateY(-2px); background: #fff; border-color: #fff; color: var(--deep-green); }

.case-cover { width: min(1540px, 94vw); margin: -1px auto 0; padding: 36px 0 0; }
.case-cover img { width: 100%; background: var(--deep-green); }
.case-cover figcaption, .story-figure figcaption { display: flex; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.case-cover figcaption span, .story-figure figcaption span { flex: 0 0 auto; color: var(--ink); font-weight: 800; text-transform: uppercase; }

.case-layout {
  width: min(1240px, 90vw);
  margin: 154px auto 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  justify-content: space-between;
  gap: 80px;
}
.case-facts { align-self: start; position: sticky; top: 108px; }
.facts-label { padding-bottom: 17px; border-bottom: 1px solid var(--ink); }
.case-facts dl { margin: 0; }
.case-facts dl > div { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.case-facts dt { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.case-facts dd { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.65; }
.case-story { min-width: 0; }
.story-block { margin: 0 0 144px; }
.story-index { margin-bottom: 22px; color: #76867d; }
.story-block h2, .gallery-heading h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.story-block > p:not(.story-index) { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.story-block .story-lead { color: var(--ink); font-size: 21px; line-height: 1.72; }

.problem-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ink); }
.problem-grid > div { min-height: 230px; padding: 20px 24px 24px 0; border-bottom: 1px solid var(--line); }
.problem-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.problem-grid span { color: #789285; font-size: 11px; font-weight: 800; }
.problem-grid h3 { margin: 50px 0 12px; font-size: 19px; }
.problem-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.story-figure { margin: 0 0 144px; }
.story-figure button { width: 100%; padding: 0; display: block; overflow: hidden; border: 0; background: #dce7e1; cursor: zoom-in; }
.story-figure img { width: 100%; transition: transform .5s ease; }
.story-figure button:hover img { transform: scale(1.015); }
.figure-wide { margin-left: max(-8vw, -120px); margin-right: max(-3vw, -48px); }
.figure-pair { margin: 0 0 144px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.figure-pair .story-figure { margin: 0; }
.figure-pair .story-figure:nth-child(2) { margin-top: 76px; }

.decision-list { margin: 46px 0 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.decision-list li { padding: 24px 0; display: grid; grid-template-columns: 220px 1fr; gap: 30px; border-bottom: 1px solid var(--line); }
.decision-list strong { font-size: 15px; }
.decision-list span { color: var(--muted); font-size: 14px; line-height: 1.7; }

.system-flow { margin-top: 50px; padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.system-flow div { display: flex; flex-direction: column; gap: 7px; }
.system-flow b { font-size: 15px; }
.system-flow span { color: var(--muted); font-size: 11px; }
.system-flow i { color: #91a198; font-style: normal; }

.outcome-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.outcome-grid div { padding: 26px 18px 28px 0; display: flex; flex-direction: column; gap: 9px; }
.outcome-grid div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.outcome-grid strong { font-family: Georgia, serif; font-size: 45px; font-weight: 400; }
.outcome-grid span { color: var(--muted); font-size: 12px; }
.story-conclusion { padding: 72px; background: var(--deep-green); color: #fff; }
.story-conclusion .story-index { color: var(--lime); }
.story-conclusion > p:not(.story-index), .story-conclusion .story-lead { color: rgba(255,255,255,.7); }

.gallery-section { width: min(1540px, 94vw); margin: 188px auto 0; padding: 74px 4vw 110px; background: #e8e7df; }
.gallery-heading { margin-bottom: 68px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.gallery-heading p { margin-bottom: 18px; color: #718077; }
.gallery-heading > span { color: var(--muted); font-size: 12px; }
.screen-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 64px 28px; }
.screen-gallery figure { margin: 0; }
.screen-gallery button { width: 100%; padding: 0; display: block; overflow: hidden; border: 0; background: #d4d9d5; cursor: zoom-in; }
.screen-gallery img { width: 100%; aspect-ratio: 1.735; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.screen-gallery button:hover img { transform: scale(1.02); filter: saturate(1.08); }
.screen-gallery figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(23,33,27,.28); color: #4c574f; font-size: 11px; letter-spacing: .04em; }

.project-pager { width: min(1540px, 94vw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.project-pager a { min-height: 210px; padding: 40px 4vw; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); transition: background .2s; }
.project-pager a + a { align-items: flex-end; border-left: 1px solid var(--line); }
.project-pager a:hover { background: #dddcd3; }
.project-pager span { color: var(--muted); font-size: 11px; }
.project-pager strong { font-family: "STSong", "Songti SC", serif; font-size: clamp(28px,4vw,54px); font-weight: 500; }

footer { min-height: 88px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; background: var(--deep-green); color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .1em; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 58px 76px; border: 0; background: rgba(8,15,11,.97); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 50px minmax(0,1fr) 50px; align-items: center; gap: 20px; }
.lightbox::backdrop { background: rgba(8,15,11,.92); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 116px); margin: auto; box-shadow: 0 18px 70px rgba(0,0,0,.35); }
.lightbox button { border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.lightbox-close { position: fixed; top: 20px; right: 26px; }
.lightbox-count { position: fixed; left: 26px; bottom: 20px; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .12em; }

@media (max-width: 980px) {
  .case-nav { grid-template-columns: 1fr 1fr; }
  .case-nav-meta { display: none; }
  .case-hero, .case-hero-inner { min-height: 820px; }
  .device-stage {
    min-height: 400px;
    grid-template-columns: 12% 27% minmax(0, 1fr);
    column-gap: clamp(10px, 1.8vw, 18px);
    padding-inline: 0;
  }
  .case-hero-bottom { margin-top: 4px; }
  .case-layout { grid-template-columns: 160px minmax(0,1fr); gap: 50px; }
  .figure-wide { margin-left: 0; margin-right: 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid > div { min-height: 0; padding: 20px 0 24px; }
  .problem-grid > div + div { padding-left: 0; border-left: 0; }
  .problem-grid h3 { margin-top: 20px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 64px; }
  .case-nav { min-height: 58px; padding: 0 18px; }
  .case-nav-brand { font-size: 11px; }
  .case-nav-back { font-size: 11px; }
  .case-hero, .case-hero-inner { min-height: 735px; }
  .case-hero-inner { width: calc(100% - 36px); padding: 38px 0 32px; }
  .case-hero-watermark { top: 12px; font-size: 42vw; }
  .device-stage {
    min-height: 342px;
    margin-top: 18px;
    grid-template-columns: minmax(64px, 26%) minmax(0, 60%);
    grid-template-rows: auto auto;
    align-items: end;
    justify-content: center;
    gap: 24px 18px;
    padding: 6px 0 20px;
  }
  .device-laptop {
    grid-area: 1 / 1 / 2 / 3;
    justify-self: center;
    width: 88%;
    padding: 7px 7px 10px;
    border-radius: 11px 11px 6px 6px;
  }
  .device-laptop .device-screen { border-radius: 4px; }
  .laptop-base { bottom: -14px; height: 15px; }
  .device-tablet {
    grid-area: 2 / 2;
    width: 100%;
    padding: 6px;
    border-radius: 12px;
  }
  .device-tablet .device-screen { border-radius: 6px; }
  .device-phone {
    grid-area: 2 / 1;
    justify-self: center;
    width: 74%;
    padding: 5px;
    border-radius: 18px;
  }
  .device-phone .device-screen { border-radius: 13px; }
  .device-phone-speaker { top: 6px; height: 7px; }
  h1 { margin: 0; font-size: clamp(54px,17vw,82px); line-height: 1.02; }
  .case-title-en { font-size: 10px; line-height: 1.6; }
  .case-hero-bottom { margin-top: 8px; grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .case-hero-copy > p:last-child { margin-top: 16px; font-size: 13px; line-height: 1.7; }
  .case-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .case-button { padding-inline: 10px; }
  .case-cover { width: 100%; padding: 14px 14px 0; }
  .case-cover figcaption { padding-inline: 4px; }
  .case-layout { width: calc(100% - 36px); margin-top: 90px; grid-template-columns: 1fr; gap: 78px; }
  .case-facts { position: static; }
  .case-facts dl { display: grid; grid-template-columns: 1fr 1fr; }
  .case-facts dl > div:nth-child(odd) { padding-right: 18px; }
  .case-facts dl > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .story-block, .story-figure, .figure-pair { margin-bottom: 92px; }
  .story-block h2, .gallery-heading h2 { font-size: 40px; }
  .story-block .story-lead { font-size: 18px; }
  .problem-grid { margin-top: 36px; }
  .figure-pair { grid-template-columns: 1fr; gap: 46px; }
  .figure-pair .story-figure:nth-child(2) { margin-top: 0; }
  .decision-list li { grid-template-columns: 1fr; gap: 8px; }
  .system-flow { align-items: flex-start; flex-direction: column; gap: 18px; }
  .system-flow i { transform: rotate(90deg); }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .outcome-grid div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .outcome-grid div:nth-child(4) { border-top: 1px solid var(--line); }
  .story-conclusion { margin-inline: -18px; padding: 50px 26px; }
  .gallery-section { width: 100%; margin-top: 100px; padding: 60px 18px 76px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; margin-bottom: 46px; }
  .screen-gallery { grid-template-columns: 1fr; gap: 44px; }
  .project-pager { width: 100%; }
  .project-pager a { min-height: 150px; padding: 28px 18px; }
  .project-pager strong { font-size: 26px; }
  .lightbox { padding: 54px 4px; }
  .lightbox[open] { grid-template-columns: 30px minmax(0,1fr) 30px; gap: 2px; }
}

/* Creative notebook case-study theme */
:root {
  --ink: #171511;
  --muted: #625f57;
  --paper: #fbfaf5;
  --paper-white: #fffef9;
  --yellow: #f5cf57;
  --pink: #f25c95;
  --mint: #a9ddc7;
  --blue: #4068d6;
  --orange: #eb7042;
  --line: rgba(23,21,17,.15);
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", "Courier New", monospace;
}

body {
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, var(--line) 38px, transparent 39px);
  background-attachment: fixed;
  overflow-x: hidden;
}

.case-progress { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: 5px; pointer-events: none; }
.case-progress span { display: block; width: 100%; height: 100%; background: var(--pink); transform: scaleX(var(--case-progress,0)); transform-origin: left; transition: transform .08s linear; }

.case-nav {
  min-height: 72px;
  border-bottom: 2px solid var(--ink);
  background: rgba(255,254,249,.95);
  color: var(--ink);
  font-family: var(--mono);
  letter-spacing: .05em;
  box-shadow: 0 4px 0 rgba(23,21,17,.08);
}
.case-nav-brand { display: flex; align-items: center; gap: 10px; }
.case-nav-brand b { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-7deg); }
.case-nav-meta { color: #645f56; }
.case-nav-meta span { padding: 6px 10px; border: 1px solid var(--ink); background: var(--mint); }
.case-nav-meta span + span { background: var(--yellow); transform: rotate(1deg); }
.case-nav-back { padding: 10px 14px; border: 2px solid var(--ink); background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.case-nav a:hover { opacity: 1; transform: translate(-2px,-2px); }

.case-hero {
  min-height: 920px;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.case-hero::before,
.case-hero::after { content: ""; position: absolute; pointer-events: none; }
.case-hero::before { width: 68px; height: 68px; left: 3vw; top: 28%; border: 17px solid var(--pink); border-radius: 50%; animation: case-float 6s ease-in-out infinite; }
.case-hero::after { inset: auto 4vw 8% auto; width: 54px; height: 54px; border: 2px solid var(--ink); background: var(--blue); box-shadow: 5px 5px 0 var(--ink); transform: rotate(12deg); animation: case-float 7s ease-in-out -2s infinite; }
.case-hero-inner { width: min(1320px,90vw); min-height: 920px; padding: 74px 0 82px; }
.case-hero-watermark { left: 50%; top: 44px; color: transparent; -webkit-text-stroke: 2px rgba(23,21,17,.08); font-size: clamp(120px,18vw,300px); transform: translateX(-50%); }
.case-eyebrow { width: max-content; padding: 9px 15px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--mono); transform: rotate(-2deg); }
.case-hero-stickers { position: absolute; z-index: 6; inset: 54px 0 auto; pointer-events: none; }
.case-hero-stickers span { position: absolute; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: 10px; font-weight: 900; letter-spacing: .1em; box-shadow: 3px 4px 0 rgba(23,21,17,.2); animation: case-sticker 4.8s ease-in-out infinite; }
.case-hero-stickers span:first-child { left: 22%; background: var(--mint); transform: rotate(-5deg); }
.case-hero-stickers span:last-child { right: 5%; background: #f7b6cf; transform: rotate(4deg); animation-delay: -2.2s; }

.device-stage { min-height: 470px; margin-top: 48px; }
.device { filter: drop-shadow(9px 12px 0 rgba(23,21,17,.22)); animation: case-device-in .8s cubic-bezier(.2,.8,.2,1) both; }
.device-phone { animation-delay: .12s; }
.device-tablet { animation-delay: .22s; }
.device-laptop { animation-delay: .32s; }
.device-screen img { filter: none; }
.device-phone,
.device-tablet {
  border-color: #9da3a7;
  background: linear-gradient(145deg, #f4f5f5 0%, #c8cccf 34%, #a4aaae 72%, #e2e4e5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 2px rgba(83,89,93,.28),
    8px 9px 0 rgba(23,21,17,.2);
}
.device-laptop { border: 2px solid var(--ink); box-shadow: 11px 12px 0 var(--mint); }

.case-hero-bottom { margin-top: 30px; align-items: end; }
h1 { width: max-content; max-width: 100%; padding: 7px 18px 13px; border: 3px solid var(--orange); background: var(--paper-white); color: var(--ink); box-shadow: 7px 8px 0 var(--ink); font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; font-size: clamp(68px,8vw,118px); font-weight: 900; letter-spacing: -.035em; transform: rotate(-1deg); }
.case-title-en { margin-top: 21px; color: #615c53; font-family: var(--mono); }
.case-hero-copy > p:last-of-type { color: #4f4b44; }
.case-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.case-chips span { padding: 7px 10px; border: 1.5px solid var(--ink); background: var(--paper-white); font-family: var(--mono); font-size: 10px; font-weight: 900; }
.case-chips span:nth-child(2) { background: var(--mint); }
.case-chips span:nth-child(3) { background: var(--yellow); }
.case-chips span:nth-child(4) { background: #f7b6cf; }
.case-hero-actions { flex-wrap: wrap; }
.case-button { min-height: 51px; border: 2px solid var(--ink); background: var(--paper-white); color: var(--ink); box-shadow: 4px 5px 0 var(--ink); font-family: var(--mono); }
.case-button-light { background: var(--yellow); color: var(--ink); }
.case-button:hover { border-color: var(--ink); background: var(--pink); color: var(--ink); box-shadow: 7px 8px 0 var(--ink); transform: translate(-3px,-4px); }

.case-cover { position: relative; width: min(1380px,92vw); margin: 74px auto 0; padding: 18px; border: 2px solid var(--ink); background: var(--paper-white); box-shadow: 11px 12px 0 var(--mint); transform: rotate(-.4deg); }
.case-cover::before { content: "OVERVIEW"; position: absolute; z-index: 2; top: -21px; left: 50%; padding: 8px 20px; border: 1px solid rgba(23,21,17,.35); background: rgba(245,207,87,.9); font-family: var(--mono); font-size: 10px; font-weight: 900; letter-spacing: .12em; transform: translateX(-50%) rotate(-2deg); }
.case-cover img { border: 2px solid var(--ink); background: var(--ink); }
.case-cover figcaption,
.story-figure figcaption { color: #575249; font-family: var(--mono); }

.case-layout { width: min(1240px,90vw); margin-top: 140px; grid-template-columns: 230px minmax(0,870px); gap: 72px; }
.case-facts { top: 108px; padding: 24px 20px; border: 2px solid var(--ink); background: #f8e8ae; box-shadow: 7px 8px 0 var(--ink); transform: rotate(-1.2deg); }
.facts-label { border-bottom: 2px solid var(--ink); font-family: var(--mono); }
.case-facts dl > div { border-bottom: 1px dashed rgba(23,21,17,.32); }
.case-facts dt { color: #5c574e; font-family: var(--mono); }

.story-block { position: relative; margin-bottom: 112px; padding: 46px; border: 2px solid var(--ink); background: rgba(255,254,249,.95); box-shadow: 8px 9px 0 var(--ink); transform: rotate(-.25deg); }
.story-block:nth-of-type(even) { transform: rotate(.25deg); }
.story-index { position: absolute; top: -20px; left: 30px; margin: 0; padding: 8px 13px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: var(--mono); }
.story-block h2,
.gallery-heading h2 { font-family: var(--mono); font-size: clamp(37px,4.4vw,62px); font-weight: 900; letter-spacing: -.055em; }
.story-block > p:not(.story-index) { color: #5c574e; }
.story-block .story-lead { color: var(--ink); }

.problem-grid { margin-top: 42px; gap: 15px; border: 0; }
.problem-grid > div { min-height: 220px; padding: 22px; border: 2px solid var(--ink); background: #f8e8ae; box-shadow: 4px 5px 0 var(--ink); }
.problem-grid > div:nth-child(2) { padding-left: 22px; border-left: 2px solid var(--ink); background: #bce5d3; transform: rotate(1deg); }
.problem-grid > div:nth-child(3) { padding-left: 22px; border-left: 2px solid var(--ink); background: #f7b6cf; transform: rotate(-1deg); }
.problem-grid span { color: var(--ink); font-family: var(--mono); }
.problem-grid h3 { margin-top: 34px; }
.problem-grid p { color: #4f4b43; }

.story-figure { margin-bottom: 112px; padding: 14px; border: 2px solid var(--ink); background: var(--paper-white); box-shadow: 9px 10px 0 var(--orange); transform: rotate(.35deg); }
.story-figure:nth-child(even) { transform: rotate(-.35deg); }
.story-figure button { border: 2px solid var(--ink); background: #e5e1d7; }
.story-figure button:hover img { transform: scale(1.025) rotate(.2deg); }
.figure-wide { margin-left: max(-5vw,-74px); margin-right: max(-2vw,-30px); }
.figure-pair { margin-bottom: 112px; gap: 28px; }
.figure-pair .story-figure { margin-bottom: 0; }

.decision-list { border: 0; display: grid; gap: 12px; }
.decision-list li { padding: 20px; border: 2px solid var(--ink); background: #e2e9ff; box-shadow: 4px 5px 0 var(--ink); }
.decision-list li:nth-child(2) { background: #d9eee5; transform: translateX(8px); }
.decision-list li:nth-child(3) { background: #f7d8e4; transform: translateX(-5px); }
.decision-list span { color: #4f4b43; }

.system-flow { padding: 0; border: 0; gap: 11px; }
.system-flow div { min-height: 112px; padding: 18px 14px; flex: 1; justify-content: center; border: 2px solid var(--ink); background: #f8e8ae; box-shadow: 4px 5px 0 var(--ink); text-align: center; }
.system-flow div:nth-of-type(2) { background: #bce5d3; }
.system-flow div:nth-of-type(3) { background: #f7b6cf; }
.system-flow div:nth-of-type(4) { background: #cbd6ff; }
.system-flow span { color: #514d45; }
.system-flow i { color: var(--ink); font-family: var(--mono); font-weight: 900; }

.outcome-grid { gap: 12px; border: 0; }
.outcome-grid div { padding: 22px 17px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: 4px 5px 0 var(--ink); }
.outcome-grid div + div { padding-left: 17px; border-left: 2px solid var(--ink); }
.outcome-grid div:nth-child(2) { background: var(--mint); }
.outcome-grid div:nth-child(3) { background: #f7b6cf; }
.outcome-grid div:nth-child(4) { background: #cbd6ff; }
.outcome-grid strong { font-family: var(--mono); font-weight: 900; }
.outcome-grid span { color: #4f4b43; }
.story-conclusion { background: var(--ink); color: #fff; box-shadow: 10px 11px 0 var(--pink); }
.story-conclusion .story-index { background: var(--mint); color: var(--ink); }
.story-conclusion > p:not(.story-index),
.story-conclusion .story-lead { color: #ddd8cd; }

.gallery-section { width: min(1440px,94vw); margin-top: 140px; padding: 74px 4vw 104px; border: 2px solid var(--ink); background: rgba(255,254,249,.94); box-shadow: 0 -9px 0 var(--yellow); }
.gallery-heading p { width: max-content; padding: 7px 12px; border: 2px solid var(--ink); background: var(--pink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: var(--mono); }
.gallery-heading > span { padding: 8px 12px; border: 1.5px solid var(--ink); background: var(--mint); color: var(--ink); font-family: var(--mono); }
.screen-gallery { gap: 50px 30px; }
.screen-gallery figure { padding: 12px; border: 2px solid var(--ink); background: var(--paper-white); box-shadow: 6px 7px 0 var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.screen-gallery figure:nth-child(4n+1) { transform: rotate(-.45deg); }
.screen-gallery figure:nth-child(4n+2) { transform: rotate(.5deg); }
.screen-gallery figure:nth-child(4n+3) { transform: rotate(.25deg); }
.screen-gallery figure:nth-child(4n) { transform: rotate(-.35deg); }
.screen-gallery figure:hover { transform: translate(-3px,-7px) rotate(0); box-shadow: 10px 12px 0 var(--ink); }
.screen-gallery button { border: 2px solid var(--ink); }
.screen-gallery figcaption { border-top: 1px dashed rgba(23,21,17,.36); color: #4e4941; font-family: var(--mono); }

.project-pager { width: min(1440px,94vw); border: 2px solid var(--ink); border-top: 0; }
.project-pager a { background: var(--yellow); }
.project-pager a + a { border-left: 2px solid var(--ink); background: var(--mint); }
.project-pager a:hover { background: var(--pink); }
.project-pager span { color: var(--ink); font-family: var(--mono); }
.project-pager strong { font-family: var(--mono); font-weight: 900; }

footer { border-top: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font-family: var(--mono); font-weight: 900; }

.lightbox { background: rgba(23,21,17,.97); }
.lightbox::backdrop { background: rgba(23,21,17,.92); }
.lightbox img { border: 3px solid #fff; box-shadow: 12px 14px 0 var(--pink); }
.lightbox button { width: 46px; height: 46px; border: 2px solid #fff; background: var(--ink); }
.lightbox-close { border-radius: 50%; }
.lightbox-count { padding: 7px 11px; background: var(--yellow); color: var(--ink); font-family: var(--mono); }

.case-reveal { opacity: 0; transform: translateY(34px) rotate(.5deg); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1); }
.case-reveal.is-visible { opacity: 1; transform: none; }

@keyframes case-sticker { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes case-float { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 8deg; } }
@keyframes case-device-in { from { opacity: 0; transform: translateY(35px) rotate(1deg); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .case-nav-meta { display: none; }
  .case-hero,
  .case-hero-inner { min-height: 850px; }
  .case-hero-inner { width: min(100% - 52px,900px); }
  .case-hero-stickers span:first-child { left: 32%; }
  .case-layout { grid-template-columns: 190px minmax(0,1fr); gap: 48px; }
  .story-block { padding: 40px 34px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid > div,
  .problem-grid > div:nth-child(2),
  .problem-grid > div:nth-child(3) { min-height: 0; padding: 22px; }
}

@media (max-width: 700px) {
  .case-progress { height: 4px; }
  .case-nav { min-height: 64px; }
  .case-nav-brand b { width: 30px; height: 30px; }
  .case-nav-brand { font-size: 9px; }
  .case-nav-back { padding: 8px 9px; font-size: 9px; box-shadow: 3px 3px 0 var(--yellow); }
  .case-hero,
  .case-hero-inner { min-height: 790px; }
  .case-hero-inner { width: calc(100% - 34px); padding: 54px 0 46px; }
  .case-hero::before { width: 42px; height: 42px; left: -15px; top: 34%; border-width: 11px; }
  .case-hero::after { width: 32px; height: 32px; right: -10px; }
  .case-hero-stickers { inset: 48px 0 auto; }
  .case-hero-stickers span { padding: 6px 10px; font-size: 8px; }
  .case-hero-stickers span:first-child { left: 46%; }
  .case-eyebrow { padding: 7px 10px; font-size: 8px; }
  .device-stage { min-height: 345px; margin-top: 42px; }
  h1 { padding: 4px 10px 9px; font-size: clamp(49px,16vw,76px); box-shadow: 5px 6px 0 var(--ink); }
  .case-hero-copy > p:last-of-type { font-size: 13px; }
  .case-chips { margin-top: 17px; }
  .case-chips span { font-size: 8px; }
  .case-cover { width: calc(100% - 26px); margin-top: 42px; padding: 9px; box-shadow: 7px 8px 0 var(--mint); }
  .case-cover figcaption { padding-inline: 0; }
  .case-layout { width: calc(100% - 34px); margin-top: 96px; grid-template-columns: 1fr; gap: 84px; }
  .case-facts { position: static; padding: 21px 17px; transform: none; }
  .case-facts dl { grid-template-columns: 1fr 1fr; }
  .story-block { margin-bottom: 78px; padding: 38px 20px 28px; box-shadow: 6px 7px 0 var(--ink); }
  .story-index { left: 16px; font-size: 8px; }
  .story-block h2,
  .gallery-heading h2 { font-size: 34px; }
  .story-block .story-lead { font-size: 17px; }
  .story-figure,
  .figure-pair { margin-bottom: 78px; }
  .story-figure { padding: 8px; box-shadow: 6px 7px 0 var(--orange); }
  .figure-pair { grid-template-columns: 1fr; gap: 42px; }
  .decision-list li { grid-template-columns: 1fr; transform: none !important; }
  .system-flow { align-items: stretch; }
  .system-flow div { width: 100%; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .outcome-grid div,
  .outcome-grid div + div { padding: 17px 12px; }
  .outcome-grid div:nth-child(3) { border-left: 2px solid var(--ink); }
  .story-conclusion { margin-inline: 0; }
  .gallery-section { width: 100%; margin-top: 90px; padding: 58px 17px 72px; border-inline: 0; }
  .gallery-heading { gap: 22px; }
  .screen-gallery { grid-template-columns: 1fr; gap: 38px; }
  .screen-gallery figure { padding: 8px; box-shadow: 5px 6px 0 var(--ink); transform: none !important; }
  .project-pager { width: 100%; }
  .project-pager a { min-height: 144px; padding: 25px 17px; }
  .project-pager strong { font-size: 24px; }
  .lightbox img { box-shadow: 6px 7px 0 var(--pink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .case-reveal { opacity: 1; transform: none; }
}

/* Auto-playing full interface archive */
.archive-carousel {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper-white);
  box-shadow: 9px 10px 0 var(--ink);
  outline: none;
}
.archive-carousel:focus-visible { box-shadow: 0 0 0 4px var(--blue), 9px 10px 0 var(--ink); }
.archive-carousel::before {
  content: "AUTO PLAY · 2 SEC";
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 11px/1 var(--mono);
  letter-spacing: .08em;
}
.archive-carousel .screen-gallery {
  display: flex;
  width: 100%;
  gap: 0;
  transform: translate3d(calc(var(--archive-index, 0) * -100%), 0, 0);
  transition: transform .75s cubic-bezier(.22,.78,.2,1);
  will-change: transform;
}
.archive-carousel .screen-gallery figure,
.archive-carousel .screen-gallery figure:nth-child(n),
.archive-carousel .screen-gallery figure:hover {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: clamp(12px, 2vw, 28px);
  padding-top: clamp(58px, 6vw, 76px);
  border: 0;
  background: var(--paper-white);
  box-shadow: none;
  opacity: .6;
  transform: none !important;
  transition: opacity .45s ease;
  box-sizing: border-box;
}
.archive-carousel .screen-gallery figure.is-active { opacity: 1; }
.archive-carousel .screen-gallery button {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #e7e3d8;
  box-shadow: 5px 6px 0 var(--ink);
}
.archive-carousel .screen-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.735;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
.archive-carousel .screen-gallery button:hover img { transform: scale(1.012); filter: saturate(1.06); }
.archive-carousel .screen-gallery figcaption {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 12px 2px 0;
  border-top: 1px dashed rgba(23,21,17,.4);
  color: var(--ink);
  font: 700 clamp(12px,1.2vw,15px)/1.3 var(--mono);
}
.archive-controls {
  display: grid;
  grid-template-columns: auto minmax(170px,1fr) minmax(160px,.6fr);
  align-items: center;
  gap: clamp(16px,3vw,44px);
  padding: 18px clamp(16px,2.4vw,30px) 22px;
  border-top: 2px solid var(--ink);
  background: var(--mint);
}
.archive-buttons { display: flex; gap: 8px; }
.archive-buttons button {
  min-width: 46px;
  height: 42px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: var(--paper-white);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font: 800 13px/1 var(--mono);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.archive-buttons button:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); background: var(--yellow); }
.archive-buttons button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.archive-status { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-family: var(--mono); }
.archive-status strong { font-size: 26px; line-height: 1; }
.archive-status span { color: #5d5850; font-size: 12px; }
.archive-status em { overflow: hidden; margin-left: 8px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.archive-timer { height: 10px; overflow: hidden; border: 2px solid var(--ink); background: var(--paper-white); }
.archive-timer span { display: block; width: 100%; height: 100%; background: var(--pink); transform-origin: left; }
.archive-carousel.is-paused .archive-timer span { animation-play-state: paused !important; }

@keyframes archiveCountdown {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 700px) {
  .archive-carousel { margin-inline: -2px; box-shadow: 6px 7px 0 var(--ink); }
  .archive-carousel::before { top: 11px; left: 11px; padding: 6px 8px; font-size: 9px; }
  .archive-carousel .screen-gallery figure,
  .archive-carousel .screen-gallery figure:nth-child(n) { padding: 49px 9px 12px; }
  .archive-carousel .screen-gallery button { box-shadow: 3px 4px 0 var(--ink); }
  .archive-carousel .screen-gallery figcaption { min-height: 34px; margin-top: 11px; padding-top: 8px; font-size: 11px; }
  .archive-controls { grid-template-columns: auto 1fr; gap: 12px; padding: 14px 11px 16px; }
  .archive-buttons button { min-width: 38px; height: 38px; padding: 0 9px; font-size: 11px; }
  .archive-status { justify-self: end; }
  .archive-status strong { font-size: 21px; }
  .archive-status em { display: none; }
  .archive-timer { grid-column: 1 / -1; width: 100%; height: 8px; }
}

/* Video-led overview and editorial case structure */
.zml-overview-section {
  width: min(1440px, 94vw);
  margin: 92px auto 0;
  padding: clamp(28px, 4vw, 58px);
  border: 2px solid var(--ink);
  background: rgba(255,254,249,.96);
  box-shadow: 11px 12px 0 var(--mint);
}
.zml-overview-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.zml-overview-heading p {
  width: max-content;
  margin: 0 0 13px;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 10px/1 var(--mono);
  letter-spacing: .12em;
  transform: rotate(-1.5deg);
}
.zml-overview-heading h2 {
  margin: 0;
  font: 900 clamp(34px,4.2vw,62px)/1.08 var(--mono);
  letter-spacing: -.055em;
}
.zml-overview-heading > span {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 2px solid var(--ink);
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--ink);
  font: 800 11px/1 var(--mono);
}
.zml-demo-shell {
  padding: clamp(10px,1.5vw,20px);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 8px 9px 0 var(--orange);
}
.zml-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(255,255,255,.72);
  background: #08110d;
}
.zml-demo-video {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(-11.1%);
  background: #08110d;
}
.zml-video-ended {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  background: rgba(10,24,18,.86);
  color: #fff;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.zml-video-ended[hidden] { display: none; }
.zml-video-ended b { font: 900 clamp(24px,4vw,54px)/1 var(--mono); }
.zml-video-ended span { color: var(--lime); font: 800 13px/1 var(--mono); }
.zml-playback-bar {
  padding-top: 18px;
  display: grid;
  grid-template-columns: auto auto minmax(120px,1fr) auto auto;
  align-items: center;
  gap: 14px;
}
.zml-playback-bar button {
  min-width: 66px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 800 11px/1 var(--mono);
  cursor: pointer;
}
.zml-playback-bar button:hover,
.zml-playback-bar button:focus-visible { border-color: var(--lime); color: var(--lime); }
.zml-demo-status,
.zml-demo-time { margin: 0; color: rgba(255,255,255,.62); font: 700 10px/1 var(--mono); white-space: nowrap; }
.zml-demo-scrubber { width: 100%; accent-color: var(--lime); cursor: pointer; }
.zml-demo-scrubber:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.zml-overview-caption {
  margin: 25px 0 0;
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.zml-overview-caption span { color: var(--ink); font: 900 13px/1.7 var(--mono); }

.zml-editorial {
  --case-heading-size: clamp(32px,3.2vw,44px);
  --case-subheading-size: 24px;
  width: min(1240px,90vw);
  margin: 100px auto 120px;
  text-align: left;
}
.zml-project-meta {
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
  border-block: 1px solid var(--ink);
}
.zml-project-meta span { color: #686258; font-size: 14px; }
.zml-project-meta p { margin: 10px 0 0; font-size: 16px; line-height: 1.7; }
.zml-chapter-nav {
  position: sticky;
  z-index: 20;
  top: 78px;
  width: fit-content;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 7px;
  display: flex;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d6d2c8;
  border-radius: 40px;
  background: rgba(255,254,249,.96);
  box-shadow: 0 8px 24px rgba(23,21,17,.04);
  backdrop-filter: blur(12px);
}
.zml-chapter-nav a { padding: 12px 18px; border-radius: 26px; font-size: 14px; white-space: nowrap; transition: color .25s, background .25s; }
.zml-chapter-nav a span { margin-right: 7px; font-family: var(--mono); }
.zml-chapter-nav a[aria-current="location"] { color: #fff; background: var(--ink); }
.zml-chapter { padding-top: 128px; scroll-margin-top: 116px; }
.zml-editorial-copy { max-width: 760px; margin: 0 0 60px; }
.zml-kicker { margin: 0 0 26px; display: flex; align-items: center; gap: 22px; font: 700 14px/1.6 var(--mono); letter-spacing: .08em; }
.zml-kicker span { color: #686258; font: 500 14px/1.6 sans-serif; letter-spacing: 0; }
.zml-editorial-copy h2,
.zml-feature-split h3 { margin: 0 0 28px; font-size: var(--case-heading-size); font-weight: 800; line-height: 1.35; letter-spacing: -.04em; text-wrap: balance; }
.zml-editorial-copy > p:last-child,
.zml-feature-split > div > p:last-child { max-width: 690px; margin: 0; color: #5c574e; font-size: 18px; line-height: 1.95; }
.zml-pain-points { padding: 40px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; border-block: 1px solid #cec8bd; }
.zml-pain-points > div { padding: 0 24px; }
.zml-pain-points > div:first-child { padding-left: 0; }
.zml-pain-points > div + div { border-left: 1px solid #cec8bd; }
.zml-pain-points span { color: #5f7f6b; font: 14px var(--mono); }
.zml-pain-points h3 { margin: 18px 0 10px; font-size: var(--case-subheading-size); }
.zml-pain-points p { margin: 0; color: #5c574e; font-size: 16px; line-height: 1.8; }
.zml-feature-split { margin-top: 90px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); align-items: center; gap: clamp(32px,4vw,60px); }
.zml-feature-row { margin-top: 0; }
.zml-feature-split .zml-editorial-copy { margin: 0; }
.zml-feature-split .zml-kicker { flex-wrap: wrap; gap: 6px 16px; }
.zml-feature-visual { margin: 0; padding: 26px; overflow: hidden; border-radius: 20px; background: #d9eee5; }
.zml-feature-split:not(.zml-feature-row) .zml-feature-visual { background: #f3dfaa; }
.zml-feature-visual button { width: 100%; padding: 0; display: block; overflow: hidden; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 18px 44px rgba(18,50,38,.13); cursor: zoom-in; }
.zml-feature-visual img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.zml-feature-visual button:hover img { transform: scale(1.025); }
.zml-feature-visual figcaption { margin-top: 26px; display: flex; gap: 20px; color: #456052; font-size: 14px; line-height: 1.7; }
.zml-feature-visual figcaption span { flex-shrink: 0; font-weight: 700; }
.zml-impact .zml-feature-visual { background: #dce6dc; }
.zml-outcomes { margin: 54px 0 0; padding: 32px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; border-block: 1px solid #cec8bd; }
.zml-outcomes span { font: 900 var(--case-subheading-size)/1 var(--mono); }
.zml-outcomes p { margin: 12px 0 0; color: #5c574e; font-size: 16px; }
[data-reveal].case-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].case-reveal.is-visible { opacity: 1; transform: none; }
.zml-feature-visual.case-reveal img { transform: scale(1.035); }
.zml-feature-visual.case-reveal.is-visible img { transform: scale(1); }
.zml-feature-visual.case-reveal.is-visible button:hover img { transform: scale(1.025); }
.zml-chapter-nav a:focus-visible,
.zml-feature-visual button:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }

/* Compact project navigation */
.project-pager a { min-height: 105px; padding: 20px 2vw; }
.project-pager strong { font-size: clamp(18px,2vw,27px); }

@media (max-width: 760px) {
  .zml-overview-section { width: calc(100% - 26px); margin-top: 42px; padding: 20px 12px; box-shadow: 7px 8px 0 var(--mint); }
  .zml-overview-heading { align-items: flex-start; flex-direction: column; }
  .zml-overview-heading > span { align-self: flex-start; }
  .zml-video-frame { border-width: 1px; }
  .zml-playback-bar { grid-template-columns: auto 1fr auto; gap: 12px; }
  .zml-demo-status { display: none; }
  .zml-demo-scrubber { grid-column: 1 / -1; grid-row: 2; }
  .zml-demo-time { justify-self: center; }
  .zml-demo-replay { justify-self: end; }
  .zml-overview-caption { font-size: 13px; }
  .zml-editorial { --case-subheading-size: 23px; width: calc(100% - 36px); margin-block: 64px; }
  .zml-project-meta { grid-template-columns: 1fr; gap: 22px; }
  .zml-chapter-nav { top: 68px; width: 100%; justify-content: space-between; gap: 0; border-radius: 14px; }
  .zml-chapter-nav a { padding: 10px 7px; border-radius: 8px; font-size: 14px; }
  .zml-chapter-nav a span { display: none; }
  .zml-chapter { padding-top: 80px; }
  .zml-editorial-copy { margin-bottom: 36px; }
  .zml-editorial-copy > p:last-child,
  .zml-feature-split > div > p:last-child { font-size: 17px; }
  .zml-pain-points { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .zml-pain-points > div { padding: 0; }
  .zml-pain-points > div + div { padding-top: 24px; border-top: 1px solid #cec8bd; border-left: 0; }
  .zml-feature-split { margin-top: 56px; grid-template-columns: 1fr; gap: 30px; }
  .zml-feature-row { margin-top: 0; }
  .zml-feature-visual { padding: 14px; border-radius: 12px; }
  .zml-feature-visual figcaption { margin-top: 18px; display: block; }
  .zml-feature-visual figcaption span { display: block; margin-bottom: 6px; }
  .zml-outcomes { gap: 10px; }
  .zml-outcomes p { font-size: 14px; line-height: 1.7; }
  .project-pager a { min-height: 76px; padding: 13px 17px; }
  .project-pager strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].case-reveal { opacity: 1; transform: none; transition: none; }
  .zml-feature-visual.case-reveal img,
  .zml-feature-visual img { transform: none !important; transition: none; }
}
