:root {
  --navy: #081c33;
  --navy-soft: #102d4b;
  --blue: #145cff;
  --lilac: #8b6ff6;
  --lilac-soft: #f1ecff;
  --paper: #f7f8f5;
  --white: #ffffff;
  --ink: #101820;
  --muted: #65727d;
  --line: #d7dde0;
  --signal: #ff562b;
  --signal-bright: #ffd166;
  --shell: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body:has(.lightbox[open]) { overflow: hidden; }

button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p, figure, dl, dd { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: 0; }

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-150%);
}

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

.case-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  color: var(--white);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(8 28 51 / 82%);
  backdrop-filter: blur(18px);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.case-header.is-scrolled {
  background: rgb(8 28 51 / 96%);
  box-shadow: 0 12px 32px rgb(2 12 24 / 18%);
}

.case-brand, .case-header nav, .header-back, .header-live {
  display: flex;
  align-items: center;
}

.case-brand { gap: 12px; }
.case-brand > span:last-child { display: grid; line-height: 1.1; }
.case-brand strong { font-family: "Onest", "Segoe UI", sans-serif; font-size: 14px; }
.case-brand small { margin-top: 4px; color: rgb(255 255 255 / 58%); font-size: 10px; text-transform: uppercase; }

.case-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.case-header nav { gap: 12px; }
.header-back, .header-live { min-height: 42px; gap: 9px; font-size: 13px; font-weight: 650; }
.header-back { padding: 0 12px; color: rgb(255 255 255 / 76%); transition: color 250ms ease; }
.header-back:hover { color: var(--white); }
.header-live { padding: 0 16px; color: var(--navy); background: var(--signal-bright); transition: transform 350ms var(--ease), background 250ms ease; }
.header-live:hover { background: var(--white); transform: translateY(-2px); }
.header-back svg, .header-live svg { width: 17px; height: 17px; }

