/* =========================================================================
   BrushBase home page
   ========================================================================= */

/* =========================================================================
   HERO: copy left, a live job pipeline floating in 3D on the right
   ========================================================================= */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: flex; align-items: center;
  padding: 140px 0 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-light {
  position: absolute; inset: -10% 0 0 0;
  background:
    radial-gradient(34% 36% at 74% 6%, oklch(94% .04 230 / .2), transparent 64%),
    radial-gradient(50% 50% at 76% 18%, oklch(82% .11 230 / .22), transparent 68%),
    radial-gradient(70% 66% at 70% 40%, oklch(48% .11 240 / .3), transparent 74%);
  transform: translate3d(0, calc(var(--hp, 0) * 70px), 0);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .045;
  background-image: linear-gradient(var(--fg) 1px, transparent 1px), linear-gradient(90deg, var(--fg) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
}
.hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(180deg, transparent, var(--bg)); }

.hero-inner { position: relative; }
.hero-copy {
  position: relative; z-index: 3; max-width: 600px;
  transform: translate3d(0, calc(var(--hp, 0) * -40px), 0);
  opacity: calc(1 - var(--hp, 0) * .75);
}
.hero-title { margin-top: 26px; font-size: clamp(44px, 5vw, 70px); line-height: .94; letter-spacing: -.038em; text-shadow: 0 2px 40px oklch(13% 0 0 / .5); }
.hero-sub { margin-top: 30px; max-width: 33em; }
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--primary); }

/* ---------- 3D stage ---------- */
/* desktop: the stage sits beside the copy and is scaled (--fit, set by JS) to the room that's left */
.hv {
  position: absolute; z-index: 1;
  top: 50%; left: 640px;
  width: 900px; height: 640px;
  transform: translateY(-51%);
  pointer-events: none;
}
.hv-stage {
  position: absolute; left: 0; top: 0; width: 900px; height: 640px;
  transform-origin: 0 50%; transform: scale(var(--fit, .8));
  perspective: 1800px; perspective-origin: 30% 30%;
}
.hv-rig {
  position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 40% 50%;
  transform:
    translate3d(0, calc(var(--hp, 0) * 90px), 0)
    rotateX(calc(9deg + var(--my, 0) * -3deg + var(--hp, 0) * 12deg))
    rotateY(calc(-18deg + var(--mx, 0) * 4deg))
    rotateZ(1.2deg);
}
html.js .hv-rig > .win, html.js .hv-rig > .hv-toast { animation: layer-in 1.4s var(--ease) both; animation-delay: var(--ld, .3s); }
.hv-board { --ld: .35s; }
.hv-cal { --ld: .55s; }
.hv-toast { --ld: .9s; }
@keyframes layer-in { from { opacity: 0; translate: 0 40px; } to { opacity: var(--o, 1); translate: 0 0; } }

.hv-board { position: absolute; left: 44px; top: 150px; width: 720px; transform: translateZ(0); }
.hv-cal { --o: .78; position: absolute; left: 330px; top: 6px; width: 440px; transform: translateZ(-170px); opacity: .78; }
.hv-toast {
  position: absolute; left: 10px; top: 506px; width: 320px; transform: translateZ(130px);
  display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: 16px;
}
.hv-flag { position: absolute; left: 520px; top: 112px; transform: translateZ(90px); opacity: 0; transition: opacity .5s var(--ease), translate .6s var(--ease); translate: 0 8px; }
.hv-flag.is-on { opacity: 1; translate: 0 0; }
.hv-flag .chip { font-size: 11.5px; padding: 6px 11px; background: oklch(20% .02 25 / .92); box-shadow: inset 0 0 0 1px oklch(70% .16 25 / .4), 0 18px 40px -18px oklch(0% 0 0 / .9); }

