/* ===========================================================================
   screens.css — Motiv-pattern, no-scroll multi-screen layer for Swimlanes.
   Loads AFTER swimlanes.css. Reuses its tokens (--ink, --paper, --accent,
   --brand-1/2/3, fonts). Adds: no-scroll shell, portal mockup + proof chips,
   solution-center cards, horizontal case rows, split contact.
   =========================================================================== */

/* ---------- success / verified accent (derived, still "pure Swimlanes") ---- */
[hidden] { display: none !important; }
:root {
  /* headline emphasis serif — Instrument Serif (ties to the original Instrument family) */
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
}
:root {
  --ok:        oklch(0.72 0.15 165);
  --ok-soft:   oklch(0.72 0.15 165 / 0.14);
  --grad:      linear-gradient(125deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  --glow-1:    oklch(0.72 0.16 235 / 0.26);
  --glow-2:    oklch(0.55 0.16 285 / 0.20);
  --page-gutter: 56px;
}
@media (max-width: 1000px){ :root { --page-gutter: 24px; } }

/* ---------- NO-SCROLL SHELL ---------- */
html.app, html.app body { height: 100%; }
html.app body { overflow: hidden; overscroll-behavior: none; }
/* dvh tracks the *dynamic* viewport so mobile browser chrome (URL bar) can't
   push a screen past the fold; vh is the fallback for older engines. */
#app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
#app > nav.top { flex: none; position: relative; }
#app > footer { flex: none; }
.stage { flex: 1; min-height: 0; position: relative; display: flex;
  /* Reset the legacy `.stage` section rule from swimlanes.css (max-width:1680px;
     margin:0 auto; padding:120px 56px; border-bottom). That class name collides
     with this no-scroll shell container; without this reset its padding insets
     every screen, so the atmos background floats instead of reaching nav+footer. */
  max-width: none; margin: 0; padding: 0; border-bottom: 0; }
.stage.is-scroll { display: block; overflow-y: auto; overflow-x: hidden; }
.screen {
  flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0;
  position: relative;
  /* Safety net only. Screens are sized to FIT the viewport at every breakpoint
     (see the responsive blocks below), so this never engages on real devices.
     If a pathological viewport (e.g. a short landscape phone) still overflows,
     the screen scrolls silently — scrollbar hidden — instead of hard-clipping.
     No scrollbar is ever shown; content that fits simply doesn't scroll. */
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  display: flex; flex-direction: column;
  opacity: 1;
  animation: screenIn 0.5s cubic-bezier(.2,.8,.2,1);
}
.screen::-webkit-scrollbar { width: 0; height: 0; display: none; }
.screen[hidden] { display: none; }
.stage.is-scroll .screen { min-height: 100%; overflow: visible; animation: screenIn 0.4s cubic-bezier(.2,.8,.2,1); }
@keyframes screenIn { from { transform: translateY(14px); } to { transform: none; } }

/* atmospheric layers reused across screens */
.atmos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.atmos .lines {
  position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(118deg, transparent 0 46px, oklch(0.50 0.02 250 / 0.05) 46px 47px);
}
.atmos .glow-a { position: absolute; inset: 0;
  background: radial-gradient(62% 72% at 100% 0%, var(--glow-1), oklch(0.72 0.16 235 / 0) 88%); }
.atmos .glow-b { position: absolute; inset: 0;
  background: radial-gradient(56% 66% at 0% 100%, var(--glow-2), oklch(0.55 0.16 285 / 0) 88%); }
.screen.on-ink .atmos .lines { background: repeating-linear-gradient(118deg, transparent 0 46px, oklch(1 0 0 / 0.025) 46px 47px); }

/* a screen body that centers content within the viewport, no scroll */
.screen-pad {
  position: relative; z-index: 1;
  flex: 1 0 auto; min-height: 100%;
  display: flex; flex-direction: column; justify-content: safe center;
  padding: clamp(28px, 5vh, 72px) var(--page-gutter);
  max-width: 1680px; margin: 0 auto; width: 100%;
  box-sizing: border-box;
}

/* shared screen eyebrow + heading rhythm */
.s-eyebrow { margin-bottom: 22px; }
.s-h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(34px, 5vw, 72px); line-height: 0.96;
  letter-spacing: -0.035em; margin: 0; color: var(--ink); max-width: 17ch;
}
.s-h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.on-ink .s-h2 { color: var(--paper); }
.s-lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--mute-2); max-width: 54ch; margin: 20px 0 0; }
.on-ink .s-lede { color: var(--mute-dark); }

