/* Project foundations */
: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: #f4f0e8;
}
.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 { border-color: var(--ink); box-shadow: inset 0 0 0 2px #050706, 7px 8px 0 var(--pink); }
.device-tablet { border-color: var(--ink); box-shadow: inset 0 0 0 2px #090c0b, 8px 9px 0 var(--yellow); }
.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; }
}

/* Interactive overview — mirrors Project 03's guided demo rhythm */
.resume-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);
}
.resume-overview-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.resume-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);
}
.resume-overview-heading h2 {
  margin: 0;
  font: 900 clamp(34px,4.2vw,62px)/1.05 var(--mono);
  letter-spacing: -.055em;
}
.resume-overview-heading > a {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--ink);
  font: 800 11px/1 var(--mono);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.resume-overview-heading > a:hover {
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px,-2px);
}
.resume-demo-shell {
  padding: clamp(14px,2vw,24px);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 8px 9px 0 var(--orange);
}
.resume-demo-sequence {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.resume-demo-sequence ol {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(105px,1fr));
  flex: 1;
  list-style: none;
}
.resume-demo-sequence li {
  position: relative;
  color: rgba(255,255,255,.35);
  font: 700 12px/1 var(--mono);
  transition: color .28s ease;
}
.resume-demo-sequence li > button {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.resume-demo-sequence li > button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
.resume-demo-sequence li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 80px;
  right: 15px;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,.17);
}
.resume-demo-sequence li b {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--ink);
  font-size: 9px;
}
.resume-demo-sequence li span {
  position: relative;
  z-index: 1;
  padding-right: 8px;
  background: var(--ink);
  white-space: nowrap;
}
.resume-demo-sequence li.is-active { color: var(--yellow); }
.resume-demo-sequence li.is-complete { color: rgba(255,255,255,.78); }
.resume-demo-controls { display: flex; gap: 8px; }
.resume-demo-controls button {
  min-width: 76px;
  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;
}
.resume-demo-controls button:hover,
.resume-demo-controls button:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.resume-stage-scroll { overflow-x: auto; padding: 0 10px 14px 0; }
.resume-overview {
  position: relative;
  isolation: isolate;
  width: min(1200px,100%);
  min-width: 760px;
  aspect-ratio: 1200 / 630;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.08) 0 1px, transparent 2px) 0 0 / 12px 12px,
    linear-gradient(135deg,#0d3554,#09243c);
  box-shadow: 8px 9px 0 rgba(255,255,255,.16);
}
.resume-folder {
  position: absolute;
  z-index: -1;
  inset: 5% 2.5% 2.5%;
  border: 2px solid #061725;
  border-radius: 24px 24px 8px 8px;
  background: #103a5b;
  box-shadow: inset -10px 0 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.35);
}
.resume-folder > span {
  position: absolute;
  right: -18px;
  width: 56px;
  height: 18%;
  border: 2px solid #061725;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  box-shadow: inset 0 0 12px rgba(255,255,255,.2);
}
.resume-folder > span:nth-child(1) { top: 13%; background: #8ab2cf; }
.resume-folder > span:nth-child(2) { top: 38%; background: var(--yellow); }
.resume-folder > span:nth-child(3) { top: 63%; background: #ee815d; }
.resume-paper {
  position: absolute;
  inset: 4% 6% 5% 4.5%;
  overflow: hidden;
  border: 1.5px solid rgba(23,21,17,.5);
  border-radius: 26px 26px 18px 18px;
  background-color: #fffdf6;
  background-image: radial-gradient(rgba(23,21,17,.1) 1px, transparent 1.2px);
  background-size: 19px 19px;
  box-shadow: 10px 11px 0 rgba(3,20,32,.3), inset 0 0 40px rgba(210,190,150,.1);
}
.resume-overview-copy {
  position: absolute;
  z-index: 3;
  left: 7%;
  top: 14%;
  width: 45%;
  color: #0d3658;
}
.resume-demo-status {
  width: max-content;
  margin: 0 0 20px;
  padding: 7px 12px;
  border: 1.5px solid #0d3658;
  border-radius: 999px;
  background: #d4e4ec;
  font: 800 clamp(9px,1vw,12px)/1 var(--mono);
  box-shadow: 3px 3px 0 rgba(13,54,88,.22);
  transition: background .3s ease, transform .3s ease;
}
.resume-overview-copy h3 {
  margin: 0;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(54px,7.5vw,104px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.07em;
  white-space: nowrap;
}
.resume-title-stroke {
  width: 76%;
  height: 12px;
  margin: 17px 0 24px;
  display: block;
  border-radius: 100%;
  background: var(--yellow);
  clip-path: polygon(0 38%, 89% 0, 88% 26%, 100% 36%, 88% 76%, 0 100%);
  transform: scaleX(.12);
  transform-origin: left;
  transition: transform .75s cubic-bezier(.2,.8,.2,1);
}
.resume-slogan {
  margin: 0;
  font-size: clamp(29px,4vw,58px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: .04em;
}
.resume-promise {
  width: max-content;
  margin: 25px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #d9e7ed;
  font: 800 clamp(10px,1.3vw,17px)/1 var(--mono);
  letter-spacing: .08em;
}
.resume-collab-scene { position: absolute; inset: 0 0 0 51%; }
.resume-blue-sheet {
  position: absolute;
  left: 4%;
  top: 16%;
  width: 74%;
  height: 69%;
  border-radius: 22px 22px 9px 9px;
  background: #ccdde5;
  box-shadow: 3px 4px 0 rgba(13,54,88,.24);
  transform: rotate(.7deg);
  transition: background .4s ease, transform .4s ease;
}
.resume-note {
  position: absolute;
  z-index: 3;
  width: 58%;
  padding: 11% 6% 6%;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 18px 18px 24px 18px;
  color: #0d3658;
  box-shadow: 5px 7px 0 rgba(13,54,88,.24), 0 16px 26px rgba(26,45,56,.14);
}
.resume-note-label {
  position: absolute;
  left: 8%;
  top: -16px;
  padding: 8px 16px;
  border-radius: 9px;
  background: #aac7d7;
  box-shadow: 0 3px 8px rgba(13,54,88,.18);
  font: 800 clamp(11px,1.5vw,20px)/1 var(--mono);
  transform: rotate(-2deg);
}
.resume-note ul { margin: 0; padding: 0; display: grid; gap: clamp(9px,1.4vw,17px); list-style: none; }
.resume-note li {
  position: relative;
  min-height: 18px;
  padding-left: 28px;
  display: flex;
  align-items: center;
  font: 700 clamp(9px,1vw,14px)/1.4 var(--mono);
}
.resume-note-before {
  left: 1%;
  top: 19%;
  min-height: 43%;
  background: #fff5df;
  transform: rotate(-1deg);
  transition: opacity .45s ease, transform .45s ease;
}
.resume-note-before li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #8eb1c5;
}
.resume-note-before li::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 26px;
  right: 0;
  bottom: 2px;
  height: 5px;
  border-radius: 50%;
  background: #7d7770;
  opacity: .23;
}
.resume-evidence-tag {
  position: absolute;
  right: 8%;
  bottom: -15px;
  padding: 7px 10px;
  border: 1.5px solid #0d3658;
  background: var(--mint);
  box-shadow: 3px 3px 0 #0d3658;
  font: 900 clamp(8px,.8vw,10px)/1 var(--mono);
  opacity: 0;
  transform: translateY(8px) rotate(2deg);
  transition: opacity .35s ease, transform .35s ease;
}
.resume-flow-arrow {
  position: absolute;
  z-index: 4;
  left: 14%;
  top: 55%;
  width: 24%;
  fill: none;
  stroke: #0d3658;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  opacity: 0;
  transform: rotate(-5deg);
}
.resume-flow-arrow path {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset .7s ease;
}
.resume-note-after {
  right: 6%;
  bottom: 9%;
  width: 61%;
  min-height: 48%;
  background: #f7cf63;
  opacity: .13;
  transform: translate(24px,20px) rotate(4deg) scale(.94);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), background .35s ease;
}
.resume-note-after .resume-note-label { left: 17%; background: #ee7b5f; }
.resume-note-after li { padding-left: 31px; }
.resume-note-after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d3658;
  color: #fff;
  font: 900 13px/1 sans-serif;
  transform: scale(0);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.25);
}
.resume-note-signoff {
  margin-top: clamp(10px,1.4vw,18px);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.resume-note-signoff > span { height: 3px; flex: 1; background: #0d3658; }
.resume-note-signoff b { font: 900 clamp(8px,.85vw,11px)/1 var(--mono); }
.resume-note-signoff i { color: #e46f4e; font-size: clamp(23px,3vw,40px); font-style: normal; }
.resume-file-badge {
  position: absolute;
  z-index: 5;
  right: 14%;
  top: 7%;
  width: clamp(64px,8vw,104px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #123d5d;
  color: #f6d47b;
  box-shadow: 4px 5px 0 rgba(23,21,17,.42);
  font-size: clamp(34px,4.5vw,60px);
  transform: rotate(4deg);
  transition: transform .5s ease;
}
.resume-tape {
  position: absolute;
  z-index: 6;
  left: 8%;
  bottom: 5%;
  width: 18%;
  height: 8%;
  background: #ed8065;
  clip-path: polygon(4% 0, 96% 5%, 100% 28%, 94% 43%, 100% 65%, 95% 100%, 2% 94%, 0 72%, 5% 54%, 0 31%);
  opacity: .85;
  transform: rotate(7deg);
}
.resume-overview-caption {
  margin: 22px 0 0;
  display: flex;
  gap: 16px;
  color: #575249;
  font: 700 12px/1.65 var(--mono);
}
.resume-overview-caption span { flex: 0 0 auto; color: var(--ink); font-weight: 900; }

.resume-overview[data-resume-stage="read"] .resume-title-stroke { transform: scaleX(1); }
.resume-overview[data-resume-stage="match"] .resume-title-stroke,
.resume-overview[data-resume-stage="rewrite"] .resume-title-stroke,
.resume-overview[data-resume-stage="confirm"] .resume-title-stroke { transform: scaleX(1); }
.resume-overview[data-resume-stage="match"] .resume-demo-status { background: var(--mint); transform: rotate(-1deg); }
.resume-overview[data-resume-stage="match"] .resume-evidence-tag { opacity: 1; transform: translateY(0) rotate(2deg); }
.resume-overview[data-resume-stage="match"] .resume-blue-sheet { background: #bad9df; transform: rotate(-.6deg); }
.resume-overview[data-resume-stage="rewrite"] .resume-demo-status { background: var(--yellow); }
.resume-overview[data-resume-stage="rewrite"] .resume-evidence-tag,
.resume-overview[data-resume-stage="confirm"] .resume-evidence-tag { opacity: 1; transform: translateY(0) rotate(2deg); }
.resume-overview[data-resume-stage="rewrite"] .resume-note-before,
.resume-overview[data-resume-stage="confirm"] .resume-note-before { opacity: .48; transform: translate(-7px,-4px) rotate(-2deg) scale(.97); }
.resume-overview[data-resume-stage="rewrite"] .resume-flow-arrow,
.resume-overview[data-resume-stage="confirm"] .resume-flow-arrow { opacity: 1; }
.resume-overview[data-resume-stage="rewrite"] .resume-flow-arrow path,
.resume-overview[data-resume-stage="confirm"] .resume-flow-arrow path { stroke-dashoffset: 0; }
.resume-overview[data-resume-stage="rewrite"] .resume-note-after,
.resume-overview[data-resume-stage="confirm"] .resume-note-after { opacity: 1; transform: translate(0,0) rotate(2deg) scale(1); }
.resume-overview[data-resume-stage="rewrite"] .resume-note-after li::before,
.resume-overview[data-resume-stage="confirm"] .resume-note-after li::before { transform: scale(1); }
.resume-overview[data-resume-stage="rewrite"] .resume-note-after li:nth-child(2)::before { transition-delay: .18s; }
.resume-overview[data-resume-stage="rewrite"] .resume-note-after li:nth-child(3)::before { transition-delay: .36s; }
.resume-overview[data-resume-stage="confirm"] .resume-demo-status { background: #f4a7c4; transform: rotate(1deg); }
.resume-overview[data-resume-stage="confirm"] .resume-note-after { background: #ffd568; transform: translate(0,0) rotate(0deg) scale(1.025); }
.resume-overview[data-resume-stage="confirm"] .resume-note-signoff { opacity: 1; transform: translateY(0); }
.resume-overview[data-resume-stage="confirm"] .resume-file-badge { transform: rotate(-5deg) scale(1.08); }

@media (max-width: 760px) {
  .resume-overview-section { width: 100%; margin-top: 60px; padding: 48px 16px 24px; border-inline: 0; box-shadow: 0 8px 0 var(--mint); }
  .resume-overview-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .resume-overview-heading > a { align-self: flex-end; }
  .resume-demo-sequence { align-items: flex-start; flex-direction: column; }
  .resume-demo-sequence ol { width: 100%; overflow-x: auto; grid-template-columns: repeat(4,minmax(105px,1fr)); }
  .resume-demo-controls { align-self: flex-end; }
  .resume-stage-scroll { margin-right: -16px; }
  .resume-overview-caption { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .resume-demo-sequence li,
  .resume-demo-status,
  .resume-title-stroke,
  .resume-blue-sheet,
  .resume-note,
  .resume-evidence-tag,
  .resume-flow-arrow path,
  .resume-note-after li::before,
  .resume-note-signoff,
  .resume-file-badge { transition: none !important; }
}

/* Full product walkthrough */
.resume-demo-sequence ol { grid-template-columns: repeat(6,minmax(102px,1fr)); }
.resume-video-stage { padding: clamp(8px,1.35vw,18px); border: 2px solid rgba(255,255,255,.72); background: #0d3658; }
.resume-video-frame {
  position: relative;
  width: min(1200px,100%);
  aspect-ratio: 3420 / 1964;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #070a0d;
  box-shadow: 8px 9px 0 rgba(0,0,0,.48);
}
.resume-demo-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 3420 / 2214;
  display: block;
  background: #070a0d;
  object-fit: contain;
  transform: translateY(-11.3%);
}
.resume-video-ended {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  background: rgba(7,10,13,.68);
  color: #fff;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.resume-video-ended[hidden] { display: none; }
.resume-video-ended b { font: 900 clamp(24px,4vw,54px)/1 var(--mono); }
.resume-video-ended span { color: var(--yellow); font: 800 13px/1 var(--mono); }
.resume-playback-bar {
  padding: 17px 2px 0;
  display: grid;
  grid-template-columns: minmax(145px,auto) minmax(160px,1fr) auto;
  align-items: center;
  gap: 18px;
}
.resume-playback-bar .resume-demo-status {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--yellow);
  box-shadow: none;
  font: 800 11px/1 var(--mono);
  transform: none !important;
}
.resume-demo-scrubber {
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: transparent;
}
.resume-demo-scrubber::-webkit-slider-runnable-track { height: 6px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.14); }
.resume-demo-scrubber::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -6px; appearance: none; -webkit-appearance: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); box-shadow: 2px 2px 0 var(--yellow); }
.resume-demo-scrubber::-moz-range-track { height: 6px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.14); }
.resume-demo-scrubber::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); box-shadow: 2px 2px 0 var(--yellow); }
.resume-demo-scrubber:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.resume-demo-time { color: rgba(255,255,255,.58); font: 700 10px/1 var(--mono); white-space: nowrap; }

/* Spacious, image-led case narrative */
.resume-editorial { --case-heading-size: clamp(32px,3.2vw,44px); --case-subheading-size: 24px; width: min(1240px, 90vw); margin: 100px auto 120px; text-align: left; }
.resume-project-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; padding: 32px 0; border-block: 1px solid var(--ink); }
.resume-project-meta span { color: #686258; font-size: 14px; }
.resume-project-meta p { font-size: 16px; line-height: 1.7; margin: 10px 0 0; }
.resume-chapter-nav { position: sticky; top: 78px; z-index: 20; display: flex; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 32px auto 0; padding: 7px; border: 1px solid #d6d2c8; border-radius: 40px; background: rgba(255,254,249,.96); backdrop-filter: blur(12px); box-shadow: 0 8px 24px #1715110a; }
.resume-chapter-nav a { padding: 12px 18px; border-radius: 26px; font-size: 14px; white-space: nowrap; transition: color .25s, background .25s; }
.resume-chapter-nav a span { margin-right: 7px; font-family: var(--mono); }
.resume-chapter-nav a[aria-current="location"] { color: #fff; background: var(--ink); }
.resume-chapter { padding-top: 128px; scroll-margin-top: 116px; }
.resume-editorial-copy { max-width: 760px; margin: 0 0 60px; }
.resume-kicker { display: flex; gap: 22px; align-items: center; margin: 0 0 26px; font: 700 14px/1.6 var(--mono); letter-spacing: .08em; }
.resume-kicker span { font: 500 14px/1.6 sans-serif; letter-spacing: 0; color: #686258; }
.resume-editorial-copy h2, .resume-feature-split h3 { margin: 0 0 28px; font-size: var(--case-heading-size); line-height: 1.35; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.resume-editorial-copy > p:last-child, .resume-feature-split > div > p:last-child { margin: 0; max-width: 690px; color: #5c574e; font-size: 18px; line-height: 1.95; }
.resume-pain-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; padding: 40px 0; border-block: 1px solid #cec8bd; }
.resume-pain-points > div { padding: 0 24px; }
.resume-pain-points > div:first-child { padding-left: 0; }
.resume-pain-points > div + div { border-left: 1px solid #cec8bd; }
.resume-pain-points span { color: #9b7851; font: 14px var(--mono); }
.resume-pain-points h3 { margin: 18px 0 10px; font-size: var(--case-subheading-size); }
.resume-pain-points p { margin: 0; font-size: 16px; line-height: 1.8; color: #5c574e; }
.resume-feature-visual { margin: 0; padding: clamp(16px,4vw,56px); background: #dce8ed; border-radius: 20px; overflow: hidden; }
.resume-feature-visual button { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: #fff; overflow: hidden; cursor: zoom-in; box-shadow: 0 18px 44px #12324621; }
.resume-feature-visual img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.resume-feature-visual button:hover img { transform: scale(1.025); }
.resume-feature-visual figcaption { display: flex; gap: 20px; margin-top: 26px; font-size: 14px; line-height: 1.7; color: #45606d; }
.resume-feature-visual figcaption span { font-weight: 700; flex-shrink: 0; }
.resume-feature-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); align-items: center; gap: clamp(32px,4vw,60px); margin-top: 90px; }
.resume-feature-row { margin-top: 0; }
.resume-feature-split .resume-editorial-copy { margin: 0; }
.resume-feature-split .resume-kicker { flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.resume-feature-split .resume-feature-visual { padding: 26px; }
.resume-feature-split:not(.resume-feature-row) .resume-feature-visual { background: #f2d79c; }
.resume-outcomes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 54px 0 0; padding: 32px 0; border-block: 1px solid #cec8bd; text-align: left; }
.resume-outcomes span { font-size: var(--case-subheading-size); font-weight: 800; }
.resume-outcomes p { margin: 12px 0 0; font-size: 16px; color: #5c574e; }
.resume-impact .resume-feature-visual { background: #dce6dc; }
[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; }
.resume-feature-visual.case-reveal img { transform: scale(1.035); }
.resume-feature-visual.case-reveal.is-visible img { transform: scale(1); }
.resume-feature-visual.case-reveal.is-visible button:hover img { transform: scale(1.025); }
.resume-chapter-nav a:focus-visible, .resume-feature-visual button:focus-visible { outline: 3px solid #b45c23; outline-offset: 4px; }
@media (max-width: 760px) {
  .resume-editorial { --case-subheading-size: 23px; width: calc(100% - 36px); margin-block: 64px; }
  .resume-project-meta { grid-template-columns: 1fr; gap: 22px; }
  .resume-chapter-nav { top: 68px; gap: 0; width: 100%; justify-content: space-between; border-radius: 14px; }
  .resume-chapter-nav a { padding: 10px 7px; font-size: 14px; border-radius: 8px; }
  .resume-chapter-nav a span { display: none; }
  .resume-chapter { padding-top: 80px; }
  .resume-editorial-copy { margin-bottom: 36px; }
  .resume-editorial-copy > p:last-child, .resume-feature-split > div > p:last-child { font-size: 17px; }
  .resume-pain-points { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .resume-pain-points > div { padding: 0; }
  .resume-pain-points > div + div { border-left: 0; padding-top: 24px; border-top: 1px solid #cec8bd; }
  .resume-feature-split { grid-template-columns: 1fr; gap: 30px; margin-top: 56px; }
  .resume-feature-row { margin-top: 0; }
  .resume-feature-visual, .resume-feature-split .resume-feature-visual { padding: 14px; border-radius: 12px; }
  .resume-feature-visual figcaption { display: block; margin-top: 18px; }
  .resume-feature-visual figcaption span { display: block; margin-bottom: 6px; }
  .resume-outcomes { gap: 10px; }
  .resume-outcomes span { font-size: var(--case-subheading-size); }
  .resume-outcomes p { font-size: 14px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal].case-reveal { opacity: 1; transform: none; transition: none; }
  .resume-feature-visual.case-reveal img, .resume-feature-visual img { transform: none !important; transition: none; }
}

@media (max-width: 920px) {
  .resume-demo-sequence ol { grid-template-columns: repeat(6,minmax(105px,1fr)); overflow-x: auto; padding-bottom: 7px; }
}

@media (max-width: 760px) {
  .resume-video-stage { margin-inline: -3px; padding: 5px; }
  .resume-video-frame { box-shadow: 4px 5px 0 rgba(0,0,0,.48); }
  .resume-playback-bar { grid-template-columns: 1fr auto; gap: 12px; }
  .resume-playback-bar .resume-demo-status { font-size: 10px; }
  .resume-demo-scrubber { grid-column: 1 / -1; grid-row: 2; }
  .resume-demo-time { grid-column: 2; grid-row: 1; }
}

/* 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) {
  .project-pager a { min-height: 76px; padding: 13px 17px; }
  .project-pager strong { font-size: 18px; }
}
