:root {
  color-scheme: light;
  --navy-950: #061a25;
  --navy-900: #0b2531;
  --navy-800: #123642;
  --teal-800: #0b5f5a;
  --teal-700: #08776f;
  --teal-600: #0b8f84;
  --teal-400: #43b7aa;
  --mint-200: #cfe8e2;
  --mint-100: #e6f2ef;
  --mint-50: #f1f7f5;
  --paper: #eef4f2;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --ink: #122934;
  --ink-soft: #506874;
  --muted: #71858e;
  --line: #d3e0dc;
  --line-dark: rgba(213, 234, 228, 0.16);
  --amber: #e3a126;
  --amber-soft: #fff1c9;
  --rose: #b45e55;
  --shell: 1240px;
  --shadow-sm: 0 12px 34px rgba(6, 26, 37, 0.08);
  --shadow-lg: 0 32px 90px rgba(6, 26, 37, 0.14);
  --radius-lg: 30px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 4px;
}

::selection {
  background: var(--mint-200);
  color: var(--navy-950);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.case-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.case-header.is-scrolled {
  border-color: rgba(6, 26, 37, 0.08);
  background: rgba(238, 244, 242, 0.92);
  box-shadow: 0 8px 30px rgba(6, 26, 37, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.case-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.case-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.case-brand span,
.case-brand strong,
.case-brand small {
  display: block;
}

.case-brand strong {
  color: var(--navy-950);
  font-size: 14px;
  line-height: 1.2;
}

.case-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #425b65;
  font-size: 11px;
  font-weight: 750;
}

.case-nav a {
  position: relative;
  padding: 10px 0;
}

.case-nav a:not(.nav-back)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--teal-700);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}

.case-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-back {
  padding: 9px 14px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.menu-button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--navy-950);
  transition: transform 180ms ease;
}

.menu-button > span:nth-child(2) {
  transform: translateY(-4px);
}

.menu-button > span:nth-child(3) {
  transform: translateY(4px);
}

.menu-button[aria-expanded="true"] > span:nth-child(2) {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:nth-child(3) {
  transform: rotate(-45deg);
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 72px;
  background:
    radial-gradient(circle at 86% 15%, rgba(67, 183, 170, 0.18), transparent 27%),
    radial-gradient(circle at 8% 75%, rgba(160, 200, 191, 0.2), transparent 28%),
    linear-gradient(180deg, #f4f8f7, var(--paper));
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 82px 0 auto;
  height: 1px;
  background: rgba(6, 26, 37, 0.06);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
}

.eyebrow,
.section-index,
.mini-label {
  margin: 0;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  padding-left: 34px;
  position: relative;
}

.eyebrow span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--teal-600);
}

