/* Branding and Positioning: page-specific styles.
   The shared header/footer (.rv-header, .rv-footer)
   rules below duplicate the shared theme styles harmlessly (later in the cascade). */
:root {
  /* measured sticky header height */
  --rv-nav-h: 82px;
  --rv-black: #1a1a1a;
  --rv-black-2: #202020;
  --rv-green: #64c040;
  --rv-yellow: #fecd2f;
  --rv-blue: #2a7de1;
  --rv-white: #ffffff;
  --rv-fog: #f4f5f3;
  --rv-ink: #101010;
  --rv-hair: rgba(255, 255, 255, 0.14);
  --rv-hair-strong: rgba(255, 255, 255, 0.32);
  --rv-hair-dark: rgba(26, 26, 26, 0.14);
  --rv-hair-dark-strong: rgba(26, 26, 26, 0.28);
}

.rv-root {
  background: var(--rv-black);
  color: var(--rv-white);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11", "tnum";
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  display: block;
}

.rv-root * { box-sizing: border-box; }
.rv-root > section {
  display: block;
  margin: 0;
  width: 100%;
  position: relative;
  scroll-margin: 0;
  scroll-padding: 0;
}
.rv-root > section + section { margin-top: 0; }
.rv-root a { color: inherit; text-decoration: none; }
.rv-root button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.rv-root :focus-visible { outline: 2px solid var(--rv-green); outline-offset: 3px; }

.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;
}

.rv-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.rv-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: currentColor;
}
.rv-label-rule {
  width: 28px; height: 1px; background: var(--rv-green); display: inline-block;
}

.rv-h2 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
}

.rv-display {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(58px, 8vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 20px 0 20px;
}
.rv-display em { font-style: normal; color: var(--rv-green); }
.rv-display--sm { font-size: clamp(50px, 6.8vw, 114px); }

.rv-mask { display: block; overflow: hidden; padding: 0.05em 0; }
.rv-mask-in {
  display: block;
  transform: translateY(102%);
  transition: transform 900ms cubic-bezier(0.2, 0.9, 0.2, 1.05);
}
.is-in .rv-mask:nth-child(1) .rv-mask-in { transform: translateY(0); transition-delay: 60ms; }
.is-in .rv-mask:nth-child(2) .rv-mask-in { transform: translateY(0); transition-delay: 200ms; }
.is-in .rv-mask:nth-child(3) .rv-mask-in { transform: translateY(0); transition-delay: 340ms; }

/* CTA */
.rv-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  border: 1px solid var(--rv-green);
  color: var(--rv-white);
  font-weight: 600; font-size: 17px; letter-spacing: 0.01em;
  transition: background 120ms steps(1), color 120ms steps(1);
}
.rv-cta:hover { background: var(--rv-green); color: var(--rv-black); }
.rv-cta-arrow { transition: transform 200ms cubic-bezier(0.2, 0.9, 0.2, 1); }
.rv-cta:hover .rv-cta-arrow { transform: translateX(4px); }
.rv-cta--ghost { border-color: var(--rv-hair-strong); }
.rv-cta--ghost:hover { background: var(--rv-white); color: var(--rv-black); border-color: var(--rv-white); }
.rv-sublink {
  font-family: "JetBrains Mono", monospace; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7;
  border-bottom: 1px solid var(--rv-hair-strong); padding-bottom: 4px;
}
.rv-sublink:hover { opacity: 1; color: var(--rv-green); border-color: var(--rv-green); }
.rv-cta-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* =============== S1 HERO =============== */
.rv-hero {
  position: relative;
  min-height: auto;
  background: var(--rv-black);
  padding: 24px 48px 8px;
  display: block;
  overflow: hidden;
}
.rv-hero::before { content: none; }

.rv-topnav {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 2;
}
.rv-logo { height: 24px; width: auto; display: block; }
.rv-menu {
  display: inline-flex; flex-direction: column; gap: 5px;
  padding: 10px 12px; border: 1px solid var(--rv-hair);
}
.rv-menu span { width: 18px; height: 1px; background: var(--rv-white); display: block; }

.rv-hero-inner {
  margin-top: clamp(16px, 3vh, 32px);
  max-width: 1080px;
  padding-left: calc(100% / 12);
  padding-right: 48px;
  position: relative; z-index: 2;
}

.rv-lede {
  max-width: 560px;
  font-size: 20px;
  line-height: 1.5;
  opacity: 0.72;
  margin: 0 0 12px;
}

/* Hero composite Action + Trust band */
.rv-hero .rv-cta-row { justify-content: flex-start; margin-top: 4px; }
.rv-hero .rv-cta-row .rv-cta { padding: 18px 28px; font-size: 22px; letter-spacing: 0.01em; gap: 16px; }
.rv-hero .rv-cta-row .rv-cta-arrow { font-size: 24px; }

.rv-action-band {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 12px 0;
  border-top: 1px solid var(--rv-hair);
  border-bottom: 1px solid var(--rv-hair);
}
.rv-action-cta {
  padding: 18px 28px;
  font-size: 22px;
  letter-spacing: 0.01em;
  gap: 16px;
  white-space: nowrap;
}
.rv-action-trust {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  margin-left: auto;
  text-align: right;
}
.rv-action-trust-label {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.rv-action-trust-marks {
  display: flex; gap: 12px;
  list-style: none; padding: 0; margin: 0;
  font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.rv-action-trust-stat {
  font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-left: 1px solid var(--rv-hair);
  padding-left: 14px;
  white-space: nowrap;
}
.rv-action-trust-stat .rv-num { color: var(--rv-green); font-size: 22px; margin-right: 4px; }

@media (max-width: 900px) {
  .rv-action-band { grid-template-columns: 1fr; gap: 16px; }
  .rv-action-trust { justify-content: flex-start; }
}

.rv-instrument {
  position: absolute;
  right: 0; top: 50%;
  width: 62%; height: 200px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.rv-instr-base { stroke: var(--rv-hair); stroke-width: 1; }
.rv-instr-pulse {
  stroke: var(--rv-green); stroke-width: 1.5; fill: none;
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
}
.is-in .rv-instr-pulse {
  animation: rv-instr 2400ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
}
@keyframes rv-instr {
  0% { stroke-dashoffset: 2000; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.rv-instrument--resolved .rv-instr-resolve {
  stroke: var(--rv-green); stroke-width: 2; fill: none;
  stroke-dasharray: 1500; stroke-dashoffset: 1500;
}
.is-in .rv-instr-resolve {
  animation: rv-instr 2000ms cubic-bezier(0.4, 0, 0.2, 1) 300ms forwards;
}

.rv-scroll-tick {
  position: absolute; z-index: 2;
  left: 48px;
  bottom: 36px;
  display: flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.2em;
  opacity: 0.5;
  padding-left: calc(100% / 12);
}
.rv-scroll-tick i { width: 1px; height: 32px; background: var(--rv-green); display: block; }

/* =============== S2 TRUST STRIP =============== */
.rv-trust {
  background: var(--rv-black-2);
  padding: 16px 48px;
  border-top: 1px solid var(--rv-hair);
  border-bottom: 1px solid var(--rv-hair);
}
.rv-trust-frame {
  border: 1px solid var(--rv-hair);
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 40px; align-items: center;
  animation: rv-fade 800ms ease-out both;
}
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
.rv-trust-marks {
  display: flex; justify-content: space-between; gap: 24px;
  list-style: none; padding: 0; margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.rv-trust-stat {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border-left: 1px solid var(--rv-hair);
  padding-left: 24px;
}
.rv-trust-stat .rv-num { color: var(--rv-green); font-size: 22px; margin-right: 4px; }

/* =============== S3 DIAGNOSIS =============== */
.rv-diag {
  background: var(--rv-white);
  color: var(--rv-ink);
  padding: 140px 48px;
}
.rv-diag-head { max-width: 900px; margin-bottom: 72px; }

.rv-inspection {
  border: 1px solid var(--rv-hair-dark-strong);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.rv-finding {
  padding: 40px 32px;
  border-right: 1px solid var(--rv-hair-dark);
  border-bottom: 1px solid var(--rv-hair-dark);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  background: var(--rv-white);
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.2,0.9,0.2,1), transform 600ms cubic-bezier(0.2,0.9,0.2,1.05), background 200ms;
}
.rv-diag.is-in .rv-finding { opacity: 1; transform: translateY(0); }
.rv-finding:hover { background: var(--rv-fog); transform: translateY(-3px); }
.rv-finding:nth-child(4n) { border-right: none; }
.rv-finding:nth-last-child(-n+3) { border-bottom: none; }
.rv-finding--primary {
  grid-column: 1 / span 2;
  grid-row: 1;
  background: var(--rv-ink);
  color: var(--rv-white);
  border-right: 1px solid var(--rv-hair-dark);
  border-bottom: 1px solid var(--rv-hair-dark);
}
.rv-finding--primary:hover { background: var(--rv-ink); }
.rv-finding-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.6;
}
.rv-finding--primary .rv-finding-tag { color: var(--rv-green); opacity: 1; }
.rv-finding-title {
  font-size: 24px; line-height: 1.2; font-weight: 700; margin: 0;
  letter-spacing: -0.015em;
}
.rv-finding--primary .rv-finding-title { font-size: 38px; line-height: 1.05; }
.rv-finding-desc { font-size: 17px; line-height: 1.55; opacity: 0.72; margin: 0; }
.rv-glyph {
  width: 44px; height: 44px; margin-top: auto;
  stroke: var(--rv-ink); stroke-width: 1.25;
}
.rv-finding--primary .rv-glyph { stroke: var(--rv-green); width: 56px; height: 56px; }

/* =============== S4 DASHBOARD =============== */
.rv-dashwrap {
  position: relative;
  min-height: 0;
  background: var(--rv-black);
  overflow: hidden;
  padding: 48px;
  display: block;
}
.rv-dash-gridbg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: calc(100% / 12) 80px;
}
.rv-dash-frame {
  position: relative; z-index: 2;
  border: 1.5px solid var(--rv-hair);
  padding: 40px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  transition: border-color 400ms, box-shadow 400ms;
}
.rv-dash-frame.stage-3 {
  border-color: var(--rv-green);
  box-shadow: 0 0 0 1px var(--rv-green), 0 0 60px rgba(100,192,64,0.15);
}
.rv-dash-head { max-width: 800px; }
.rv-dash-head .rv-h2 { font-size: clamp(30px, 3.4vw, 50px); }

.rv-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.rv-panel {
  border: 1px solid var(--rv-hair);
  padding: 24px;
  background: rgba(0,0,0,0.4);
  opacity: 0.25;
  transform: translateY(24px);
  transition: opacity 500ms cubic-bezier(0.2,0.9,0.2,1), transform 500ms cubic-bezier(0.2,0.9,0.2,1.1), border-color 300ms;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.rv-panel.is-locked { opacity: 1; transform: translateY(0); border-color: var(--rv-green); }
.rv-dash-grid:hover .rv-panel { opacity: 0.4; }
.rv-dash-grid:hover .rv-panel:hover { opacity: 1; }
.rv-panel--snap { grid-column: 1; grid-row: 1; }
.rv-panel--health { grid-column: 2; grid-row: 1; }
.rv-panel--heat { grid-column: 1 / span 2; grid-row: 2; }

.rv-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--rv-hair);
}
.rv-panel-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rv-green);
}
.rv-panel-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; opacity: 0.4;
}