/* ---------- HERO ---------- */
.hero-screen { position: relative; }
.hero-inner {
  position: relative; z-index: 1;
  flex: 1 0 auto; min-height: 100%;
  display: grid; align-items: safe center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(24px, 4vh, 56px) var(--page-gutter);
  max-width: 1680px; margin: 0 auto; width: 100%;
  box-sizing: border-box;
  grid-template-columns: 1.02fr 0.98fr;
}
.hero-copy { max-width: 640px; }
.hero-eyebrow { margin-bottom: 26px; }
.hero-screen h1 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(48px, 6.6vw, 104px); line-height: 0.92;
  letter-spacing: -0.045em; margin: 0; color: var(--ink);
}
.hero-screen h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.hero-screen h1 .g {
  background: linear-gradient(92deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-screen .lede {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45;
  color: var(--mute-2); max-width: 46ch; margin: 26px 0 0;
}
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-sub { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--mute); margin-top: 18px; max-width: 44ch; line-height: 1.5; }
.btn.lg { padding: 14px 22px; font-size: 15px; }

/* mockup column */
.hero-stage { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }

/* ---------- PORTAL MOCKUP (capture-to-cash review portal) ---------- */
.portal {
  width: 100%; max-width: 480px;
  background: var(--paper); color: var(--ink);
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 40px 90px -40px oklch(0 0 0 / 0.45), 0 2px 8px oklch(0 0 0 / 0.06);
  transform: perspective(1500px) rotateY(-11deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.hero-stage:hover .portal { transform: perspective(1500px) rotateY(-7deg) rotateX(2deg); }
.portal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.portal-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.portal-bar .url {
  margin-left: 10px; flex: 1;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  padding: 5px 12px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute);
  display: flex; align-items: center; gap: 6px;
}
.portal-body { padding: 16px 18px 18px; }
.portal-h {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.portal-h .t { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.portal-h .pill {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--ok-soft); border: 1px solid oklch(0.72 0.15 165 / 0.4);
  padding: 4px 8px; border-radius: 999px;
}
/* review rows */
.portal-rows { display: flex; flex-direction: column; gap: 7px; }
.prow {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper);
}
.prow .check {
  width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
  background: var(--ok); color: var(--paper);
}
.prow.pending .check { background: transparent; border: 1px solid var(--rule-2); }
.prow .meta { min-width: 0; }
.prow .meta .nm { font-family: var(--f-display); font-weight: 500; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .meta .sb { font-family: var(--f-mono); font-size: 9.5px; color: var(--mute); margin-top: 2px; }
.prow .amt { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.prow.pending .amt { color: var(--mute); }
.portal-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--rule);
}
.portal-foot .sum { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.portal-foot .sum b { color: var(--ink); font-weight: 600; }
.portal-foot .go {
  font-family: var(--f-display); font-weight: 600; font-size: 11.5px;
  color: var(--paper); background: var(--ink); border-radius: 999px; padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- PROOF CHIPS ---------- */
.chip {
  position: absolute; z-index: 3;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 16px 36px -16px oklch(0 0 0 / 0.4), 0 1px 3px oklch(0 0 0 / 0.08);
  padding: 10px 13px; display: flex; align-items: center; gap: 10px;
  animation: chipFloat 6s ease-in-out infinite;
}
.chip .ic {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  display: grid; place-items: center; color: var(--paper);
  background: var(--grad);
}
.chip.brand .ic { background: var(--grad); }
.chip .tx { display: flex; flex-direction: column; }
.chip .tx .l { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; color: var(--ink); line-height: 1.2; }
.chip .tx .s { font-family: var(--f-mono); font-size: 9.5px; color: var(--mute); margin-top: 4px; line-height: 1.3; }
.chip:nth-of-type(2) { animation-delay: -1.5s; }
.chip:nth-of-type(3) { animation-delay: -3s; }
.chip:nth-of-type(4) { animation-delay: -4.5s; }
@keyframes chipFloat { 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* hero variation placement (set on .hero-screen[data-variant]) */
/* V1 — split, perspective mockup, 4 chips (default above) */
.chip.c-tl { top: 4%; left: -6%; }
.chip.c-tr { top: 22%; right: -7%; }
.chip.c-bl { bottom: 20%; left: -8%; }
.chip.c-br { bottom: 2%; right: -4%; }

/* V2 — showcase: centered copy, flat large mockup, chips hug the frame */
.hero-screen[data-variant="2"] .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 36px; }
.hero-screen[data-variant="2"] .hero-copy { max-width: 760px; }
.hero-screen[data-variant="2"] .hero-screen h1,
.hero-screen[data-variant="2"] h1 { font-size: clamp(44px, 6vw, 92px); }
.hero-screen[data-variant="2"] .lede { margin-left: auto; margin-right: auto; }
.hero-screen[data-variant="2"] .hero-cta { justify-content: center; }
.hero-screen[data-variant="2"] .hero-sub { margin-left: auto; margin-right: auto; text-align: center; }
.hero-screen[data-variant="2"] .portal { transform: none; max-width: 560px; }
.hero-screen[data-variant="2"] .hero-stage:hover .portal { transform: translateY(-4px); }
.hero-screen[data-variant="2"] .chip.c-tl { top: -4%; left: 2%; }
.hero-screen[data-variant="2"] .chip.c-tr { top: 14%; right: -3%; }
.hero-screen[data-variant="2"] .chip.c-bl { bottom: 10%; left: -3%; }
.hero-screen[data-variant="2"] .chip.c-br { bottom: -4%; right: 4%; }

/* V3 — editorial: oversized headline dominates, mockup cropped at right edge */
.hero-screen[data-variant="3"] .hero-inner { grid-template-columns: 1.25fr 0.75fr; gap: 24px; }
.hero-screen[data-variant="3"] h1 { font-size: clamp(56px, 8.2vw, 132px); }
.hero-screen[data-variant="3"] .hero-stage { justify-content: flex-end; }
.hero-screen[data-variant="3"] .portal { max-width: 540px; transform: perspective(1600px) rotateY(-14deg) rotateX(4deg) translateX(8%); }
.hero-screen[data-variant="3"] .chip.c-tl { top: 6%; left: -14%; }
.hero-screen[data-variant="3"] .chip.c-bl { bottom: 16%; left: -18%; }
.hero-screen[data-variant="3"] .chip.c-tr,
.hero-screen[data-variant="3"] .chip.c-br { display: none; }

/* ---------- SOLUTION-CENTER CARDS (Practice) ---------- */
.centers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 18px); margin-top: clamp(24px, 3vh, 36px); }
.center-card {
  text-align: left; cursor: pointer; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px 22px; min-height: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.center-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px oklch(0 0 0 / 0.3); border-color: var(--rule-2); }
.center-card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); margin-bottom: 14px;
}
.center-card.is-custom { background: var(--ink); border-color: var(--ink); }
.center-card.is-custom .ico { background: var(--accent); color: var(--ink); }
.center-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--ink); }
.center-card.is-custom h3 { color: var(--paper); }
.center-card .tag { font-size: 13.5px; color: var(--mute-2); margin: 0 0 18px; line-height: 1.4; }
.center-card.is-custom .tag { color: var(--mute-dark); }
.center-card .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-weight: 600; font-size: 13.5px; color: var(--ink);
}
.center-card.is-custom .more { color: var(--accent); }
.centers-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); text-align: center; margin: clamp(20px,3vh,32px) 0 0; }

