/* ================================================================
   Live showreel: scenes are real HTML, laid out on the original
   video's 1024x576 grid and scaled by --u (1 design px). Scroll
   drives --p (0..1) on each scene; elements map --p to motion.
   ================================================================ */
.reel2 {
  position: relative;
  height: calc(100vh + var(--len, 1) * 130vh);
}
.reel2__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); container-type: size; }
.reel2__glow { /* the soft green light in the video's top-right */
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 45% 40% at 78% 12%, rgba(31,178,90,.11), transparent 70%);
  transition: opacity .4s var(--ease-out);
}
.reel2__track { position: absolute; inset: 0; will-change: transform; --u: min(calc(100cqw / 1024), calc((100cqh - var(--hdr-h)) / 576)); }

.scene { position: absolute; left: 0; right: 0; height: 100vh; height: 100svh; --p: 0; }
.scene[data-tone="light"] { background: var(--paper); color: var(--ink); }
/* with the page fluid running, cream scenes are see-through onto it */
.fx-on .reel2__stage, .fx-on .scene[data-tone="light"] { background: transparent; }
.scene::before { /* faint page grid, scrolls with the scene like in the video */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,31,68,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,68,.018) 1px, transparent 1px);
  background-size: calc(97 * var(--u)) calc(97 * var(--u));
  background-position: center calc(40 * var(--u));
}

/* the 1024x576 design frame, centred under the header */
.frame {
  position: absolute; left: 50%;
  top: calc(var(--hdr-h) + (100% - var(--hdr-h) - 576 * var(--u)) / 2);
  width: calc(1024 * var(--u)); height: calc(576 * var(--u));
  margin-left: calc(-512 * var(--u));
  /* the video keeps scrolling gently while a scene holds */
  transform: translateY(calc(var(--p) * -28 * var(--u)));
}
.abs { position: absolute; left: calc(var(--x, 0) * var(--u)); top: calc(var(--y, 0) * var(--u)); }
.d { font-size: calc(var(--fs) * var(--u)); } /* design-px font size */

/* --- animation primitives: element plays between --a and --b of the scene's --p --- */
.a {
  --t: clamp(0, calc((var(--p) - var(--a)) / (var(--b) - var(--a))), 1);
  --e: calc(var(--t) * (2 - var(--t)));         /* ease-out */
  opacity: var(--e);
  transform: translateY(calc((1 - var(--e)) * 22 * var(--u)));
}
.a--x { transform: translateX(calc((1 - var(--e)) * 26 * var(--u))); }
.a--fade { transform: none; }

/* --- shared scene pieces --- */
.tag {
  display: inline-flex; align-items: center; gap: calc(5 * var(--u));
  height: calc(18 * var(--u)); padding: 0 calc(9 * var(--u));
  font: 800 calc(7.6 * var(--u))/1 var(--font-text); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: var(--green-ink); background: #E2F1E8; border: 1px solid #BBDDC7; border-radius: 99px;
}
.tag::before { content: ""; width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: currentColor; }
.s-title { font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 0; font-size: calc(40 * var(--u)); }
.s-title span { display: block; }
.s-title .g { color: #0F9D4A; }
.s-copy { font-size: calc(13.4 * var(--u)); line-height: 1.5; color: #4A5568; width: calc(295 * var(--u)); }
.s-rule { width: calc(277 * var(--u)); height: 1px; background: var(--line); }
.s-stats { display: flex; gap: calc(22 * var(--u)); }
.s-stats dt { font: 800 calc(7.4 * var(--u))/1 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: #5B6575; }
.s-stats dd { margin: calc(7 * var(--u)) 0 0; font-weight: 800; font-size: calc(11.6 * var(--u)); letter-spacing: -.01em; }
.s-cta {
  font-size: calc(11 * var(--u)); padding: calc(9 * var(--u)) calc(14 * var(--u)); gap: calc(6 * var(--u));
  box-shadow: 0 calc(8 * var(--u)) calc(22 * var(--u)) calc(-10 * var(--u)) rgba(6,18,43,.45);
}
.s-cta svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }

/* ============================ INTRO ============================
   On cream, driven by --p (0..1 over the intro); the light lives in assets/gl/intro-light.js:
   .00 outline + green light in the B/R cut, beams and shadows    .22 the mark fills
   .42 wordmark + tagline                                         .70 the whole room fills with light
   .88 services line; at 1 the overlay is gone, flat cream like the Websites scene.
   Light only ever shifts between soft beige and cream: no dark stage, no flash. */
.scene.intro {
  --fill: clamp(0, calc((var(--p) - .22) / .25), 1);
  --txt:  clamp(0, calc((var(--p) - .42) / .18), 1);
  --top:  calc(1 - clamp(0, calc((var(--p) - .14) / .14), 1));
  --end:  clamp(0, calc((var(--p) - .86) / .14), 1);
}
.intro::before { z-index: 1; } /* the paper grid sits on top of the light, like the other scenes */
.intro .frame { transform: none; z-index: 2; } /* the light needs a still mark */
.intro__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease-out); }
.intro.gl-on .intro__gl { opacity: 1; }