.toast-ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary-line); }
.toast-ico svg { width: 20px; height: 20px; }
.toast-txt { min-width: 0; }
.toast-txt small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.toast-txt b { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.toast-txt span { display: block; font-size: 12.5px; color: var(--muted); }
@keyframes toast-flash { 0% { box-shadow: inset 0 1px 0 oklch(100% 0 0 / .07), 0 0 0 1px var(--primary), 0 0 0 0 oklch(82% .11 230 / .5), 0 30px 80px -30px oklch(0% 0 0 / .85); } 100% { box-shadow: inset 0 1px 0 oklch(100% 0 0 / .07), 0 0 0 1px oklch(100% 0 0 / .1), 0 0 0 16px oklch(82% .11 230 / 0), 0 30px 80px -30px oklch(0% 0 0 / .85); } }
@keyframes toast-swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hv-toast.is-pop { animation: toast-flash 1.2s ease-out both; }
.hv-toast.is-pop .toast-txt, .hv-toast.is-pop .toast-ico { animation: toast-swap .7s var(--ease) both; }
.hv-toast.is-pop .toast-txt { animation-delay: .06s; }

/* ---------- pipeline board ---------- */
.board {
  position: relative; /* card offsets are measured against the board */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding: 14px; height: 336px;
}
.col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.col + .col { box-shadow: -5px 0 0 -4px oklch(100% 0 0 / .05); }
.col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.col-head em { font-style: normal; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: oklch(100% 0 0 / .06); color: var(--muted); font-size: 10px; }
.col[data-col="3"] .col-head { color: var(--primary); }
.col[data-col="3"] .col-head em { background: var(--primary-soft); color: var(--primary); }
.col-body { display: flex; flex-direction: column; gap: 8px; }

.jc {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 11px 10px; border-radius: 11px;
  background: linear-gradient(180deg, oklch(100% 0 0 / .065), oklch(100% 0 0 / .025));
  border: 1px solid oklch(100% 0 0 / .085);
  box-shadow: 0 12px 26px -16px oklch(0% 0 0 / .9);
  transition: border-color .5s ease, background-color .5s ease, opacity .45s var(--ease);
  will-change: transform;
}
.jc-p { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-n { font-size: 11.5px; color: var(--faint); }
.jc-tags { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 20px; }
.jc-tags .chip { font-size: 10px; padding: 2px 7px; }
.jc-b { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; }
.jc[data-stage="3"] { border-color: var(--primary-line); background: linear-gradient(180deg, oklch(82% .11 230 / .15), oklch(82% .11 230 / .05)); }
.jc.is-filtered { border-color: oklch(70% .16 25 / .45); background: linear-gradient(180deg, oklch(70% .16 25 / .1), oklch(70% .16 25 / .03)); }
.jc.is-filtered .jc-p { color: var(--faint); text-decoration: line-through; text-decoration-color: oklch(70% .16 25 / .8); }
@keyframes jc-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.jc.is-new { animation: jc-in .7s var(--ease) both; }
.jc.is-gone { opacity: 0; transform: scale(.92); transition: opacity .45s ease, transform .5s var(--ease); pointer-events: none; }

/* ---------- calendars (hero + Fulfill step) ---------- */
.cal { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); grid-template-rows: 28px repeat(4, 40px); }
.cal-lg { grid-template-rows: 30px repeat(4, 50px); }
.cal-corner, .cal-day, .cal-time, .cal-cell { position: relative; border: 0 solid oklch(100% 0 0 / .06); }
.cal-day { display: grid; place-items: center; border-left-width: 1px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cal-time { display: grid; place-items: center; border-top-width: 1px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.cal-cell { border-left-width: 1px; border-top-width: 1px; }
.ev {
  position: absolute; inset: 4px; border-radius: 7px; padding: 5px 7px;
  font-size: 10.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
  color: oklch(16% .03 240); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: linear-gradient(155deg, oklch(88% .09 228), oklch(72% .12 236));
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / .45), 0 10px 22px -10px oklch(82% .11 230 / .7);
}
.cal-lg .ev { font-size: 11.5px; padding: 7px 9px; inset: 5px; white-space: normal; }
.ev-busy {
  color: var(--faint); font-weight: 500; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, oklch(100% 0 0 / .05) 0 6px, oklch(100% 0 0 / .02) 6px 12px);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .07);
}
@keyframes ev-drop { 0% { opacity: 0; transform: translateY(-18px) scale(1.08); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes ev-flash { 0% { box-shadow: inset 0 1px 0 oklch(100% 0 0 / .45), 0 0 0 1px oklch(94% .05 230), 0 0 0 0 oklch(82% .11 230 / .7); } 100% { box-shadow: inset 0 1px 0 oklch(100% 0 0 / .45), 0 0 0 1px oklch(94% .05 230 / 0), 0 0 0 14px oklch(82% .11 230 / 0); } }
.ev.is-new { animation: ev-drop .9s var(--ease) both, ev-flash 1.1s ease-out .6s both; }
.ev.is-out { opacity: 0; transform: scale(.85); transition: opacity .6s ease, transform .6s var(--ease); }

/* ---------- phone feed (replaces the 3D board under 720px) ---------- */
.hv-feed { display: none; flex-direction: column; gap: 10px; }
.feed-item {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(180deg, oklch(100% 0 0 / .07), oklch(100% 0 0 / .025));
  border: 1px solid oklch(100% 0 0 / .1);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / .06), 0 20px 40px -24px oklch(0% 0 0 / .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.feed-item:nth-child(2) { opacity: .78; transform: scale(.985); }
.feed-item:nth-child(3) { opacity: .5; transform: scale(.97); }
.feed-item > div { min-width: 0; }
.feed-item small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.feed-item b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.feed-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: oklch(100% 0 0 / .06); color: var(--muted); }
.feed-ico svg { width: 18px; height: 18px; }
.feed-ico.is-booked { background: var(--primary-soft); color: var(--primary); }
.feed-ico.is-booked + div small { color: var(--primary); }
.feed-ico.is-ok { background: var(--ok-soft); color: var(--ok); }
.feed-ico.is-bad { background: var(--bad-soft); color: var(--bad); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
.feed-item.is-new { animation: feed-in .7s var(--ease) both; }

/* =========================================================================
   WHO WE SERVE: a paint-deck strip of the brand blue
   ========================================================================= */
.serves { position: relative; z-index: 1; padding: 64px 0 76px; border-block: 1px solid var(--line); background: oklch(17% 0 0 / .45); }
.serves-label { display: flex; justify-content: center; }
.deck { margin-top: 36px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.sw {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px oklch(0% 0 0 / .9);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s ease;
  transform-origin: 50% 130%;
}
.sw:hover { transform: translateY(-8px) rotate(-1.2deg); border-color: var(--primary-line); box-shadow: 0 34px 60px -30px oklch(82% .11 230 / .5); }
.sw-color {
  position: relative; height: 116px; padding: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, oklch(100% 0 0 / .2), transparent 45%), oklch(var(--L) .11 230);
  color: oklch(20% .04 235);
}
.sw-color.is-deep { color: oklch(97% .02 230); }
.sw-color svg { width: 22px; height: 22px; }
.sw-code { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; opacity: .75; }
.sw-name { padding: 12px 12px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
@keyframes fan-in {
  from { opacity: 0; transform: translateX(calc(var(--off) * -92%)) translateY(24px) rotate(calc(var(--off) * 6deg)); }
  35% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
html.js .deck .sw { opacity: 0; }
html.js .deck.is-in .sw { opacity: 1; animation: fan-in 1.3s var(--ease) backwards; animation-delay: calc(.1s + var(--i) * 55ms); }

/* =========================================================================
   PROBLEM: sticky statement, three traps shown as small instruments
   ========================================================================= */
.problem-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.problem-head { position: sticky; top: 140px; }
.problem-head .h2 { margin-top: 22px; }
.problem-head .lead { margin-top: 26px; }
.traps { border-bottom: 1px solid var(--line); }
.trap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 40px); align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.trap-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.trap .h3 { margin-top: 12px; }
.trap .body-sm { margin-top: 12px; }
html.js .trap .trap-copy, html.js .trap .trap-vis { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.js .trap .trap-vis { transition-delay: .12s; }
html.js .trap.is-in .trap-copy, html.js .trap.is-in .trap-vis { opacity: 1; transform: none; }

.pv {
  border-radius: 14px; padding: 14px 14px 12px;
  background: linear-gradient(180deg, oklch(100% 0 0 / .045), oklch(100% 0 0 / .015));
  border: 1px solid var(--line);
}
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pv-head .win-tag { margin-left: 0; }

.pv-bars { position: relative; height: 124px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end; padding-bottom: 18px; }
.pv-bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.pv-bar i { display: block; width: 100%; height: var(--h); border-radius: 3px 3px 1px 1px; background: oklch(100% 0 0 / .15); transform-origin: 50% 100%; }
.pv-bar em { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.pv-bar.is-over i { background: linear-gradient(180deg, var(--primary), var(--primary-deep)); box-shadow: 0 0 14px -4px var(--primary-glow); }
.pv-bar.is-steady i { background: linear-gradient(180deg, var(--primary), oklch(62% .13 238 / .75)); }
.pv-cap { position: absolute; left: -2px; right: -2px; bottom: calc(18px + (100% - 18px) * var(--cap)); border-top: 1px dashed oklch(98% 0 0 / .45); pointer-events: none; }
.pv-cap em { position: absolute; right: 0; top: -17px; font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--muted); background: oklch(15% 0 0 / .85); padding: 0 4px; border-radius: 4px; }
html.js .pv-bar i { transform: scaleY(0); transition: transform .9s var(--ease); transition-delay: calc(.15s + var(--i) * 45ms); }
html.js .is-in .pv-bar i, html.js .step.is-active .pv-bar i { transform: none; }

.bids { display: flex; flex-direction: column; gap: 9px; }
.bid { display: grid; grid-template-columns: 64px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.bid-track { height: 9px; border-radius: 999px; background: oklch(100% 0 0 / .05); overflow: hidden; }
.bid-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: oklch(100% 0 0 / .2); transform-origin: 0 50%; }
.bid.is-you { color: var(--fg); }
.bid.is-you .bid-track i { background: linear-gradient(90deg, var(--primary-deep), var(--primary)); }
.bid.is-low { color: var(--fg); }
.bid.is-low .bid-track i { background: var(--fg); }
.bid .chip { justify-self: start; font-size: 9.5px; padding: 2px 7px; }
html.js .bid-track i { transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(.15s + var(--i) * 80ms); }
html.js .bid .chip { opacity: 0; transform: scale(.7); transition: opacity .4s ease 1.05s, transform .6s var(--ease) 1.05s; }
html.js .bid.is-you { transition: opacity .6s ease 1.2s; }
html.js .is-in .bid-track i { transform: none; }
html.js .is-in .bid .chip { opacity: 1; transform: none; }
html.js .is-in .bid.is-you { opacity: .55; }

.ref-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ref-grid i { aspect-ratio: 1.7; border-radius: 4px; background: oklch(100% 0 0 / .05); transition: background-color .5s ease, box-shadow .5s ease; transition-delay: calc(.25s + var(--i) * 18ms); }
.ref-grid i.is-lit { background: var(--primary); box-shadow: 0 0 12px -2px var(--primary-glow); }
html.js .ref-grid i.is-lit { background: oklch(100% 0 0 / .05); box-shadow: none; }
html.js .is-in .ref-grid i.is-lit { background: var(--primary); box-shadow: 0 0 12px -2px var(--primary-glow); }

/* =========================================================================
   THE MACHINE: four stations, pinned while you scroll (desktop)
   ========================================================================= */
.machine { padding-bottom: 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, oklch(17% 0 0 / .35), transparent 40%); }
.machine-title { margin-top: 22px; }
.story { position: relative; margin-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(88px, 10vw, 140px); }
.stations { display: none; }
.steps { display: flex; flex-direction: column; gap: clamp(88px, 12vw, 128px); }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.step-copy { max-width: 520px; }
.step-num {
  font-family: var(--font-display); font-size: clamp(64px, 7.4vw, 116px); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.2px oklch(82% .11 230 / .55);
}
.step-title { margin-top: 22px; font-size: clamp(28px, 2.9vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.step-copy .lead { margin-top: 16px; max-width: 40ch; }
.step-visual { position: relative; display: flex; align-items: center; justify-content: center; perspective: 1500px; }
.mv { transform-style: preserve-3d; }

/* stacked mode entrance (IntersectionObserver adds .is-active per step) */
html.js .story:not(.is-pinned) .step-copy, html.js .story:not(.is-pinned) .step-visual { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.js .story:not(.is-pinned) .step.is-active .step-copy, html.js .story:not(.is-pinned) .step.is-active .step-visual { opacity: 1; transform: none; }
html.js .story:not(.is-pinned) .step.is-active .step-visual { transition-delay: .1s; }

/* pinned mode (set by JS on wide, tall screens) */
.story.is-pinned { height: calc(var(--n) * 72vh + 100vh); padding-bottom: 0; }
.story.is-pinned .story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 84px; }
.story.is-pinned .story-sticky > .container { width: min(100% - 2 * var(--gutter), var(--container)); }
.story.is-pinned .stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; margin-bottom: clamp(24px, 5vh, 56px); }
.st-line { position: absolute; left: 5px; right: 0; top: 5px; height: 1px; background: oklch(100% 0 0 / .1); }
.st-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary-deep), var(--primary)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--primary-glow); }
.st-btn {
  position: relative; display: flex; align-items: baseline; gap: 10px; padding: 26px 12px 4px 0; text-align: left;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--faint); transition: color .4s ease;
}
.st-btn small { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.st-dot { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .3); transition: background-color .4s ease, box-shadow .4s ease; }
.st-btn:hover { color: var(--muted); }
.st-btn.is-done, .st-btn.is-active { color: var(--fg); }
.st-btn.is-done .st-dot, .st-btn.is-active .st-dot { background: var(--primary); box-shadow: 0 0 0 4px oklch(82% .11 230 / .2); }
.st-btn.is-active small { color: var(--primary); }

.story.is-pinned .steps { display: grid; }
.story.is-pinned .step { grid-area: 1 / 1; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 5vw, 88px); align-items: center; pointer-events: none; }
.story.is-pinned .step.is-active { pointer-events: auto; }
.story.is-pinned .step-copy { opacity: 0; transform: translateY(30px); transition: opacity .55s var(--ease), transform .8s var(--ease); }
.story.is-pinned .step.is-active .step-copy { opacity: 1; transform: none; transition-delay: .08s; }
.story.is-pinned .step-visual { min-height: min(470px, 56vh); }
.story.is-pinned .step-visual .mv {
  opacity: 0; transform: translate3d(70px, 0, -160px) rotateY(-16deg);
  transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.story.is-pinned .step.is-past .step-visual .mv { transform: translate3d(-60px, 0, 80px) rotateY(6deg); }
.story.is-pinned .step.is-active .step-visual .mv { opacity: 1; transform: translate3d(0, 0, 0) rotateY(-7deg) rotateX(3deg); transition-delay: .06s; }

/* --- 01 Attract: service-area ZIP tiles --- */
.mv-area { width: min(100%, 520px); }
.area { padding: 20px 20px 18px; }
.hexes { position: relative; width: 100%; aspect-ratio: 8.5 / 5.36; }
.hx {
  position: absolute; width: 11.06%; height: 20.26%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: oklch(100% 0 0 / .05); transition: background-color .6s ease;
}
.hx.in { transition-delay: calc(.2s + var(--k) * 45ms); }
.hx.ho::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  background: var(--fg); box-shadow: 0 0 0 3px oklch(82% .11 230 / .5);
  opacity: 0; scale: .2; transition: opacity .4s ease, scale .6s var(--ease); transition-delay: calc(1s + var(--k) * 60ms);
}
.step.is-active .hx.in, html:not(.js) .hx.in { background: oklch(82% .11 230 / .3); }
.step.is-active .hx.ho, html:not(.js) .hx.ho { background: oklch(82% .11 230 / .55); }
.step.is-active .hx.ho::after, html:not(.js) .hx.ho::after { opacity: 1; scale: 1; }
.area-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips .chip { font-size: 11px; padding: 5px 10px; }