.rv-snapshot { display: grid; grid-template-columns: auto auto 1fr; gap: 24px; align-items: center; }
.rv-radial { width: 88px; height: 88px; transform: rotate(-90deg); }
.rv-radial-track { fill: none; stroke: var(--rv-hair); stroke-width: 4; }
.rv-radial-fill {
  fill: none; stroke: var(--rv-green); stroke-width: 4;
  stroke-dasharray: 326.7; stroke-dashoffset: 91.5;
}
.rv-snapshot-num { font-family: "JetBrains Mono", monospace; }
.rv-snapshot-num .rv-num { font-size: 58px; font-weight: 700; line-height: 1; color: var(--rv-white); }
.rv-snapshot-num span { display: block; font-size: 13px; letter-spacing: 0.14em; opacity: 0.5; margin-top: 6px; }
.rv-snapshot-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; opacity: 0.75; }
.rv-snapshot-legend i { display: inline-block; width: 8px; height: 8px; background: var(--rv-green); margin-right: 10px; vertical-align: middle; }

.rv-health { display: grid; gap: 14px; }
.rv-health-row { display: grid; grid-template-columns: 100px 1fr 48px; gap: 16px; align-items: center; }
.rv-health-k { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.rv-health-bar { height: 6px; background: var(--rv-hair); position: relative; }
.rv-health-bar i { display: block; height: 100%; background: var(--rv-green); transition: width 900ms cubic-bezier(0.2,0.9,0.2,1); }
.rv-panel:not(.is-locked) .rv-health-bar i { width: 0 !important; }
.rv-health-v { font-family: "JetBrains Mono", monospace; text-align: right; font-size: 16px; }

.rv-heat {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  padding: 12px 0;
}
.rv-cell { display: block; aspect-ratio: 1; }
.rv-cell--ok { background: var(--rv-green); }
.rv-cell--warn { background: var(--rv-yellow); }
.rv-cell--bad { background: rgba(255,255,255,0.08); border: 1px solid var(--rv-hair); }
.rv-heat-legend { display: flex; gap: 24px; font-size: 13px; opacity: 0.7; }
.rv-heat-legend span { display: inline-flex; align-items: center; gap: 8px; }
.rv-heat-legend i { width: 12px; height: 12px; aspect-ratio: unset; }

.rv-dash-cta { opacity: 0; transform: translateY(10px); transition: opacity 400ms, transform 400ms; }
.rv-dash-cta.is-in { opacity: 1; transform: translateY(0); }

/* =============== S5 LEAKAGE =============== */
.rv-leak {
  background: var(--rv-white);
  color: var(--rv-ink);
  padding: 48px 48px 140px;
  margin-top: 0;
}
.rv-leak-head { max-width: 900px; margin-bottom: 72px; }

.rv-engine { display: grid; grid-template-columns: 3fr 1fr; gap: 32px; align-items: stretch; }
.rv-engine-frame { border: 1px solid var(--rv-hair-dark-strong); padding: 48px 40px 32px; position: relative; }
.rv-engine-track { position: relative; height: 100px; margin-bottom: 96px; }
.rv-engine-line-bg { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--rv-hair-dark); }
.rv-engine-line-fg { position: absolute; left: 0; top: 50%; height: 2px; background: var(--rv-green); transition: width 200ms linear; }
.rv-leakmark { position: absolute; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.rv-leakmark-dot { display: block; width: 14px; height: 14px; background: var(--rv-yellow); margin: 8px auto; border: 2px solid var(--rv-ink); border-radius: 50%; transition: transform 300ms; }
.rv-leakmark.is-live .rv-leakmark-dot { animation: rv-pulse 800ms ease-out; }
@keyframes rv-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(254,205,47,0.6); }
  50% { transform: scale(1.6); box-shadow: 0 0 0 12px rgba(254,205,47,0); }
  100% { transform: scale(1); }
}
.rv-leakmark-loss { display: block; font-family: "JetBrains Mono", monospace; font-size: 16px; font-weight: 700; color: var(--rv-ink); }
.rv-leakmark-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: max-content; display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-top: 4px; max-width: 20ch; }
.rv-engine-stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rv-hair-dark); padding-top: 20px; }
.rv-engine-stages li { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; border-left: 1px solid var(--rv-hair-dark); }
.rv-engine-stages li:first-child { border-left: none; padding-left: 0; }
.rv-engine-idx { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--rv-green); }
.rv-engine-name { font-weight: 600; font-size: 16px; }

.rv-scanner { border: 1px solid var(--rv-hair-dark-strong); padding: 24px; background: var(--rv-white); display: flex; flex-direction: column; gap: 20px; }
.rv-scanner-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--rv-hair-dark); }
.rv-scanner-body { display: flex; flex-direction: column; gap: 20px; }
.rv-scanner-num .rv-num { font-size: 58px; font-weight: 700; color: var(--rv-ink); line-height: 1; }
.rv-scanner-label { font-size: 14px; opacity: 0.7; line-height: 1.5; margin-top: 6px; }
.rv-scanner-graph { width: 100%; height: 60px; stroke: var(--rv-green); stroke-width: 1.5; }

/* =============== S6 MATURITY =============== */
.rv-mat { background: var(--rv-fog); color: var(--rv-ink); padding: 140px 48px 64px; }
.rv-mat-head { max-width: 900px; margin-bottom: 72px; }
.rv-blueprint {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  align-items: start;
  padding: 140px 0 32px;
}
.rv-blueprint-baseline { position: absolute; left: 0; right: 0; bottom: 32px; height: 1px; background: var(--rv-ink); }
.rv-bpcard {
  position: relative;
  border: 1px solid var(--rv-hair-dark-strong);
  background: var(--rv-white);
  padding: 24px;
  min-height: 320px;
  display: flex; flex-direction: column; gap: 10px;
  transform: translateY(calc(var(--rv-step, 0px) * -1 + 30px));
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.2,0.9,0.2,1), transform 700ms cubic-bezier(0.2,0.9,0.2,1.05);
}
.rv-mat.is-in .rv-bpcard { opacity: 1; transform: translateY(calc(var(--rv-step, 0px) * -1)); }
.rv-bpcard.is-target { border-color: var(--rv-ink); }
.rv-bpcard-corner { position: absolute; width: 10px; height: 10px; border: 1px solid var(--rv-ink); }
.rv-bpcard-corner--tl { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.rv-bpcard-corner--tr { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.rv-bpcard-corner--bl { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.rv-bpcard-corner--br { bottom: -5px; right: -5px; border-left: none; border-top: none; }
.rv-bpcard-coord { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; opacity: 0.5; }
.rv-bpcard-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.rv-bpcard-desc { font-size: 16px; line-height: 1.55; opacity: 0.72; }
.rv-bpcard-note {
  margin-top: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding-top: 12px; border-top: 1px solid var(--rv-hair-dark);
  color: var(--rv-ink); opacity: 0.6;
  word-break: break-word;
}
.rv-bpcard-note.is-accent {
  color: var(--rv-ink); background: var(--rv-green);
  margin: 12px -24px -24px; padding: 14px 24px;
  border-top: none; opacity: 1; font-weight: 700;
  white-space: normal;
}

/* =============== S7 METHODOLOGY =============== */
.rv-methodwrap {
  position: relative;
  background: var(--rv-black);
  height: auto;
  min-height: 0;
  padding: 48px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 32px;
}
.rv-method-sticky { position: static; height: auto; padding: 0; display: contents; }
.rv-method-head { max-width: 900px; }
.rv-method-head .rv-h2 { font-size: clamp(30px, 3.6vw, 54px); }

.rv-window {
  position: relative;
  border: 1px solid var(--rv-hair);
  aspect-ratio: 16 / 8;
  max-height: 100%;
  margin: 0 auto; width: 100%; max-width: 1200px;
  display: flex; align-items: center; justify-content: center;
}
.rv-corner { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--rv-green); }
.rv-corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.rv-corner--tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.rv-corner--bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.rv-corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.rv-window-view { width: 80%; height: 80%; display: flex; align-items: center; justify-content: center; }
.rv-phaseart { width: 100%; height: 100%; stroke: var(--rv-green); stroke-width: 1.2; fill: none; }
.rv-phaseart circle { fill: var(--rv-green); stroke: none; }
.rv-phaseart-accent { fill: var(--rv-yellow) !important; }

.rv-window-ticks { position: absolute; top: -1px; right: 24px; display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; transform: translateY(-50%); background: var(--rv-black); padding: 4px 8px; }
.rv-window-ticks button { width: 24px; height: 6px; background: var(--rv-hair-strong); border: none; display: block; padding: 0; }
.rv-window-ticks button.is-active { background: var(--rv-green); }

.rv-caption { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; border-top: 1px solid var(--rv-hair); padding-top: 20px; }
.rv-caption-num { font-family: "JetBrains Mono", monospace; font-size: 34px; color: var(--rv-green); font-weight: 700; }
.rv-caption-title { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.rv-caption-desc { font-size: 17px; opacity: 0.7; margin-top: 4px; max-width: 640px; line-height: 1.55; }
.rv-caption-dur { font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }

/* =============== S8 INSPECT =============== */
.rv-inspect { background: var(--rv-white); color: var(--rv-ink); padding: 120px 48px 140px; margin-top: 0; }
.rv-inspect-head { max-width: 900px; margin-bottom: 56px; }
.rv-ledger { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rv-ink); }
.rv-ledger-row {
  display: grid; grid-template-columns: 100px 2fr 3fr; gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rv-hair-dark);
  align-items: baseline;
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.rv-inspect.is-in .rv-ledger-row { opacity: 1; transform: translateY(0); }
.rv-ledger-num { font-family: "JetBrains Mono", monospace; font-size: 16px; color: var(--rv-green); letter-spacing: 0.1em; }
.rv-ledger-name { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.rv-ledger-scope { font-size: 17px; line-height: 1.55; opacity: 0.72; }
.rv-inspect-cta { margin-top: 64px; }

/* =============== S9 OUTCOMES =============== */
.rv-outcomes { background: var(--rv-fog); color: var(--rv-ink); padding: 64px 48px; }
.rv-out-head { max-width: 900px; margin-bottom: 72px; }
.rv-kpistack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 40px; }
.rv-kpi {
  background: var(--rv-white);
  border: 1px solid var(--rv-hair-dark-strong);
  padding: 48px 32px;
  position: relative;
  opacity: 0; transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.2,0.9,0.2,1), transform 700ms cubic-bezier(0.2,0.9,0.2,1.08), z-index 200ms;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
  z-index: 1;
}
.rv-outcomes.is-in .rv-kpi { opacity: 1; transform: translateY(0); }
.rv-kpi:nth-child(1) { transform: translateY(-16px); margin-right: -24px; }
.rv-kpi:nth-child(2) { transform: translateY(16px); z-index: 2; }
.rv-kpi:nth-child(3) { transform: translateY(-8px); margin-left: -24px; }
.rv-outcomes.is-in .rv-kpi:nth-child(1) { transform: translateY(-16px); }
.rv-outcomes.is-in .rv-kpi:nth-child(2) { transform: translateY(16px); }
.rv-outcomes.is-in .rv-kpi:nth-child(3) { transform: translateY(-8px); }
.rv-kpi:hover { z-index: 5; transform: translateY(-24px) !important; }
.rv-kpi-num { display: flex; align-items: baseline; gap: 4px; }
.rv-kpi-num .rv-num, .rv-kpi-num > span:first-child { font-size: 90px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--rv-ink); font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }
.rv-kpi-suffix { font-size: 42px; font-weight: 700; color: var(--rv-green); font-family: "JetBrains Mono", monospace; }
.rv-kpi-label { font-size: 17px; line-height: 1.55; margin-top: 20px; opacity: 0.72; max-width: 260px; }
.rv-kpi-id { position: absolute; top: 20px; right: 24px; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; opacity: 0.4; }