.hero-copy h1 {
  margin: 24px 0 26px;
  color: var(--navy-950);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(56px, 6.4vw, 92px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-copy h1 em {
  color: var(--teal-700);
  font-style: normal;
}

.hero-summary {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.hero-role {
  margin: 34px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.hero-role div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.hero-role dt {
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-role dd {
  margin: 0;
  color: #405863;
  font-size: 12px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 780;
  transition: transform 180ms var(--ease), box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--teal-700);
  color: white;
  box-shadow: 0 12px 28px rgba(8, 119, 111, 0.2);
}

.button-primary:hover {
  background: var(--teal-800);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy-950);
}

.hero-product {
  position: relative;
}

.product-window {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, var(--navy-950), #0b343c);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow-lg);
  color: white;
}

.window-bar,
.demo-label,
.evidence-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.window-bar {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #93adb3;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.window-brand i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ac7b7;
  box-shadow: 0 0 0 6px rgba(74, 199, 183, 0.08);
}

.window-state {
  color: #73d8cb;
}

.question-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.question-card span,
.question-card strong {
  display: block;
}

.question-card span {
  color: #80a0a6;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.11em;
}

.question-card strong {
  margin-top: 8px;
  color: #e8f3f1;
  font-size: 13px;
  font-weight: 650;
}

.workflow-preview {
  display: grid;
  gap: 8px;
}

.workflow-preview > div {
  min-height: 62px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-left: 2px solid var(--teal-400);
  background: rgba(255, 255, 255, 0.035);
}

.workflow-preview > div > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #75cfc3;
  font-size: 9px;
}

.workflow-preview p,
.workflow-preview small,
.workflow-preview strong {
  display: block;
  margin: 0;
}

.workflow-preview small {
  color: #759197;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.workflow-preview strong {
  margin-top: 2px;
  color: #d8e8e5;
  font-size: 10px;
}

.workflow-preview em {
  color: #7f9ba0;
  font-size: 8px;
  font-style: normal;
}

.answer-preview {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: white;
  color: var(--navy-950);
}

.answer-preview p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

.answer-preview div {
  margin-top: 12px;
  display: flex;
  gap: 7px;
}

.answer-preview span {
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--mint-100);
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 820;
}

.floating-proof {
  position: absolute;
  right: -24px;
  bottom: -34px;
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(15px);
}

.floating-proof span,
.floating-proof strong {
  display: block;
}

.floating-proof span {
  color: var(--teal-700);
  font-size: 7px;
  font-weight: 820;
  letter-spacing: 0.14em;
}

.floating-proof strong {
  margin-top: 4px;
  color: var(--navy-950);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.hero-metrics {
  margin-top: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
}

.hero-metrics > div {
  min-height: 136px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-metrics > div + div {
  border-left: 1px solid var(--line);
}

.hero-metrics span,
.hero-metrics strong,
.hero-metrics small {
  display: block;
}

.hero-metrics span {
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.hero-metrics strong {
  margin: 8px 0;
  color: var(--navy-950);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.case-section {
  padding: 120px 0;
}

.section-heading {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
}

.section-heading h2 {
  max-width: 800px;
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(40px, 4.8vw, 68px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.section-heading > div > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.challenge-section,
.experience-section,
.iteration-section {
  background: var(--surface-soft);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.challenge-grid article {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}

.challenge-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.challenge-grid article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--mint-100);
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 820;
}

.challenge-grid h3 {
  margin: 50px 0 12px;
  color: var(--navy-950);
  font-size: 21px;
}

.challenge-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.challenge-grid small {
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.13em;
}

.scope-panel {
  margin-top: 18px;
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
  border-radius: var(--radius-lg);
  background: var(--navy-950);
  color: white;
}

.scope-panel h3 {
  max-width: 460px;
  margin: 18px 0 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.scope-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.scope-columns > div {
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.scope-columns strong {
  color: #7bd7ca;
  font-size: 11px;
}

.scope-columns ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.scope-columns li {
  position: relative;
  padding: 9px 0 9px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c3d4d4;
  font-size: 11px;
}

.scope-columns li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
}

.architecture-section,
.failure-section {
  background: var(--navy-950);
  color: white;
}

.section-heading-light h2 {
  color: white;
}

.section-heading-light > div > p {
  color: #9fb6bb;
}

.mode-lab {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: #0a222d;
}

.mode-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-dark);
}

.mode-controls button {
  min-height: 84px;
  padding: 18px 28px;
  border: 0;
  background: transparent;
  color: #779399;
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
}

.mode-controls button + button {
  border-left: 1px solid var(--line-dark);
}

.mode-controls button.is-active {
  background: rgba(67, 183, 170, 0.1);
  color: white;
  box-shadow: inset 0 -3px 0 var(--teal-400);
}

.mode-controls span,
.mode-controls small {
  display: block;
}

.mode-controls span {
  font-size: 15px;
  font-weight: 760;
}

.mode-controls small {
  margin-top: 3px;
  color: #739097;
  font-size: 9px;
}

.mode-story {
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: 70px;
}

.mode-story h3 {
  margin: 18px 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(30px, 3.7vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.mode-story > div > p:not(.mini-label) {
  color: #9db2b8;
  font-size: 13px;
}

.mode-outcomes {
  margin: 28px 0 0;
  border-top: 1px solid var(--line-dark);
}

.mode-outcomes div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  border-bottom: 1px solid var(--line-dark);
}

.mode-outcomes dt {
  color: #68cbbd;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-outcomes dd {
  margin: 0;
  color: #c2d3d3;
  font-size: 10px;
}

.mode-flow {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.mode-flow li {
  min-height: 68px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  animation: flow-in 260ms var(--ease) both;
}

.mode-flow li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(67, 183, 170, 0.1);
  color: #6dd1c3;
  font-size: 9px;
  font-weight: 820;
}

.mode-flow strong,
.mode-flow small {
  display: block;
}

.mode-flow strong {
  color: #dce9e7;
  font-size: 11px;
}

.mode-flow small {
  margin-top: 2px;
  color: #739096;
  font-size: 9px;
}

@keyframes flow-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.decision-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.decision-grid article {
  min-height: 290px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.decision-number {
  margin: 0;
  color: #60c8ba;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.13em;
}

.decision-grid h3 {
  margin: 44px 0 12px;
  font-size: 18px;
}

.decision-grid > article > p:not(.decision-number) {
  margin: 0;
  color: #94adb2;
  font-size: 11px;
}

.decision-grid article > div {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: #78969b;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-grid i {
  height: 2px;
  background: linear-gradient(90deg, #5a7b81, var(--teal-400));
}

.evidence-demo {
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #e7efec;
}

.demo-answer,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.demo-answer {
  min-height: 460px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.demo-label {
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.demo-label em {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--mint-100);
  font-style: normal;
  letter-spacing: 0;
}

.demo-answer h3 {
  margin: 48px 0 20px;
  color: var(--navy-950);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.35;
}

.demo-answer > p {
  margin: 0;
  color: #354f5b;
  font-size: 14px;
  line-height: 2;
}

.demo-answer button {
  padding: 2px 5px;
  border: 0;
  border-radius: 5px;
  background: var(--mint-100);
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.demo-answer button:hover,
.demo-answer button:focus-visible {
  background: var(--teal-700);
  color: white;
}

.demo-answer > small {
  margin-top: auto;
  padding-top: 30px;
  color: var(--muted);
  font-size: 9px;
}

.demo-sources {
  display: grid;
  gap: 12px;
}

.evidence-card {
  padding: 22px;
  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms var(--ease);
}

.evidence-card.is-highlighted {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(11, 143, 132, 0.12), var(--shadow-sm);
  transform: translateY(-2px);
}

.evidence-card > div {
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 800;
}

.evidence-card em {
  color: var(--muted);
  font-style: normal;
}

.evidence-card h4 {
  margin: 18px 0 12px;
  color: var(--navy-950);
  font-size: 14px;
  line-height: 1.55;
}

.evidence-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.evidence-card mark {
  padding: 0.08em 0.16em;
  border-radius: 0.16em;
  background: transparent;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.evidence-card.is-highlighted mark {
  background: rgba(255, 222, 112, 0.7);
  box-shadow: 0.15em 0 0 rgba(255, 222, 112, 0.7),
    -0.15em 0 0 rgba(255, 222, 112, 0.7);
}

.evidence-card > small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 8px;
}

.evaluation-section {
  background: var(--paper);
}

.evaluation-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.evaluation-summary {
  padding: clamp(30px, 5vw, 52px);
  background: var(--navy-950);
  color: white;
}

.evaluation-summary h3 {
  margin: 24px 0 18px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.evaluation-summary > p:not(.mini-label) {
  color: #9eb5ba;
  font-size: 12px;
}

.evaluation-summary a {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid #5fcabd;
  color: #77d5c8;
  font-size: 10px;
  font-weight: 800;
}

.evaluation-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.evaluation-metrics article {
  min-height: 210px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.evaluation-metrics article:nth-child(even) {
  border-left: 1px solid var(--line);
}

.evaluation-metrics article:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.evaluation-metrics span,
.evaluation-metrics strong,
.evaluation-metrics small {
  display: block;
}

.evaluation-metrics span {
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evaluation-metrics strong {
  color: var(--navy-950);
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.evaluation-metrics small {
  color: var(--muted);
  font-size: 9px;
}

.evaluation-metrics .metric-gap {
  background: #fffaf0;
}

.evaluation-metrics .metric-gap span,
.evaluation-metrics .metric-gap strong {
  color: #9b6812;
}

.evaluation-method {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.evaluation-method > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.evaluation-method span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint-100);
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 820;
}

.evaluation-method strong {
  margin-top: 22px;
  display: block;
  color: var(--navy-950);
  font-size: 13px;
}

.evaluation-method p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.metric-explainer {
  margin-top: 18px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.metric-explainer > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.metric-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
}

.metric-dot-green { background: var(--teal-600); }
.metric-dot-amber { background: var(--amber); }

.metric-explainer p,
.metric-explainer strong,
.metric-explainer small {
  display: block;
  margin: 0;
}

.metric-explainer strong {
  color: var(--navy-950);
  font-size: 11px;
}

.metric-explainer small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.failure-story {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.failure-question {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.failure-question > span {
  color: #5fc7b9;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.13em;
}

.failure-question blockquote {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.failure-steps {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.failure-steps article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.failure-state {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.state-before { background: rgba(180, 94, 85, 0.16); color: #eda99f; }
.state-signal { background: rgba(227, 161, 38, 0.16); color: #efc46f; }
.state-after { background: rgba(67, 183, 170, 0.14); color: #73d3c6; }

.failure-steps h3 {
  margin: 42px 0 12px;
  font-size: 17px;
}

.failure-steps p {
  margin: 0;
  color: #93abb0;
  font-size: 11px;
}

.failure-learning {
  margin-top: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  align-items: center;
  border-left: 3px solid var(--teal-400);
  background: rgba(67, 183, 170, 0.07);
}

.failure-learning span {
  color: #64cabc;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.13em;
}

.failure-learning strong {
  color: #dfecea;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 500;
}

.iteration-timeline {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.iteration-timeline li {
  min-height: 150px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.iteration-timeline li > span {
  color: var(--teal-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 820;
}

.iteration-timeline h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 19px;
}

.iteration-timeline p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.iteration-timeline em {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

.iteration-timeline li.is-current {
  margin-inline: -18px;
  padding-inline: 18px;
  border-radius: 13px;
  background: var(--mint-100);
}

.roadmap {
  margin-top: 72px;
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  border-radius: var(--radius-lg);
  background: var(--navy-950);
  color: white;
}

.roadmap-title h3 {
  margin: 20px 0 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(30px, 3.2vw, 45px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.roadmap-items {
  display: grid;
  gap: 8px;
}

.roadmap-items article {
  padding: 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.roadmap-items article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(67, 183, 170, 0.12);
  color: #65cdbf;
  font-size: 9px;
  font-weight: 850;
}

.roadmap-items strong {
  font-size: 12px;
}

.roadmap-items p {
  margin: 4px 0 0;
  color: #8fa8ad;
  font-size: 10px;
}

.case-cta {
  padding: 110px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(67, 183, 170, 0.15), transparent 28%),
    var(--mint-100);
}

.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 90px;
  align-items: end;
}

.cta-layout h2 {
  margin: 22px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.cta-layout > div:last-child > p {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 13px;
}

.case-footer {
  padding: 28px 0;
  background: var(--navy-950);
  color: #8da5aa;
}

.case-footer .case-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.case-footer .case-brand strong {
  color: white;
}

.case-footer p,
.case-footer > div > a:last-child {
  font-size: 9px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-product {
    width: min(100%, 760px);
    justify-self: center;
  }

  .mode-story,
  .scope-panel,
  .roadmap {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .evaluation-board,
  .evidence-demo,
  .cta-layout {
    grid-template-columns: 1fr;
  }

  .demo-answer {
    min-height: 380px;
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: grid;
  }

  .case-nav {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    padding: 16px;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms var(--ease);
  }

  .case-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .case-nav a {
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
  }

  .case-nav .nav-back {
    margin-top: 8px;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .challenge-grid,
  .decision-grid,
  .evaluation-method,
  .failure-steps {
    grid-template-columns: 1fr;
  }

  .challenge-grid article,
  .decision-grid article {
    min-height: 250px;
  }

  .scope-columns,
  .metric-explainer {
    grid-template-columns: 1fr;
  }

  .failure-question,
  .failure-learning {
    grid-template-columns: 1fr;
  }

  .iteration-timeline li {
    grid-template-columns: 70px 1fr;
  }

  .iteration-timeline em {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .case-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .case-hero {
    padding-top: 120px;
  }

  .case-section {
    padding: 82px 0;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-summary {
    font-size: 15px;
  }

  .product-window {
    padding: 16px;
  }

  .workflow-preview > div {
    grid-template-columns: 32px 1fr;
  }

  .workflow-preview em {
    display: none;
  }

  .floating-proof {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 12px 16px 0;
  }

  .hero-metrics {
    margin-top: 44px;
    grid-template-columns: 1fr 1fr;
  }

  .hero-metrics > div + div {
    border-left: 0;
  }

  .hero-metrics > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .hero-metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .mode-controls {
    grid-template-columns: 1fr;
  }

  .mode-controls button + button {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .mode-story {
    padding: 26px 18px;
  }

  .mode-story h3 {
    font-size: 34px;
  }

  .mode-story {
    grid-template-columns: 1fr;
  }

  .evaluation-metrics {
    grid-template-columns: 1fr;
  }

  .evaluation-metrics article:nth-child(even) {
    border-left: 0;
  }

  .evaluation-metrics article + article {
    border-top: 1px solid var(--line);
  }

  .failure-question blockquote {
    font-size: 30px;
  }

  .iteration-timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .iteration-timeline li.is-current {
    margin-inline: 0;
  }

  .iteration-timeline em {
    grid-column: auto;
  }

  .case-footer .case-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
