/* ==========================================================================
   The Lead Gen Company — services index layer
   Loads AFTER leadhq-lab.css and leadhq-motion.css. Used only by
   /services/index.html. Every selector is new (svc-*, fx-*); nothing in the
   base layers is overridden.

   Motion rules, same as the motion layer:
   1. Nothing hides unless JS is running (.svc-js is set by an inline script).
   2. Each figure's resting CSS is its finished frame, so with reduced motion
      (or animation off) every stage still reads as a complete illustration.
   3. Figures only run while on screen (.is-live, set by IntersectionObserver).
   ========================================================================== */

:root {
  --fx-card:  #131d3b;
  --fx-deep:  #0c1329;
  --fx-soft:  rgba(150,180,255,.16);
  --fx-faint: rgba(150,180,255,.07);
  --svc-expo: cubic-bezier(.16, 1, .30, 1);
  --svc-out:  cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   1. HERO + INDEX RAIL
   ========================================================================== */
.svc-hero { padding: 54px 0 84px; position: relative; z-index: 1; }
.svc-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 72px; align-items: end;
}
.svc-hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 3.9vw, 4.6rem);
  line-height: .97; letter-spacing: -.04em; margin: 18px 0 26px;
}
.svc-hero h1 .ln { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.svc-hero h1 .ln > span { display: block; }
.svc-hero__sub { font-size: 1.14rem; line-height: 1.6; max-width: 44ch; margin: 0 0 30px; }
.svc-hero__sub strong { color: var(--ink); font-weight: 600; }
.svc-terms { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.svc-terms li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px;
  background: rgba(10,16,32,.6);
}
.svc-terms li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); margin-right: 9px; vertical-align: 1px; box-shadow: var(--glow-sm); }

.svc-rail { border-top: 1px solid var(--line-2); }
.svc-rail__h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 0 10px; margin: 0;
}
.svc-rail ol { list-style: none; margin: 0; padding: 0; }
.svc-rail a {
  display: grid; grid-template-columns: 34px 1fr auto 18px; align-items: baseline; gap: 10px;
  padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink);
  transition: color .2s var(--ease), padding-left .35s var(--svc-expo);
}
.svc-rail .n { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); transition: color .2s var(--ease); }
.svc-rail .t { font-size: 1.06rem; font-weight: 500; letter-spacing: -.015em; }
.svc-rail .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.svc-rail .a { color: var(--lime); opacity: 0; transform: translateX(-6px);
  transition: opacity .2s var(--ease), transform .35s var(--svc-expo); }
.svc-rail a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) {
  .svc-rail a:hover { color: var(--lime); padding-left: 8px; }
  .svc-rail a:hover .n { color: var(--lime); }
  .svc-rail a:hover .a { opacity: 1; transform: none; }
}

/* Load-in: headline wipes up line by line, the rail rows follow. */
@media (prefers-reduced-motion: no-preference) {
  .svc-hero h1 .ln > span { animation: svc-line .9s var(--svc-expo) both; }
  .svc-hero h1 .ln:nth-child(2) > span { animation-delay: .08s; }
  .svc-hero h1 .ln:nth-child(3) > span { animation-delay: .16s; }
  .svc-hero .crumbbox, .svc-hero .label, .svc-hero__sub, .svc-terms,
  .svc-rail__h, .svc-rail li { animation: svc-rise .7s var(--svc-out) both; }
  .svc-hero__sub { animation-delay: .28s; }
  .svc-terms { animation-delay: .36s; }
  .svc-rail__h { animation-delay: .3s; }
  .svc-rail li { animation-delay: calc(.34s + var(--i, 0) * 55ms); }
}
@keyframes svc-line { from { transform: translateY(112%); } to { transform: none; } }
@keyframes svc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   2. CHAPTERS
   ========================================================================== */