/* =============== S10 CASE FILE =============== */
.rv-case { background: var(--rv-white); color: var(--rv-ink); padding: 140px 48px; }
.rv-case-head { max-width: 900px; margin-bottom: 56px; }
.rv-folder {
  position: relative;
  border: 1px solid var(--rv-ink);
  padding: 72px 64px 64px;
  max-width: 1100px;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.2,0.9,0.2,1.05), opacity 800ms ease-out;
}
.rv-case.is-in .rv-folder { transform: scale(1); opacity: 1; }
.rv-folder-tab {
  position: absolute; top: -1px; left: 40px; transform: translateY(-100%);
  background: var(--rv-ink); color: var(--rv-white);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.14em;
  padding: 12px 24px;
}
.rv-folder-body { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: end; }
.rv-quote {
  font-family: "Inter", serif;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.2; font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 780px;
  position: relative;
}
.rv-quote-mark { color: var(--rv-green); font-size: 1.4em; line-height: 0; position: relative; top: 0.3em; margin-right: 8px; }
.rv-quote-attr { margin-top: 32px; grid-column: 1; }
.rv-quote-name { display: block; font-weight: 700; font-size: 16px; }
.rv-quote-role { display: block; font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }
.rv-case-metric { grid-column: 2; grid-row: 1 / span 2; text-align: right; border-left: 1px solid var(--rv-hair-dark); padding-left: 32px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.rv-case-metric-id { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; opacity: 0.5; }
.rv-case-metric-num .rv-num { font-size: 74px; font-weight: 800; color: var(--rv-green); letter-spacing: -0.03em; }
.rv-case-metric-label { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

/* =============== S11 CLOSE =============== */
.rv-close {
  position: relative;
  min-height: 0;
  background: var(--rv-black);
  padding: 96px 48px 32px;
  display: block;
  overflow: hidden;
  border-top: 1px solid var(--rv-hair);
}
.rv-close .rv-hero-inner { margin-top: 0; }
.rv-close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.rv-close .rv-hero-inner { position: relative; z-index: 2; }

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
  .rv-hero, .rv-close { padding: 24px; }
  .rv-hero-inner { padding-left: 0; padding-right: 0; }
  .rv-instrument { display: none; }
  .rv-scroll-tick { padding-left: 0; }

  .rv-trust { padding: 32px 24px; }
  .rv-trust-frame { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .rv-trust-marks { flex-direction: column; gap: 8px; }
  .rv-trust-stat { border-left: none; border-top: 1px solid var(--rv-hair); padding-left: 0; padding-top: 16px; }

  .rv-diag, .rv-leak, .rv-mat, .rv-inspect, .rv-outcomes, .rv-case { padding: 80px 24px; }
  .rv-inspection { grid-template-columns: 1fr; grid-template-rows: none; }
  .rv-finding, .rv-finding--primary { grid-column: 1 !important; grid-row: auto !important; border-right: none !important; border-bottom: 1px solid var(--rv-hair-dark); }

  .rv-dashwrap { min-height: auto; padding: 80px 24px; }
  .rv-dash-frame { padding: 24px; }
  .rv-dash-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .rv-panel { grid-column: 1 !important; grid-row: auto !important; opacity: 1; transform: none; border-color: var(--rv-green); }
  .rv-dash-frame { border-color: var(--rv-green); }

  .rv-engine { grid-template-columns: 1fr; }
  .rv-engine-stages { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rv-engine-stages li { border-left: none; padding-left: 0; }

  .rv-blueprint { grid-template-columns: 1fr; padding-top: 48px; }
  .rv-bpcard { min-height: 0; transform: none !important; --rv-step: 0px; }

  .rv-methodwrap { min-height: auto; padding: 80px 24px; }

  .rv-ledger-row { grid-template-columns: 40px 1fr; gap: 12px; }
  .rv-ledger-scope { grid-column: 2; }

  .rv-kpistack { grid-template-columns: 1fr; }
  .rv-kpi, .rv-outcomes.is-in .rv-kpi { transform: none !important; margin: 0 !important; }
  .rv-kpi + .rv-kpi { border-top: none; }

  .rv-folder { padding: 48px 24px 32px; }
  .rv-folder-body { grid-template-columns: 1fr; gap: 32px; }
  .rv-case-metric { grid-column: 1; grid-row: auto; border-left: none; border-top: 1px solid var(--rv-hair-dark); padding-left: 0; padding-top: 16px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-mask-in { transform: none !important; transition: none !important; }
  .rv-instr-pulse, .rv-instr-resolve { stroke-dashoffset: 0 !important; animation: none !important; }
  .rv-finding, .rv-bpcard, .rv-kpi, .rv-ledger-row, .rv-panel, .rv-folder, .rv-dash-cta {
    opacity: 1 !important; transform: none !important;
  }
}


/* =================================================================
   REBUILD: 13-section content architecture
   Reuses design tokens defined above.
   ================================================================= */

.rv-root { scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- shared section head ---- */
.rv-section-head { max-width: 900px; margin: 0 0 64px; display: flex; flex-direction: column; gap: 20px; }
.rv-section-lede { font-size: 20px; line-height: 1.55; opacity: 0.72; margin: 0; max-width: 720px; }

/* ---- HEADER ---- */
.rv-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding: 18px 48px;
  background: rgba(26,26,26,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rv-hair);
}
.rv-header-logo img { height: 36px; width: auto; display: block; }
.rv-header-nav { display: flex; gap: 28px; justify-content: center; font-size: 15px; letter-spacing: 0.02em; }
.rv-header-nav a { color: rgba(255,255,255,0.75); }
.rv-header-nav a:hover { color: var(--rv-green); }
.rv-header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border: 1px solid var(--rv-green); color: var(--rv-white);
  font-size: 15px; font-weight: 600;
}
.rv-header-cta:hover { background: var(--rv-green); color: var(--rv-black); }
@media (max-width: 900px) {
  .rv-header { grid-template-columns: auto auto; padding: 14px 20px; }
  .rv-header-nav { display: none; }
}

/* ---- STICKY CTA ---- */
.rv-stickycta {
  position: fixed; bottom: 24px; right: 24px; z-index: 45;
  padding: 14px 22px; background: var(--rv-green); color: var(--rv-black);
  font-weight: 500; font-size: 16px; letter-spacing: 0.02em;
  display: inline-flex; gap: 10px; align-items: center;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.2,0.9,0.2,1);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.rv-stickycta.is-in { opacity: 1; transform: translateY(0); pointer-events: auto; }
.rv-stickycta:hover { background: var(--rv-black); color: var(--rv-white); }

/* ---- HERO FULL (above the fold) ---- */
.rv-hero-full {
  padding: 40px 48px 0;
  min-height: calc(100svh - 80px);
  height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}
.rv-hero-full .rv-hero-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.rv-hero-foot {
  margin-top: auto;
  padding-bottom: 20px;
}

.rv-hero-index {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rv-hair);
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 32px;
  align-items: center;
}
.rv-hero-index-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.rv-hero-index-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.rv-hero-index-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--rv-hair);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.rv-hix-n { color: var(--rv-green); font-size: 12px; letter-spacing: 0.12em; }
.rv-hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.rv-hero-scroll-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--rv-green), transparent);
  position: relative;
}


.rv-hero-full .rv-hero-inner {
  margin-top: 0;
  max-width: 1280px;
  padding-left: calc(100% / 12);
  padding-right: 24px;
  width: 100%;
}
.rv-hero-full .rv-display {
  font-size: clamp(50px, 5.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
}
.rv-hero-center .rv-display {
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
}

.rv-hero-full .rv-lede {
  font-size: clamp(18px, 1.2vw, 21px);
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 820px;
}
.rv-cta--solid { background: var(--rv-green); color: var(--rv-black); border-color: var(--rv-green); }
.rv-cta--solid:hover { background: var(--rv-white); border-color: var(--rv-white); color: var(--rv-black); }
.rv-hero-full .rv-hero-ctas { margin-top: 0; gap: 18px; }
.rv-hero-full .rv-cta { padding: 16px 26px !important; font-size: 18px !important; gap: 12px !important; }
.rv-hero-full .rv-cta-arrow { font-size: 20px !important; }
.rv-hero-full .rv-instrument { display: none; }

.rv-hero-credibility {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rv-hair);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.rv-cred-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 22px; font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.rv-cred-list li { display: inline-flex; align-items: center; gap: 8px; }
.rv-cred-list i { width: 5px; height: 5px; background: var(--rv-green); display: inline-block; }
.rv-cred-logos { display: flex; align-items: center; gap: 14px; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.16em; color: rgba(255,255,255,0.5); }
.rv-cred-logos-label { color: rgba(255,255,255,0.35); border-right: 1px solid var(--rv-hair); padding-right: 14px; }

@media (max-height: 1000px) {
  .rv-hero-full { padding: 20px 48px 0; }
  .rv-hero-full .rv-display { font-size: clamp(54px, 6vw, 94px); margin: 8px 0 12px; }
  .rv-hero-full .rv-lede { font-size: 17px; margin-bottom: 14px; }
  .rv-hero-credibility { margin-top: 14px; padding-top: 12px; }
  .rv-hero-foot { padding-bottom: 14px; }
}
@media (max-height: 860px) {
  .rv-hero-full { padding: 16px 48px 0; }
  .rv-hero-full .rv-display { font-size: clamp(44px, 5vw, 74px); margin: 6px 0 10px; }
  .rv-hero-full .rv-lede { font-size: 16px; margin-bottom: 10px; }
  .rv-hero-full .rv-cta { padding: 12px 20px !important; font-size: 16px !important; }
  .rv-hero-credibility { margin-top: 10px; padding-top: 10px; }
  .rv-cred-list { font-size: 13px; gap: 16px; }
  .rv-hero-foot { padding-bottom: 10px; }
}
@media (max-height: 720px) {
  .rv-hero-full .rv-display { font-size: clamp(36px, 4vw, 56px); }
  .rv-hero-full .rv-lede { font-size: 15px; margin-bottom: 8px; }
}


@media (max-width: 900px) {
  .rv-hero-full { padding: 32px 24px; min-height: auto; }
  .rv-hero-full .rv-hero-inner { padding-left: 0; padding-right: 0; }
  .rv-hero-full .rv-display { font-size: clamp(40px, 9vw, 58px); }
  .rv-hero-credibility { grid-template-columns: 1fr; }
}




/* ---- GAP (Section 2) ---- */
.rv-gap { background: var(--rv-black); color: var(--rv-white); padding: 140px 48px; border-top: 1px solid var(--rv-hair); }
.rv-gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rv-hair); border-left: 1px solid var(--rv-hair); }
.rv-gap-card {
  padding: 40px 32px; border-right: 1px solid var(--rv-hair); border-bottom: 1px solid var(--rv-hair);
  min-height: 220px; display: flex; flex-direction: column; gap: 24px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.9,0.2,1), background 200ms;
}
.rv-gap.is-in .rv-gap-card { opacity: 1; transform: translateY(0); }
.rv-gap-card:hover { background: rgba(100,192,64,0.04); }
.rv-gap-idx { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.18em; color: var(--rv-green); }
.rv-gap-card p { font-size: 19px; line-height: 1.5; margin: 0; }
.rv-gap-outro { margin: 56px 0 0; font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); max-width: 800px; }
@media (max-width: 900px) { .rv-gap { padding: 80px 24px; } .rv-gap-grid { grid-template-columns: 1fr; } }