.intro__markbox { position: relative; display: block; }
.intro__mark { position: relative; display: block; overflow: visible; }
.intro__mark path {
  stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  stroke-opacity: calc(1 - var(--fill));
  fill-opacity: var(--fill);
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.intro__mark .im-b { stroke: var(--ink); fill: #001F47; }
.intro__mark .im-r { stroke: var(--green-ink); fill: #00A241; transition-delay: .25s; }
.is-ready .intro__mark path { stroke-dashoffset: 0; }

/* Without WebGPU: a soft mint glow from the cut that grows as you scroll */
.intro__markbox::before {
  content: ""; position: absolute; left: 52.3%; top: 50%; width: calc(80 * var(--u)); aspect-ratio: 1 / 2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61,214,138,.45), rgba(61,214,138,.12) 55%, transparent);
  transform: translate(-50%, -50%) scale(calc(1.2 + 5 * var(--p))); opacity: calc(1 - var(--end));
}
.intro.gl-on .intro__markbox::before { display: none; }

.intro__top { filter: opacity(var(--top)); } /* filter, so it doesn't fight the .load opacity transition */
.reel2.is-intro .reel2__glow { opacity: 0; } /* the cut is the only light in the intro */
.intro__txt { opacity: var(--txt); transform: translateY(calc((1 - var(--txt)) * 14 * var(--u))); }
.intro__end { opacity: var(--end); }
.intro .corner { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border: 0 solid var(--line); }
.intro .c1 { border-width: 1px 0 0 1px; } .intro .c2 { border-width: 1px 1px 0 0; }
.intro .c3 { border-width: 0 0 1px 1px; } .intro .c4 { border-width: 0 1px 1px 0; }
.intro .center { left: 0; width: 100%; display: flex; justify-content: center; }
.intro .mark { width: calc(252 * var(--u)); }
.intro .word { margin: 0; font: 700 calc(66 * var(--u))/1 "Montserrat", sans-serif; letter-spacing: .005em; color: var(--ink); white-space: nowrap; }
.intro .word b { color: var(--green-ink); font-weight: 700; margin-left: calc(14 * var(--u)); }
.intro .tagline { font: 500 calc(19 * var(--u))/1 "Montserrat", sans-serif; letter-spacing: .05em; color: var(--ink); white-space: nowrap; }
.intro .line {
  width: calc(160 * var(--u)); height: calc(2 * var(--u)); background: #12A150; border-radius: 2px;
  transform: scaleX(calc(.25 + .75 * var(--end)));
}
.intro .svcs { gap: calc(10 * var(--u)); font-weight: 700; font-size: calc(11.6 * var(--u)); color: #3E4A5C; white-space: nowrap; }
.intro .svcs i { font-style: normal; color: #9AA5B4; }
.intro .hint { flex-direction: column; align-items: center; gap: calc(4 * var(--u)); font: 700 calc(6.4 * var(--u))/1 var(--font-text); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.intro .hint svg { width: calc(10 * var(--u)); color: #12A150; animation: nudge 1.8s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(3 * var(--u))); } }

/* one-time entrance on load */
.intro .load { opacity: 0; transform: translateY(calc(14 * var(--u))); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.is-ready .intro .load { opacity: 1; transform: none; }

/* =========================== WEBSITES =========================== */
.browser {
  width: calc(490 * var(--u)); height: calc(367 * var(--u));
  background: #fff; border-radius: calc(10 * var(--u)); border: 1px solid #E3E8EE;
  box-shadow: 0 calc(22 * var(--u)) calc(44 * var(--u)) calc(-18 * var(--u)) rgba(11,31,68,.28), 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(11,31,68,.06);
  overflow: hidden;
}
.browser__bar { position: relative; height: calc(26 * var(--u)); border-bottom: 1px solid #EEF1F4; }
.browser__bar i { position: absolute; top: calc(11 * var(--u)); width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; background: #CFD5DC; }
.browser__url {
  position: absolute; left: calc(138 * var(--u)); top: calc(6 * var(--u)); width: calc(213 * var(--u)); height: calc(14 * var(--u));
  display: grid; place-items: center; border-radius: 99px; background: #EEF1F5; color: #4F5866; font-size: calc(7.6 * var(--u)); font-weight: 600;
}
.browser__area { position: absolute; left: calc(18 * var(--u)); top: calc(42 * var(--u)); width: calc(454 * var(--u)); height: calc(298 * var(--u)); }
.browser__area > div { position: absolute; inset: 0; }
.wire .box { position: absolute; border: 1px dashed #D5DBE3; border-radius: calc(8 * var(--u)); background: #F6F7F9; }
.wire .box--card { background: #FBFCFD; }

/* reveal: content is wiped in left-to-right behind a green scan line */
.reveal-layer {
  --r: clamp(0, calc((var(--p) - .36) / .32), 1);
  clip-path: inset(0 calc((1 - var(--r)) * 100%) 0 0);
}
.scanline {
  --r: clamp(0, calc((var(--p) - .36) / .32), 1);
  position: absolute; top: calc(-6 * var(--u)); bottom: calc(-6 * var(--u)); left: calc(var(--r) * 100%);
  width: calc(2 * var(--u)); background: #1FB25A;
  box-shadow: calc(-10 * var(--u)) 0 calc(18 * var(--u)) rgba(31,178,90,.45);
  opacity: clamp(0, calc(min(var(--r), 1 - var(--r)) * 30), 1);
}
.hero {
  position: absolute; left: 0; top: 0; width: 100%; height: calc(145 * var(--u)); border-radius: calc(8 * var(--u)); overflow: hidden;
  background:
    radial-gradient(ellipse 35% 80% at 82% 25%, rgba(20,140,80,.45), transparent 70%),
    linear-gradient(100deg, #081631 0%, #0B1F44 55%, #0A2A3C 100%);
  color: #fff;
}
.hero h4 { margin: 0; font-size: calc(20 * var(--u)); font-weight: 800; letter-spacing: -.02em; }
.hero p { font-size: calc(9.4 * var(--u)); color: #A9B8CC; }
.hero .btn-mini {
  width: calc(96 * var(--u)); height: calc(25 * var(--u)); border-radius: 99px; background: #12A150; color: #fff;
  display: grid; place-items: center; font-size: calc(8.4 * var(--u)); font-weight: 800;
}
.hero .ripple {
  width: calc(64 * var(--u)); height: calc(64 * var(--u)); margin: calc(-32 * var(--u)) 0 0 calc(-32 * var(--u));
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  --t: clamp(0, calc((var(--p) - .74) / .2), 1);
  transform: scale(calc(.3 + var(--t) * .9)); opacity: calc(var(--t) * (1 - var(--t)) * 4);
}
.fcard {
  position: absolute; top: calc(159 * var(--u)); width: calc(145 * var(--u)); height: calc(139 * var(--u));
  border-radius: calc(8 * var(--u)); background: #EEF1F6; border: 1px solid #E2E7EE;
}
.fcard b { position: absolute; left: calc(12 * var(--u)); top: calc(16 * var(--u)); font-size: calc(7.6 * var(--u)); color: #0F9D4A; }
.fcard h5 { position: absolute; left: calc(12 * var(--u)); top: calc(34 * var(--u)); margin: 0; font-size: calc(10.8 * var(--u)); font-weight: 800; color: var(--ink); white-space: nowrap; }
.fcard p { position: absolute; left: calc(12 * var(--u)); top: calc(55 * var(--u)); font-size: calc(7.2 * var(--u)); color: #5B6575; white-space: nowrap; }
.fcard i { position: absolute; left: calc(12 * var(--u)); height: calc(4 * var(--u)); border-radius: 4px; }
.fcard i:nth-of-type(1) { top: calc(86 * var(--u)); width: calc(100 * var(--u)); background: #D6DCE4; }
.fcard i:nth-of-type(2) { top: calc(96 * var(--u)); width: calc(68 * var(--u)); background: #86D3A6; }

.phone {
  width: calc(123 * var(--u)); height: calc(221 * var(--u)); border-radius: calc(14 * var(--u));
  background: #0A1A3A; border: 1px solid #22365F; color: #fff;
  box-shadow: 0 calc(18 * var(--u)) calc(36 * var(--u)) calc(-14 * var(--u)) rgba(6,18,43,.55);
}
.phone small { position: absolute; left: calc(13 * var(--u)); top: calc(19 * var(--u)); font-size: calc(6.2 * var(--u)); font-weight: 800; color: #3DD68A; letter-spacing: .04em; }
.phone strong { position: absolute; left: calc(13 * var(--u)); top: calc(31 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 800; }
.phone .pcard { position: absolute; left: calc(12 * var(--u)); top: calc(58 * var(--u)); width: calc(98 * var(--u)); height: calc(58 * var(--u)); border-radius: calc(6 * var(--u)); background: #0E3A2E; }
.phone .pcard b { position: absolute; left: calc(9 * var(--u)); top: calc(14 * var(--u)); font-size: calc(8.4 * var(--u)); }
.phone .pcard span { position: absolute; left: calc(9 * var(--u)); top: calc(30 * var(--u)); font-size: calc(6.2 * var(--u)); color: #9DB0CC; }
.phone i { position: absolute; left: calc(12 * var(--u)); width: calc(98 * var(--u)); height: calc(15 * var(--u)); border-radius: calc(4 * var(--u)); background: #15284C; }
.phone--ghost { /* arrives translucent, then solidifies as the scan passes */
  --t: clamp(0, calc((var(--p) - .42) / .3), 1);
  opacity: calc(.15 + .85 * var(--t));
  transform: translateX(calc((1 - var(--t)) * 24 * var(--u)));
  filter: saturate(calc(.2 + .8 * var(--t)));
}

/* ============================ PHONES ============================ */
@media (max-width: 720px), (max-aspect-ratio: 4/5) {
  .reel2__track { --u: calc((100cqw - 32px) / 520); }
  .frame { left: 16px; right: 16px; width: auto; margin: 0; top: calc(var(--hdr-h) + 16px); height: auto; bottom: 16px; display: flex; flex-direction: column; justify-content: center; transform: none; }
  .reel2__glow { background: radial-gradient(ellipse 70% 25% at 85% 8%, rgba(31,178,90,.10), transparent 70%); }
  .frame > .abs { position: relative; left: auto; top: auto; }

  /* intro: centred stack */
  .intro .frame { align-items: center; justify-content: center; gap: 18px; top: var(--hdr-h); bottom: 24px; }
  .intro .corner, .intro .svcs i { display: none; }
  .intro .tag { height: 24px; font-size: 9.5px; padding: 0 12px; gap: 6px; }
  .intro .tag::before { width: 5px; height: 5px; }
  .intro .center { width: auto; }
  .intro .mark { width: 150px; }
  .intro .word { font-size: 40px; }
  .intro .word b { margin-left: 9px; }
  .intro .tagline { font-size: 15px; }
  .intro .svcs { flex-wrap: wrap; justify-content: center; white-space: normal; font-size: 13px; gap: 6px 16px; max-width: 320px; }
  .intro .hint { font-size: 9px; margin-top: 12px; }
  .intro .hint svg { width: 12px; }

  /* service scenes: copy first, mockup below */
  .svc-scene .frame { gap: 10px; }
  .svc-scene .tag { height: 22px; font-size: 10px; padding: 0 10px; gap: 6px; align-self: flex-start; }
  .svc-scene .tag::before { width: 5px; height: 5px; }
  .s-title { font-size: 32px; }
  .s-title span { display: inline; }
  .s-copy { width: auto; font-size: 14.5px; }
  .s-rule { display: none; }
  .s-stats dt { font-size: 10px; }
  .s-stats dd { font-size: 14px; margin-top: 4px; }
  .s-stats { gap: 28px; }
  .s-cta { display: none; } /* phones use the fixed CTA bar instead */
  .mock { position: relative; margin-top: 8px; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .a { transform: none; }
  .intro .hint svg { animation: none; }
  .intro__mark path { transition: none; }
}

/* phone-only CTA bar pinned to the stage bottom */
.reel2__bar { display: none; }
@media (max-width: 720px), (max-aspect-ratio: 4/5) {
  .svc-scene .frame { bottom: 84px; }
  .reel2__bar {
    display: flex; position: absolute; z-index: 5; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  }
  .reel2__bar.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .reel2__bar.is-past { visibility: hidden; }
}

/* ======================= DARK SCENES ======================= */
.scene[data-tone="dark"] {
  background:
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(31,178,90,.16), transparent 70%),
    linear-gradient(180deg, #0A1A3A 0%, #081631 100%);
  color: #fff;
}
.scene[data-tone="dark"]::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}
.scene[data-tone="dark"] .tag { color: #3DD68A; background: rgba(31,178,90,.1); border-color: rgba(61,214,138,.35); }
.scene[data-tone="dark"] .s-title .g { color: #2BD66F; }
.scene[data-tone="dark"] .s-copy { color: #A9B6C9; }
.scene[data-tone="dark"] .s-rule { background: #22365F; }
.scene[data-tone="dark"] .s-stats dt { color: #8FA0B8; }

/* ---- shared mock parts ---- */
.panel { border-radius: calc(14 * var(--u)); }
.panel--light { background: #fff; border: 1px solid #E3E8EE;
  box-shadow: calc(-8 * var(--u)) calc(14 * var(--u)) 0 calc(-2 * var(--u)) #E6EAF0, 0 calc(24 * var(--u)) calc(48 * var(--u)) calc(-20 * var(--u)) rgba(11,31,68,.25); }
.panel--dark { background: #0D1F45; border: 1px solid #1E3563;
  box-shadow: 0 calc(24 * var(--u)) calc(50 * var(--u)) calc(-18 * var(--u)) rgba(0,0,0,.55); }
.p-label { font-size: calc(7.4 * var(--u)); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6B7686; }
.p-path { font-size: calc(8.4 * var(--u)); color: #A9B6C9; font-weight: 600; }
.p-badge {
  display: inline-flex; align-items: center; gap: calc(4 * var(--u)); height: calc(18 * var(--u)); padding: 0 calc(8 * var(--u));
  font-size: calc(7 * var(--u)); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  color: #0F8A43; background: #E2F1E8; border: 1px solid #A9D8BA; border-radius: 99px;
}
.p-badge::before { content: ""; width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: currentColor; }
.panel--dark .p-badge, .handset .p-badge { color: #3DD68A; background: rgba(31,178,90,.1); border-color: rgba(61,214,138,.4); }

/* ---- business: flow + jobs ---- */
.flow { width: calc(493 * var(--u)); height: calc(52 * var(--u)); }
.flow__step {
  position: absolute; left: calc(var(--x) * var(--u)); top: 0; width: calc(103 * var(--u)); height: calc(52 * var(--u));
  padding: calc(10 * var(--u)) calc(11 * var(--u)); border-radius: calc(8 * var(--u));
  background: #E3F4E9; border: 1px solid #9ED9B5; font-size: calc(11 * var(--u)); font-weight: 800; color: var(--ink);
}
.flow__step b { display: block; font-size: calc(7 * var(--u)); color: #0F9D4A; margin-bottom: calc(6 * var(--u)); }
.flow__link {
  position: absolute; left: calc(var(--x) * var(--u)); top: calc(25 * var(--u)); width: calc(27 * var(--u)); height: calc(2 * var(--u));
  background: #1FB25A; transform-origin: left;
  transform: scaleX(clamp(0, calc((var(--p) - var(--d)) / .06), 1));
}
.job { width: calc(493 * var(--u)); height: calc(47 * var(--u)); border-radius: calc(8 * var(--u)); background: #F1F3F7; }
.job__ok { position: absolute; left: calc(14 * var(--u)); top: calc(15 * var(--u)); width: calc(17 * var(--u)); height: calc(17 * var(--u)); border-radius: 50%; background: #12A150; }
.job__ok::after { content: ""; position: absolute; left: 34%; top: 22%; width: 26%; height: 44%; border: solid #fff; border-width: 0 calc(2 * var(--u)) calc(2 * var(--u)) 0; transform: rotate(45deg); }
.job b { position: absolute; left: calc(39 * var(--u)); top: calc(10 * var(--u)); font-size: calc(10.2 * var(--u)); font-weight: 800; color: var(--ink); white-space: nowrap; }
.job small { position: absolute; left: calc(39 * var(--u)); top: calc(27 * var(--u)); font-size: calc(7.2 * var(--u)); color: #5B6575; white-space: nowrap; }
.job em { position: absolute; right: calc(17 * var(--u)); top: calc(18 * var(--u)); font-style: normal; font-size: calc(8.6 * var(--u)); font-weight: 800; color: #0F9D4A; }

/* ---- n8n: nodes + edges ---- */
.edges { width: calc(543 * var(--u)); height: calc(384 * var(--u)); overflow: visible; }
.edges path {
  fill: none; stroke: #2BD66F; stroke-width: 1.6; stroke-dasharray: 1;
  --t: clamp(0, calc((var(--p) - var(--a)) / (var(--b) - var(--a))), 1);
  stroke-dashoffset: calc(1 - var(--t));
  filter: drop-shadow(0 0 3px rgba(43,214,111,.6));
}
.node {
  width: calc(var(--w) * var(--u)); height: calc(62 * var(--u)); border-radius: calc(8 * var(--u));
  background: #102A57; border: 1px solid #2BD66F; box-shadow: 0 0 calc(14 * var(--u)) rgba(43,214,111,.22);
}
.node::before, .node::after { content: ""; position: absolute; top: 50%; width: calc(5 * var(--u)); height: calc(5 * var(--u)); margin-top: calc(-2.5 * var(--u)); border-radius: 50%; background: #C9F5DA; }
.node::before { left: calc(-3 * var(--u)); }
.node::after { right: calc(-3 * var(--u)); }
.node b { position: absolute; left: calc(12 * var(--u)); top: calc(14 * var(--u)); font-size: calc(9.4 * var(--u)); font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: calc(6 * var(--u)); }
.node b::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #2BD66F; }
.node small { position: absolute; left: calc(12 * var(--u)); top: calc(37 * var(--u)); font-size: calc(7.4 * var(--u)); color: #A9B6C9; white-space: nowrap; }
.exec {
  width: calc(493 * var(--u)); height: calc(27 * var(--u)); padding-left: calc(14 * var(--u)); display: flex; align-items: center;
  border-radius: calc(6 * var(--u)); background: rgba(31,178,90,.08); border: 1px solid #1E5A3C;
  font-size: calc(7.4 * var(--u)); font-weight: 800; color: #2BD66F; white-space: nowrap;
}

/* ---- WhatsApp: handset chat ---- */
.handset { border-radius: calc(26 * var(--u)); background: #0A1630; border: 1px solid #22365F; overflow: hidden;
  box-shadow: 0 calc(28 * var(--u)) calc(56 * var(--u)) calc(-20 * var(--u)) rgba(0,0,0,.6); }
.handset__top { height: calc(56 * var(--u)); background: #10224A; border-bottom: 1px solid #1B2F58; position: relative; }
.handset__top b { font-size: calc(10.4 * var(--u)); font-weight: 800; }
.avatar { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: #12A150; display: grid; place-items: center; font-size: calc(7 * var(--u)); font-weight: 800; }
.online { font-size: calc(6.4 * var(--u)); color: #3DD68A; font-weight: 600; }
.online::before { content: "\25CF  "; }
.msg { margin: 0; width: calc(172 * var(--u)); padding: calc(8 * var(--u)) calc(9 * var(--u)); border-radius: calc(7 * var(--u)); font-size: calc(7.8 * var(--u)); line-height: 1.5; }
.msg--in { width: calc(160 * var(--u)); background: #18305E; color: #E4EBF5; }
.msg--out { background: #12823F; color: #F1FFF6; }
.msg--out time { display: block; text-align: right; font-size: calc(6 * var(--u)); opacity: .8; margin-top: calc(2 * var(--u)); }
.msg--card { background: rgba(31,178,90,.1); border: 1px solid #2B8F57; color: #A9B6C9; }
.msg--card b { display: block; color: #3DD68A; font-size: calc(8.4 * var(--u)); margin-bottom: calc(4 * var(--u)); }
.composer { width: calc(207 * var(--u)); height: calc(24 * var(--u)); border-radius: 99px; background: #15284C; display: flex; align-items: center; padding-left: calc(11 * var(--u)); font-size: calc(6.8 * var(--u)); color: #7F90A8; }
.wire-link { width: calc(45 * var(--u)); height: 1px; background: #1F6B45; }
.wire-link::before { content: ""; position: absolute; left: calc(-2 * var(--u)); top: calc(-2.5 * var(--u)); width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; background: #2BD66F; }
.side { width: calc(223 * var(--u)); height: calc(47 * var(--u)); padding: calc(9 * var(--u)) calc(12 * var(--u)); border-radius: calc(6 * var(--u)); background: #10224A; border: 1px solid #22365F; }
.side small { display: block; font-size: calc(6.4 * var(--u)); font-weight: 800; color: #3DD68A; text-transform: uppercase; letter-spacing: .04em; }
.side b { display: block; margin-top: calc(5 * var(--u)); font-size: calc(10 * var(--u)); font-weight: 800; }

/* ---- Telegram: chart ---- */
.tg-head { height: calc(42 * var(--u)); border-bottom: 1px solid #1B2F58; position: relative; }
.tg-icon { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: #2F80ED; display: grid; place-items: center; }
.tg-icon svg { width: 60%; }
.tg-head b { font-size: calc(9.4 * var(--u)); font-weight: 800; }
.tg-head small { font-size: calc(6.2 * var(--u)); color: #8FA0B8; }
.tg-cmd { width: calc(112 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(6 * var(--u)); background: #2563C9; display: grid; place-items: center; font-size: calc(8 * var(--u)); font-weight: 700; }
.chart { width: calc(422 * var(--u)); height: calc(193 * var(--u)); border-radius: calc(8 * var(--u)); background: #12295A; border: 1px solid #22365F; }
.chart b { font-size: calc(9.4 * var(--u)); font-weight: 800; white-space: nowrap; }
.chart small { font-size: calc(6.4 * var(--u)); color: #8FA0B8; }
.chart__svg { width: 100%; height: 100%; overflow: visible; }
.chart__grid { stroke: rgba(255,255,255,.07); stroke-width: 1; fill: none; }
.chart__line, .chart__fill, .chart__dot, .chart__num { --a: .4; --b: .76; --t: clamp(0, calc((var(--p) - var(--a)) / (var(--b) - var(--a))), 1); }
.chart__line { fill: none; stroke: #2BD66F; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t)); }
.chart__fill { opacity: var(--t); }
.chart__dot { fill: #2BD66F; stroke: #fff; stroke-width: 1.5; opacity: clamp(0, calc((var(--t) - .95) * 20), 1); filter: drop-shadow(0 0 4px #2BD66F); }
@property --num { syntax: "<integer>"; inherits: false; initial-value: 0; }
.chart__num { font-size: calc(14 * var(--u)); font-weight: 800; color: #2BD66F; }
.chart__num span { --num: calc(var(--t) * 142); counter-reset: n var(--num); }
.chart__num span::after { content: counter(n); }
.tg-btn { width: calc(137 * var(--u)); height: calc(30 * var(--u)); border-radius: calc(6 * var(--u)); display: grid; place-items: center; font-size: calc(7.8 * var(--u)); font-weight: 700; background: #10224A; border: 1px solid #22365F; }
.tg-btn--go { background: #12A150; border-color: #12A150; }

/* ---- Android ---- */
.and-status { font-size: calc(7 * var(--u)); font-weight: 700; }
.and-status--r { color: #3DD68A; }
.and-title { font-size: calc(12 * var(--u)); font-weight: 800; }
.and-stat { width: calc(var(--w) * var(--u)); height: calc(53 * var(--u)); padding: calc(10 * var(--u)); border-radius: calc(7 * var(--u)); background: #12295A; border: 1px solid #22365F; }
.and-stat small { display: block; font-size: calc(6 * var(--u)); font-weight: 800; color: #8FA0B8; text-transform: uppercase; letter-spacing: .04em; }
.and-stat b { display: block; margin-top: calc(8 * var(--u)); font-size: calc(11.6 * var(--u)); font-weight: 800; }
.and-stat b.g { color: #2BD66F; }
.and-chart { width: calc(198 * var(--u)); height: calc(129 * var(--u)); border-radius: calc(8 * var(--u)); background: #12295A; border: 1px solid #22365F; }
.and-chart b { font-size: calc(8.4 * var(--u)); font-weight: 800; }
.and-chart i {
  position: absolute; left: calc(var(--x) * var(--u)); bottom: calc(15 * var(--u)); width: calc(18 * var(--u)); height: calc(var(--h) * var(--u));
  border-radius: calc(4 * var(--u)); background: #2A5BA8; transform-origin: bottom;
  transform: scaleY(clamp(0, calc((var(--p) - var(--d)) / .12), 1));
}
.and-chart i.hi { background: #22C55E; }
.and-push { width: calc(198 * var(--u)); height: calc(50 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(31,178,90,.1); border: 1px solid #2B8F57; }
.and-push b { display: block; font-size: calc(8 * var(--u)); color: #3DD68A; font-weight: 800; }
.and-push small { display: block; margin-top: calc(5 * var(--u)); font-size: calc(6.4 * var(--u)); color: #A9B6C9; }
.and-nav { width: calc(198 * var(--u)); height: calc(30 * var(--u)); border-radius: 99px; background: #13244A; display: flex; align-items: center; justify-content: space-around; font-size: calc(6.8 * var(--u)); font-weight: 700; }
.and-nav .on { background: #0E5A35; padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 99px; }
.stack { width: calc(220 * var(--u)); height: calc(184 * var(--u)); border-radius: calc(10 * var(--u)); background: #10224A; border: 1px solid #22365F; box-shadow: 0 calc(20 * var(--u)) calc(40 * var(--u)) calc(-16 * var(--u)) rgba(0,0,0,.5); }
.stack small { font-size: calc(6.4 * var(--u)); font-weight: 800; color: #3DD68A; text-transform: uppercase; letter-spacing: .04em; }
.stack p { margin: 0; font-size: calc(6.6 * var(--u)); color: #8FA0B8; }
.stack p b { display: block; font-size: calc(9 * var(--u)); color: #fff; margin-bottom: calc(4 * var(--u)); }
.stack p::before { content: ""; position: absolute; left: calc(-14 * var(--u)); top: calc(4 * var(--u)); width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; background: #2BD66F; }

/* ======================= OUTRO ======================= */
.lockup { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.lockup .mark { width: calc(140 * var(--u)); }
.lockup__bar { width: 2px; height: calc(68 * var(--u)); background: var(--ink); }
.lockup__word { display: block; font: 700 calc(43 * var(--u))/1 "Montserrat", sans-serif; color: var(--ink); }
.lockup__word em { font-style: normal; color: #0F9D4A; }
.lockup__tag { display: block; margin-top: calc(8 * var(--u)); font: 500 calc(12.6 * var(--u))/1 "Montserrat", sans-serif; letter-spacing: .05em; color: var(--ink); }
.outro__title { left: 0; width: 100%; text-align: center; margin: 0; font-size: calc(18 * var(--u)); font-weight: 800; letter-spacing: -.01em; }
.outro__chips { display: grid; grid-template-columns: repeat(3, calc(192 * var(--u))); gap: calc(13 * var(--u)) calc(15 * var(--u)); }
.outro__chips a {
  display: flex; align-items: center; gap: calc(10 * var(--u)); height: calc(43 * var(--u)); padding: 0 calc(16 * var(--u));
  background: #fff; border-radius: calc(8 * var(--u)); color: var(--ink); text-decoration: none; font-size: calc(10.4 * var(--u)); font-weight: 800;
  box-shadow: 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-12 * var(--u)) rgba(11,31,68,.3), 0 0 0 1px #E6EBF1;
}
.outro__chips a::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #12A150; }
@media (hover: hover) { .outro__chips a:hover { box-shadow: 0 0 0 2px #1FB25A; } }
.outro__go { left: 0; width: 100%; display: flex; justify-content: center; }
.outro__btn {
  display: inline-flex; align-items: center; gap: calc(8 * var(--u)); height: calc(38 * var(--u)); padding: 0 calc(38 * var(--u));
  border-radius: 99px; color: #fff; text-decoration: none; font-size: calc(11 * var(--u)); font-weight: 800;
  background: var(--ink); /* white on navy: 15:1 */
  box-shadow: 0 calc(14 * var(--u)) calc(28 * var(--u)) calc(-12 * var(--u)) rgba(11,31,68,.5);
  transition: transform .18s var(--ease-out);
}
.outro__btn svg { width: calc(12 * var(--u)); }
.outro__btn:active { transform: scale(.97); }

/* ======================= PHONES: generic mock fitting ======================= */
@media (max-width: 720px), (max-aspect-ratio: 4/5) {
  /* each mock is re-based to its own box (--mx/--my/--mw/--mh) and scaled to the column width */
  .svc-scene .mock { --u: calc((100cqw - 32px) / var(--mw)); height: calc(var(--mh) * var(--u)); }
  .svc-scene .mock > .abs { position: absolute; left: calc((var(--x) - var(--mx)) * var(--u)); top: calc((var(--y) - var(--my)) * var(--u)); }
  .outro .frame { align-items: center; justify-content: center; gap: 20px; }
  .lockup { gap: 10px; }
  .lockup .mark { width: 78px; }
  .lockup__bar { height: 40px; }
  .lockup__word { font-size: 26px; }
  .lockup__tag { font-size: 8.5px; margin-top: 5px; }
  .outro__title { font-size: 19px; width: auto; text-align: center; }
  .outro__chips { grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .outro__chips a { height: 46px; font-size: 13px; padding: 0 12px; gap: 8px; }
  .outro__chips a::before { width: 6px; height: 6px; }
  .outro__go { width: 100%; }
  .outro__btn { height: 50px; font-size: 15px; padding: 0 24px; gap: 8px; width: 100%; justify-content: center; }
  .outro__btn svg { width: 14px; }
}
@media (max-width: 720px) and (max-height: 760px) { .svc-scene .s-stats { display: none; } }