/* center detail (checklist) */
.center-detail { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: clamp(24px, 3.5vh, 44px) var(--page-gutter); max-width: 1680px; margin: 0 auto; width: 100%; box-sizing: border-box; gap: clamp(14px, 2vh, 22px); }
.center-back {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 500; font-size: 14px; color: var(--mute); padding: 0;
}
.center-back:hover { color: var(--ink); }
.center-detail-h { display: flex; align-items: center; gap: 14px; }
.center-detail-h .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: var(--accent); display: grid; place-items: center; flex: none; }
.center-detail-h h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1; margin: 0; }
.center-detail-h p { font-size: 13.5px; color: var(--mute-2); margin: 5px 0 0; }
.check-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-content: start; overflow-y: auto; }
.check-item {
  text-align: left; cursor: pointer; display: flex; gap: 13px; align-items: flex-start; width: 100%;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 15px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.check-item:hover { border-color: var(--rule-2); }
.check-item[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.check-item .box {
  flex: none; width: 22px; height: 22px; border-radius: 6px; margin-top: 1px;
  border: 1px solid var(--rule-2); display: grid; place-items: center; color: var(--paper);
  transition: background .15s ease, border-color .15s ease;
}
.check-item[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.check-item .box svg { opacity: 0; }
.check-item[aria-pressed="true"] .box svg { opacity: 1; }
.check-item .ci-t { display: block; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.check-item .ci-d { display: block; font-size: 13px; color: var(--mute-2); margin-top: 4px; line-height: 1.4; }
.check-item .ci-wrap { min-width: 0; }
.center-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 16px; }
.center-actionbar .count { font-size: 14px; color: var(--mute-2); }
.center-actionbar .count b { color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }

/* ---------- WORK / CASE ROWS (scrolling) ---------- */
.work-screen .screen-pad { justify-content: flex-start; }
.case-list { display: flex; flex-direction: column; gap: 20px; margin-top: clamp(24px, 4vh, 44px); }
.case-row {
  cursor: pointer; border-radius: 16px; background: var(--paper); overflow: hidden;
  border: 1px solid var(--rule); box-shadow: 0 1px 3px oklch(0 0 0 / 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-row:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px oklch(0 0 0 / 0.3); }
.case-row .accent-bar { height: 5px; background: linear-gradient(92deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3)); }
.case-row.sample .accent-bar { background: var(--rule-2); }
.case-grid { display: grid; grid-template-columns: 220px 1.3fr 1fr; gap: 28px; padding: 26px 30px; align-items: center; }
.case-visual { border-radius: 12px; overflow: hidden; height: 150px; border: 1px solid var(--rule); }
.case-mid .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.case-mid h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; color: var(--ink); }
.case-mid p { font-size: 14.5px; color: var(--mute-2); margin: 0; line-height: 1.5; max-width: 36rem; }
.case-mid .read { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 10px; overflow: hidden; background: var(--rule); border: 1px solid var(--rule); }
.case-metrics .m { background: var(--paper); padding: 16px; }
.case-metrics .m .v { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; color: var(--ink); }
.case-metrics .m .l { margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--mute-2); }
.cbadge { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--mute); }
.cbadge.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cbadge.sample { background: var(--paper-2); }
@media (max-width: 980px){ .case-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- CASE DETAIL (long-form) ---------- */
.case-detail { max-width: 940px; margin: 0 auto; width: 100%; padding: clamp(28px,5vh,64px) var(--page-gutter) 80px; }
.case-detail .cd-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font-family: var(--f-display); font-weight: 500; font-size: 14px; color: var(--mute); padding: 0; margin-bottom: 28px; }
.case-detail .cd-back:hover { color: var(--ink); }
.case-detail .cd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.case-detail h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px,4.6vw,60px); letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 18px; color: var(--ink); max-width: 18ch; }
.case-detail h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.case-detail .cd-lede { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px,1.7vw,23px); line-height: 1.45; color: var(--ink-2); margin: 0 0 32px; max-width: 52ch; }
.case-detail .cd-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; margin: 0 0 44px; }
.case-detail .cd-metrics .m { background: var(--paper); padding: 22px 20px; }
.case-detail .cd-metrics .v { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px,2.4vw,38px); letter-spacing: -0.03em; color: var(--ink); }
.case-detail .cd-metrics .v small { font-size: 0.5em; color: var(--mute); }
.case-detail .cd-metrics .l { margin-top: 6px; font-size: 12px; color: var(--mute-2); line-height: 1.35; }
@media (max-width: 760px){ .case-detail .cd-metrics { grid-template-columns: 1fr 1fr; } }
.case-detail .cd-section { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 40px; }
.case-detail .cd-section:first-of-type { margin-top: 0; }
.case-detail .cd-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.case-detail .cd-section h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px,2.4vw,34px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 18px; color: var(--ink); }
.case-detail .cd-section p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; max-width: 64ch; }
.case-detail .cd-section p:last-child { margin-bottom: 0; }
.case-detail .cd-section strong { color: var(--ink); font-weight: 600; }
.case-detail .cd-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 8px 0 4px; }
.case-detail .cd-step { flex: 1 1 150px; min-width: 140px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; }
.case-detail .cd-step.human { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.case-detail .cd-step .sn { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.case-detail .cd-step .st { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink); margin: 8px 0 5px; }
.case-detail .cd-step .sd { font-size: 12.5px; line-height: 1.4; color: var(--mute-2); }
.case-detail .cd-step.human .st { color: var(--ink); }
.case-detail .cd-pull { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; margin: 4px 0 8px; font-family: var(--f-serif); font-style: italic; font-size: clamp(20px,2vw,27px); line-height: 1.35; color: var(--ink); }
.case-detail .cd-cta { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.case-detail .cd-cta .t { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px,2vw,28px); letter-spacing: -0.02em; color: var(--ink); max-width: 22ch; }
.case-detail .cd-stack { display: flex; flex-direction: column; gap: 8px; }
.case-detail .cd-stack .row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--rule); font-size: 13.5px; }
.case-detail .cd-stack .row:first-child { border-top: none; }
.case-detail .cd-stack .rk { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.case-detail .cd-stack .rv { color: var(--ink-2); }

/* ---------- CONTACT (split) ---------- */
.contact-inner { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 2.4vw, 40px);
  padding: clamp(24px, 4vh, 56px) var(--page-gutter); max-width: 1680px; margin: 0 auto; width: 100%; box-sizing: border-box; align-items: stretch; }