.case-hero {
  min-height: 920px;
  padding: 148px 0 90px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-copy { position: relative; z-index: 2; }

.hero-labels {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  color: rgb(255 255 255 / 58%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.case-hero h1 {
  margin: 42px 0 24px;
  max-width: 850px;
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 104px;
  font-weight: 600;
}

.hero-lead {
  max-width: 820px;
  margin-bottom: 34px;
  color: rgb(255 255 255 / 82%);
  font-size: 25px;
  line-height: 1.42;
}

.hero-actions, .button, .text-link { display: flex; align-items: center; }
.hero-actions { gap: 26px; }

.button {
  width: fit-content;
  min-height: 52px;
  gap: 14px;
  justify-content: center;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 420ms var(--ease), background 280ms ease, color 280ms ease;
}

.button:hover { transform: translateY(-3px); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { color: var(--navy); background: var(--signal-bright); }

.text-link {
  width: fit-content;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
  font-weight: 650;
  transition: gap 350ms var(--ease), color 250ms ease;
}

.text-link:hover { gap: 14px; color: var(--white); }
.text-link svg { width: 17px; height: 17px; }

.hero-screen {
  position: relative;
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 22%);
  background: #f8f6ff;
  box-shadow: 0 46px 120px rgb(0 0 0 / 35%);
}

.screen-bar {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #667080;
  background: #ece8f8;
}

.screen-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #b9b0d6; }
.screen-bar > span:first-child { background: var(--signal); }
.screen-bar > span:nth-child(2) { background: var(--signal-bright); }
.screen-bar > span:nth-child(3) { background: var(--lilac); }
.screen-bar small { margin-left: 8px; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 9px; }

.screen-open, .gallery-item button, .outcome-item button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
}

.screen-open img, .gallery-item img, .outcome-item img {
  width: 100%;
  transition: transform 700ms var(--ease), filter 400ms ease;
}

.screen-open:hover img, .gallery-item button:hover img, .outcome-item button:hover img { transform: scale(1.012); filter: brightness(.96); }

.expand-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgb(8 28 51 / 86%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 350ms var(--ease);
}

button:hover .expand-icon, button:focus-visible .expand-icon { opacity: 1; transform: translateY(0); }
.expand-icon svg { width: 18px; height: 18px; }

.case-facts { border-bottom: 1px solid var(--line); background: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { min-width: 0; padding: 27px 24px; border-left: 1px solid var(--line); }
.facts-grid div:last-child { border-right: 1px solid var(--line); }
.facts-grid span, .facts-grid strong { display: block; }
.facts-grid span { margin-bottom: 6px; color: var(--muted); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 9px; text-transform: uppercase; }
.facts-grid strong { font-size: 14px; line-height: 1.35; }

.case-section { padding: 124px 0; }
.section-index { margin-bottom: 20px; color: var(--blue); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 10px; text-transform: uppercase; }
.section-heading { display: grid; max-width: 920px; margin-bottom: 58px; }
.section-heading h2, .story-copy h2, .build-intro h2, .result-copy h2, .case-cta h2 {
  margin-bottom: 24px;
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 54px;
  font-weight: 600;
}
.section-heading > p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 18px; }

.story-grid { display: grid; grid-template-columns: 170px minmax(0, 870px); gap: 0 44px; }
.story-grid > .section-index { padding-top: 10px; }
.story-copy h2 { max-width: 850px; }
.story-copy > p { max-width: 750px; color: var(--muted); font-size: 18px; }
.story-copy .lead-copy { color: var(--ink); font-size: 24px; line-height: 1.45; }

.decisions { color: var(--white); background: var(--navy); }
.decisions .section-index { color: var(--signal-bright); }
.decisions .section-heading > p:last-child { color: rgb(255 255 255 / 64%); }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgb(255 255 255 / 16%); border-left: 1px solid rgb(255 255 255 / 16%); }
.decision {
  position: relative;
  min-height: 280px;
  padding: 34px;
  border-right: 1px solid rgb(255 255 255 / 16%);
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  transition: color 400ms ease, background 400ms ease;
}
.decision:hover { color: var(--navy); background: var(--signal-bright); }
.decision > svg { width: 25px; height: 25px; margin-bottom: 64px; color: var(--lilac); transition: color 400ms ease; }
.decision:hover > svg { color: var(--blue); }
.decision > span { position: absolute; top: 34px; right: 34px; color: rgb(255 255 255 / 40%); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 10px; }
.decision:hover > span { color: rgb(8 28 51 / 52%); }
.decision h3 { margin-bottom: 12px; font-family: "Onest", "Segoe UI", sans-serif; font-size: 25px; font-weight: 600; }
.decision p { max-width: 520px; margin-bottom: 0; color: rgb(255 255 255 / 62%); transition: color 400ms ease; }
.decision:hover p { color: rgb(8 28 51 / 76%); }

.product-gallery { background: var(--white); }
.gallery-grid { display: grid; gap: 78px; }
.gallery-item { margin: 0; }
.gallery-item button { border: 1px solid var(--line); background: var(--lilac-soft); box-shadow: 0 24px 70px rgb(8 28 51 / 12%); }
.gallery-item img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.gallery-item figcaption { display: grid; grid-template-columns: 170px minmax(0, 640px); gap: 24px; padding-top: 22px; }
.gallery-item figcaption span { color: var(--blue); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 10px; text-transform: uppercase; }
.gallery-item figcaption p { margin: 0; font-size: 17px; }

.journey { border-top: 1px solid var(--line); background: var(--white); }
.journey-line { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.journey-line li { position: relative; min-height: 230px; padding: 30px 24px 20px 0; border-right: 1px solid var(--line); }
.journey-line li:not(:first-child) { padding-left: 24px; }
.journey-line li:last-child { border-right: 0; }
.journey-line li::before { position: absolute; top: -4px; left: 0; width: 8px; height: 8px; content: ""; border-radius: 50%; background: var(--blue); }
.journey-line li:not(:first-child)::before { left: 24px; }
.journey-line span { display: block; margin-bottom: 54px; color: var(--blue); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 10px; }
.journey-line strong { display: block; margin-bottom: 10px; font-family: "Onest", "Segoe UI", sans-serif; font-size: 19px; }
.journey-line p { margin: 0; color: var(--muted); font-size: 14px; }

.outcomes { background: var(--lilac-soft); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.outcome-item { margin: 0; background: var(--white); border: 1px solid #d9cff8; }
.outcome-item button { aspect-ratio: 16 / 9; border-bottom: 1px solid #d9cff8; }
.outcome-item img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.outcome-item figcaption { display: grid; gap: 4px; padding: 20px 22px; }
.outcome-item figcaption strong { font-family: "Onest", "Segoe UI", sans-serif; font-size: 18px; }
.outcome-item figcaption span { color: var(--muted); font-size: 13px; }

.build { background: var(--white); }
.build-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: 100px; align-items: start; }
.build-intro p:last-child { max-width: 540px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.build-list { border-top: 1px solid var(--line); }
.build-list div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.build-list span { color: var(--blue); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 10px; text-transform: uppercase; }
.build-list strong { font-size: 16px; font-weight: 600; }

.case-result { padding: 124px 0; background: var(--signal-bright); }
.case-result .section-index { color: var(--navy); }
.result-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 100px; align-items: end; }
.result-copy p:not(.section-index) { max-width: 620px; margin-bottom: 32px; font-size: 18px; }
.button-dark { color: var(--white); background: var(--navy); }
.button-dark:hover { color: var(--navy); background: var(--white); }
.result-numbers { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 0; border-top: 1px solid rgb(8 28 51 / 28%); }
.result-numbers div { padding: 24px 12px 0 0; border-right: 1px solid rgb(8 28 51 / 28%); }
.result-numbers div:not(:first-child) { padding-left: 20px; }
.result-numbers div:last-child { border-right: 0; }
.result-numbers dt { font-family: "Onest", "Segoe UI", sans-serif; font-size: 58px; font-weight: 600; line-height: 1; }
.result-numbers dd { margin: 10px 0 0; font-size: 13px; }

.case-cta { padding: 112px 0; color: var(--white); background: var(--navy); }
.cta-grid { display: grid; grid-template-columns: 1fr 320px; gap: 80px; align-items: end; }
.case-cta .section-index { color: var(--signal-bright); }
.case-cta h2 { max-width: 790px; margin-bottom: 0; }
.cta-actions { display: grid; gap: 24px; justify-items: start; }
.button-signal { color: var(--navy); background: var(--signal); }
.button-signal:hover { background: var(--signal-bright); }
.text-link-light { color: rgb(255 255 255 / 72%); }

.case-footer { color: rgb(255 255 255 / 62%); background: #041323; border-top: 1px solid rgb(255 255 255 / 12%); }
.case-footer .case-shell { display: flex; min-height: 94px; align-items: center; justify-content: space-between; }
.case-footer div > div { display: grid; line-height: 1.2; }
.case-footer strong { color: var(--white); font-size: 13px; }
.case-footer span, .case-footer p { margin: 0; font-size: 11px; }

.lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 20%);
  background: #041323;
  box-shadow: 0 40px 120px rgb(0 0 0 / 55%);
}
.lightbox::backdrop { background: rgb(2 7 13 / 84%); backdrop-filter: blur(8px); }
.lightbox-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 12px 10px 20px; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.lightbox-head p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 12px; }
.lightbox-head button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--white); cursor: pointer; background: transparent; transition: background 250ms ease; }
.lightbox-head button:hover { background: rgb(255 255 255 / 10%); }
.lightbox-head svg { width: 20px; height: 20px; }
.lightbox-media { max-height: calc(94vh - 58px); overflow: auto; }
.lightbox-media img { width: 100%; height: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease, transform 900ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 980px) {
  .case-hero h1 { font-size: 78px; }
  .hero-lead { font-size: 22px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid div:nth-child(2) { border-right: 1px solid var(--line); }
  .facts-grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .story-grid { grid-template-columns: 130px 1fr; gap: 32px; }
  .section-heading h2, .story-copy h2, .build-intro h2, .result-copy h2, .case-cta h2 { font-size: 46px; }
  .journey-line { grid-template-columns: repeat(3, 1fr); }
  .journey-line li:nth-child(3) { border-right: 0; }
  .journey-line li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .build-grid, .result-grid { grid-template-columns: 1fr; gap: 60px; }
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 700px) {
  .case-shell { width: min(calc(100% - 36px), var(--shell)); }
  .case-header { height: 64px; padding: 0 18px; }
  .case-brand > span:last-child { display: none; }
  .case-brand-mark { width: 34px; height: 34px; }
  .header-back span { display: none; }
  .header-back { width: 40px; justify-content: center; padding: 0; }
  .header-live { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .case-hero { min-height: 0; padding: 112px 0 62px; }
  .hero-labels { display: grid; gap: 6px; }
  .case-hero h1 { margin: 30px 0 18px; font-size: 52px; }
  .hero-lead { margin-bottom: 28px; font-size: 19px; line-height: 1.46; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .button { min-height: 48px; }
  .hero-screen { margin-top: 50px; }
  .screen-bar { height: 30px; }
  .screen-bar small { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .expand-icon { right: 10px; bottom: 10px; width: 38px; height: 38px; opacity: 1; transform: none; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid div { padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .facts-grid div:last-child { border-bottom: 0; }
  .case-section, .case-result { padding: 82px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 8px; }
  .story-grid > .section-index { padding-top: 0; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .story-copy h2, .build-intro h2, .result-copy h2, .case-cta h2 { font-size: 36px; line-height: 1.08; }
  .story-copy .lead-copy { font-size: 20px; }
  .story-copy > p, .section-heading > p:last-child, .build-intro p:last-child, .result-copy p:not(.section-index) { font-size: 16px; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision { min-height: 250px; padding: 26px; }
  .decision > svg { margin-bottom: 50px; }
  .decision > span { top: 26px; right: 26px; }
  .decision h3 { font-size: 22px; }
  .gallery-grid { gap: 54px; }
  .gallery-item figcaption { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .journey-line { grid-template-columns: 1fr; border-top: 0; }
  .journey-line li, .journey-line li:not(:first-child) { min-height: 0; padding: 22px 0 24px 34px; border-top: 1px solid var(--line); border-right: 0; }
  .journey-line li::before, .journey-line li:not(:first-child)::before { top: 28px; left: 0; }
  .journey-line span { margin-bottom: 18px; }
  .outcome-grid { grid-template-columns: 1fr; }
  .build-grid { gap: 42px; }
  .build-list div { grid-template-columns: 92px 1fr; gap: 14px; }
  .result-grid { gap: 48px; }
  .result-numbers { grid-template-columns: 1fr; }
  .result-numbers div, .result-numbers div:not(:first-child) { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; padding: 18px 0; border-right: 0; border-bottom: 1px solid rgb(8 28 51 / 28%); }
  .result-numbers div:last-child { border-bottom: 0; }
  .result-numbers dt { font-size: 46px; }
  .result-numbers dd { margin: 0; }
  .case-cta { padding: 82px 0; }
  .case-footer .case-shell { min-height: 84px; }
  .lightbox { width: 96vw; max-height: 90vh; }
  .lightbox-head { gap: 10px; padding-left: 14px; }
  .lightbox-head p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

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