/* ─────────────────────────────────────────────────────────────
   Jeeves — feature case study
   Shares the case-study surface with Parkbeheer and KLu POS:
   same type stack, same chapter rhythm, same .case-* vocabulary.
   What changes is the palette, and the palette is the argument —
   the product colour-codes its four output formats, so this page
   uses those same four accents as its own navigation system.
   ───────────────────────────────────────────────────────────── */
:root {
  --paper: #f4f4f1;
  --card: #ffffff;
  --ink: #101d2e;
  --muted: #5d6a7a;
  --line: #d9d9d3;
  --line-soft: #e6e6e1;
  --tint: #eaedf2;

  /* the four formats, in the product's own colours */
  --video: #1668dc;
  --interactive: #7b3fe4;
  --tipsheet: #e0740c;
  --tour: #0d8a72;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body::before,
body::after {
  display: none !important;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
blockquote,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--video);
  outline-offset: 4px;
  border-radius: 3px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.case-skip {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 11000;
  background: #fff;
  padding: 12px 20px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.case-skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
}

/* ── shared type ─────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.99;
  letter-spacing: -0.028em;
}
h1 em {
  font-style: italic;
  color: var(--video);
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 3.7vw, 53px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h2 em {
  font-style: italic;
}
h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.case-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.large-copy {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
p + p {
  margin-top: 17px;
}

/* ── hero ────────────────────────────────────────────────── */
.case-hero {
  padding-block: 120px 0;
}
.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-eyebrow span:first-child {
  color: var(--ink);
  font-weight: 500;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 62px;
  align-items: end;
  padding-block: 52px 46px;
}
.hero-intro {
  margin-top: 26px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 41ch;
}
.project-details p {
  font-size: 14.5px;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.project-details dl {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}
.project-details dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-details dd {
  font-size: 14.5px;
  margin-top: 3px;
}

/* the hero cover: the editor, with the three outputs fanned beneath */
.project-cover {
  position: relative;
  background: linear-gradient(168deg, #1b2b41 0%, #0d1826 58%, #101d2e 100%);
  border-radius: 20px;
  padding: 46px 46px 0;
  overflow: hidden;
}
.cover-notation {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8ea3bd;
  padding-bottom: 26px;
}
.cover-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 30px;
  align-items: end;
}
.cover-main {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.09),
    0 34px 70px rgba(0, 0, 0, 0.46);
}
.cover-side {
  display: grid;
  gap: 16px;
  padding-bottom: 34px;
}
.cover-side figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  position: relative;
}
.cover-side img {
  display: block;
}
.cover-side span {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 22, 36, 0.82);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding-block: 34px 20px;
}
.hero-foot p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 29px);
  line-height: 1.22;
  max-width: 30ch;
}
.hero-foot span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.case-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-width: 82ch;
}

/* ── chapter nav ─────────────────────────────────────────── */
.chapter-nav {
  position: sticky;
  /* clears the fixed studio header, the way the other case studies do */
  top: 68px;
  z-index: 40;
  background: rgba(244, 244, 241, 0.93);
  backdrop-filter: blur(11px);
  border-block: 1px solid var(--line);
  margin-top: 60px;
}
.chapter-nav .wrap {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 15px;
}
.chapter-nav .wrap::-webkit-scrollbar {
  display: none;
}
.chapter-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.chapter-nav a:hover {
  color: var(--ink);
}
.chapter-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--video);
}

/* ── chapters ────────────────────────────────────────────── */
.chapter {
  padding-block: 96px;
}
.tinted {
  background: var(--tint);
}
.chapter-heading {
  margin-bottom: 48px;
}
.chapter-heading .case-label {
  display: block;
  margin-bottom: 18px;
}

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 74px;
  align-items: start;
}
.prose-grid > div p {
  max-width: 64ch;
}
.section-intro {
  max-width: 70ch;
  margin-bottom: 40px;
}