/* --- 02 Follow Up: text thread, then the qualification card --- */
.mv-follow { position: relative; width: min(100%, 560px); height: 450px; }
.thread { position: absolute; left: 0; top: 0; width: 84%; }
.thread .win-bar .av { width: 22px; height: 22px; font-size: 9px; }
.msgs { display: flex; flex-direction: column; gap: 9px; padding: 18px 16px 20px; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 15px; font-size: 13px; line-height: 1.42; }
.msg.out { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 5px; }
.msg.in { align-self: flex-start; background: oklch(100% 0 0 / .075); border-bottom-left-radius: 5px; }
.qual { position: absolute; right: 0; bottom: 0; width: 310px; padding: 14px 18px 16px; border-radius: 16px; transform: translateZ(60px); }
.qual-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid oklch(100% 0 0 / .06); }
.qual-row span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.qual-row b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qual-row .qc { width: 16px; height: 16px; color: var(--ok); }
.qual-ok { margin-top: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px oklch(80% .14 158 / .3); }
.qual-ok svg { width: 14px; height: 14px; }
html.js .msg { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(.3s + var(--i) * .5s); }
html.js .qual { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease) 2.2s, translate .9s var(--ease) 2.2s; }
html.js .qual-row .qc { opacity: 0; scale: .4; transition: opacity .3s ease, scale .5s var(--ease); }
html.js .qual-row:nth-child(1) .qc { transition-delay: 2.6s; }
html.js .qual-row:nth-child(2) .qc { transition-delay: 2.8s; }
html.js .qual-row:nth-child(3) .qc { transition-delay: 3s; }
html.js .qual-ok { opacity: 0; transition: opacity .5s ease 3.3s; }
html.js .step.is-active .msg { opacity: 1; transform: none; }
html.js .step.is-active .qual { opacity: 1; translate: 0 0; }
html.js .step.is-active .qual-row .qc { opacity: 1; scale: 1; }
html.js .step.is-active .qual-ok { opacity: 1; }