/* ---- PROMISE (Section 3) ---- */
.rv-promise { background: var(--rv-fog); color: var(--rv-ink); padding: 140px 48px; }
.rv-promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rv-promise-card {
  background: var(--rv-white); border: 1px solid var(--rv-hair-dark-strong); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px; position: relative;
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-promise.is-in .rv-promise-card { opacity: 1; transform: translateY(0); }
.rv-promise-card.is-primary { background: var(--rv-ink); color: var(--rv-white); border-color: var(--rv-ink); justify-content: flex-start; }
.rv-promise-card.is-primary h3 { font-size: 24px; }
.rv-promise-num { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.18em; color: var(--rv-green); }
.rv-promise-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.rv-promise-card p { font-size: 17px; line-height: 1.55; opacity: 0.75; margin: 0; }
@media (max-width: 900px) { .rv-promise { padding: 80px 24px; } .rv-promise-grid { grid-template-columns: 1fr; } .rv-promise-card.is-primary { grid-row: auto; } }

/* ---- METHOD (Section 4): editorial blueprint ---- */
.rv-method {
  background: var(--rv-fog);
  color: var(--rv-ink);
  padding: 160px 48px 180px;
  border-top: 1px solid var(--rv-hair-dark);
  border-bottom: 1px solid var(--rv-hair-dark);
  position: relative;
  overflow: hidden;
}
.rv-method .rv-label { color: rgba(16,16,16,0.55); }
.rv-method .rv-h2 { color: var(--rv-ink); }
.rv-method-head-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 96px; align-items: end; }
.rv-method-head-row > div { display: flex; flex-direction: column; gap: 20px; }
.rv-method-lede { font-size: 19px; line-height: 1.55; color: rgba(16,16,16,0.66); margin: 0; }

.rv-mbp { position: relative; margin-top: 8px; }
.rv-mbp-grid {
  position: absolute; inset: -80px -80px -80px -80px; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16,16,16,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,16,16,0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.rv-mbp-legend {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(16,16,16,0.55);
  margin-bottom: 40px;
}
.rv-mbp-legend-line { flex: 0 0 120px; height: 1px; background: rgba(16,16,16,0.28); }

.rv-mbp-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 96px;
  align-items: start;
}

.rv-mbp-side { position: sticky; top: 96px; align-self: start; }
.rv-mbp-side-inner {
  position: relative;
  border-left: 1px solid rgba(16,16,16,0.18);
  padding: 8px 0 8px 28px;
  display: flex; flex-direction: column; gap: 36px;
}
.rv-mbp-numstack { display: flex; flex-direction: column; gap: 6px; }
.rv-mbp-numline {
  display: flex; align-items: baseline; gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(16,16,16,0.4);
  transition: color 320ms ease;
}
.rv-mbp-numline-k { color: rgba(16,16,16,0.35); }
.rv-mbp-numline.is-done { color: rgba(16,16,16,0.55); }
.rv-mbp-numline.is-done .rv-mbp-numline-k { color: var(--rv-green); }
.rv-mbp-numline.is-on { color: var(--rv-ink); }
.rv-mbp-numline.is-on .rv-mbp-numline-k { color: var(--rv-green); }

.rv-mbp-bignum {
  position: relative;
  line-height: 0.82;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(180px, 22vw, 320px);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(16,16,16,0.85);
  user-select: none;
}
.rv-mbp-bignum-out { display: block; }
.rv-mbp-bignum::after {
  content: "";
  position: absolute; left: 0; bottom: -18px;
  width: 96px; height: 2px; background: var(--rv-green);
}

.rv-mbp-meta {
  display: flex; flex-direction: column; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(16,16,16,0.6);
}
.rv-mbp-meta-bar {
  display: block; width: 100%; max-width: 240px; height: 2px;
  background: rgba(16,16,16,0.14); position: relative; overflow: hidden;
}
.rv-mbp-meta-bar > span {
  display: block; height: 100%; background: var(--rv-ink);
  transition: width 320ms cubic-bezier(0.2,0.9,0.2,1);
}

.rv-mbp-list {
  position: relative; list-style: none; margin: 0;
  padding: 4px 0 4px 56px;
}
.rv-mbp-spine {
  position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px;
  background: rgba(16,16,16,0.18);
}
.rv-mbp-spine-fill {
  position: absolute; left: -1px; top: 0; width: 3px;
  height: calc(var(--rv-mbp-p, 0) * 100%);
  background: var(--rv-ink);
  transition: height 220ms cubic-bezier(0.2,0.9,0.2,1);
}

.rv-mbp-row {
  position: relative;
  padding: 40px 0 44px;
  border-bottom: 1px solid rgba(16,16,16,0.12);
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.rv-mbp-row:first-child { padding-top: 8px; }
.rv-mbp-row:last-child { border-bottom: none; }

.rv-mbp-station {
  position: absolute; left: -56px; top: 48px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.rv-mbp-row:first-child .rv-mbp-station { top: 16px; }
.rv-mbp-tick {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 1px;
  transform: translate(-50%, -50%); background: rgba(16,16,16,0.28);
}
.rv-mbp-dot {
  position: relative; width: 11px; height: 11px; border-radius: 999px;
  background: var(--rv-fog); border: 1.5px solid rgba(16,16,16,0.35);
  transition: background 320ms ease, border-color 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}
.rv-mbp-row.is-done .rv-mbp-dot { background: var(--rv-ink); border-color: var(--rv-ink); }
.rv-mbp-row.is-active .rv-mbp-dot {
  background: var(--rv-green); border-color: var(--rv-green);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(100,192,64,0.18);
}

.rv-mbp-body {
  opacity: 0.5;
  transform: translateY(6px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-mbp-row.is-done .rv-mbp-body,
.rv-mbp-row.is-active .rv-mbp-body { opacity: 1; transform: translateY(0); }

.rv-mbp-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(16,16,16,0.5);
  margin-bottom: 18px;
}
.rv-mbp-code { color: var(--rv-ink); }
.rv-mbp-rule { flex: 0 0 40px; height: 1px; background: rgba(16,16,16,0.28); }
.rv-mbp-row.is-active .rv-mbp-state { color: var(--rv-green); }
.rv-mbp-row.is-done .rv-mbp-state { color: rgba(16,16,16,0.62); }

.rv-mbp-title {
  display: flex; align-items: baseline; gap: 22px;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800; letter-spacing: -0.028em; line-height: 0.98;
  color: var(--rv-ink);
}
.rv-mbp-idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(16,16,16,0.4);
  position: relative; top: -0.35em;
}
.rv-mbp-copy {
  max-width: 62ch;
  font-size: 17px; line-height: 1.6;
  color: rgba(16,16,16,0.74);
  margin: 0;
}

@media (max-width: 1100px) {
  .rv-mbp-shell { grid-template-columns: 1fr; gap: 56px; }
  .rv-mbp-side { position: static; }
  .rv-mbp-side-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .rv-mbp-numstack { display: none; }
  .rv-mbp-bignum { font-size: clamp(140px, 32vw, 220px); }
  .rv-mbp-bignum::after { bottom: -12px; }
}
@media (max-width: 900px) { .rv-method { padding: 96px 24px 110px; } .rv-method-head-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; } }
@media (max-width: 720px) {
  .rv-mbp-legend { margin-bottom: 24px; }
  .rv-mbp-legend-line { flex-basis: 48px; }
  .rv-mbp-side-inner { padding-left: 20px; gap: 20px; }
  .rv-mbp-bignum { font-size: 140px; -webkit-text-stroke-width: 1.2px; }
  .rv-mbp-list { padding-left: 40px; }
  .rv-mbp-spine { left: 11px; }
  .rv-mbp-station { left: -40px; width: 24px; height: 24px; }
  .rv-mbp-tick { width: 18px; }
  .rv-mbp-title { font-size: 30px; gap: 12px; }
  .rv-mbp-idx { font-size: 12px; }
  .rv-mbp-copy { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-mbp-body, .rv-mbp-dot, .rv-mbp-spine-fill, .rv-mbp-meta-bar > span { transition: none !important; }
}

/* ---- AUDIT / PILLARS (Section 5) ---- */
.rv-audit { background: var(--rv-fog); color: var(--rv-ink); padding: 140px 48px; }
.rv-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rv-pillar {
  background: var(--rv-white); border: 1px solid var(--rv-hair-dark-strong); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-audit.is-in .rv-pillar { opacity: 1; transform: translateY(0); }
.rv-pillar.is-primary { background: var(--rv-ink); color: var(--rv-white); border-color: var(--rv-ink); }
.rv-pillar-head { display: flex; justify-content: space-between; align-items: baseline; }
.rv-pillar-tag { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.18em; color: var(--rv-green); text-transform: uppercase; }
.rv-pillar-idx { font-family: "JetBrains Mono", monospace; font-size: 34px; font-weight: 700; opacity: 0.15; line-height: 1; }
.rv-pillar.is-primary .rv-pillar-idx { opacity: 0.35; }
.rv-pillar h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.rv-pillar-body { font-size: 17px; line-height: 1.55; opacity: 0.72; margin: 0; }
.rv-pillar ul { list-style: none; padding: 16px 0 0; margin: 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rv-hair-dark); }
.rv-pillar.is-primary ul { border-top-color: var(--rv-hair); }
.rv-pillar li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 17px; line-height: 1.55; opacity: 0.85; }
.rv-check { color: var(--rv-green); font-weight: 700; font-family: "JetBrains Mono", monospace; }
@media (max-width: 900px) { .rv-audit { padding: 80px 24px; } .rv-pillars { grid-template-columns: 1fr; } }

.rv-metrics-bar { margin-top: 56px; background: var(--rv-white); border: 1px solid var(--rv-hair-dark-strong); padding: 32px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.rv-metrics-label { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rv-green); opacity: 1; }
.rv-metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.rv-metrics-k { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.rv-metrics-tags { display: flex; flex-direction: column; gap: 4px; }
.rv-metrics-tags span { font-family: "JetBrains Mono", monospace; font-size: 13px; opacity: 0.75; }
@media (max-width: 1100px) { .rv-metrics-bar { grid-template-columns: 1fr; } .rv-metrics-grid { grid-template-columns: repeat(2, 1fr); } }

.rv-leadmagnet {
  margin-top: 40px; background: var(--rv-ink); color: var(--rv-white); padding: 40px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--rv-ink);
}
.rv-leadmagnet h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.rv-leadmagnet p { font-size: 17px; opacity: 0.75; margin: 0; max-width: 640px; line-height: 1.55; }
@media (max-width: 900px) { .rv-leadmagnet { grid-template-columns: 1fr; } }

/* ---- DELIVERABLES (Section 6) ---- */
.rv-deliverables { background: var(--rv-black); color: var(--rv-white); padding: 140px 48px; }
.rv-del-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rv-hair); border-left: 1px solid var(--rv-hair); }
.rv-del-card {
  padding: 40px 28px; border-right: 1px solid var(--rv-hair); border-bottom: 1px solid var(--rv-hair);
  display: flex; flex-direction: column; gap: 16px; min-height: 280px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-deliverables.is-in .rv-del-card { opacity: 1; transform: translateY(0); }
.rv-del-head { display: flex; justify-content: space-between; }
.rv-del-idx { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.18em; color: var(--rv-green); }
.rv-del-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.rv-del-card p { font-size: 17px; line-height: 1.55; opacity: 0.72; margin: 0; }
.rv-del-cta { margin: 32px 0 0; }
.rv-del-cta { margin: 32px 0 0; }
.rv-del-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; background: var(--rv-green); color: var(--rv-black);
  font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
  transition: background 200ms ease;
}
/* Default text here renders white (correct, against this section's dark
   background, see the section-level override elsewhere), but this hover
   only changed the background to white with no color override, leaving
   invisible white-on-white text. */
.rv-del-cta-btn:hover { background: var(--rv-white); color: var(--rv-black); }
.rv-del-note { margin: 48px 0 0; font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in oklab, currentColor 62%, transparent); }
@media (max-width: 900px) { .rv-deliverables { padding: 80px 24px; } .rv-del-grid { grid-template-columns: 1fr; } }