/* an aside that carries a voice from the work */
.field-quote {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.field-quote .case-label {
  display: block;
  margin-bottom: 16px;
}
.field-quote blockquote {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.014em;
}
.field-quote p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── figures ─────────────────────────────────────────────── */
.screen-figure {
  margin-top: 46px;
}
.figure-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.figure-head span:last-child {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.screen-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}
.screen-preview:hover {
  box-shadow: 0 18px 44px rgba(16, 29, 46, 0.16);
  transform: translateY(-2px);
}
.enlarge-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(16, 29, 46, 0.86);
  color: #fff;
  padding: 6px 11px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.22s;
}
.screen-preview:hover .enlarge-label,
.screen-preview:focus-visible .enlarge-label {
  opacity: 1;
}
figcaption {
  margin-top: 15px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 78ch;
}
.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 46px;
}
.figure-pair figcaption {
  max-width: none;
}

/* ── the format rail: four accents, used as a legend ─────── */
.format-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 46px;
}
.format-rail article {
  background: var(--card);
  padding: 26px 24px 28px;
}
.format-rail b {
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.format-rail h3 {
  font-size: 16px;
}
.format-rail p {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.format-rail small {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fmt-video b {
  background: var(--video);
}
.fmt-interactive b {
  background: var(--interactive);
}
.fmt-tipsheet b {
  background: var(--tipsheet);
}
.fmt-tour b {
  background: var(--tour);
}

/* ── the layer lab: the page's central demonstration ─────── */
.layer-lab {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}
.lab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfbfa;
}
.lab-top .case-label {
  color: var(--ink);
}
.lab-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lab-track {
  padding: 22px 24px 6px;
}
.lab-scrub {
  position: relative;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef1f5, #e6eaf0);
  border: 1px solid var(--line-soft);
  cursor: ew-resize;
  touch-action: none;
}
.lab-scrub::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(16, 29, 46, 0.09) 0 1px,
    transparent 1px 10%
  );
  border-radius: 8px;
}
.lab-frames {
  position: absolute;
  inset: 4px;
  display: flex;
  gap: 2px;
  border-radius: 5px;
  overflow: hidden;
}
.lab-frames i {
  flex: 1;
  background: #cfd8e4;
  border-radius: 2px;
}
.lab-playhead {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: #e0342d;
  z-index: 3;
  pointer-events: none;
}
.lab-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  translate: -50% 0;
  border: 5px solid transparent;
  border-top-color: #e0342d;
  border-bottom: 0;
}

.lab-layers {
  padding: 14px 24px 24px;
  display: grid;
  gap: 7px;
}
.lab-layer {
  position: relative;
  height: 28px;
  border-radius: 6px;
  background: #f2f3f5;
}
.lab-layer span {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: filter 0.18s;
}
.lab-layer span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}
.lab-layer.is-live span {
  filter: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 0 3.5px var(--ring, currentColor);
}
.lab-layer:not(.is-live) span {
  filter: saturate(0.22) opacity(0.5);
}

.lab-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.lab-out {
  background: var(--card);
  padding: 22px 22px 26px;
  min-height: 268px;
}
.lab-out header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.lab-out header b {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.lab-out header span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.lab-out--video header b {
  background: var(--video);
}
.lab-out--tipsheet header b {
  background: var(--tipsheet);
}
.lab-out--tour header b {
  background: var(--tour);
}

/* pane 1 — the frame with the layer drawn over it */
.lab-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: #f7f9fc;
  overflow: hidden;
}
.lab-frame .chrome {
  height: 15px;
  background: #b02a2f;
}
.lab-frame .chrome + i {
  display: block;
  height: 9px;
  background: #1d5fa8;
}
.lab-frame .rows {
  padding: 8px 9px;
  display: grid;
  gap: 5px;
}
.lab-frame .rows i {
  display: block;
  height: 6px;
  border-radius: 2px;
  background: #dbe3ee;
}
.lab-frame .rows i:nth-child(2n) {
  width: 74%;
}
.lab-frame .rows i:nth-child(3n) {
  width: 88%;
}
.lab-mark {
  position: absolute;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}
