/* W3BOPS — site styles.
   Structure follows a studio-site flow (hero, marquee, what we do, stacking buckets, systems, moves,
   promise, work wall, stats, pricing, toolkit, FAQ, CTA). Color is data: heat = a customer leaking
   out, flow = what the fix keeps. Bands alternate black, paper and one cobalt "flow" band. */

:root {
  --void: #000000;
  --paper: #f3f4f0;
  --card: #fbfbf8;
  --ink: #000000;
  --steel: #5e6360;
  --fog: #a3a8a5;
  --line: rgba(0, 0, 0, 0.14);
  --line-d: rgba(255, 255, 255, 0.16);
  --heat: #ff5a1f;
  --heat-paper: #e8480c;
  --heat-ink: #b93a06;
  --flow: #7d97ff;
  --flow-ink: #2a4bd8;
  --btn-shadow: #fff; /* the hard shadow under a lifted button: the band's ink (paper bands set #000) */

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --dots: "Doto", "Archivo", ui-sans-serif, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --band-r: clamp(20px, 2.4vw, 32px);
  --band-pad: clamp(88px, 11vw, 168px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Signature motion curve: premium, no overshoot. */
  --premium: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: #fff;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
/* Author display rules beat the UA's [hidden]; keep hidden hidden. */
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

:focus-visible { outline: 2px solid var(--flow); outline-offset: 3px; border-radius: 4px; }
.band-paper :focus-visible, .bucket-paper :focus-visible { outline-color: var(--flow-ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Type ------------------------------------------------------------------ */

.display {
  font-size: clamp(3.1rem, 8.2vw, 8.6rem);
  line-height: 0.9;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.038em;
}
.h2 {
  font-size: clamp(2.15rem, 4.7vw, 4.4rem);
  line-height: 0.98;
  font-weight: 740;
  font-stretch: 112%;
  letter-spacing: -0.032em;
  max-width: 17ch;
}
.h2.caps { text-transform: uppercase; font-weight: 800; letter-spacing: -0.02em; }
.h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.12;
  font-weight: 680;
  font-stretch: 106%;
  letter-spacing: -0.018em;
}
.muted { color: var(--steel); }
.band-void .muted { color: var(--fog); }
.num { font-family: var(--dots); font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.fine { font-size: 0.875rem; line-height: 1.5; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow .dot, .dot { display: inline-block; width: 7px; height: 7px; background: currentColor; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 620; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
/* Flat at rest; lifts up-left and casts a hard shadow on hover; presses back down on click. */
.btn:hover, .btn:focus-visible { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--btn-shadow); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--btn-shadow); }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 1.0625rem; }
/* A white button on a black band casts cobalt: a white shadow would just make it look thicker. */
.btn-light { background: #fff; color: #000; --btn-shadow: var(--flow); }
.btn-light:hover { background: var(--paper); }
.btn-ink { background: #000; color: #fff; }
.btn-ink:hover { background: #262626; }
.btn-ghost { border-color: var(--line-d); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.band-paper .btn-ghost { border-color: var(--line); color: #000; }
.band-paper .btn-ghost:hover { border-color: #000; }

/* Nav ------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: color 0.3s var(--ease-out);
  color: #fff;
  --btn-shadow: #fff;
}
.nav[data-on="light"] { color: #000; --btn-shadow: #000; }
/* The frosted bar lives on a pseudo-element: backdrop-filter on .nav itself would make .nav the
   containing block for the fixed mobile menu and shrink it to the bar's height. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: rgba(0, 0, 0, 0.72); box-shadow: 0 1px 0 var(--line-d);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: opacity 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.nav.is-scrolled::before { opacity: 1; }
.nav[data-on="light"]::before { background: rgba(243, 244, 240, 0.82); box-shadow: 0 1px 0 var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; transition: filter 0.3s; }
.nav[data-on="light"] .brand-mark { filter: invert(1); }
.brand-word { font-weight: 800; font-stretch: 125%; letter-spacing: 0.02em; font-size: 1.05rem; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 520; font-size: 0.9375rem; padding: 10px 12px; border-radius: 999px;
  opacity: 0.78; transition: opacity 0.2s, background-color 0.2s;
}
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); }
.nav-cta { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; background: #fff; color: #000; --btn-shadow: var(--flow); }
.nav[data-on="light"] .nav-cta { background: #000; color: #fff; --btn-shadow: #000; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px;
    padding: 96px var(--gutter) 48px; background: #000; color: #fff;
    opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease-out), visibility 0.25s;
  }
  .nav-links a { font-size: 2rem; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; opacity: 1; padding: 8px 0; }
  /* Visible immediately on open (so focus() can land on the first link); fade opacity only. */
  .menu-open .nav-links { opacity: 1; visibility: visible; transition: opacity 0.25s var(--ease-out), visibility 0s; }
  .menu-open .nav { color: #fff; --btn-shadow: #fff; }
  .menu-open .nav::before { opacity: 0; }
  .menu-open .brand-mark { filter: none; }
  .menu-open body { overflow: hidden; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
    background: transparent; border: 1px solid currentColor; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  }
  .menu-btn:hover, .menu-btn:focus-visible { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 currentColor; }
  .menu-btn:active { transform: none; box-shadow: none; }
  .nav-cta { display: none; }
}

/* Section rail: dots on the right edge, the active one labeled. --------------- */

.rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; gap: 10px; justify-items: end;
  mix-blend-mode: difference; color: #fff;
}
.rail a {
  display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 16px;
  font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
}
.rail a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.45; transition: transform 0.25s var(--ease-out), opacity 0.25s; }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.rail a:hover span, .rail a:focus-visible span, .rail a[aria-current="true"] span { opacity: 1; transform: none; }
.rail a[aria-current="true"]::after { opacity: 1; transform: scale(1.6); }
@media (max-width: 1180px) { .rail { display: none; } }

/* Bands: each overlaps the one before it with a rounded top edge. ------------ */

.band {
  position: relative;
  margin-top: calc(-1 * var(--band-r));
  border-radius: var(--band-r) var(--band-r) 0 0;
  padding-block: var(--band-pad);
}
.band-void { background: var(--void); color: #fff; }
.band-paper { background: var(--paper); color: var(--ink); --btn-shadow: #000; }
/* A band that continues the previous one's color: no overlap, no corner, no double padding. */
.band-cont { margin-top: 0; border-radius: 0; padding-top: 0; }

.sec-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; }
  .sec-head > p { justify-self: end; }
}
.sec-head > p { max-width: 42ch; margin: 0; font-size: 1.125rem; }

/* Intro picker ------------------------------------------------------------ */

.gate {
  position: fixed; inset: 0; z-index: 200; background: var(--paper); color: #000;
  display: grid; place-items: center; padding: 32px var(--gutter); overflow-y: auto;
  animation: gate-in 0.4s var(--ease-out);
}
.gate.is-leaving { animation: gate-out 0.35s var(--ease-out) forwards; }
@keyframes gate-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-out { to { opacity: 0; transform: scale(1.02); } }
.gate-inner { width: min(100%, 920px); text-align: center; }
.gate .eyebrow { justify-content: center; }
.gate-title { font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 0.95; font-weight: 790; font-stretch: 116%; letter-spacing: -0.035em; margin-bottom: 18px; }
.gate-sub { font-size: 1.125rem; color: var(--steel); margin-bottom: 40px; }
.gate-options { list-style: none; margin: 0 auto 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; max-width: 760px; }
@media (max-width: 520px) {
  .gate-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gate-options button { min-height: 56px; padding: 10px 12px; gap: 10px; font-size: 0.9375rem; border-radius: 14px; }
  .gate-dot { width: 16px; height: 16px; background-size: 5px 5px; }
}
.gate-options button {
  width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; cursor: pointer;
  font-weight: 640; font-size: 1.0625rem; text-align: left;
  transition: border-color 0.2s, transform 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.2s;
}
.gate-options button:hover, .gate-options button:focus-visible { border-color: #000; transform: translate(-4px, -4px); box-shadow: 4px 4px 0 #000; }
.gate-options button:active { transform: none; box-shadow: none; }
.gate-dot {
  width: 22px; height: 22px; flex: none;
  background:
    radial-gradient(circle, var(--heat-paper) 2.2px, transparent 2.6px) 0 0 / 7px 7px;
  border-radius: 4px;
}
.gate-skip {
  background: none; border: 0; cursor: pointer; min-height: 44px; padding: 8px 12px;
  font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 6px;
}

/* Hero ------------------------------------------------------------------ */

.stack { position: relative; }
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100svh; min-height: 680px;
  overflow: hidden;
}
.hero-inner {
  position: relative; height: 100%;
  display: grid; align-items: end;
  padding-top: 120px; padding-bottom: clamp(56px, 9vh, 104px);
  transform: translateY(calc(var(--hero-p, 0) * -48px)) scale(calc(1 - var(--hero-p, 0) * 0.05));
  opacity: calc(1 - var(--hero-p, 0) * 0.55);
  transform-origin: 50% 30%;
}
.hero-copy { position: relative; z-index: 2; max-width: 780px; }
.eyebrow-live { color: #d9dcda; }
.hero-title { margin-bottom: 40px; font-size: clamp(3rem, 7.2vw, 7.4rem); }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circle-mark {
  position: absolute; left: -7%; top: -16%; width: 114%; height: 136%; overflow: visible; pointer-events: none;
}
.circle-mark path {
  fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.1s 0.9s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero-lead { margin: 0; max-width: 40ch; color: #d9dcda; font-size: 1.0625rem; line-height: 1.5; }
.hero-picked {
  display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-d); font-size: 0.9375rem; color: #d9dcda;
}
.hero-picked strong { color: #fff; }
.hero-picked a { color: var(--flow); text-underline-offset: 4px; }

.hero-star {
  position: absolute; z-index: 1;
  right: -10vw; top: 50%;
  width: min(52vw, 100vh, 860px); aspect-ratio: 1;
  transform: translateY(-50%);
}
.hero-star canvas { width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.hero-hint {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(56px, 9vh, 104px);
  margin: 0; color: var(--fog); font-size: 0.875rem; max-width: 22ch; text-align: right;
}

@media (max-width: 1100px) {
  .hero-star { width: min(62vw, 700px); right: -12vw; }
  .hero-copy { max-width: 70%; }
}
/* Phones, short windows and portrait tablets: star above, copy below, no pinning. */
@media (max-width: 760px), (max-height: 640px), (max-width: 1100px) and (orientation: portrait) {
  .hero-copy { max-width: none; }
  .hero { position: relative; height: auto; min-height: 100svh; }
  .hero-inner { transform: none; opacity: 1; padding-top: 88px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-star { position: relative; right: auto; top: auto; transform: none; width: min(100%, 440px); margin: 0 auto -8px; }
  .hero-hint { position: static; text-align: left; margin-top: 28px; max-width: none; }
}

/* Marquee ----------------------------------------------------------------- */

.marquee {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--flow-ink); color: #fff;
  border-radius: var(--band-r) var(--band-r) 0 0; margin-top: calc(-1 * var(--band-r));
  box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.5);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; white-space: nowrap;
  font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 760; font-stretch: 112%; letter-spacing: -0.02em;
}
.marquee li::after { content: ""; width: 12px; height: 12px; background: radial-gradient(circle, #fff 2px, transparent 2.5px) 0 0 / 6px 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee + .band { margin-top: 0; border-radius: 0; z-index: 2; }

/* What we do + leak map ------------------------------------------------------- */

.leak { z-index: 2; --lm-ink: #000; --lm-heat: var(--heat-paper); --lm-rail: rgba(0, 0, 0, 0.26); }
.what-head { display: grid; gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 960px) { .what-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 56px; } }
.what-title { max-width: 14ch; }
.rotator { display: inline-block; position: relative; vertical-align: bottom; }
.rotator-word {
  display: inline-block; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.12em;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.rotator-word.is-out { transform: translateY(-40%); opacity: 0; }
.rotator-word.is-in { transform: translateY(40%); opacity: 0; transition: none; }
.what-side p { font-size: 1.125rem; max-width: 42ch; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legend a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; text-decoration: none;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
}
.legend a::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.legend a:hover { text-decoration: underline; text-underline-offset: 4px; }

.lm-panel { border: 1px solid var(--line); border-radius: 22px; background: var(--card); padding: clamp(20px, 3vw, 40px); }
.lm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 24px; }
.lm-head .h3 { max-width: 28ch; }
.lm-controls { display: grid; gap: 20px 32px; margin-bottom: 28px; }
@media (min-width: 760px) { .lm-controls { grid-template-columns: 1fr 1fr; } }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #e7e8e3; }
.seg button {
  position: relative; overflow: hidden; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 620; cursor: pointer; color: var(--steel); transition: background-color 0.2s, color 0.2s;
}
.seg button[aria-pressed="true"] { background: #000; color: #fff; }
.seg button[data-state="sealed"][aria-pressed="true"] { background: var(--flow-ink); }
/* While the panel alternates on its own, a thin line fills under the active mode: the countdown to
   the next flip. 5.2s matches DWELL in leakmap.js. */
.seg button i { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; background: rgba(255, 255, 255, 0.55); transform: scaleX(0); transform-origin: left; }
.seg.is-auto button[aria-pressed="true"] i { animation: seg-fill 5.2s linear forwards; }
@keyframes seg-fill { to { transform: scaleX(1); } }

.field { display: grid; gap: 6px; font-size: 0.9375rem; color: var(--steel); }
.field-top { display: flex; justify-content: space-between; gap: 12px; }
.field output { color: #000; font-weight: 650; font-variant-numeric: tabular-nums; }
.field input[type="range"] { width: 100%; accent-color: #000; min-height: 28px; cursor: pointer; }

.lm-stage { position: relative; padding-top: 60px; }
.lm-canvas { width: 100%; height: clamp(170px, 20vw, 240px); }
.lm-gates { position: absolute; inset: 0 0 auto 0; height: 56px; pointer-events: none; }
.lm-gate {
  position: absolute; top: 0; transform: translateX(-50%); text-align: center; white-space: nowrap;
  font-size: 0.8125rem; line-height: 1.25; color: var(--steel);
}
.lm-gate b { display: block; color: #000; font-weight: 700; font-size: 0.9375rem; }
.lm-gate:nth-child(1) { left: 25%; }
.lm-gate:nth-child(2) { left: 50%; }
.lm-gate:nth-child(3) { left: 75%; }
.lm-tap { position: absolute; left: 0; top: 0; font-size: 0.8125rem; line-height: 1.25; color: var(--steel); }
.lm-tap b { display: block; color: #000; font-weight: 700; font-size: 0.9375rem; }

.lm-stages { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.lm-stages li { padding: 14px 12px 0 12px; border-left: 1px solid var(--line); }
.lm-stages li:first-child { border-left: 0; padding-left: 0; }
.lm-stages span { display: block; font-size: 0.875rem; color: var(--steel); }
.lm-stages .num { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; }
.lm-stages small { font-size: 0.8125rem; color: var(--steel); }
/* Under each stage: what leaks there today (heat), or what sealing it keeps (cobalt). */
.lm-sub { display: block; min-height: 1.3em; margin-top: 4px; font-style: normal; font-size: 0.8125rem; font-weight: 600; color: var(--heat-ink); }
.leak[data-mode="sealed"] .lm-sub { color: var(--flow-ink); }
.lm-gate em, .lm-tap em { display: block; font-style: normal; font-size: 0.75rem; color: var(--steel); }
.leak[data-mode="sealed"] .lm-gate b, .leak[data-mode="sealed"] .lm-tap b { color: var(--flow-ink); }
@media (max-width: 640px) {
  /* Four captions can't share 343px; the percentages carry the meaning. */
  .lm-gate span, .lm-tap span, .lm-gate em, .lm-tap em { display: none; }
  .lm-stage { padding-top: 26px; }
  .lm-sub { font-size: 0.75rem; }
  /* Four stages with a sub-line each need two rows on a phone. */
  .lm-stages { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .lm-stages li:nth-child(3) { border-left: 0; padding-left: 0; }
  .lm-stages li { padding-inline: 8px 4px; }
  .lm-stages small { display: block; }
}

/* Revenue, today against sealed, as two bars on the same scale. The mode on screen is the bar at
   full strength; the other waits its turn. */
.lm-compare { display: grid; gap: 22px 36px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .lm-compare { grid-template-columns: 1fr 1fr; } .lm-compare .lm-gain { grid-column: 1 / -1; } }
.lm-bar { display: grid; gap: 8px; align-content: start; transition: opacity 0.4s; }
.lm-bar-k { font-size: 0.875rem; color: var(--steel); }
.lm-track { height: 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 5px, transparent 5px 8px); }
.lm-track i { display: block; height: 100%; width: var(--w, 0%); border-radius: 4px; background: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 8px); transition: width 0.6s var(--ease-out); }
.lm-bar.is-sealed .lm-track i { background: repeating-linear-gradient(90deg, var(--flow-ink) 0 5px, transparent 5px 8px); }
.lm-bar .num { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; }
.lm-bar.is-sealed .num { color: var(--flow-ink); }
.leak[data-mode="today"] .lm-bar.is-sealed, .leak[data-mode="sealed"] .lm-bar.is-today { opacity: 0.42; }
.lm-gain { font-size: 1.0625rem; margin: 0; max-width: 64ch; }
.lm-gain strong { color: var(--flow-ink); }
.lm-fine { margin-top: 20px; color: var(--steel); }

/* Buckets: sticky cards that stack ------------------------------------------- */

.buckets { position: relative; }
.bucket {
  position: sticky; top: 0; z-index: 3;
  min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  border-radius: var(--band-r) var(--band-r) 0 0; margin-top: calc(-1 * var(--band-r));
  padding-block: 112px 72px;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.32);
}
.bucket-void { background: var(--void); color: #fff; }
.bucket-paper { background: #e9eae4; color: #000; --btn-shadow: #000; }
.bucket-flow { background: var(--flow-ink); color: #fff; }
.bucket-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .bucket-grid { grid-template-columns: 5fr 6fr; gap: 64px; } }
.bucket-steps { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; opacity: 0.6; margin-bottom: 18px; }
.bucket-steps b { opacity: 1; font-weight: 800; }
.bucket-steps i { width: 24px; height: 1px; background: currentColor; }
.bucket-tags { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 16px; }
.bucket .h2 { margin-bottom: 20px; }
.bucket-lead { font-size: 1.125rem; max-width: 42ch; opacity: 0.88; }
.arrows { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.arrows li::before { content: "→"; margin-right: 10px; opacity: 0.6; }
.pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; margin: 0; border-radius: 999px;
  border: 1px solid currentColor; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
}
.bucket-num {
  position: absolute; right: -2vw; bottom: -6vw; z-index: 0; pointer-events: none;
  font-family: var(--dots); font-weight: 900; font-size: clamp(14rem, 34vw, 30rem); line-height: 1; opacity: 0.08;
}
@media (max-width: 980px), (max-height: 700px) {
  .bucket { position: relative; min-height: 0; padding-block: 96px 88px; }
}

/* Mini visuals inside buckets: plain-English samples, labeled as such. */
.viz {
  margin: 0; padding: 22px 22px 18px; border-radius: 20px; background: #0b0b0b; color: #fff;
  border: 1px solid #222; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.viz figcaption { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--fog); margin-bottom: 18px; }
.viz-tag { margin: 18px 0 0; font-size: 0.8125rem; color: var(--fog); }
.viz-tag b { color: #fff; font-family: var(--dots); font-weight: 800; font-size: 1.25rem; margin-left: 6px; }

/* Traffic map: sources on the left, the site in the middle, what comes out on the right. The canvas
   covers the map and draws only the lanes and dots between the boxes (flow.js). */
.viz-map { --fl-ink: #ffffff; --fl-flow: var(--flow); --fl-rail: rgba(255, 255, 255, 0.24); }
.map { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 clamp(24px, 5%, 64px); padding-block: 6px; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-sources, .map-out { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-sources li { justify-self: start; padding: 7px 12px; border-radius: 999px; border: 1px solid #2c2c2c; background: #141414; font-size: 0.8125rem; white-space: nowrap; }
.map-site { position: relative; z-index: 1; justify-self: center; text-align: center; padding: 16px 18px; border-radius: 14px; border: 1px solid #fff; background: #000; }
.map-site b { display: block; font-weight: 700; font-stretch: 108%; }
.map-site span { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--fog); }
.map-out li { min-width: 7.5rem; padding: 10px 14px; border-radius: 12px; border: 1px solid #2c2c2c; background: #141414; }
.map-out li:first-child { border-color: var(--flow); }
.map-out span { display: block; font-size: 0.75rem; color: var(--fog); }
.map-out .num { display: block; font-size: 1.5rem; line-height: 1.1; }
.map-out small { font-size: 0.75rem; color: var(--fog); }
/* Visitors who leave: the leak this bucket fixes, under the website box. */
.map-lost {
  position: relative; z-index: 1; grid-column: 2; grid-row: 2; justify-self: center; margin: 30px 0 0;
  padding: 8px 14px; border-radius: 12px; border: 1px dashed rgba(255, 90, 31, 0.6); background: #140b07; text-align: center;
}
.map-lost span { display: block; font-size: 0.75rem; color: var(--fog); }
.map-lost .num { display: block; font-size: 1.3rem; line-height: 1.15; color: var(--heat); }
.map-lost small { font-size: 0.75rem; color: var(--fog); }
@media (max-width: 560px) {
  .map-lost { grid-column: auto; grid-row: auto; justify-self: end; margin: 0; }
  .map { grid-template-columns: 1fr; gap: 36px 0; justify-items: center; }
  .map-sources { grid-template-columns: repeat(3, auto); justify-content: center; }
  .map-out { grid-template-columns: 1fr 1fr; }
}

/* Follow-up chain: six systems in a snake; one dot walks the hand-offs (flow.js). */
.viz-chain { --fl-ink: #ffffff; --fl-flow: var(--flow); --fl-rail: rgba(255, 255, 255, 0.24); }
.viz-chain figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.chain-clock { font-size: 1.1rem; letter-spacing: 0.02em; color: #fff; }
.chain-wrap { position: relative; }
.chain-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px 34px; }
@media (min-width: 640px) {
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain li:nth-child(4) { grid-column: 3; grid-row: 2; }
  .chain li:nth-child(5) { grid-column: 2; grid-row: 2; }
  .chain li:nth-child(6) { grid-column: 1; grid-row: 2; }
}
.chain li {
  position: relative; z-index: 1; display: grid; gap: 5px; padding: 12px 14px; border-radius: 12px;
  background: #141414; border: 1px solid #262626; font-size: 0.875rem; opacity: 0.55;
  transition: opacity 0.3s, border-color 0.3s, background-color 0.3s;
}
.chain li.is-done { opacity: 0.85; border-color: #3a3a3a; }
.chain li.is-on { opacity: 1; border-color: var(--flow); background: #13204f; }
.chain-k { font-family: var(--dots); font-weight: 800; font-size: 0.9rem; color: var(--fog); }
.chain li b { font-weight: 650; line-height: 1.25; }
.chain-tool { justify-self: start; padding: 2px 8px; border-radius: 999px; border: 1px solid #333; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); }
.chain li.is-on .chain-tool { border-color: var(--flow); color: #fff; }
.chain time { font-size: 0.75rem; color: var(--fog); font-variant-numeric: tabular-nums; }
.chain li.is-on time { color: #fff; }

.viz-dash .bars { display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 10px; height: 230px; }
.viz-dash .bars i { display: block; height: 0; border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(0deg, #fff 0 5px, transparent 5px 8px); transition: height 1s var(--ease-out); }
.viz-dash .bars i:last-child { background: repeating-linear-gradient(0deg, var(--flow) 0 5px, transparent 5px 8px); }
.viz-dash.is-in .bars i { height: var(--h); }
.viz-dash .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.viz-dash .chips span { padding: 5px 12px; border-radius: 999px; background: #161616; font-size: 0.8125rem; }

/* Systems on shift: a deck of passes ----------------------------------------- */

/* The fanned cards offset to the right; clip (not hidden) so no scroll container is created. */
.systems { z-index: 4; overflow-x: clip; }
@media (max-width: 600px) { .deck-cards { width: calc(100% - 56px); justify-self: start; height: 450px; } }
.systems-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .systems-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.systems-lead { font-size: 1.125rem; max-width: 40ch; margin-top: 24px; }
.deck { display: grid; justify-items: center; gap: 28px; }
.deck-cards { list-style: none; margin: 0; padding: 0; position: relative; width: min(100%, 440px); height: 430px; }
.pass {
  position: absolute; inset: 0; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column;
  transition: transform 0.55s var(--ease-out), opacity 0.4s;
  transform: translate(calc(var(--i, 0) * 14px), calc(var(--i, 0) * -12px)) rotate(calc(var(--i, 0) * 1.6deg - 2deg));
  z-index: calc(10 - var(--i, 0));
}
.pass[data-pos="4"], .pass[data-pos="5"], .pass[data-pos="6"], .pass[data-pos="7"] { opacity: 0; }
.pass.is-throw { transform: translate(-120%, 20px) rotate(-14deg); opacity: 0; }
.pass header { display: flex; justify-content: space-between; align-items: center; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.pass header i { width: 8px; height: 8px; border-radius: 50%; background: #23b26d; }
.pass-id { display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; }
.pass-id .pass-mark { flex: none; width: 44px; height: 44px; border-radius: 10px; background: url("/assets/img/favicon.svg") center / cover no-repeat; }
.pass-id b { display: block; font-size: 1.35rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
.pass-id span { font-size: 0.9375rem; color: var(--steel); }
.pass dl { display: grid; grid-template-columns: 4.6rem 1fr; gap: 8px 12px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); font-size: 0.9375rem; }
.pass dt { font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); padding-top: 3px; }
.pass dd { margin: 0; font-weight: 560; }
.pass dd:last-of-type { color: var(--flow-ink); }
.pass > p { margin: auto 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 0.9375rem; }

/* The front card's story (JS sets data-stage 1-4): In arrives, the system works, Out lands,
   the number moves. Only while autoplay runs; otherwise every row is simply shown. */
.deck.is-auto .pass[data-pos="0"] dd { transition: opacity 0.5s var(--premium), transform 0.5s var(--premium), color 0.5s var(--premium); }
.deck.is-auto .pass[data-pos="0"] dd:nth-of-type(1)::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px;
  background: var(--flow-ink); transform: scale(0); transition: transform 0.4s var(--premium);
}
.deck.is-auto .pass[data-pos="0"][data-stage] dd:nth-of-type(1)::before { transform: scale(1); }
.deck.is-auto .pass[data-pos="0"] dd:nth-of-type(1)::after {
  content: ""; display: inline-block; width: 22px; height: 4px; margin-left: 8px; vertical-align: 2px; opacity: 0;
  background: radial-gradient(circle, var(--flow-ink) 1.6px, transparent 2px) 0 0 / 7px 4px;
}
.deck.is-auto .pass[data-pos="0"][data-stage="2"] dd:nth-of-type(1)::after { animation: working 0.7s steps(3) infinite; }
@keyframes working { 0% { opacity: 1; width: 7px; } 50% { width: 14px; } 100% { opacity: 1; width: 22px; } }
.deck.is-auto .pass[data-pos="0"] dd:nth-of-type(2) { opacity: 0.18; transform: translateX(-8px); }
.deck.is-auto .pass[data-pos="0"][data-stage="3"] dd:nth-of-type(2),
.deck.is-auto .pass[data-pos="0"][data-stage="4"] dd:nth-of-type(2) { opacity: 1; transform: none; }
.deck.is-auto .pass[data-pos="0"] dd:nth-of-type(4) { color: var(--steel); }
.deck.is-auto .pass[data-pos="0"][data-stage="4"] dd:nth-of-type(4) { color: var(--flow-ink); }
.deck.is-auto .pass[data-pos="0"] dd:nth-of-type(4)::after {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 8px; vertical-align: 0;
  background: var(--flow-ink); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0; transform: translateY(4px); transition: opacity 0.5s var(--premium), transform 0.5s var(--premium);
}
.deck.is-auto .pass[data-pos="0"][data-stage="4"] dd:nth-of-type(4)::after { opacity: 1; transform: none; }

/* AI workforce: a roster of agents and a sample shift log -------------------------- */

.workforce { z-index: 5; }
.wf-grid { display: grid; gap: 32px; }
@media (min-width: 1060px) { .wf-grid { grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; } }
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .roster { grid-template-columns: 1fr 1fr; } }
.agent { padding: 22px 22px 20px; border-radius: 20px; background: #0b0b0b; border: 1px solid #222; transition: border-color 0.3s, box-shadow 0.3s; }
.agent.is-active { border-color: var(--flow); box-shadow: 0 0 0 3px rgba(125, 151, 255, 0.18); }
/* Each agent's pixel mascot (scripts/make-mascots.mjs); it hops when its shift-log line lands. */
.agent-mark { display: block; width: 48px; height: 48px; margin-bottom: 14px; transition: transform 0.3s var(--ease-out); }
.agent.is-active .agent-mark { transform: translateY(-4px); }
.agent-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.agent-top b { font-size: 1.2rem; font-weight: 740; font-stretch: 108%; letter-spacing: -0.015em; }
.agent-shift { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); }
.agent-shift i { width: 7px; height: 7px; border-radius: 50%; background: #23b26d; animation: pulse-green 2.6s infinite; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(35, 178, 109, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(35, 178, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 178, 109, 0); } }
.agent-job { margin: 0 0 14px; font-size: 0.9375rem; color: #d9dcda; }
.agent-uses { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.agent-uses span { padding: 4px 10px; border-radius: 999px; background: #161616; border: 1px solid #2a2a2a; font-size: 0.75rem; color: #d9dcda; }
.agent-hand { margin: 0; font-size: 0.8125rem; color: var(--fog); }
.agent-hand::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px; background: var(--flow); }
.shift { padding: 20px 20px 16px; border-radius: 20px; background: #0b0b0b; border: 1px solid #222; }
@media (min-width: 1060px) { .shift { position: sticky; top: 96px; } }
.shift-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--fog); }
.shift-head .num { font-size: 1.1rem; letter-spacing: 0.02em; color: #fff; }
.shift-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 25rem; align-content: start; }
.shift-log li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #141414; font-size: 0.9rem; transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.shift-log li.is-new { opacity: 0; transform: translateY(-8px); }
.shift-log time { padding-top: 2px; font-size: 0.8125rem; color: var(--fog); font-variant-numeric: tabular-nums; }
.shift-log b { display: block; margin-bottom: 2px; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flow); }

/* How we work ----------------------------------------------------------------- */

.how { z-index: 5; }

.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .moves { grid-template-columns: repeat(3, 1fr); } }
.moves li { padding: 26px 24px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.move-k { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.moves .h3 { margin-bottom: 12px; }
.moves li p:last-child { margin: 0; }
.moves-foot { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--steel); }

/* The sequence, made visible: a rail with a dot that walks Find -> Fix -> Prove, lighting each card. */
.moves-wrap { position: relative; }
.moves li { transition: transform 0.55s var(--premium), border-color 0.55s var(--premium), box-shadow 0.55s var(--premium); }
.move-cover { height: 112px; border-radius: 12px; margin-bottom: 20px; }
.move-k { transition: color 0.45s var(--premium); }
.moves li.is-active { transform: translateY(-4px); border-color: #000; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); }
.moves li.is-active .move-k { color: var(--flow-ink); }
.moves-rail { display: none; }
@media (min-width: 900px) {
  .moves-wrap { padding-top: 34px; }
  .moves-rail {
    display: block; position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 8px; height: 10px;
    background:
      linear-gradient(#000, #000) 0 50% / 10px 10px no-repeat,
      linear-gradient(#000, #000) 50% 50% / 10px 10px no-repeat,
      linear-gradient(#000, #000) 100% 50% / 10px 10px no-repeat,
      radial-gradient(circle, rgba(0, 0, 0, 0.35) 1.2px, transparent 1.6px) 0 50% / 8px 10px repeat-x;
  }
  .rail-dot {
    position: absolute; top: 50%; left: calc(var(--step, 0) * 50%); width: 16px; height: 16px; margin: -8px 0 0 -8px;
    background: var(--flow-ink); box-shadow: 0 0 0 6px rgba(42, 75, 216, 0.16);
    transition: left 0.9s var(--premium);
  }
}

/* Promise ---------------------------------------------------------------------- */

.promise { z-index: 5; overflow: hidden; }
.promise-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .promise-grid { grid-template-columns: 6fr 6fr; gap: 64px; } }
.promise-title {
  font-size: clamp(2.8rem, 7vw, 7rem); line-height: 0.92; font-weight: 780; font-stretch: 116%; letter-spacing: -0.035em;
  max-width: 12ch; margin-bottom: 28px;
}
.promise-sub { color: #cfd2d0; font-size: 1.125rem; max-width: 46ch; margin: 0; }
/* The promise, acted out (measure.js): written down -> building -> live -> the change lands. */
.measure { margin: 0; padding: 24px 24px 18px; border-radius: 22px; background: #0b0b0b; border: 1px solid #1f1f1f; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.measure-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.measure-k { margin: 0; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }
.measure-name { flex: 1; margin: 0; font-weight: 700; font-stretch: 108%; font-size: 1.125rem; letter-spacing: -0.01em; }
.measure-live { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.75rem; color: var(--fog); }
.measure-live i { width: 8px; height: 8px; border-radius: 50%; background: #4a4a4a; transition: background-color 0.4s var(--premium); }
.measure[data-phase="live"] .measure-live i { background: #23b26d; box-shadow: 0 0 0 4px rgba(35, 178, 109, 0.18); }
.measure-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 16px; padding-bottom: 16px; border-bottom: 1px solid #1f1f1f; }
.measure-values span { display: block; margin-bottom: 6px; font-size: 0.75rem; color: var(--fog); }
.measure-values .num { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; white-space: nowrap; }
.measure-values .is-after .num { color: var(--flow); }
.measure-values em {
  display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 999px; font-style: normal;
  background: rgba(125, 151, 255, 0.14); color: var(--flow); font-size: 0.8125rem; font-weight: 650;
  opacity: 0; transform: translateY(4px); transition: opacity 0.5s var(--premium), transform 0.5s var(--premium);
}
.measure.is-landed .measure-values em { opacity: 1; transform: none; }
.measure-chart { position: relative; }
.measure-chart canvas { display: block; width: 100%; height: clamp(170px, 18vw, 230px); }
.measure-axis { position: relative; display: flex; justify-content: space-between; margin: 10px 0 0; font-size: 0.75rem; color: var(--fog); }
.measure-launch { position: absolute; left: 33.33%; transform: translateX(-50%); color: var(--flow); }
.measure-pager { display: flex; gap: 6px; list-style: none; margin: 16px 0 0; padding: 0; }
.measure-pager li { width: 16px; height: 3px; border-radius: 2px; background: #2a2a2a; transition: width 0.45s var(--premium), background-color 0.45s var(--premium); }
.measure-pager li.is-on { width: 30px; background: #fff; }
.measure-cap { margin-top: 12px; font-size: 0.75rem; color: #7d827f; }
@media (max-width: 520px) { .measure { padding: 18px 16px 14px; } .measure-axis span:not(.measure-launch) { font-size: 0.6875rem; } }

/* Selected work: one row per case, the leak / the fix / the number ------------------ */

.work { z-index: 6; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 40px; }
.work-head p { margin: 0; max-width: 34ch; text-align: right; color: var(--steel); display: flex; gap: 10px; align-items: baseline; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.case {
  display: grid; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.case:hover { border-color: #000; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); }
@media (min-width: 900px) { .case { grid-template-columns: 5fr 7fr; } }
.case-visual { position: relative; display: grid; align-content: center; min-height: 240px; padding: 24px; background: #000; color: #fff; }
.case-visual.has-shot { padding: 0; }
.case-visual img { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: top; }
.case-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.case-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 10px; align-items: baseline; font-size: 0.9375rem; color: #d9dcda; }
.case-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--dots); font-weight: 800; font-size: 1rem; color: var(--fog); }
.case-steps li:last-child { color: #fff; }
.case-steps li:last-child::before { color: var(--flow); }
.case-body { display: grid; gap: 14px; align-content: start; padding: 26px 26px 24px; }
.case-client { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
.case-client b { font-size: 1.35rem; font-weight: 760; font-stretch: 112%; letter-spacing: -0.02em; }
.case-client span { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.case-body .h3 { max-width: 26ch; }
.case-lfn { display: grid; gap: 12px; margin: 4px 0 0; }
@media (min-width: 640px) { .case-lfn { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.case-lfn dt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.case-lfn dt::before { content: ""; width: 7px; height: 7px; background: #000; }
.case-lfn .is-leak dt::before { background: var(--heat-paper); }
.case-lfn .is-num dt::before { background: var(--flow-ink); }
.case-lfn dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: #2b2e2c; }
.case-more { margin: 4px 0 0; font-size: 0.9375rem; font-weight: 650; }
.case:hover .case-more { text-decoration: underline; text-underline-offset: 4px; }
.case-open { background: var(--flow-ink); color: #fff; border-color: var(--flow-ink); }
.case-open:hover { border-color: #fff; }
.case-open .case-visual { background: transparent; }
.case-open .case-client span, .case-open-lead { color: rgba(255, 255, 255, 0.82); }
.case-open-lead { margin: 0; max-width: 44ch; }
.slot { margin: 0; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.slot-title { margin: 12px 0 0; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 780; font-stretch: 114%; line-height: 0.95; letter-spacing: -0.03em; max-width: 12ch; }

/* Stats -------------------------------------------------------------------------- */

.stats { z-index: 6; padding-block: clamp(64px, 8vw, 112px); }
.stat-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 860px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row .num { display: block; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; color: #fff; }
.stat-row span:not([data-count]) { display: block; margin-top: 10px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }

/* Pricing ------------------------------------------------------------------------ */

.pricing { z-index: 7; }
.price-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .price-cards { grid-template-columns: repeat(3, 1fr); } .price-full { grid-column: span 2; } }
.price-card { display: flex; flex-direction: column; padding: 26px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.price-card .h3 { margin-bottom: 12px; }
.price-card .price { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; margin-bottom: 14px; }
.price-card p { margin: 0 0 8px; }
.price-num { color: var(--flow-ink); font-weight: 620; }
.price-card .incl { color: var(--steel); font-size: 0.9375rem; margin-bottom: 20px; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-full { background: #000; color: #fff; border-color: #000; --btn-shadow: #fff; }
.price-full .move-k, .price-full .incl { color: var(--fog); }
.price-full .price-num { color: var(--flow); }
.pricing-note { margin: 28px 0 0; color: var(--steel); max-width: 60ch; }

/* Toolkit: an endless web of apps (web.js) ------------------------------------------ */

.toolkit { z-index: 4; }
/* Full-bleed and tall, with a vignette so the web seems to carry on past the frame. */
.web { position: relative; height: clamp(560px, 72vh, 840px); background: #0a0a0a; overflow: hidden; }
.web::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(#0a0a0a, rgba(10, 10, 10, 0) 9%, rgba(10, 10, 10, 0) 91%, #0a0a0a),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.75) 100%);
}
.web:not(.is-web) { height: auto; }
.web:not(.is-web)::after { display: none; }
@media (max-width: 640px) { .web.is-web { height: clamp(480px, 70vh, 640px); } }
.web-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.web.is-dragging .web-canvas { cursor: grabbing; }
/* Without JS the list is the toolkit; with it, the list stays for screen readers only. */
.tool-list { position: relative; list-style: none; margin: 0; padding: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.web.is-web .tool-list { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tool-list li { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: #fff; color: #000; font-weight: 680; font-size: 0.95rem; white-space: nowrap; }
.tool-list li[data-kind="build"] { background: var(--flow-ink); color: #fff; }
.tool-list li[data-kind="channel"] { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.web-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); border: 1px solid #2a2a2a; color: var(--fog); white-space: nowrap; pointer-events: none;
  font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; transition: opacity 0.4s;
}
.web:not(.is-web) .web-hint, .web.is-dragged .web-hint { opacity: 0; }
.web-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.875rem; color: var(--steel); }
.web-legend li { display: flex; align-items: center; gap: 10px; }
.web-legend li::before { content: ""; width: 22px; height: 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.web-legend .is-build::before { background: var(--flow-ink); box-shadow: none; }
.web-legend .is-channel::before { background: transparent; box-shadow: inset 0 0 0 1.5px #000; }

/* Articles: cards on the home page and the index, and the article page body ---------- */

.articles { z-index: 7; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .article-list { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  display: grid; gap: 12px; align-content: start; height: 100%; padding: 24px 24px 22px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: border-color 0.25s, transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.article-card:hover, .article-card:focus-visible { border-color: #000; transform: translate(-4px, -4px); box-shadow: 4px 4px 0 #000; }
.article-card:active { transform: none; box-shadow: none; }
.article-kind { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.article-card .h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.article-card p { margin: 0; font-size: 0.9375rem; color: #2b2e2c; }
.article-more { margin-top: auto; padding-top: 6px; font-size: 0.9375rem; font-weight: 650; }
.articles-all { margin: 28px 0 0; }

/* Articles index: every article gets a dot-matrix cover, grouped by kind. */
.ax-group + .ax-group { margin-top: clamp(72px, 9vw, 120px); }
.ax-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid #000; }
.article-index .ax-head .h2 { margin: 0; }
.ax-head p { margin: 0; font-size: 0.9375rem; color: var(--steel); }
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 28px; list-style: none; margin: 0; padding: 0; }
.ax-card { display: block; color: inherit; text-decoration: none; }
.ax-cover { aspect-ratio: 16 / 10; border-radius: 16px; }
.ax-card .feature-meta { margin: 18px 0 8px; }
.ax-title {
  margin-bottom: 8px; font-size: 1.2rem; line-height: 1.22; font-weight: 700; font-stretch: 106%; letter-spacing: -0.012em;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color 0.45s var(--premium);
}
.ax-card:hover .ax-title, .ax-card:focus-visible .ax-title { text-decoration-color: currentColor; }
.ax-card:hover .cover canvas, .ax-card:focus-visible .cover canvas { transform: scale(1.03); }
.ax-dek { margin: 0; font-size: 0.9375rem; color: #2b2e2c; max-width: 46ch; }

/* Homepage journal: one featured article with a live cover, then an index. */
.journal { display: grid; gap: 48px; }
@media (min-width: 980px) { .journal { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } }
.cover { position: relative; overflow: hidden; background: #0b0b0b; isolation: isolate; }
.cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.7s var(--premium); }
.cover-lg { aspect-ratio: 16 / 10; border-radius: 22px; }
.cover-sm { width: 104px; aspect-ratio: 4 / 3; border-radius: 12px; flex: none; }
.feature { display: block; color: inherit; text-decoration: none; }
.feature:hover .cover canvas, .feature:focus-visible .cover canvas { transform: scale(1.025); }
.feature-meta, .entry-meta { display: flex; gap: 14px; margin: 0; font-size: 0.8125rem; color: var(--steel); }
.feature-meta { margin: 24px 0 12px; }
.feature-meta span:first-child, .entry-meta span:first-child { color: #000; font-weight: 620; }
.feature-title {
  font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1.06; font-weight: 730; font-stretch: 110%; letter-spacing: -0.024em;
  max-width: 21ch; margin-bottom: 14px;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 7px;
  transition: text-decoration-color 0.45s var(--premium);
}
.feature:hover .feature-title, .feature:focus-visible .feature-title { text-decoration-color: currentColor; }
.feature-dek { color: #2b2e2c; max-width: 52ch; margin: 0 0 18px; }
.read { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; font-size: 0.9375rem; }
.read span { transition: transform 0.45s var(--premium); }
.feature:hover .read span, .feature:focus-visible .read span { transform: translateX(5px); }

.journal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #000; }
.entry {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.entry h3 {
  margin-top: 6px; font-size: 1.0625rem; line-height: 1.28; font-weight: 650; font-stretch: 104%; letter-spacing: -0.008em;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color 0.4s var(--premium);
}
.entry:hover h3, .entry:focus-visible h3 { text-decoration-color: currentColor; }
.entry-arrow { opacity: 0.25; transform: translateX(-6px); transition: opacity 0.4s var(--premium), transform 0.4s var(--premium); }
.entry:hover .entry-arrow, .entry:focus-visible .entry-arrow { opacity: 1; transform: none; }
.entry:hover .cover canvas, .entry:focus-visible .cover canvas { transform: scale(1.06); }
.journal-all {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px;
  font-weight: 620; color: inherit; text-decoration: none;
}
.journal-all span { transition: transform 0.45s var(--premium); }
.journal-all:hover span, .journal-all:focus-visible span { transform: translateX(5px); }
@media (max-width: 520px) { .cover-sm { width: 84px; } .entry { gap: 14px; } }
.article-index section + section { margin-top: clamp(48px, 6vw, 80px); }
.article-index .h2 { margin-bottom: 20px; }
.article-body { max-width: 74ch; }
.article-body .h2 { max-width: none; margin: clamp(40px, 5vw, 56px) 0 16px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.article-body > .h2:first-child { margin-top: 0; }
.article-body p { max-width: 66ch; font-size: 1.0625rem; }
.article-body .arrows { margin: 0 0 12px; max-width: 66ch; }
.article-body .case-flow { margin: 8px 0 16px; }
.band-void .tags li { background: #111; border-color: var(--line-d); color: #fff; }
.band-void .tags a { color: inherit; text-decoration: none; }
.band-void .tags a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* FAQ --------------------------------------------------------------------------- */

.faq-band { z-index: 8; }
.faq-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin-bottom: 40px; }
.faq-head p { margin: 0; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.faq-list { border-top: 1px solid #000; max-width: 920px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-weight: 700; font-stretch: 108%; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transform: translateY(-50%); transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: -6px 0 24px; max-width: 62ch; color: #2b2e2c; }

/* CTA + form ------------------------------------------------------------------------ */

.cta { z-index: 9; }
.cta-title { font-size: clamp(2.6rem, 5.6vw, 5.8rem); line-height: 0.94; font-weight: 790; max-width: 12ch; font-stretch: 116%; letter-spacing: -0.04em; margin-bottom: 28px; }
.contact { display: grid; gap: 48px; }
@media (min-width: 1020px) { .contact { grid-template-columns: 6fr 6fr; gap: 64px; } }
.contact-side p { color: #cfd2d0; max-width: 44ch; font-size: 1.0625rem; }
.contact-side a { text-underline-offset: 4px; }
.cta-facts { display: grid; gap: 18px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line-d); }
@media (min-width: 640px) { .cta-facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .cta-facts-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cta-facts-4 { grid-template-columns: repeat(4, 1fr); } }
.cta-facts dt { font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); margin-bottom: 6px; }
.cta-facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label, .form legend { font-size: 0.9375rem; font-weight: 560; color: #e6e8e7; }
.form .opt { font-weight: 400; color: var(--fog); }
.input {
  display: block; width: 100%; margin-top: 8px; min-height: 50px; padding: 12px 14px;
  background: #0f0f0f; border: 1px solid #2c2c2c; border-radius: 12px; color: #fff;
  transition: border-color 0.2s;
}
.input:hover { border-color: #4a4a4a; }
.input:focus { border-color: #fff; outline: none; }
.input:focus-visible { outline: 2px solid var(--flow); outline-offset: 2px; }
textarea.input { min-height: 120px; resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #333; color: #d7dad8; font-size: 0.9375rem; font-weight: 520;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip input:hover + span { border-color: #777; }
.chip input:checked + span { background: #fff; color: #000; border-color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--flow); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
/* Always rendered (never display:none) so the status region is in the accessibility tree before
   its text arrives; an empty paragraph takes no space. */
.form-status { margin: 0; color: #fff; font-weight: 560; }
.form.is-sent .form-body { display: none; }
.hp { position: absolute; left: -9999px; }

/* Footer ---------------------------------------------------------------------------- */

.footer { position: relative; z-index: 10; padding-block: 72px 36px; border-top: 1px solid var(--line-d); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-tag { margin: 0 0 6px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-sub { margin: 0; color: var(--fog); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .footer-base a { text-decoration: none; opacity: 0.86; }
.footer-links a:hover, .footer-base a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-word {
  margin: 40px 0 0; font-family: var(--dots); font-weight: 900; line-height: 0.82; letter-spacing: -0.02em;
  font-size: min(23vw, 21.5rem); color: #1c1c1c; white-space: nowrap; user-select: none;
  transition: color 0.6s;
}
.footer:hover .footer-word { color: #2b2b2b; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--fog); font-size: 0.875rem; }

/* Case-page footer (generated pages keep the column footer). */
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 2fr 2fr 2fr; } }
.footer .brand-word { font-size: 1.4rem; }
.footer-grid .footer-tag { color: var(--fog); margin-top: 12px; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; }
.footer-h { font-size: 0.875rem; line-height: 1.4; color: var(--fog); font-weight: 560; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul a { text-decoration: none; opacity: 0.86; }
.footer-grid ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Case study pages ------------------------------------------------------------------ */

.case-hero { padding-top: 160px; padding-bottom: var(--band-pad); margin-top: 0; border-radius: 0; }
.case-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--fog); text-decoration: none; margin-bottom: 32px; font-size: 0.9375rem; }
.case-back:hover { color: #fff; }
.case-type { color: var(--fog); font-size: 1.0625rem; margin-bottom: 18px; }
.case-hero .display { font-size: clamp(2.8rem, 7vw, 7rem); margin-bottom: 36px; }
.lead { font-size: clamp(1.125rem, 1.45vw, 1.375rem); line-height: 1.5; max-width: 38ch; }
.case-hero .lead { color: #d9dcda; max-width: 46ch; }
.lfn { display: grid; gap: 1px; margin-top: 56px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 20px; overflow: hidden; }
@media (min-width: 900px) { .lfn { grid-template-columns: repeat(3, 1fr); } .lfn.lfn-2 { grid-template-columns: repeat(2, 1fr); } }
.lfn > div { background: #000; padding: 26px 24px 28px; }
.lfn .k { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--fog); margin-bottom: 10px; font-weight: 560; }
.lfn .k::before { content: ""; width: 8px; height: 8px; background: #fff; }
.lfn .is-leak .k::before { background: var(--heat); }
.lfn .is-num .k::before { background: var(--flow); }
.lfn p { margin: 0; font-size: 1.125rem; line-height: 1.45; }

.case-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.case-flow li {
  counter-increment: step; position: relative; display: grid; grid-template-columns: 3.4rem 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.case-flow li::before { content: counter(step, decimal-leading-zero); font-family: var(--dots); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--steel); }
.case-flow li strong { display: block; font-weight: 680; font-stretch: 106%; font-size: 1.125rem; }
.case-flow li span { color: var(--steel); }
.case-flow li.is-out::before { color: var(--flow-ink); }
.case-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .case-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.case-grid .h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.case-grid p.muted { max-width: 44ch; margin-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9375rem; background: #fff; }
.case-shot { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.case-shot img { width: 100%; height: auto; }
.case-shot figcaption { padding: 12px 16px; font-size: 0.875rem; color: var(--fog); background: #000; }
.changes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.changes li { display: grid; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-d); }
@media (min-width: 900px) { .changes li { grid-template-columns: 1fr 2fr; } }
.changes strong { font-weight: 680; font-stretch: 106%; font-size: 1.15rem; }
.changes span { color: #cfd2d0; }
.next-case { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.next-case a.h2 { text-decoration: none; max-width: none; }
.next-case a.h2:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }

/* Motion safety -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .hero-inner { transform: none !important; opacity: 1 !important; }
  .marquee-track { animation: none; }
  .circle-mark path { stroke-dashoffset: 0; animation: none; }
  .viz-dash .bars i { height: var(--h); }
  .lm-track i { transition: none; }
  .seg button i { animation: none; }
  .shift-log li.is-new { opacity: 1; transform: none; }
  .agent-shift i { animation: none; }
}