/* --- 03 Fulfill: estimates drop onto the calendar, then the job walk --- */
.mv-fulfill { position: relative; width: min(100%, 580px); height: 430px; }
.mv-fulfill > .win { position: absolute; left: 0; top: 0; width: 92%; }
.ev.is-focus { background: linear-gradient(155deg, oklch(95% .05 228), oklch(80% .11 232)); }
.walk { position: absolute; right: 0; bottom: 0; width: 290px; padding: 16px 18px; border-radius: 16px; transform: translateZ(70px); }
.walk-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid oklch(100% 0 0 / .07); }
.walk-head b { display: block; font-size: 14.5px; font-weight: 600; }
.walk-head small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.walk ul { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.walk li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.walk li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
html.js .ev-drop { opacity: 0; }
html.js .step.is-active .ev-drop { animation: ev-drop .9s var(--ease) both; animation-delay: calc(.35s + var(--k) * .28s); }
html.js .step.is-active .ev-drop.is-focus { animation: ev-drop .9s var(--ease) both, ev-flash 1.2s ease-out both; animation-delay: .35s, 1.1s; }
html.js .walk { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease) 1.5s, translate .9s var(--ease) 1.5s; }
html.js .walk li { color: var(--faint); transition: color .4s ease; transition-delay: calc(2s + var(--i) * .32s); }
html.js .walk li svg { background: oklch(100% 0 0 / .06); color: transparent; transition: background-color .4s ease, color .4s ease; transition-delay: calc(2s + var(--i) * .32s); }
html.js .step.is-active .walk { opacity: 1; translate: 0 0; }
html.js .step.is-active .walk li { color: var(--fg); }
html.js .step.is-active .walk li svg { background: var(--ok-soft); color: var(--ok); }