.contact-panel { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(28px, 3vw, 48px); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.contact-panel .atmos .lines { background: repeating-linear-gradient(118deg, transparent 0 40px, oklch(1 0 0 / 0.03) 40px 41px); }
.contact-panel h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 16px; color: var(--paper); position: relative; }
.contact-panel h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.contact-panel .pl { font-size: 15.5px; line-height: 1.5; color: var(--mute-dark); margin: 0 0 28px; max-width: 40ch; position: relative; }
.reassure { display: flex; flex-direction: column; gap: 14px; position: relative; }
.reassure .r { display: flex; gap: 12px; align-items: flex-start; }
.reassure .r .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--ok); color: var(--paper); display: grid; place-items: center; flex: none; margin-top: 1px; }
.reassure .r .ic.brand { background: var(--brand-2); }
.reassure .r .t { font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--paper); }
.reassure .r .d { font-size: 13px; color: var(--mute-dark); margin-top: 1px; }
.contact-panel .email { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule-dark); font-family: var(--f-mono); font-size: 12.5px; color: var(--mute-dark); display: flex; align-items: center; gap: 10px; position: relative; }

.contact-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(24px, 2.6vw, 40px); box-shadow: 0 1px 3px oklch(0 0 0 / 0.04); display: flex; flex-direction: column; justify-content: center; }
.contact-card .ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.contact-card .ch h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--rule-2); background: var(--paper); border-radius: 9px;
  font-family: var(--f-body); font-size: 14px; color: var(--ink); box-sizing: border-box;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