.lab-mark.on {
  opacity: 1;
}
.lab-mark--box {
  inset: 38% 12% 34% 9%;
  border: 2px solid var(--video);
  background: rgba(22, 104, 220, 0.09);
}
.lab-mark--blur {
  inset: 14% 52% 62% 12%;
  background: rgba(120, 132, 148, 0.9);
  backdrop-filter: blur(3px);
  border-radius: 3px;
}
.lab-mark--callout {
  right: 7%;
  bottom: 9%;
  left: 34%;
  background: #fff6d6;
  border: 1px solid #e8cf7a;
  padding: 7px 9px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #4a3c12;
  border-radius: 5px;
}
.lab-mark--hotspot {
  left: 62%;
  top: 46%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--interactive);
  background: rgba(123, 63, 228, 0.16);
}

/* pane 2 — the same object as a tip-sheet step */
.lab-doc {
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 14px 15px 16px;
  background: #fff;
  min-height: 158px;
}
.lab-doc .step {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tipsheet);
}
.lab-doc h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 9px;
  line-height: 1.3;
}
.lab-doc p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.lab-doc .shot {
  margin-top: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  height: 54px;
  background: linear-gradient(180deg, #b02a2f 0 5px, #1d5fa8 5px 10px, #f4f7fb 10px);
  position: relative;
  overflow: hidden;
}
.lab-doc .shot i {
  position: absolute;
  inset: 44% 16% 26% 10%;
  border: 1.5px solid var(--tipsheet);
  border-radius: 2px;
}

/* pane 3 — the same object as a tour stop */
.lab-tour {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #f7f9fc;
}
.lab-tour .chrome {
  height: 15px;
  background: #b02a2f;
}
.lab-tour .chrome + i {
  display: block;
  height: 9px;
  background: #1d5fa8;
}
.lab-tour .rows {
  padding: 8px 9px;
  display: grid;
  gap: 5px;
}
.lab-tour .rows i {
  display: block;
  height: 6px;
  border-radius: 2px;
  background: #dbe3ee;
}
.lab-tour .rows i:nth-child(2n) {
  width: 74%;
}
.lab-tour .rows i:nth-child(3n) {
  width: 88%;
}
.lab-tour .spot {
  position: absolute;
  inset: 38% 12% 34% 9%;
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(16, 29, 46, 0.58);
  border: 2px solid var(--tour);
  transition: inset 0.28s cubic-bezier(0.22, 0.68, 0.31, 1);
}
.lab-tour .tip {
  position: absolute;
  right: 6%;
  bottom: 7%;
  left: 30%;
  background: #fff;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 10.5px;
  line-height: 1.36;
  box-shadow: 0 10px 24px rgba(16, 29, 46, 0.28);
}
.lab-tour .tip b {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tour);
  margin-bottom: 3px;
}
.lab-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  background: #fbfbfa;
}
.lab-foot strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── two models compared ─────────────────────────────────── */
.model-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 46px;
}
.model-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 30px;
  background: var(--card);
}
.model-card.rejected {
  background: #f0efec;
  border-style: dashed;
}
.model-card .case-label {
  display: block;
  margin-bottom: 14px;
}
.model-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.model-card > p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.model-flow {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}
.model-flow div {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #f5f6f8;
}
.model-card.rejected .model-flow div {
  background: #e6e4e0;
  color: var(--muted);
}
.model-flow div b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 22px;
}
.model-cost {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
.model-cost strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.model-card.rejected .model-cost strong {
  color: #8b8577;
}

/* ── tool taxonomy ───────────────────────────────────────── */
.tool-board {
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.tool-board > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfbfa;
}
.tool-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.tool-group {
  background: var(--card);
  padding: 24px 22px 26px;
}
.tool-group h3 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-group h3 b {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--muted);
}
.tool-group ul {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 7px;
}
.tool-group li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 15px;
  position: relative;
  line-height: 1.45;
}
.tool-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--line);
}
.tool-group li b {
  color: var(--ink);
  font-weight: 500;
}
.tool-group p {
  margin-top: 15px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
.tg-static h3 b {
  background: var(--video);
}
.tg-interactive h3 b {
  background: var(--interactive);
}
.tg-media h3 b {
  background: var(--tipsheet);
}
.tg-transcribe h3 b {
  background: var(--tour);
}

/* ── decision / principle ledgers ────────────────────────── */
.ledger {
  margin-top: 46px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ledger article {
  background: var(--card);
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  padding: 26px 28px;
  align-items: start;
}
.ledger article > span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.ledger h3 {
  font-size: 17px;
}
.ledger p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── the trust strip (AI review) ─────────────────────────── */
.trust-strip {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.trust-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 26px;
  background: var(--card);
}
.trust-card b {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 13px;
}
.trust-card h3 {
  font-size: 17px;
  margin-bottom: 9px;
}
.trust-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.58;
}

/* ── learner doors ───────────────────────────────────────── */
.doors {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.door {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.door .door-copy {
  padding: 24px 26px 26px;
}
.door .case-label {
  display: block;
  margin-bottom: 12px;
}
.door h3 {
  font-size: 18px;
  margin-bottom: 9px;
}
.door p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.58;
}
.door .screen-preview {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.door .screen-preview:hover {
  transform: none;
  box-shadow: none;
}

/* ── outcome ─────────────────────────────────────────────── */
.outcome-note {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.outcome-note .case-label {
  display: block;
  margin-bottom: 18px;
}
.outcome-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.outcome-note strong small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}
.outcome-note hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.outcome-note .secondary-outcome {
  font-size: 40px;
}
.outcome-note > p {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── end ─────────────────────────────────────────────────── */
.case-end {
  background: #0d1826;
  color: #eef1f5;
  padding-block: 96px 88px;
  margin-top: 0;
}
.case-end .case-label {
  color: #8ea3bd;
  display: block;
  margin-bottom: 22px;
}
.case-end h2 {
  color: #fff;
  max-width: 24ch;
}
.case-end h2 em {
  color: #6fa8ef;
}
.end-links {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.end-links a {
  color: #cfdcec;
  transition: color 0.2s;
}
.end-links a:hover {
  color: #fff;
}

/* ── enlarge dialog ──────────────────────────────────────── */
.image-dialog {
  width: min(1500px, 96vw);
  max-width: none;
  height: 92vh;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.image-dialog::backdrop {
  background: rgba(10, 18, 29, 0.72);
  backdrop-filter: blur(3px);
}
.image-dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.image-dialog-bar h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.image-dialog-bar button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.image-dialog-scroll {
  overflow: auto;
  height: calc(92vh - 100px);
  background: #eef0f3;
  padding: 22px;
}
.image-dialog-scroll img {
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(16, 29, 46, 0.18);
}
.image-dialog > p {
  padding: 10px 22px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* studio header sits dark on this page */
.rf-pnav,
.rf-pnav.is-solid {
  background: #0d1826;
  border-bottom-color: #24344a;
}
.rf-pnav.is-hidden {
  transform: none;
}

/* ── responsive ──────────────────────────────────────────── */
@media (min-width: 1600px) {
  .wrap {
    width: min(1330px, calc(100% - 120px));
  }
  .chapter {
    padding-block: 112px;
  }
}
@media (max-width: 1180px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .prose-grid {
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) 272px;
  }
  .format-rail,
  .tool-groups {
    grid-template-columns: 1fr 1fr;
  }
  .ledger article {
    grid-template-columns: 148px minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cover-stage {
    grid-template-columns: 1fr;
  }
  .cover-side {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    padding-bottom: 0;
    margin-top: -10px;
  }
  .prose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lab-outputs,
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .model-compare,
  .figure-pair,
  .doors {
    grid-template-columns: 1fr;
  }
  .ledger article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lab-out {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .case-hero {
    padding-top: 92px;
  }
  .project-cover {
    padding: 26px 22px 0;
    border-radius: 14px;
  }
  .chapter {
    padding-block: 66px;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .format-rail,
  .tool-groups {
    grid-template-columns: 1fr;
  }
  .chapter-heading,
  .chapter-heading h2 {
    max-width: none;
  }
  .large-copy {
    font-size: 19px;
  }
  .outcome-note strong {
    font-size: 48px;
  }
  .image-dialog-scroll {
    padding: 10px;
  }
}