/* ---- Dossier layout ---- */
.rv-dossier {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  border: 1px solid var(--rv-hair); background: rgba(255,255,255,0.015);
  position: relative; overflow: hidden;
}
.rv-dossier::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.rv-dossier-nav {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--rv-hair);
  background: rgba(0,0,0,0.4); position: relative; z-index: 1;
}
.rv-dossier-navhead {
  display: flex; justify-content: space-between; padding: 20px 24px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  border-bottom: 1px solid var(--rv-hair);
}
.rv-dossier-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 22px 24px; background: transparent; border: 0; border-bottom: 1px solid var(--rv-hair);
  text-align: left; cursor: pointer; color: rgba(255,255,255,0.55);
  transition: color 200ms, background 200ms, padding 200ms;
  font-family: inherit;
}
.rv-dossier-row:hover { color: var(--rv-white); background: rgba(255,255,255,0.02); }
.rv-dossier-row.is-active {
  color: var(--rv-white); background: rgba(255,255,255,0.04);
  padding-left: 32px;
}
.rv-dossier-row.is-active::before {
  content: ""; position: absolute; left: 0; width: 3px; height: 100%; background: var(--rv-green);
}
.rv-dossier-row { position: relative; }
.rv-dossier-idx {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.18em;
  color: var(--rv-green);
}
.rv-dossier-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.rv-dossier-caret { font-family: "JetBrains Mono", monospace; font-size: 14px; opacity: 0.4; }
.rv-dossier-row.is-active .rv-dossier-caret { opacity: 1; color: var(--rv-green); transform: translateX(2px); }

.rv-dossier-doc { position: relative; z-index: 1; padding: 0; animation: rv-doc-in 500ms cubic-bezier(0.2,0.9,0.2,1); }
@keyframes rv-doc-in { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0);} }
.rv-dossier-tab {
  display: flex; justify-content: space-between;
  padding: 16px 40px; border-bottom: 1px solid var(--rv-hair);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.25);
}
.rv-dossier-body { padding: 40px 48px 48px; position: relative; }
.rv-dossier-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-bottom: 28px; border-bottom: 1px solid var(--rv-hair); margin-bottom: 32px;
}
.rv-dossier-meta > div { display: flex; flex-direction: column; gap: 6px; }
.rv-dossier-meta span {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.rv-dossier-meta b { font-size: 15px; font-weight: 600; color: var(--rv-white); letter-spacing: -0.005em; }
.rv-dossier-live { color: var(--rv-green) !important; }
.rv-dossier-title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.1; }
.rv-dossier-note { font-size: 17px; line-height: 1.6; opacity: 0.72; margin: 0 0 36px; max-width: 62ch; }
.rv-dossier-artifacts {
  border: 1px solid var(--rv-hair); background: rgba(0,0,0,0.3);
}
.rv-dossier-arthead {
  padding: 14px 20px; border-bottom: 1px solid var(--rv-hair);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.rv-dossier-artifacts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.rv-dossier-artifacts li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--rv-hair); font-size: 15px;
}
.rv-dossier-artifacts li:nth-child(odd) { border-right: 1px solid var(--rv-hair); }
.rv-dossier-artifacts li:nth-last-child(-n+2) { border-bottom: 0; }
.rv-dossier-artidx {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.16em;
  color: var(--rv-green);
}
.rv-dossier-stamp {
  display: flex; justify-content: space-between; margin-top: 28px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(255,255,255,0.32);
}
@media (max-width: 900px) {
  .rv-dossier { grid-template-columns: 1fr; }
  .rv-dossier-nav { border-right: 0; border-bottom: 1px solid var(--rv-hair); }
  .rv-dossier-body { padding: 28px 20px 32px; }
  .rv-dossier-tab { padding: 14px 20px; }
  .rv-dossier-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .rv-dossier-title { font-size: 26px; }
  .rv-dossier-artifacts ul { grid-template-columns: 1fr; }
  .rv-dossier-artifacts li:nth-child(odd) { border-right: 0; }
  .rv-dossier-artifacts li:nth-last-child(2) { border-bottom: 1px solid var(--rv-hair); }
}

/* ---- WHOFOR (Section 7) ---- */
.rv-whofor { background: var(--rv-fog); color: var(--rv-ink); padding: 140px 48px 64px; }
.rv-personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rv-persona {
  background: var(--rv-white); border: 1px solid var(--rv-hair-dark-strong); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-whofor.is-in .rv-persona { opacity: 1; transform: translateY(0); }
.rv-persona h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--rv-hair-dark); }
.rv-persona-section { display: flex; flex-direction: column; gap: 10px; }
.rv-persona-label { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; }
.rv-persona-label.is-accent { color: var(--rv-ink); }
.rv-persona ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-persona li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 17px; line-height: 1.55; opacity: 0.85; }
.rv-notfor { margin-top: 40px; border: 1px dashed var(--rv-hair-dark-strong); padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.rv-notfor-label { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.rv-notfor ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-notfor li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 17px; line-height: 1.55; opacity: 0.85; }
@media (max-width: 1100px) { .rv-personas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .rv-whofor { padding: 80px 24px; } .rv-personas { grid-template-columns: 1fr; } }

/* ---- PROOF (Section 8) ---- */
.rv-proof { background: var(--rv-black); color: var(--rv-white); padding: 140px 48px; }
.rv-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rv-case-card {
  border: 1px solid var(--rv-hair); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 24px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-proof.is-in .rv-case-card { opacity: 1; transform: translateY(0); }
.rv-case-card.is-primary { border-color: var(--rv-green); background: rgba(100,192,64,0.04); }
.rv-case-metric-row { display: flex; align-items: baseline; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--rv-hair); }
.rv-case-metric-val { font-family: "JetBrains Mono", monospace; font-size: 58px; font-weight: 800; color: var(--rv-green); line-height: 1; letter-spacing: -0.03em; }
.rv-case-metric-lbl { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.rv-case-body { display: flex; flex-direction: column; gap: 6px; }
.rv-case-tag { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.18em; color: var(--rv-green); text-transform: uppercase; margin-bottom: 10px; }
.rv-case-field-label { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; margin-top: 12px; }
.rv-case-field-val { font-size: 17px; font-weight: 600; }
.rv-case-body p { font-size: 17px; line-height: 1.55; opacity: 0.82; margin: 4px 0 0; }
.rv-case-link { margin-top: 16px; font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rv-green); border-bottom: 1px solid var(--rv-green); align-self: flex-start; padding-bottom: 4px; }

.rv-testimonials { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rv-testimonial { margin: 0; border-left: 2px solid var(--rv-green); padding: 12px 0 12px 24px; }
.rv-testimonial p { font-size: 20px; line-height: 1.5; margin: 0 0 16px; font-weight: 500; }
.rv-testimonial footer { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.rv-t-name { color: var(--rv-green); }

.rv-logowall { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--rv-hair); }
.rv-logowall-label { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5; margin-bottom: 24px; }
.rv-logowall-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 24px; }
.rv-logowall-grid div { font-family: "JetBrains Mono", monospace; font-size: 15px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); text-align: center; padding: 12px 0; border: 1px solid var(--rv-hair); }
@media (max-width: 1100px) { .rv-cases { grid-template-columns: 1fr; } .rv-testimonials { grid-template-columns: 1fr; } .rv-logowall-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .rv-proof { padding: 80px 24px; } }

/* ---- WHY (Section 9) ---- */
.rv-why { background: var(--rv-fog); color: var(--rv-ink); padding: 140px 48px; }
.rv-obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rv-obj {
  background: var(--rv-white); border: 1px solid var(--rv-hair-dark-strong); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-why.is-in .rv-obj { opacity: 1; transform: translateY(0); }
.rv-obj.is-primary { background: var(--rv-ink); color: var(--rv-white); border-color: var(--rv-ink); }
.rv-obj-num { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.18em; color: var(--rv-green); }
.rv-obj h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.rv-obj p { font-size: 17px; line-height: 1.6; opacity: 0.82; margin: 0; }
.rv-diff { margin-top: 48px; background: var(--rv-ink); color: var(--rv-white); padding: 32px 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.rv-diff-row { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 17px; line-height: 1.5; }
@media (max-width: 900px) { .rv-why { padding: 80px 24px; } .rv-obj-grid { grid-template-columns: 1fr; } .rv-diff { grid-template-columns: 1fr; padding: 24px; } }

/* ---- FAQ (Section 12) ---- */
.rv-faq { background: var(--rv-white); color: var(--rv-ink); padding: 140px 48px; }
.rv-faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; }
.rv-faq-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; align-self: start; }
.rv-faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--rv-ink); }
.rv-faq-item { border-bottom: 1px solid var(--rv-hair-dark); }
.rv-faq-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 40px 1fr 24px; gap: 20px; align-items: baseline;
  padding: 28px 0;
  transition: color 200ms;
}
.rv-faq-item summary::-webkit-details-marker { display: none; }
.rv-faq-num { font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.14em; color: var(--rv-green); }
.rv-faq-q { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.rv-faq-plus { font-family: "JetBrains Mono", monospace; font-size: 24px; color: var(--rv-green); transition: transform 200ms; }
.rv-faq-item[open] .rv-faq-plus { transform: rotate(45deg); }
.rv-faq-item p { margin: 0 0 32px 60px; font-size: 17px; line-height: 1.65; opacity: 0.78; max-width: 720px; }
@media (max-width: 900px) { .rv-faq { padding: 80px 24px; } .rv-faq-grid { grid-template-columns: 1fr; gap: 40px; } .rv-faq-side { position: static; } .rv-faq-item p { margin-left: 0; } }

/* ---- FOOTER ---- */
.rv-footer { background: var(--rv-black); color: var(--rv-white); border-top: 1px solid var(--rv-hair); padding: 40px 48px; }
.rv-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.rv-footer-brand { display: flex; align-items: center; gap: 12px; font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.rv-footer-brand img { height: 20px; width: auto; }
.rv-footer-links { display: flex; gap: 24px; font-size: 15px; }
.rv-footer-links a { color: rgba(255,255,255,0.6); }
.rv-footer-links a:hover { color: var(--rv-green); }

/* NOTE: this used to duplicate/override the correctly `.is-in`-gated
 * .rv-instrument--resolved .rv-instr-resolve rule earlier in this file
 * (see the `rv-instr` keyframe above), causing the line-draw to fire
 * unconditionally on page load instead of on scroll-into-view. Removed. */

/* =================================================================
   DESIGN OVERLAY: port source project motifs onto current structure.
   No content/structure changes; class hooks unchanged.
   ================================================================= */

/* 12-col grid background on dark sections */
.rv-hero-full, .rv-gap, .rv-method, .rv-deliverables, .rv-proof, .rv-close { position: relative; }
.rv-gap::before, .rv-proof::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}


.rv-hero-full > *, .rv-gap > *, .rv-method > *,
.rv-deliverables > *, .rv-proof > *, .rv-close > * { position: relative; z-index: 1; }

/* Blueprint corner ticks on primary/hero cards (source S6 motif) */
.rv-promise-card, .rv-pillar, .rv-obj, .rv-case-card { position: relative; }
.rv-promise-card.is-primary::before, .rv-promise-card.is-primary::after,
.rv-pillar.is-primary::before, .rv-pillar.is-primary::after,
.rv-obj.is-primary::before, .rv-obj.is-primary::after,
.rv-case-card.is-primary::before, .rv-case-card.is-primary::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1.5px solid var(--rv-green); pointer-events: none;
}
.rv-promise-card.is-primary::before, .rv-pillar.is-primary::before,
.rv-obj.is-primary::before, .rv-case-card.is-primary::before {
  top: -6px; left: -6px; border-right: none; border-bottom: none;
}
.rv-promise-card.is-primary::after, .rv-pillar.is-primary::after,
.rv-obj.is-primary::after, .rv-case-card.is-primary::after {
  bottom: -6px; right: -6px; border-left: none; border-top: none;
}