.svc-chapter { padding: 0 0 40px; position: relative; z-index: 1; scroll-margin-top: 84px; }
.svc-chapter__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: end;
  padding: 34px 0 30px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
}
.svc-chapter__mark {
  font-family: var(--mono); font-weight: 700; font-size: clamp(3.4rem, 2rem + 5vw, 6.2rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--lime-dim); letter-spacing: -.04em;
}
.svc-chapter__head .label { display: block; margin-bottom: 12px; }
.svc-chapter__head h2 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem); letter-spacing: -.03em; }
.svc-chapter__lede { font-size: 1.02rem; line-height: 1.6; max-width: 34ch; margin: 0; }
.svc-chapter__count { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 10px; }

/* ==========================================================================
   3. SERVICE ROW — figure one side, copy the other, alternating
   ========================================================================== */
.svc {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px); align-items: center;
  padding: clamp(44px, 5.4vw, 78px) 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}
.svc:last-child { border-bottom: 0; }
.svc--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.svc--flip .svc__stage { order: 2; }

.svc__copy { position: relative; }
.svc__meta { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.svc__no {
  font-family: var(--mono); font-weight: 700; font-size: 2.5rem; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--ink-3);
  transition: -webkit-text-stroke-color .25s var(--ease), color .25s var(--ease);
}
.svc__meta::after { content: ""; flex: 1; height: 1px; background: var(--line-2); transform-origin: left; }
.svc__tag {
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime); margin: 0; order: 1;
}
.svc__title { font-size: clamp(1.7rem, 1.15rem + 1.7vw, 2.5rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 16px; max-width: 17ch; }
.svc__title a { color: var(--ink); }
/* the whole row is the link target, the title carries the accessible name */
.svc__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.svc__title a:focus-visible { outline: none; }
.svc:has(.svc__title a:focus-visible) { outline: 2px solid var(--lime); outline-offset: 6px; border-radius: 18px; }
.svc__desc { font-size: 1.02rem; line-height: 1.62; max-width: 42ch; margin: 0 0 22px; }
.svc__specs { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__specs li {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 10px;
}
.svc__cta { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .98rem; color: var(--lime); }
.svc__cta i {
  font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--lime-dim);
  transition: transform .4s var(--svc-expo), background .2s var(--ease), color .2s var(--ease);
}

@media (hover: hover) {
  .svc:hover .svc__no { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
  .svc:hover .svc__title a { color: #fff; }
  .svc:hover .svc__cta i { transform: translateX(6px); background: var(--lime); color: #08120a; }
  .svc:hover .stage { border-color: rgba(184,255,58,.5); box-shadow: 0 30px 70px -40px rgba(184,255,58,.35), 0 40px 80px -50px rgba(0,0,0,.9); }
  .svc:hover .stage__live::before { box-shadow: var(--glow-sm); }
}

/* ---- the stage -------------------------------------------------------- */
.stage {
  position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(184,255,58,.09), transparent 62%),
    linear-gradient(var(--fx-faint) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--fx-faint) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--panel);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease);
}
.stage svg { display: block; width: 100%; height: auto; }
.stage figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px; border-top: 1px solid var(--line); background: rgba(7,11,21,.55);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.stage figcaption b { color: var(--ink-2); font-weight: 400; }
.stage__live { display: inline-flex; align-items: center; gap: 8px; }
.stage__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: fx-blink 1.6s steps(2) infinite; }

/* ---- scroll reveal (one shot) ----------------------------------------- */
.svc-js .svc .svc__stage { opacity: 0; transform: translateY(26px) scale(.975); }
.svc-js .svc .svc__copy > * { opacity: 0; transform: translateY(16px); }
.svc-js .svc .svc__meta::after { transform: scaleX(0); }
.svc-js .svc.is-in .svc__stage {
  opacity: 1; transform: none;
  transition: opacity .8s var(--svc-out), transform 1s var(--svc-expo), border-color .3s var(--ease), box-shadow .4s var(--ease);
}
.svc-js .svc.is-in .svc__copy > * {
  opacity: 1; transform: none;
  transition: opacity .6s var(--svc-out), transform .8s var(--svc-expo);
  transition-delay: calc(.12s + var(--s, 0) * 70ms);
}
.svc-js .svc.is-in .svc__meta::after { transform: none; transition: transform 1s var(--svc-expo) .3s; }
.svc__copy > :nth-child(2) { --s: 1; } .svc__copy > :nth-child(3) { --s: 2; }
.svc__copy > :nth-child(4) { --s: 3; } .svc__copy > :nth-child(5) { --s: 4; }