/* --- 04 Growth: level through every season --- */
.mv-growth { width: min(100%, 540px); }
.growth { padding: 26px 22px 20px; }
.growth .pv-bars { height: 250px; gap: 8px; padding-bottom: 22px; }
.growth .pv-bar em { bottom: -22px; font-size: 10.5px; }
.growth .pv-cap em { font-size: 10px; }

/* =========================================================================
   RESULTS: a tracked readout
   ========================================================================= */
.results { position: relative; isolation: isolate; overflow: clip; border-top: 1px solid var(--line); }
.results-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 60% at 80% 50%, oklch(82% .11 230 / .12), transparent 72%); }
.results-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 104px); align-items: center; }
.results-copy .h2 { margin-top: 22px; }
.results-copy .lead { margin-top: 24px; }
.results-copy .link-arrow { margin-top: 34px; }
.readout { border-radius: 22px; overflow: hidden; }
.ro-bar { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ro-cell { position: relative; min-height: 200px; padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ro-cell:nth-child(2n) { border-right: 0; }
.ro-cell:nth-child(n + 3) { border-bottom: 0; }
.ro-val { font-family: var(--font-display); font-size: clamp(46px, 4.8vw, 74px); line-height: .9; letter-spacing: -.035em; color: var(--primary); font-variant-numeric: tabular-nums; }
.ro-label { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1199px) {
  .hero { min-height: 0; padding: 132px 0 72px; }
  .hero-copy { max-width: 680px; }
  .hero-title { font-size: clamp(44px, 6.4vw, 70px); }
  .hv { position: relative; top: auto; left: auto; width: 100%; height: calc(560px * var(--fit, .8)); transform: none; margin-top: 56px; }
  .hv-stage { left: calc(50% - 430px * var(--fit, .8)); width: 860px; height: 560px; transform-origin: 0 0; transform: scale(var(--fit, .8)); }
  .hv-rig { transform: rotateX(7deg) rotateY(-9deg) rotateZ(.6deg); }
  .hv-toast { top: 470px; }
}
@media (max-width: 1099px) {
  .deck { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.js .deck.is-in .sw { animation-name: fade-up; }
  .problem-grid { grid-template-columns: minmax(0, 1fr); }
  .problem-head { position: static; max-width: 720px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .hero { padding: 124px 0 64px; }
  .hero-title { font-size: clamp(36px, 10.2vw, 52px); letter-spacing: -.035em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hv { height: auto; margin-top: 44px; }
  .hv-stage { display: none; }
  .hv-feed { display: flex; }
  .deck { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .deck::-webkit-scrollbar { display: none; }
  .sw { flex: 0 0 138px; scroll-snap-align: start; }
  .sw-color { height: 96px; }
  .trap { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .step-visual { justify-content: flex-start; }
  .mv-follow { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .thread, .qual { position: relative; width: 100%; left: auto; right: auto; bottom: auto; transform: none; }
  .mv-fulfill { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .mv-fulfill > .win, .walk { position: relative; width: 100%; transform: none; }
  .growth .pv-bars { height: 190px; gap: 5px; }
  .ro-cell { min-height: 150px; padding: 22px 20px; }
  .ro-val { font-size: clamp(38px, 11vw, 52px); }
}
@media (max-width: 400px) {
  .cal { grid-template-columns: 34px repeat(5, minmax(0, 1fr)); }
  .cal-lg .ev { font-size: 10px; padding: 5px 6px; inset: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-light { transform: none; opacity: 1; }
  html.js .hv-rig > .win, html.js .hv-rig > .hv-toast { animation: none; }
}