/* Method step: hover raises a green top rule (source ledger feel) */
.rv-method-grid { border-bottom: 1px solid var(--rv-hair); }
.rv-method-step { border-top: 1px solid transparent; transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.9,0.2,1), border-color 200ms, background 200ms; }
.rv-method-step:hover { border-top-color: var(--rv-green); background: rgba(100,192,64,0.04); }

/* Case card gets a folder-tab (source S10 motif) using existing rv-case-tag */
.rv-case-card { padding-top: 44px; }
.rv-case-card .rv-case-tag {
  position: absolute; top: -1px; left: 20px; transform: translateY(-50%);
  background: var(--rv-black); color: var(--rv-green);
  padding: 6px 12px; margin: 0;
  border: 1px solid var(--rv-hair);
}
.rv-case-card.is-primary .rv-case-tag { border-color: var(--rv-green); background: var(--rv-ink); }

/* Gap card hairline accent on hover */
.rv-gap-card { border-left: 2px solid transparent; transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.9,0.2,1), background 200ms, border-color 200ms; }
.rv-gap-card:hover { border-left-color: var(--rv-green); }

/* Pillar head rule matches source panel head */
.rv-pillar-head { padding-bottom: 12px; border-bottom: 1px solid var(--rv-hair-dark); }
.rv-pillar.is-primary .rv-pillar-head { border-bottom-color: var(--rv-hair); }

/* Sticky header hairline */
.rv-header { box-shadow: 0 1px 0 0 var(--rv-hair); }

/* -------------------------- 1b. leakage -------------------------- */
.rv-leak {
  background: var(--rv-white);
  color: var(--rv-ink);
  padding: 140px 48px;
  margin-top: 0;
}
.rv-leak .rv-eyebrow,
.rv-leak .rv-label { color: var(--rv-ink); }
.rv-leak-head { max-width: 900px; margin-bottom: 72px; }

.rv-engine { display: grid; grid-template-columns: 3fr 1fr; gap: 32px; align-items: stretch; }
.rv-engine-frame { border: 1px solid var(--rv-hair-dark-strong); padding: 48px 40px 32px; position: relative; background: #ffffff; }
.rv-engine-track { position: relative; height: 100px; margin-bottom: 96px; }
.rv-engine-line-bg { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--rv-hair-dark); }
.rv-engine-line-fg { position: absolute; left: 0; top: 50%; height: 2px; background: var(--rv-green); transition: width 200ms linear; }
.rv-leakmark { position: absolute; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.rv-leakmark-dot { display: block; width: 14px; height: 14px; background: var(--rv-yellow); margin: 8px auto; border: 2px solid var(--rv-ink); border-radius: 50%; transition: transform 300ms; }
.rv-leakmark.is-live .rv-leakmark-dot { animation: rv-pulse 800ms ease-out; }
@keyframes rv-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(254,205,47,0.6); }
  50% { transform: scale(1.6); box-shadow: 0 0 0 12px rgba(254,205,47,0); }
  100% { transform: scale(1); }
}
.rv-leakmark-loss { display: block; font-family: "JetBrains Mono", monospace; font-size: 16px; font-weight: 700; color: var(--rv-ink); font-variant-numeric: tabular-nums; }
.rv-leakmark-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: max-content; display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(16,16,16,0.65); margin-top: 4px; max-width: 20ch; }
.rv-engine-stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rv-hair-dark); padding-top: 20px; }
.rv-engine-stages li { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; border-left: 1px solid var(--rv-hair-dark); }
.rv-engine-stages li:first-child { border-left: none; padding-left: 0; }
.rv-engine-idx { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--rv-green); letter-spacing: 0.12em; }
.rv-engine-name { font-weight: 600; font-size: 16px; color: var(--rv-ink); }

.rv-scanner { border: 1px solid var(--rv-hair-dark-strong); padding: 24px; background: var(--rv-white); display: flex; flex-direction: column; gap: 20px; color: var(--rv-ink); }
.rv-scanner-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--rv-hair-dark); }
.rv-scanner .rv-panel-label { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rv-green); }
.rv-scanner .rv-panel-id { font-family: "JetBrains Mono", monospace; font-size: 12px; color: rgba(16,16,16,0.5); }
.rv-scanner-body { display: flex; flex-direction: column; gap: 20px; }
.rv-scanner-num { font-family: "Inter", sans-serif; font-size: 58px; font-weight: 700; color: var(--rv-ink); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rv-scanner-label { font-size: 14px; color: rgba(16,16,16,0.7); line-height: 1.5; margin-top: 6px; }
.rv-scanner-graph { width: 100%; height: 60px; stroke: var(--rv-green); stroke-width: 1.5; fill: none; }


@media (max-width: 900px) {
  .rv-leak { padding: 80px 24px; }
  .rv-leak-grid { grid-template-columns: 1fr; }
  .rv-leak-panel { padding: 64px 20px 24px; overflow-x: auto; }
  .rv-leak-stages { grid-template-columns: repeat(5, minmax(90px, 1fr)); min-width: 500px; }
  .rv-leak-inset-num { font-size: 46px; }
}

/* -------------------------- 1c. maturity -------------------------- */
.rv-maturity {
  background: var(--rv-black);
  color: var(--rv-white);
  padding: 140px 48px 200px;
  border-top: 1px solid var(--rv-hair);
}
.rv-mat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 96px;
  align-items: end;
}
.rv-mat-card {
  position: relative;
  border: 1px solid var(--rv-hair);
  background: rgba(255,255,255,0.02);
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-maturity.is-in .rv-mat-card { opacity: 1; }
.rv-mat-card.is-target {
  border-color: var(--rv-green);
  background: rgba(100,192,64,0.04);
}
.rv-mat-tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--rv-hair-strong);
}
.rv-mat-card.is-target .rv-mat-tick { border-color: var(--rv-green); }
.rv-mat-tick--tl { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.rv-mat-tick--tr { top: -6px; right: -6px; border-left: none; border-bottom: none; }
.rv-mat-tick--bl { bottom: -6px; left: -6px; border-right: none; border-top: none; }
.rv-mat-tick--br { bottom: -6px; right: -6px; border-left: none; border-top: none; }
.rv-mat-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.rv-mat-body { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.rv-mat-name { font-size: 24px; font-weight: 700; margin: 0; color: var(--rv-white); letter-spacing: -0.01em; }
.rv-mat-copy { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.65); margin: 0; }
.rv-mat-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding-top: 12px;
  border-top: 1px solid var(--rv-hair);
}
.rv-mat-flag {
  margin: 4px -24px -24px;
  padding: 12px 24px;
  background: var(--rv-green);
  color: var(--rv-black);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 900px) {
  .rv-maturity { padding: 80px 24px; }
  .rv-mat-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .rv-mat-card { transform: none !important; }
}