/* ==========================================================================
   4. FIGURE PRIMITIVES (shared by all eight SVGs, viewBox 480 x 320)
   ========================================================================== */
.fx * { transform-box: fill-box; transform-origin: center; }
.fx text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; fill: var(--ink-3); }
.fx .t-ink { fill: var(--ink); } .fx .t-lime { fill: var(--lime); }
.fx .t-amber { fill: var(--amber); } .fx .t-cyan { fill: var(--cyan); }
.fx .t-dark { fill: #08120a; font-weight: 700; }
.fx .t-b { font-weight: 700; }
.fx-card { fill: var(--fx-card); stroke: var(--line-2); }
.fx-deep { fill: var(--fx-deep); stroke: var(--line-2); }
.fx-bar { fill: var(--fx-soft); }
.fx-ink { fill: rgba(234,240,251,.82); }
.fx-lime { fill: var(--lime); }
.fx-stroke { fill: none; stroke: var(--line-2); stroke-width: 1.25; }
.fx-rule { fill: none; stroke: var(--line-2); }
.fx-dash { fill: none; stroke: var(--line-2); stroke-dasharray: 3 5; }
.fx-wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.fx-check { fill: none; stroke: #08120a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-glow { filter: drop-shadow(0 0 6px rgba(184,255,58,.7)); }
@keyframes fx-blink { 50% { opacity: .3; } }

/* Figures idle until they are on screen. Without JS they simply run. */
.svc-js .stage:not(.is-live) *, .svc-js .stage:not(.is-live) .stage__live::before { animation-play-state: paused !important; }

/* ---- 01 PAY PER LEAD: leads arrive, get ticked, the bill counts leads --- */
.ppl-dot { opacity: 0; animation: ppl-dot 9s linear infinite both; }
.ppl-row { animation: ppl-row 9s var(--svc-out) infinite both; }
.ppl-tick { animation: ppl-tick 9s var(--svc-out) infinite both; }
.ppl--2 { animation-delay: .9s; } .ppl--3 { animation-delay: 1.8s; }
.ppl-n { opacity: 0; } .ppl-n--3 { opacity: 1; }
.ppl-n--0 { animation: ppl-n0 9s linear infinite; } .ppl-n--1 { animation: ppl-n1 9s linear infinite; }
.ppl-n--2 { animation: ppl-n2 9s linear infinite; } .ppl-n--3 { animation: ppl-n3 9s linear infinite; }
@keyframes ppl-dot { 0% { opacity: 0; transform: none; } 1.5% { opacity: 1; } 6.5% { opacity: 1; transform: translateX(112px); } 8%, 100% { opacity: 0; transform: translateX(112px); } }
@keyframes ppl-row { 0%, 6.5% { opacity: 0; transform: translateX(-14px); } 11%, 62% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: none; } }
@keyframes ppl-tick { 0%, 9% { transform: scale(0); } 13% { transform: scale(1.25); } 16%, 100% { transform: none; } }
@keyframes ppl-n0 { 0%, 6.9% { opacity: 1; } 7%, 87.9% { opacity: 0; } 88%, 100% { opacity: 1; } }
@keyframes ppl-n1 { 0%, 6.9% { opacity: 0; } 7%, 16.9% { opacity: 1; } 17%, 100% { opacity: 0; } }
@keyframes ppl-n2 { 0%, 16.9% { opacity: 0; } 17%, 26.9% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes ppl-n3 { 0%, 26.9% { opacity: 0; } 27%, 87.9% { opacity: 1; } 88%, 100% { opacity: 0; } }

/* ---- 02 FIXED FEE: spend climbs, a % fee would climb with it, yours is flat */
.fee-bar { transform-origin: 50% 100%; animation: fee-bar 8s var(--svc-expo) infinite both; animation-delay: calc(var(--i) * .16s); }
.fee-pct { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 100; opacity: .32; animation: fee-pct 8s var(--svc-out) infinite both; }
.fee-flat { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; animation: fee-flat 8s var(--svc-out) infinite both; }
.fee-dot { transform: translateX(396px); animation: fee-dot 8s var(--svc-out) infinite both; }
.fee-ring { fill: none; stroke: var(--lime); transform: translateX(396px); animation: fee-ring 8s var(--svc-out) infinite both; }
@keyframes fee-bar { 0% { transform: scaleY(0); } 16%, 86% { transform: none; } 96%, 100% { transform: scaleY(0); } }
@keyframes fee-pct { 0%, 12% { stroke-dashoffset: 100; opacity: .9; } 40%, 52% { stroke-dashoffset: 0; opacity: .9; } 62%, 88% { stroke-dashoffset: 0; opacity: .32; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fee-flat { 0%, 12% { stroke-dashoffset: 100; opacity: 1; } 40%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fee-dot { 0%, 12% { transform: none; opacity: 1; } 40%, 88% { transform: translateX(396px); opacity: 1; } 96%, 100% { transform: translateX(396px); opacity: 0; } }
@keyframes fee-ring { 0%, 40% { transform: translateX(396px) scale(.4); opacity: 0; } 44% { opacity: .9; } 60%, 100% { transform: translateX(396px) scale(2.6); opacity: 0; } }

/* ---- 03 PPC MANAGEMENT: ad gets written, dials get tuned, results tracked */
.mg-cover { fill: var(--fx-card); transform-origin: 100% 50%; transform: scaleX(0); animation: mg-type 8s steps(19) infinite both; }
.mg-knob { animation: mg-knob 3.4s ease-in-out infinite alternate; }
.mg-knob--2 { animation-duration: 4.6s; animation-direction: alternate-reverse; }
.mg-knob--3 { animation-duration: 2.7s; animation-delay: -1s; }
.mg-spark { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: mg-spark 8s var(--svc-out) infinite both; }
.mg-pip { animation: mg-pip 8s var(--svc-out) infinite both; animation-delay: calc(var(--i) * .26s); }
@keyframes mg-type { 0%, 5% { transform: scaleX(1); } 30%, 92% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes mg-knob { from { transform: translateX(-34px); } to { transform: translateX(28px); } }
@keyframes mg-spark { 0%, 22% { stroke-dashoffset: 100; opacity: 1; } 56%, 90% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mg-pip { 0%, 24% { transform: scale(0); opacity: 1; } 29% { transform: scale(1.5); } 33%, 88% { transform: none; opacity: 1; } 94%, 100% { transform: none; opacity: 0; } }

/* ---- 04 PPC LEAD GEN: one click, two routes, same destination ---------- */
.rt-dot { opacity: 0; animation: rt-up 4s linear infinite both; }
.rt-dot--b { fill: var(--cyan); animation-name: rt-down; animation-delay: 1s; }
.rt-dot--2 { animation-delay: 2s; } .rt-dot--b.rt-dot--2 { animation-delay: 3s; }
.rt-ring { fill: none; stroke: var(--lime); animation: rt-ring 1s var(--svc-out) infinite; opacity: 0; }
@keyframes rt-up { 0% { transform: none; opacity: 0; } 3% { opacity: 1; } 7.3% { transform: translate(34px, 0); } 22.6% { transform: translate(34px, -72px); } 77.4% { transform: translate(290px, -72px); } 92.7% { transform: translate(290px, 0); opacity: 1; } 100% { transform: translate(324px, 0); opacity: 0; } }
@keyframes rt-down { 0% { transform: none; opacity: 0; } 3% { opacity: 1; } 7.3% { transform: translate(34px, 0); } 22.6% { transform: translate(34px, 72px); } 77.4% { transform: translate(290px, 72px); } 92.7% { transform: translate(290px, 0); opacity: 1; } 100% { transform: translate(324px, 0); opacity: 0; } }
@keyframes rt-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---- 05 PPC AGENCY: the sweep ignores everything except lead gen ------- */
.fc-sweep { animation: fc-sweep 6s linear infinite; }
.fc-target { animation: fc-target 6s var(--svc-out) infinite both; }
.fc-lock { fill: none; stroke: var(--lime); stroke-width: 1.5; animation: fc-lock 6s var(--svc-expo) infinite both; }
.fc-pulse { fill: none; stroke: var(--lime); opacity: 0; animation: fc-pulse 6s var(--svc-out) infinite both; }
.fc-off { opacity: .55; } .fc-off text { text-decoration: line-through; }
@keyframes fc-sweep { to { transform: rotate(360deg); } }
@keyframes fc-target { 0%, 11% { opacity: .35; } 13%, 78% { opacity: 1; } 100% { opacity: .35; } }
@keyframes fc-lock { 0%, 11% { transform: scale(2.2); opacity: 0; } 22%, 78% { transform: none; opacity: 1; } 90%, 100% { transform: none; opacity: 0; } }
@keyframes fc-pulse { 0%, 12% { transform: scale(.5); opacity: 0; } 14% { opacity: .9; } 34%, 100% { transform: scale(3.4); opacity: 0; } }

/* ---- 06 LANDING PAGE: page assembles, gets clicked, then split-tested --- */
.lp-b { animation: lp-in 10s var(--svc-expo) infinite both; animation-delay: calc(var(--i) * .22s); }
.lp-cursor { transform: translate(348px, 208px); opacity: 0; animation: lp-cursor 10s var(--svc-expo) infinite both; transform-box: view-box; transform-origin: 0 0; }
.lp-btn { animation: lp-btn 10s var(--svc-out) infinite both; }
.lp-ripple { fill: none; stroke: var(--lime); opacity: 0; animation: lp-ripple 10s var(--svc-out) infinite both; }
.lp-a { animation: lp-a 10s var(--svc-out) infinite both; }
.lp-v { opacity: 0; animation: lp-v 10s var(--svc-out) infinite both; }
.lp-knob { animation: lp-knob 10s var(--svc-expo) infinite both; }
@keyframes lp-in { 0% { opacity: 0; transform: translateY(12px); } 7%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes lp-cursor { 0%, 22% { transform: translate(214px, 300px); opacity: 0; } 25% { opacity: 1; } 38%, 46% { transform: translate(348px, 208px); opacity: 1; } 54%, 100% { transform: translate(350px, 236px); opacity: 0; } }
@keyframes lp-btn { 0%, 39% { transform: none; } 41% { transform: scale(.93); } 45%, 100% { transform: none; } }
@keyframes lp-ripple { 0%, 40% { transform: scale(.4); opacity: 0; } 42% { opacity: .9; } 54%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes lp-a { 0%, 58% { opacity: 1; } 62%, 84% { opacity: 0; } 88%, 100% { opacity: 1; } }
@keyframes lp-v { 0%, 58% { opacity: 0; } 62%, 84% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes lp-knob { 0%, 58% { transform: none; } 62%, 84% { transform: translateX(24px); } 88%, 100% { transform: none; } }

/* ---- 07 WEBSITE: the page scrolls, the enquiry button never leaves ------ */
.ws-page { animation: ws-scroll 11s cubic-bezier(.65, 0, .35, 1) infinite; }
.ws-mark { animation: ws-mark 11s cubic-bezier(.65, 0, .35, 1) infinite; }
.ws-cta { animation: ws-cta 2.2s var(--svc-out) infinite; }
@keyframes ws-scroll { 0%, 8% { transform: none; } 30%, 34% { transform: translateY(-128px); } 56%, 70% { transform: translateY(-322px); } 94%, 100% { transform: none; } }
@keyframes ws-mark { 0%, 8% { transform: none; } 30%, 34% { transform: translateY(74px); } 56%, 70% { transform: translateY(184px); } 94%, 100% { transform: none; } }
@keyframes ws-cta { 0%, 100% { filter: drop-shadow(0 0 0 rgba(184,255,58,0)); } 50% { filter: drop-shadow(0 0 9px rgba(184,255,58,.75)); } }

/* ---- 08 CRO: audit finds the leak, a test challenges it, the fix sticks -- */
.cro-leak { opacity: 0; animation: cro-leak 9s linear infinite both; }
.cro-drop { fill: var(--amber); animation: cro-drop 1.1s ease-in infinite; }
.cro-drop:nth-child(2) { animation-delay: .37s; } .cro-drop:nth-child(3) { animation-delay: .74s; }
.cro-b { fill: none; stroke: var(--cyan); stroke-dasharray: 4 4; opacity: 0; animation: cro-b 9s var(--svc-out) infinite both; }
.cro-fix { transform-origin: 0 50%; animation: cro-fix 9s var(--svc-expo) infinite both; }
.cro-fixed { animation: cro-fixed 9s linear infinite both; }
.cro-on { opacity: 0; } .cro-on--3 { opacity: 1; }
.cro-on--1 { animation: cro-p1 9s linear infinite; } .cro-on--2 { animation: cro-p2 9s linear infinite; } .cro-on--3 { animation: cro-p3 9s linear infinite; }
@keyframes cro-leak { 0%, 2% { opacity: 0; } 5%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes cro-drop { from { transform: none; opacity: 1; } to { transform: translateY(26px); opacity: 0; } }
@keyframes cro-b { 0%, 33% { opacity: 0; } 37% { opacity: 1; } 45% { opacity: .35; } 53% { opacity: 1; } 61% { opacity: .35; } 66%, 100% { opacity: 0; } }
@keyframes cro-fix { 0%, 66% { transform: scaleX(0); } 76%, 100% { transform: none; } }
@keyframes cro-fixed { 0%, 68% { opacity: 0; } 72%, 100% { opacity: 1; } }
@keyframes cro-p1 { 0%, 32.9% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes cro-p2 { 0%, 32.9% { opacity: 0; } 33%, 65.9% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes cro-p3 { 0%, 65.9% { opacity: 0; } 66%, 100% { opacity: 1; } }

/* ==========================================================================
   5. CLOSING CTA
   ========================================================================== */
.svc-close { position: relative; z-index: 1; padding: 30px 0 110px; }
.svc-close__box {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(46px, 7vw, 92px) 26px;
  background: radial-gradient(70% 120% at 50% 110%, rgba(184,255,58,.16), transparent 60%), var(--panel);
}
.svc-close__box h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); letter-spacing: -.035em; margin: 14px 0 16px; }
.svc-close__box p { font-size: 1.06rem; line-height: 1.65; max-width: 36rem; margin: 0 auto 32px; }

/* ==========================================================================
   6. RESPONSIVE + REDUCED MOTION
   ========================================================================== */
@media (max-width: 980px) {
  .svc-hero__grid { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .svc-chapter__head { grid-template-columns: auto minmax(0, 1fr); }
  .svc-chapter__aside { grid-column: 1 / -1; }
  .svc-chapter__lede { max-width: 56ch; }
}
@media (max-width: 860px) {
  .svc, .svc--flip { grid-template-columns: 1fr; gap: 28px; }
  .svc--flip .svc__stage { order: 0; }
  .svc__title { max-width: 22ch; }
}
@media (max-width: 560px) {
  .svc-hero { padding: 34px 0 56px; }
  .svc-chapter__head { gap: 18px; padding: 26px 0 22px; }
  .svc__no { font-size: 2rem; }
  .stage { border-radius: 14px; }
  .stage figcaption { font-size: .58rem; padding: 9px 12px; }
  .svc-rail .k { display: none; }
  .svc-rail a { grid-template-columns: 30px 1fr 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx *, .stage__live::before { animation: none !important; }
  .svc-js .svc .svc__stage, .svc-js .svc .svc__copy > *, .svc-js .svc .svc__meta::after {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .svc-rail a, .svc-rail .a, .svc__cta i { transition: none; }
}

/* ---- pieces the base layer does not ship to this page ------------------ */
.fx .t-head { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -.01em; fill: var(--ink); }
.crumbbox { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .02em; color: var(--ink-3); background: rgba(10,16,32,.72); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 26px; backdrop-filter: blur(6px); }
.crumbbox a { color: var(--ink-3); text-decoration: none; transition: color .2s; }
.crumbbox a:hover { color: var(--lime); }
.crumbbox i { font-style: normal; opacity: .45; padding: 0 7px; }
.crumbbox span[aria-current] { color: var(--ink-2); }