.contact-card .submit { margin-top: 8px; width: 100%; justify-content: center; }
.contact-card .fineprint { font-family: var(--f-mono); font-size: 10px; color: var(--mute); text-align: center; margin: 14px 0 0; letter-spacing: 0.03em; }
.contact-success { text-align: center; padding: 20px 0; }
.contact-success .big { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.contact-success h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.contact-success p { font-size: 15px; color: var(--mute-2); max-width: 340px; margin: 0 auto; line-height: 1.5; }

/* ---------- ABOUT / PRICING / PROCESS no-scroll grids ---------- */
.bento { display: grid; gap: 14px; margin-top: clamp(24px, 4vh, 44px); }
.principles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.principles-grid .p { padding: 28px 20px 0 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.principles-grid .p:last-child { border-right: none; }
.principles-grid .pn { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 36px; }
.principles-grid h4 { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--ink); }
.principles-grid p { font-size: 13px; line-height: 1.5; color: var(--mute-2); margin: 0; }
@media (max-width: 1000px){ .principles-grid { grid-template-columns: 1fr 1fr; } .principles-grid .p { border-bottom: 1px solid var(--rule); padding: 22px 16px; } }

.proc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: clamp(24px, 4vh, 44px); border-top: 1px solid var(--rule-dark); }
.proc-grid .st { padding: 28px 22px 0 0; border-right: 1px solid var(--rule-dark); display: flex; flex-direction: column; }
.proc-grid .st:last-child { border-right: none; }
.proc-grid .sn { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 40px; }
.proc-grid h4 { font-family: var(--f-display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--paper); }
.proc-grid p { font-size: 13px; line-height: 1.5; color: var(--mute-dark); margin: 0; }
.proc-grid .dur { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-dark); margin-top: 18px; }
@media (max-width: 1000px){ .proc-grid { grid-template-columns: 1fr 1fr 1fr; } .proc-grid .st { border-bottom: 1px solid var(--rule-dark); padding: 20px 16px; } }
@media (max-width: 640px){ .proc-grid { grid-template-columns: 1fr 1fr; } }