.rv-hl { color: #64C040; font-weight: 500; }


/* Hero pulseline */
.rv-pulseline {
  margin-top: 28px;
  width: 100%;
  height: 84px;
  position: relative;
  border-top: 1px solid var(--rv-hair);
  border-bottom: 1px solid var(--rv-hair);
  overflow: hidden;
}
.rv-pulseline svg { width: 100%; height: 100%; display: block; }
.rv-pulseline-base {
  stroke: var(--rv-hair);
  stroke-width: 1;
  fill: none;
}
.rv-pulseline-path {
  stroke: var(--rv-green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.is-in .rv-pulseline-path {
  animation: rv-pulse-draw 2400ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards;
}
@keyframes rv-pulse-draw {
  0%   { stroke-dashoffset: 2000; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-pulseline-path { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* Pulseline behind H1 (desktop) */
.rv-h1-wrap { position: relative; isolation: isolate; }
.rv-pulseline--behind {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.rv-pulseline--behind svg { width: 100%; height: 100%; }
.rv-h1-wrap > h1 { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .rv-pulseline--behind { display: none; }
}

/* -------------------------- Diagnosis section (redesign of The Gap) -------------------------- */
.rv-diag {
  background: var(--rv-white);
  color: var(--rv-ink);
  padding: 140px 48px 64px;
  border-top: 1px solid var(--rv-hair-dark);
}
.rv-diag .rv-label { color: var(--rv-ink); }
.rv-diag .rv-h2 { color: var(--rv-ink); max-width: 30ch; font-size: clamp(30px, 3.4vw, 50px); }
.rv-diag .rv-section-head { margin-bottom: 64px; gap: 12px; }

.rv-diag-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1px;
  background: var(--rv-hair-dark);
  border-top: 1px solid var(--rv-hair-dark);
  border-left: 1px solid var(--rv-hair-dark);
}
.rv-diag-card--edge-bottom { box-shadow: 0 1px 0 0 var(--rv-hair-dark); }
.rv-diag-card--edge-right { box-shadow: 1px 0 0 0 var(--rv-hair-dark); }
.rv-diag-card {
  position: relative;
  background: var(--rv-white);
  color: var(--rv-ink);
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-diag.is-in .rv-diag-card { opacity: 1; transform: translateY(0); }

.rv-diag-card--feature {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--rv-black);
  color: var(--rv-white);
  padding: 44px 44px 40px;
}

.rv-diag-audience {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-bottom: 40px;
}
.rv-diag-card--feature .rv-diag-audience { color: var(--rv-green); margin-bottom: 96px; }

.rv-diag-title {
  font-size: 24px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 32ch;
}
.rv-diag-card--feature .rv-diag-title {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 18px;
  color: var(--rv-white);
}

.rv-diag-body {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0,0,0,0.62);
  margin: 0;
  max-width: 40ch;
}
.rv-diag-card--feature .rv-diag-body {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
}


.rv-diag-motif {
  margin-top: auto;
  padding-top: 40px;
  color: rgba(0,0,0,0.75);
}
.rv-diag-card--feature .rv-diag-motif { color: var(--rv-green); }

@media (max-width: 1100px) {
  .rv-diag-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-diag-card--feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 700px) {
  .rv-diag { padding: 80px 24px; }
  .rv-diag-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .rv-diag-card--feature { grid-column: auto; padding: 32px; }
  .rv-diag-card--feature .rv-diag-title { font-size: 28px; }
  .rv-diag-card--feature .rv-diag-audience { margin-bottom: 40px; }
}




/* =============== Outcomes (Proof) =============== */
.rv-outcomes { background: var(--rv-fog); color: var(--rv-ink); padding: 64px 48px; }
.rv-out-head { max-width: 900px; margin-bottom: 32px; }
.rv-out-head .rv-label { color: var(--rv-ink); }
.rv-outcomes .rv-h2 { color: var(--rv-ink); }
.rv-kpistack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 40px; }
.rv-kpi {
  background: var(--rv-white);
  border: 1px solid var(--rv-hair-dark-strong);
  padding: 48px 32px;
  position: relative;
  opacity: 0; transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.2,0.9,0.2,1), transform 700ms cubic-bezier(0.2,0.9,0.2,1.08), z-index 200ms;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
  z-index: 1;
}
.rv-outcomes.is-in .rv-kpi { opacity: 1; transform: translateY(0); }
.rv-outcomes.is-in .rv-kpi:nth-child(1) { transform: translateY(-16px); margin-right: -24px; }
.rv-outcomes.is-in .rv-kpi:nth-child(2) { transform: translateY(16px); z-index: 2; }
.rv-outcomes.is-in .rv-kpi:nth-child(3) { transform: translateY(-8px); margin-left: -24px; }
.rv-kpi:hover { z-index: 5; transform: translateY(-24px) !important; }
.rv-kpi-num { display: flex; align-items: baseline; gap: 4px; }
.rv-kpi-num .rv-num, .rv-kpi-num > span:first-child {
  font-size: 90px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: var(--rv-ink); font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums;
}
.rv-kpi-suffix { font-size: 42px; font-weight: 700; color: var(--rv-green); font-family: "JetBrains Mono", monospace; }
.rv-kpi-label { font-size: 17px; line-height: 1.55; margin-top: 20px; opacity: 0.72; max-width: 260px; }
.rv-kpi-id { position: absolute; top: 20px; right: 24px; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; opacity: 0.4; }

/* =============== Case File =============== */
.rv-case { background: var(--rv-white); color: var(--rv-ink); padding: 140px 48px; }
.rv-case-head { max-width: 900px; margin-bottom: 56px; }
.rv-case-head .rv-label { color: var(--rv-ink); }
.rv-case .rv-h2 { color: var(--rv-ink); }
.rv-folder {
  position: relative;
  border: 1px solid var(--rv-ink);
  padding: 72px 64px 64px;
  max-width: 1100px;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.2,0.9,0.2,1.05), opacity 800ms ease-out;
}
.rv-case.is-in .rv-folder { transform: scale(1); opacity: 1; }
.rv-folder-tab {
  position: absolute; top: -1px; left: 40px; transform: translateY(-100%);
  background: var(--rv-ink); color: var(--rv-white);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.14em;
  padding: 12px 24px;
}
.rv-folder-body { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: end; }
.rv-quote {
  font-family: "Inter", sans-serif;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.2; font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 780px;
  position: relative;
}
.rv-quote-mark { color: var(--rv-green); font-size: 1.4em; line-height: 0; position: relative; top: 0.3em; margin-right: 8px; }
.rv-quote-attr { margin-top: 32px; grid-column: 1; }
.rv-quote-name { display: block; font-weight: 700; font-size: 16px; }
.rv-quote-role { display: block; font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }
.rv-case-metric { grid-column: 2; grid-row: 1 / span 2; text-align: right; border-left: 1px solid var(--rv-hair-dark); padding-left: 32px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.rv-case-metric-id { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; opacity: 0.5; }
.rv-case-metric-num .rv-num { font-size: 74px; font-weight: 800; color: var(--rv-green); letter-spacing: -0.03em; font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }
.rv-case-metric-label { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

@media (max-width: 900px) {
  .rv-outcomes, .rv-case { padding: 80px 24px; }
  .rv-kpistack { grid-template-columns: 1fr; }
  .rv-kpi, .rv-outcomes.is-in .rv-kpi { transform: none !important; margin: 0 !important; }
  .rv-folder { padding: 48px 24px 32px; }
  .rv-folder-body { grid-template-columns: 1fr; gap: 32px; }
  .rv-case-metric { grid-column: 1; grid-row: auto; border-left: none; border-top: 1px solid var(--rv-hair-dark); padding-left: 0; padding-top: 16px; text-align: left; }
}



/* ============ Case Studies (Brutalist Ledger) ============ */
.rv-cases { padding: 96px 0 120px; }
.rv-cases-frame {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid color-mix(in oklab, var(--rv-fg, #f5f3ee) 6%, transparent);
  background: #0d0d0d;
  overflow: hidden;
}
.rv-tick {
  position: absolute; width: 14px; height: 14px; z-index: 3;
  pointer-events: none;
}
.rv-tick--tl { top: -1px; left: -1px; border-top: 1px solid #64C040; border-left: 1px solid #64C040; }
.rv-tick--tr { top: -1px; right: -1px; border-top: 1px solid #64C040; border-right: 1px solid #64C040; }
.rv-tick--bl { bottom: -1px; left: -1px; border-bottom: 1px solid #64C040; border-left: 1px solid #64C040; }
.rv-tick--br { bottom: -1px; right: -1px; border-bottom: 1px solid #64C040; border-right: 1px solid #64C040; }

.rv-cases-wordmark {
  position: absolute; top: 40px; left: 32px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(96px, 14vw, 224px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: #f5f3ee;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.rv-cases-grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 620px;
  z-index: 2;
  animation: rv-case-fade 500ms ease both;
}
@keyframes rv-case-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rv-cases-left {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid color-mix(in oklab, #f5f3ee 6%, transparent);
}
.rv-cases-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: color-mix(in oklab, #f5f3ee 45%, transparent);
  margin-bottom: 24px;
}
.rv-cases-dot { width: 8px; height: 8px; background: #64C040; border-radius: 50%; }

.rv-cases-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f5f3ee;
  margin: 0 0 24px;
}
.rv-cases-body {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in oklab, #f5f3ee 65%, transparent);
  max-width: 460px;
  margin: 0 0 40px;
}

.rv-cases-metrics { display: flex; flex-direction: column; gap: 0; margin-bottom: 48px; }
.rv-cases-metric {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid color-mix(in oklab, #f5f3ee 10%, transparent);
  padding: 14px 0;
}
.rv-cases-metric-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, #f5f3ee 45%, transparent);
}
.rv-cases-metric-v {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  color: color-mix(in oklab, #f5f3ee 92%, transparent);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.rv-cases-metric-v.is-accent { color: #64C040; }

.rv-cases-nav { display: flex; align-items: center; gap: 12px; }
.rv-cases-btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid color-mix(in oklab, #f5f3ee 10%, transparent);
  color: #f5f3ee;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.rv-cases-btn:hover { border-color: #64C040; color: #64C040; }
.rv-cases-btn svg { width: 18px; height: 18px; }
.rv-cases-counter {
  margin-left: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, #f5f3ee 30%, transparent);
}

/* Right visual */
.rv-cases-right {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}
.rv-cases-bggrid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  transform: rotate(-15deg) scale(1.5);
  transform-origin: center;
  opacity: 0.2;
  pointer-events: none;
}
.rv-cases-bggrid span {
  background: color-mix(in oklab, #f5f3ee 5%, transparent);
  border: 1px solid color-mix(in oklab, #f5f3ee 10%, transparent);
  min-height: 360px;
}

.rv-cases-slab {
  position: absolute; inset: 0;
  background: #0d0d0d;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding-left: 128px;
}
.rv-cases-slab-inner { position: relative; z-index: 2; }
.rv-cases-clientlabel {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: color-mix(in oklab, #f5f3ee 22%, transparent);
  margin-bottom: 16px;
}
.rv-cases-client {
  display: flex; flex-direction: column;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-transform: uppercase;
}
.rv-cases-underline {
  height: 4px; width: 96px; background: #64C040; margin-top: 28px;
}

.rv-cases-preview {
  position: absolute;
  top: 50%; right: -8%;
  width: 58%; height: 70%;
  transform: translateY(-50%) rotate(-12deg);
  background: #222;
  border: 4px solid #0d0d0d;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
  overflow: hidden;
  z-index: 1;
}
.rv-cases-preview-bar {
  display: flex; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in oklab, #f5f3ee 5%, transparent);
}
.rv-cases-preview-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in oklab, #f5f3ee 10%, transparent);
}
.rv-cases-preview-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.rv-cases-preview-hero {
  height: 14px; width: 75%;
  background: color-mix(in oklab, #64C040 25%, transparent);
  border-radius: 2px;
}
.rv-cases-preview-line {
  height: 8px; width: 100%;
  background: color-mix(in oklab, #f5f3ee 6%, transparent);
  border-radius: 2px;
}
.rv-cases-preview-line.short { width: 80%; }
.rv-cases-preview-block {
  height: 140px; margin-top: 12px;
  background: color-mix(in oklab, #f5f3ee 5%, transparent);
  border-radius: 2px;
}

.rv-cases-loc {
  position: absolute;
  right: 28px; bottom: 28px;
  text-align: right;
  z-index: 3;
}
.rv-cases-loc-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in oklab, #f5f3ee 40%, transparent);
  margin-bottom: 4px;
}
.rv-cases-loc-v {
  font-size: 14px; font-weight: 700; color: #ffffff;
}

@media (max-width: 900px) {
  .rv-cases-grid { grid-template-columns: 1fr; }
  .rv-cases-left { padding: 48px 28px; border-right: 0; border-bottom: 1px solid color-mix(in oklab, #f5f3ee 6%, transparent); }
  .rv-cases-right { min-height: 480px; }
  .rv-cases-slab { padding-left: 48px; }
  .rv-cases-wordmark { font-size: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-cases-grid { animation: none; }
}

/* ---- HERO: centered statement + full-bleed artifact ---- */
.rv-hero.rv-hero-center {
  padding: 0;
  min-height: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 40px;
}
.rv-hero.rv-hero-center > .rv-heroc-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.rv-heroc-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 88px) 24px 12px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.rv-heroc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  margin: 0 0 clamp(16px, 2.6vh, 32px);
}
.rv-heroc-eyebrow i {
  width: 44px;
  height: 1px;
  border-radius: 0;
  background: var(--rv-green);
  flex: none;
}
.rv-heroc-h1,
.rv-hero-center .rv-display.rv-heroc-h1 {
  margin: 0 0 clamp(18px, 2.8vh, 34px);
  font-size: clamp(38px, 4.1vw, 62px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.rv-heroc-h1 .rv-mask { text-align: center; }
.rv-heroc-lede {
  max-width: 720px;
  margin: 0 auto clamp(24px, 3.4vh, 42px);
  font-size: 17px;
}
.rv-hero .rv-cta-row.rv-heroc-ctas,
.rv-heroc-ctas {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.rv-hero-center .rv-cta { padding: 13px 22px !important; font-size: 16px !important; gap: 10px !important; }
.rv-heroc-cred { justify-content: center; margin-top: clamp(28px, 4vh, 52px); }



.rv-heroc-artifact { position: relative; z-index: 2; background: var(--rv-black); }
.rv-heroc-aud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rv-hair);
  border-bottom: 1px solid var(--rv-hair);
}
.rv-heroc-aud-col {
  padding: 26px 28px 30px;
  border-right: 1px solid var(--rv-hair);
  min-height: 190px;
}
.rv-heroc-aud-col:last-child { border-right: 0; }
.rv-heroc-aud-col.is-active {
  background: color-mix(in oklab, var(--rv-green) 22%, transparent);
  box-shadow: inset 0 2px 0 var(--rv-green);
}
.rv-heroc-aud-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.rv-heroc-aud-col.is-active .rv-heroc-aud-tag { color: rgba(255,255,255,0.7); }
.rv-heroc-aud-role { font-size: 19px; line-height: 1.2; margin: 12px 0 10px; font-weight: 600; }
.rv-heroc-aud-pain { font-size: 14px; line-height: 1.5; margin: 0 0 12px; color: rgba(255,255,255,0.62); }
.rv-heroc-aud-fix { font-size: 14px; line-height: 1.5; margin: 0; color: rgba(255,255,255,0.75); }
.rv-heroc-aud-col.is-active .rv-heroc-aud-fix { color: var(--rv-green); font-weight: 600; }

.rv-heroc-roadmap {
  margin: 46px 48px 60px;
  border: 1px solid var(--rv-hair);
  background: rgba(255,255,255,0.02);
}
.rv-heroc-roadmap-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--rv-hair);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.1em;
}
.rv-heroc-roadmap-title { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); }
.rv-heroc-roadmap-title i { width: 6px; height: 6px; background: var(--rv-green); display: inline-block; }
.rv-heroc-roadmap-meta { color: rgba(255,255,255,0.42); }
.rv-heroc-stages { display: grid; grid-template-columns: repeat(4, 1fr); }
.rv-heroc-stage { padding: 22px 24px 24px; border-right: 1px solid var(--rv-hair); }
.rv-heroc-stage:last-child { border-right: 0; }
.rv-heroc-stage-n { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.35); }
.rv-heroc-stage-t { font-size: 18px; font-weight: 600; margin: 10px 0 12px; }
.rv-heroc-stage ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.rv-heroc-stage li::before { content: ""; width: 5px; height: 1px; background: rgba(255,255,255,0.35); display: inline-block; vertical-align: middle; margin-right: 8px; }
.rv-heroc-stage li { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.62); }
.rv-heroc-stage-w { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--rv-green); }

@media (max-width: 1024px) {
  .rv-heroc-aud, .rv-heroc-stages { grid-template-columns: repeat(2, 1fr); }
  .rv-heroc-aud-col:nth-child(2), .rv-heroc-stage:nth-child(2) { border-right: 0; }
  .rv-heroc-aud-col, .rv-heroc-stage { border-bottom: 1px solid var(--rv-hair); }
  .rv-heroc-roadmap { margin: 32px 24px 44px; }
}
@media (max-width: 640px) {
  .rv-heroc-aud, .rv-heroc-stages { grid-template-columns: 1fr; }
  .rv-heroc-aud-col, .rv-heroc-stage { border-right: 0; min-height: 0; }
  .rv-heroc-inner { padding: 48px 20px 36px; }
}

/* -------------------------- client logo marquee -------------------------- */
.rv-logos {
  border-block: 1px solid var(--rv-line, rgba(0, 0, 0, 0.12));
  padding: clamp(22px, 3vw, 34px) 0;
  overflow: hidden;
}
.rv-logos-label {
  margin: 0 0 clamp(14px, 2vw, 20px);
  text-align: center;
  font-family: var(--rv-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}
.rv-logos-track {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rv-logos-row {
  display: flex;
  align-items: center;
  gap: clamp(38px, 5vw, 72px);
  width: max-content;
  animation: rv-logos-scroll 38s linear infinite;
}
.rv-logos-track:hover .rv-logos-row { animation-play-state: paused; }
.rv-logos-item {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.rv-logos-item:hover { opacity: 1; color: var(--rv-green); }
@keyframes rv-logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .rv-logos-row { animation: none; }
}

/* ---- Branding page: method output + related links ---- */
.rv-mbp-output {
  margin: 18px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--rv-green);
  border-left: 1px solid var(--rv-green);
  padding-left: 14px;
}
.rv-mbp-output span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
/* These were written against a dark background (white text, green underline)
 * but .rv-method is background: var(--rv-fog), so the sentence rendered at
 * rgba(255,255,255,.55) on near-white and the link was pure white on
 * near-white, i.e. invisible. Ported to the light section: the foreground
 * colour flips to ink, green stays as the accent on the underline and hover,
 * which is the same relationship the dark version had. Green as the *text*
 * colour is only 2.1:1 on --rv-fog, well under the 4.5:1 AA floor, so it
 * stays an accent rather than becoming the body colour. */
.rv-mbp-link {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(16, 16, 16, 0.66);
}
.rv-mbp-link a {
  color: var(--rv-ink);
  border-bottom: 1px solid var(--rv-green);
  padding-bottom: 1px;
  white-space: nowrap;
}
.rv-mbp-link a:hover { color: var(--rv-green); }

/* ---- Industry data panel (replaces testimonials) ---- */
.rv-branddata {
  background: var(--rv-black);
  color: var(--rv-white);
  padding: 120px 48px;
  border-top: 1px solid var(--rv-hair);
}
.rv-branddata .rv-label { color: var(--rv-white); }
.rv-branddata .rv-h2 { color: var(--rv-white); max-width: 22ch; }
.rv-bdgrid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rv-hair);
  border: 1px solid var(--rv-hair);
}
.rv-bdstat {
  background: var(--rv-black);
  padding: 44px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-branddata.is-in .rv-bdstat { opacity: 1; transform: translateY(0); }
.rv-bdstat-num {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--rv-green);
}
.rv-bdstat-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}
.rv-bdnote {
  margin: 28px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
}
@media (max-width: 1100px) {
  .rv-bdgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .rv-branddata { padding: 80px 24px; }
  .rv-bdgrid { grid-template-columns: 1fr; margin-top: 40px; }
  .rv-bdstat-num { font-size: 52px; }
}
@media (max-width: 900px) {
  :root { --rv-nav-h: 70px; }
  .rv-hero.rv-hero-center { min-height: auto; padding: 32px 0; }
}

/* ---- CASE STUDY ---- */
.rv-casestudy { background: var(--rv-white); color: var(--rv-black); padding: 140px 48px; }
.rv-cs-grid { grid-template-columns: 1fr; border-top: 1px solid rgba(0,0,0,0.12); border-left: 1px solid rgba(0,0,0,0.12); }
.rv-casestudy .rv-del-card { border-right: 1px solid rgba(0,0,0,0.12); border-bottom: 1px solid rgba(0,0,0,0.12); min-height: 0; padding: 40px 32px; }
.rv-casestudy .rv-del-card p { font-size: 17px; line-height: 1.6; opacity: 0.7; max-width: 900px; }
.rv-casestudy.is-in .rv-del-card { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .rv-casestudy { padding: 80px 24px; } }

/* ---- TESTIMONIAL ---- */
.rv-testi {
  background: var(--rv-white);
  color: var(--rv-black);
  padding: 120px 48px;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.rv-testi .rv-label { color: var(--rv-black); }
.rv-testi-h {
  margin: 18px 0 0;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 16ch;
}
.rv-testi-tag {
  display: inline-block;
  margin-top: 22px;
  background: var(--rv-black);
  color: var(--rv-white);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 12px 18px;
}
.rv-testi-card {
  margin: 0;
  border: 1px solid rgba(0,0,0,0.14);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.9,0.2,1);
}
.rv-testi.is-in .rv-testi-card { opacity: 1; transform: translateY(0); }
.rv-testi-q {
  margin: 0;
  padding: 56px 56px 56px 48px;
  border-right: 1px solid rgba(0,0,0,0.14);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.rv-testi-mark { color: var(--rv-green); margin-right: 6px; }
.rv-testi-meta {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
}
.rv-testi-name { font-size: 19px; font-weight: 700; }
.rv-testi-role { font-size: 15px; opacity: 0.6; }
.rv-testi-co {
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--rv-green);
}
.rv-testi-ref {
  margin-top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.35;
}
@media (max-width: 900px) {
  .rv-testi { padding: 80px 24px; }
  .rv-testi-card { grid-template-columns: 1fr; }
  .rv-testi-q { padding: 32px 24px; border-right: 0; border-bottom: 1px solid rgba(0,0,0,0.14); }
  .rv-testi-meta { padding: 28px 24px; }
}


/* case study source line */
.rv-cases-source {
  margin: 22px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  opacity: 0.55;
}
.rv-cases-source a { color: inherit; text-decoration: underline; }

/* centered hero eyebrow */
.rv-heroc-eyebrow { display: flex; justify-content: center; width: 100%; }
.rv-cases-client span { font-size: clamp(26px, 2.6vw, 44px); line-height: 1.06; }


/* The empty diagnostic card is a desktop-only spacer: it fills the odd slot
   left over by five cards in a four- or two-column grid. Once the grid is a
   single column it fills nothing and just adds a blank 280px band, which is
   what read as a stretch of dead whitespace on a phone. */
@media (max-width: 700px) {
  .rv-diag-card--empty { display: none; }
}


/* Leak/cost engine on phones.
   Two problems. First, each of these files declares .rv-engine's desktop
   3fr 1fr twice, and the second copy sits after the <=900px stack, so the
   stack never applied and the whole widget hung off the right edge.
   Second, the track is a 100px horizontal rail with the marks absolutely
   positioned at 20/45/72/92% and their labels centred under each dot at up
   to 20ch -- roughly 160px of label on 76px of spacing, so the captions
   printed on top of each other. Below 700px the rail becomes vertical: the
   line runs down the dot column and each mark is a dot + figure with its
   caption indented underneath. */
@media (max-width: 700px) {
  .rv-engine { grid-template-columns: 1fr; gap: 24px; }
  .rv-engine-frame { padding: 28px 20px 24px; }

  .rv-engine-track { height: auto; margin-bottom: 28px; display: flex; flex-direction: column; gap: 18px; padding-left: 26px; }
  .rv-engine-line-bg { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .rv-engine-line-fg { display: none; }

  .rv-leakmark {
    position: static; transform: none; text-align: left;
    display: grid; grid-template-columns: 14px 1fr;
    grid-template-areas: "dot loss" ". label";
    column-gap: 12px; row-gap: 2px; align-items: center;
  }
  .rv-leakmark-dot { grid-area: dot; margin: 0; }
  .rv-leakmark-loss { grid-area: loss; }
  .rv-leakmark-label {
    grid-area: label; position: static; transform: none;
    width: auto; max-width: none; margin: 0;
  }

  .rv-engine-stages { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .rv-engine-stages li { padding: 0; border-left: none; }
}


/* The method blueprint's texture grid is deliberately bled 80px past the
   section on all four sides (inset: -80px). On desktop that lands in the
   surrounding whitespace. On a phone the sections are tight, so the bleed
   sat on top of the neighbouring sections and pushed past both screen
   edges -- the overlap seen when scrolling the method section. */
@media (max-width: 900px) {
  .rv-mbp-grid { inset: 0; }
}


/* The case-file tab is absolutely positioned above the folder's top edge
   (top:-1px + translateY(-100%)), so it eats into the folder's own top
   margin. On desktop the heading above is one line and 56px is enough; on a
   phone the heading wraps and the tab lands on it. Give the folder room for
   the tab plus clearance, enough that a two-line tab still clears. */
@media (max-width: 900px) {
  .rv-folder { margin-top: 120px; }
}

/* Marketing feedback: hide the leak graphic on mobile but keep the Brand
 * Reality Check inset beside it, which carries the actual statistic. */
@media (max-width: 767px) {
	.rv-leak .rv-engine-frame { display: none; }
}


/* ============================================================
 * September review, mobile pass on this page.
 * Section rules are (0,2,1) because lp-mobile-density.css sets
 * padding-block for them and is enqueued after this file.
 * ============================================================ */

@media (max-width: 767px) {

	/* "Reduce some of the white space before Branding and positioning."
	 * The hero eyebrow sat 80px down from the top of the section: 32px of
	 * section padding and 48px on the inner box. */
	.rv-root > section.rv-hero {
		padding-top: 16px;
	}

	.rv-root .rv-heroc-inner {
		padding-top: 20px;
	}

	/* "Reduce some space before what it costs / The Shift / case study /
	 * outcomes." Each measured 128px of gap, the shared density layer's 64px
	 * top against the previous section's 64px bottom. Halved to 96px. */
	.rv-root > section.rv-leak,
	.rv-root > section.rv-promise,
	.rv-root > section.rv-cases,
	.rv-root > section.rv-outcomes {
		padding-top: 32px;
	}

	/* "Hide the graphic in what it costs. Leave this box for Brand reality
	 * check." .rv-engine is the stage diagram, 351px tall on a phone;
	 * .rv-scanner is the Brand Reality Check panel and stays. */
	.rv-root .rv-leak .rv-engine {
		display: none;
	}

	/* "Reduce some space right below the headline: The four stages of a
	 * brand." 32px between the heading block and the blueprint under it. */
	.rv-root .rv-mat .rv-mat-head {
		margin-bottom: 16px;
	}

	/* "Fix the following elements from the case study section on mobile:
	 * Engagement / WordPress Retainer, Focus / UI & Brand Consistency,
	 * Reference / Kustomer · Named Client."
	 *
	 * All three values wrapped to two lines at 22px in a 317px row.
	 * Marketing's own suggestion was a smaller size so each sits on one
	 * line, which is what this does. */
	.rv-root .rv-cases-metric-v {
		font-size: 16px;
	}
}