/* process — visual infographic */
.proc-info { width: 100%; display: flex; flex-direction: column; }
.proc-top { width: 100%; }
.proc-top h2 { max-width: 20ch; text-wrap: balance; }
.proc-top .s-lede { margin-top: 18px; }

.proc-flow { display: grid; grid-template-columns: 160px auto minmax(0,1fr) auto 160px; align-items: center; gap: clamp(14px,2vw,30px); margin-top: clamp(30px,6vh,64px); width: 100%; }

/* bookends */
.proc-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px; }
.proc-end .glyph { width: 92px; height: 76px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--rule); }
.proc-end.bring .glyph { background: var(--paper-2); }
.proc-end.own .glyph { background: var(--ink); border-color: var(--ink); }
.proc-end .badge { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.proc-end.bring .badge { color: var(--mute); }
.proc-end.own .badge { color: var(--brand-2); }
.proc-end .cap { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.proc-end .sub { font-size: 12px; color: var(--mute-2); line-height: 1.35; max-width: 18ch; }

/* the gradient stepper rail */
.proc-rail { position: relative; }
.proc-rail .rail-cap { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 26px; }
.proc-rail .rail-cap .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }
.proc-dots { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.proc-dots::before { content: ""; position: absolute; left: 8.3%; right: 8.3%; top: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3)); z-index: 0; }
.proc-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 5px; }
.proc-node .num { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--mute); }
.proc-node .circle { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; border: 3px solid var(--paper); box-shadow: 0 6px 16px -6px oklch(0 0 0 / 0.4); }
.proc-node .t { font-family: var(--f-display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.015em; color: var(--ink); }
.proc-node .wk { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.proc-node.opt .circle { background: var(--paper); border-color: var(--rule-2); color: var(--mute); box-shadow: none; }
.proc-arrow { display: grid; place-items: center; color: var(--rule-2); }

@media (max-width: 1000px){
  .proc-flow { grid-template-columns: 1fr; gap: 28px; }
  .proc-arrow { transform: rotate(90deg); }
  .proc-dots { grid-template-columns: 1fr 1fr 1fr; gap: 24px 8px; }
  .proc-dots::before { display: none; }
}
@media (max-width: 560px){ .proc-dots { grid-template-columns: 1fr 1fr; } }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(24px, 4vh, 44px); }
.price-card { border: 1px solid var(--rule); border-radius: 14px; padding: 28px 24px; background: var(--paper); display: flex; flex-direction: column; }
.price-card.feature { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.price-card .pk { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.price-card.feature .pk { color: var(--mute-dark); }
.price-card .pv { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.price-card.feature .pv { color: var(--paper); }
.price-card .pv small { font-family: var(--f-mono); font-size: 13px; color: var(--mute); font-weight: 400; letter-spacing: 0; }
.price-card .pv .from { font-size: 0.45em; color: var(--mute); letter-spacing: 0; margin-right: 6px; font-family: var(--f-mono); }
.price-card .pn { font-family: var(--f-mono); font-size: 12px; color: var(--mute-2); margin-top: 10px; }
.price-card.feature .pn { color: var(--mute-dark); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 9px; }
.price-card li { font-size: 13.5px; color: var(--mute-2); display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.price-card.feature li { color: var(--mute-dark); }
.price-card li .tick { color: var(--ok); flex: none; margin-top: 2px; }
.price-card .disc { font-family: var(--f-mono); font-size: 10px; color: var(--mute); margin-top: 24px; letter-spacing: 0.03em; line-height: 1.5; }

/* generic two-col text block used in About */
.twocol { display: grid; grid-template-columns: 0.5fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(24px, 4vh, 44px); align-items: start; }
.twocol .label { padding-top: 8px; }
.twocol h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 18px; color: var(--ink); }
.twocol h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.twocol p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.twocol p:last-child { margin-bottom: 0; }
@media (max-width: 1000px){ .twocol { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- slim app footer (no-scroll shell) ---------- */
.appfoot {
  flex: none;
  background: var(--ink); color: var(--mute-dark);
  border-top: 1px solid var(--rule-dark);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 13px var(--page-gutter);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em;
}
.appfoot .l { display: flex; align-items: center; gap: 18px; }
.appfoot .l .bw { font-family: var(--f-display); font-weight: 500; font-size: 13px; letter-spacing: -0.01em; color: var(--paper); text-transform: none; }
.appfoot .l a { color: var(--mute-dark); }
.appfoot .l a:hover { color: var(--accent); }
.appfoot .r { display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.appfoot .r .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
@media (max-width: 700px){ .appfoot { flex-direction: column; gap: 8px; text-align: center; } .appfoot .l { flex-wrap: wrap; justify-content: center; } }

/* practice funnel selection banner (carried into contact) */
.sel-banner { display: none; align-items: center; gap: 12px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.sel-banner.show { display: flex; }
.sel-banner .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex: none; }
.sel-banner .tx { font-size: 13px; color: var(--ink); line-height: 1.4; }
.sel-banner .tx b { font-weight: 600; }

/* nav active state */
/* nav: links grouped on the right beside the CTA */
#app > nav.top .inner { grid-template-columns: auto 1fr; }
#app > nav.top .nav-right { gap: 36px; }
#app > nav.top .nav-links { justify-content: flex-end; }
@media (max-width: 900px){ #app > nav.top .inner { grid-template-columns: 1fr auto; } #app > nav.top .nav-right { gap: 0; } }
.nav-links a.active { color: var(--ink); position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(92deg, var(--brand-1), var(--brand-3)); }

/* ---------- TWEAKS (built-in, vanilla) ---------- */
#tweak-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-dark);
  background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 26px -10px oklch(0 0 0 / 0.5);
}
#tweak-panel {
  position: fixed; right: 18px; bottom: 72px; z-index: 91; width: 280px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 24px 60px -20px oklch(0 0 0 / 0.4); padding: 18px; display: none;
}
#tweak-panel.open { display: block; }
#tweak-panel h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
#tweak-panel .grp { margin-bottom: 18px; }
#tweak-panel .grp > .lbl { font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 8px; display: block; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; font-family: var(--f-display); font-weight: 500; font-size: 12.5px; padding: 8px 0; border: 1px solid var(--rule-2); background: var(--paper); color: var(--mute-2); border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt-list button { text-align: left; font-family: var(--f-display); font-size: 12.5px; padding: 9px 11px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--mute-2); border-radius: 8px; cursor: pointer; }
.opt-list button.on { border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- responsive: no-scroll shell is KEPT at every breakpoint ----------
   We no longer release body scroll below 1000px. Each screen is sized to fit
   the viewport (work + casedetail remain the only intentional scroll-screens
   via .stage.is-scroll). These rules adapt layout to narrow widths. */
@media (max-width: 1000px){
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .centers { grid-template-columns: 1fr 1fr; }   /* 2×2, not a 4-tall stack */
  .check-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .hero-stage { display: block; margin-top: 14px; }
  .hero-stage .portal { transform: none !important; max-width: 420px; margin: 0 auto; }
  /* the floating proof badges are a desktop flourish; on phones they collapsed
     the portal to a sliver. Hide them — the portal mockup carries the story. */
  .chip { display: none; }
}
/* keep the solution cards 2-up even on phones so the screen stays short */
@media (max-width: 640px){
  .centers { grid-template-columns: 1fr 1fr; }
}

/* ---- phone compaction: resize content so each no-scroll screen fits the
   viewport (rather than overflowing). Tightens type + spacing across screens;
   the safety-net overflow on .screen still catches any extreme viewport. ---- */
@media (max-width: 760px){
  .screen-pad { padding-top: clamp(14px,2.4vh,24px); padding-bottom: clamp(14px,2.4vh,24px); }
  .hero-inner { padding-top: clamp(14px,2.4vh,24px); padding-bottom: clamp(14px,2.4vh,24px); gap: 14px; }

  /* hero */
  .hero-screen h1 { font-size: clamp(36px, 9.5vw, 50px); }
  .hero-screen .lede { font-size: 15px; margin-top: 14px; }
  .hero-cta { margin-top: 20px; }
  .hero-sub { margin-top: 12px; }
  .hero-stage .portal { max-width: 340px; }
  .portal-body { padding: 12px 14px 14px; }

  /* shared section heads */
  .s-h2 { font-size: clamp(28px, 8.5vw, 40px); }
  .s-eyebrow { margin-bottom: 12px; }
  .s-lede { font-size: 14.5px; margin-top: 10px; }

  /* practice — solution cards */
  .centers { margin-top: 14px; gap: 10px; }
  .center-card { padding: 15px; }
  .center-card .ico { width: 36px; height: 36px; margin-bottom: 8px; }
  .center-card h3 { font-size: 16px; margin-bottom: 4px; }
  .center-card .tag { font-size: 12px; margin-bottom: 10px; }
  .center-card .more { font-size: 12.5px; }
  .centers-note { margin-top: 12px; }

  /* contact — compact dark panel + form so both fit stacked */
  .contact-inner { gap: 12px; }
  .contact-panel { padding: 18px; }
  .contact-panel h2 { font-size: 24px; margin-bottom: 8px; }
  .contact-panel .pl { font-size: 13.5px; margin-bottom: 14px; }
  .contact-panel .box { padding: 10px 12px; }
  .contact-panel .email { margin-top: 14px; padding-top: 12px; }
  .contact-card { padding: 18px; }
  .contact-card .ch { margin-bottom: 14px; }
  .contact-card .ch h3 { font-size: 19px; }
  .field-grid { gap: 10px 12px; margin-bottom: 10px; }
  .field input, .field select, .field textarea { padding: 9px 11px; font-size: 16px; } /* 16px = no iOS focus-zoom */
  .field textarea { min-height: 56px; }
  .contact-card .fineprint { margin-top: 10px; }

  /* process — shrink the capture-to-cash infographic */
  .proc-top .s-lede { margin-top: 10px; }
  .proc-flow { gap: 12px !important; margin-top: 14px; }
  .proc-end .glyph { width: 56px; height: 46px; }
  .proc-end .cap { font-size: 13px; }
  .proc-end .sub { font-size: 11px; }
  .proc-rail .rail-cap { margin-bottom: 14px; }
  .proc-dots { gap: 14px 6px !important; }
  .proc-node .circle { width: 42px; height: 42px; }
  .proc-node .t { font-size: 12.5px; }

  /* about — principles */
  .principles-grid .p { padding: 14px 12px; }
  .principles-grid .pn { margin-bottom: 14px; }
  .principles-grid h4 { font-size: 16px; margin-bottom: 6px; }
  .principles-grid p { font-size: 12.5px; }
}
