/* Service pages: one scroll-driven scene per page (OTDR trace, FTTR building, WiFi coverage, IoT screen).
   Every piece reads --t (0..1) set by demo.js. The default is 1, so without JS or with reduced motion the final picture shows. */
.demo-pin{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(32px,5vw,88px);align-items:center}
.demo .intro{max-width:46ch}
.demo-steps{list-style:none;margin-top:32px;display:grid;gap:0;border-top:1px solid var(--line)}
.demo-steps li{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);transition:opacity .5s}
.demo-steps .n{font-size:13px;font-weight:600;color:var(--green);font-variant-numeric:tabular-nums;padding-top:3px}
.demo-steps h3{font-size:18px;font-weight:600;letter-spacing:-.015em}
.demo-steps p{margin-top:4px;color:var(--mute);font-size:15px;line-height:1.55}
.demo-panel{position:relative;border-radius:22px;background:radial-gradient(120% 90% at 80% 0%,rgba(30,91,255,.10),transparent 60%),radial-gradient(90% 80% at 0% 100%,rgba(53,234,82,.06),transparent 60%),var(--ink2);border:1px solid var(--line);padding:clamp(16px,2.4vw,32px)}
.demo-panel svg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--sans)}
/* svg pieces */
.demo .dg{stroke:rgba(255,255,255,.05);stroke-width:1}
.demo .dax{fill:none;stroke:rgba(255,255,255,.28);stroke-width:1.2}
.demo .dl{fill:rgba(236,240,244,.62);font-size:13px;letter-spacing:-.005em}
.demo .dl.b{fill:var(--white);font-weight:600}.demo .dl.s{font-size:12px;fill:rgba(236,240,244,.5)}
.demo .dl.ok,.demo .dl.b.ok{fill:#35EA52}.demo .dl.b.warn{fill:#F5C04B}.demo .dl.b.al,.demo .dl.b.al2{fill:#FF6B6B}
.demo .dtr{fill:none;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(42,168,201,.45))}
.demo .dev{fill:var(--ink2);stroke:#35EA52;stroke-width:2}.demo .dev2{fill:#35EA52}
.demo .dok{fill:#35EA52}
.demo .dcur{stroke:rgba(53,234,82,.55);stroke-width:1.2;stroke-dasharray:3 4}
.demo .dbox{fill:rgba(255,255,255,.03);stroke:rgba(255,255,255,.22)}
.demo .dslab{stroke:rgba(255,255,255,.16);stroke-width:1.2}
.demo .dfb{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.demo .dfb.thin{stroke-width:2}
.demo .droom{fill:rgba(255,255,255,.025);stroke:rgba(255,255,255,.16)}
.demo .droom-on{fill:rgba(53,234,82,.09);stroke:rgba(53,234,82,.55)}
.demo .dnode{fill:#35EA52}
.demo .dwifi{fill:none;stroke:var(--white);stroke-width:1.8;stroke-linecap:round}
.demo .dplan{fill:rgba(255,255,255,.02);stroke:rgba(255,255,255,.2)}.demo .dplan.out{stroke-dasharray:4 5}
.demo .dwall{stroke:rgba(255,255,255,.16);stroke-width:1.2}
.demo .dap{fill:var(--ink2);stroke:var(--white);stroke-width:2}
.demo .dguest{fill:#4D86FF}.demo .dstaff{fill:#35EA52}
.demo .dwarn{fill:rgba(245,192,75,.14);stroke:#F5C04B}
.demo .dalarm{fill:rgba(255,107,107,.16);stroke:#FF6B6B}.demo .dalarm2{fill:#FF6B6B}
.demo .drow{fill:rgba(255,255,255,.03);stroke:rgba(255,255,255,.12)}
.demo .drow.warn{stroke:rgba(245,192,75,.45)}.demo .drow.al,.demo .drow.al2{stroke:rgba(255,107,107,.5);fill:rgba(255,107,107,.05)}.demo .drow.ok{stroke:rgba(53,234,82,.35)}
/* driven by --t */
.demo .d-draw{stroke-dasharray:1 1;stroke-dashoffset:calc(1 - var(--t,1))}
.demo .d-fade{opacity:var(--t,1)}
.demo .d-out{opacity:calc(1 - var(--t,1))}
.demo .d-pop{opacity:var(--t,1);transform:scale(calc(.5 + .5*var(--t,1)));transform-box:fill-box;transform-origin:center}
.demo .d-grow{opacity:min(1,calc(var(--t,1)*2));transform:scale(var(--t,1));transform-box:fill-box;transform-origin:center}
.demo .d-row{opacity:var(--t,1);transform:translateY(calc((1 - var(--t,1))*14px))}
.demo .d-sweep{transform:translateX(calc(var(--t,1)*var(--w)));opacity:calc(1 - var(--t,1)*var(--t,1))}
.demo .pulse{animation:dPulse 1.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes dPulse{50%{transform:scale(1.35);opacity:.55}}
/* scroll pin (only with the script running and enough height) */
html.dm-on .demo{height:calc(var(--dmh,260) * 1vh);padding-bottom:0}
html.dm-on .demo-pin{position:sticky;top:calc(88px + 2vh);min-height:calc(100vh - 88px - 4vh)}
html.dm-on .demo-steps li{opacity:.7}
html.dm-on .demo-steps li.on{opacity:1}
html.dm-on .demo-steps li.on .n{text-shadow:0 0 14px rgba(53,234,82,.6)}
@media (max-width:900px){
  .demo-pin{grid-template-columns:1fr;gap:20px}
  html.dm-on .demo-pin{top:calc(var(--navh,72px) + 8px);min-height:0;align-content:start}
  html.dm-on .demo .intro{display:none}
  html.dm-on .demo-steps{margin-top:0;grid-template-areas:"s";border:0}
  html.dm-on .demo-steps li{grid-area:s;opacity:0;border:0;padding:4px 0 0;transition:opacity .35s}
  html.dm-on .demo-steps li.on{opacity:1}
  .demo-txt{display:contents}
  .demo-txt .kick{order:1}.demo-txt h2{order:2}.demo-txt .intro{order:3}.demo-panel{order:4}.demo-steps{order:5}
  .demo-panel{padding:12px;border-radius:16px}
  .demo .dl{font-size:21px}.demo .dl.s{font-size:19px}
  .demo .dl.dd{display:none}
}
@media (prefers-reduced-motion:reduce){.demo .pulse{animation:none}}
/* big screens: the page is zoomed, so the pin uses the visual height */
@media (min-width:2200px){html.dm-on .demo-pin{top:calc(88px + 2vh/1.3);min-height:calc(100vh/1.3 - 88px - 4vh/1.3)}}
@media (min-width:2880px){html.dm-on .demo-pin{top:calc(88px + 2vh/1.6);min-height:calc(100vh/1.6 - 88px - 4vh/1.6)}}
@media (min-width:3400px){html.dm-on .demo-pin{top:calc(88px + 1vh);min-height:calc(50vh - 88px - 2vh)}}
/* ICT, VoIP, Rack, GPS, 24/7 scenes */
.demo .dplanl{fill:none;stroke:rgba(255,255,255,.14);stroke-width:1.4;stroke-dasharray:4 5}
.demo .dplanb{fill:none;stroke:rgba(255,255,255,.22);stroke-dasharray:4 5}
.demo .dnodebox{fill:#141a22;stroke:rgba(255,255,255,.3)}
.demo .dbox.on{fill:rgba(53,234,82,.08);stroke:rgba(53,234,82,.5)}
.demo .dzone{stroke-width:1.4;stroke-dasharray:6 5}
.demo .dzone.zu{fill:rgba(77,134,255,.07);stroke:#4D86FF}.demo .dl.b.zu{fill:#7EA6FF}
.demo .dzone.zg{fill:rgba(53,234,82,.06);stroke:#35EA52}.demo .dl.b.zg{fill:#35EA52}
.demo .dzone.zd{fill:rgba(245,192,75,.06);stroke:#F5C04B}.demo .dl.b.zd{fill:#F5C04B}
.demo .dlock{fill:#35EA52}.demo .dlockarc{fill:none;stroke:#35EA52;stroke-width:2.6}
.demo .dphone{fill:#35EA52}
.demo .dring{fill:none;stroke:#35EA52;stroke-width:2;stroke-linecap:round}
.demo .dqueue{fill:#F5C04B}
.demo .drack{fill:rgba(255,255,255,.02);stroke:rgba(255,255,255,.28);stroke-width:1.4}
.demo .dg2{stroke:rgba(255,255,255,.18)}
.demo .dmess{fill:none;stroke-width:2.2;opacity:.75}
.demo .du{fill:#161c25;stroke:rgba(255,255,255,.22)}.demo .du.cm{fill:rgba(255,255,255,.05)}.demo .du.ups{fill:#12171e}
.demo .dport{fill:#0b0f14;stroke:rgba(255,255,255,.22)}
.demo .dcord{fill:none;stroke-width:2.4;stroke-linecap:round}
.demo .dled{fill:#35EA52}
.demo .dlead{stroke:rgba(53,234,82,.5);stroke-width:1.2}
.demo .disland{fill:rgba(255,255,255,.04);stroke:rgba(255,255,255,.28);stroke-width:1.4}
.demo .droad{fill:none;stroke:rgba(255,255,255,.16);stroke-width:5;stroke-linecap:round}
.demo .dplace{fill:rgba(236,240,244,.7)}
.demo .dtrail{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.demo .dveh{stroke:#0b0f14;stroke-width:2}
.demo .dtrack{fill:rgba(255,255,255,.04);stroke:rgba(255,255,255,.12)}
.demo .dup{fill:none;stroke-width:10;stroke-linecap:round}
.demo .dcheck{fill:rgba(53,234,82,.12);stroke:#35EA52;stroke-width:1.6}
.demo .dtick{fill:none;stroke:#35EA52;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.demo .dwarn2{fill:#F5C04B}
.demo .d-move{transform:translate(calc(var(--t,1)*var(--dx)),calc(var(--t,1)*var(--dy)))}
/* jury round 5: scroll length in visual height on zoomed big screens; the active step is clearly marked */
@media (min-width:2200px){html.dm-on .demo{height:calc(var(--dmh,280)*1vh/1.3)}}
@media (min-width:2880px){html.dm-on .demo{height:calc(var(--dmh,280)*1vh/1.6)}}
@media (min-width:3400px){html.dm-on .demo{height:calc(var(--dmh,280)*.5vh)}}
@media (min-width:901px){
  html.dm-on .demo-steps li{opacity:.7;position:relative}
  html.dm-on .demo-steps li.on h3{color:#fff}html.dm-on .demo-steps li.on{opacity:1}
  html.dm-on .demo-steps li::before{content:"";position:absolute;left:-18px;top:16px;bottom:16px;width:2px;background:var(--grad);transform:scaleY(0);transform-origin:top;transition:transform .6s cubic-bezier(.16,1,.3,1)}
  html.dm-on .demo-steps li.on::before{transform:scaleY(1)}
}
/* jury round 5: bigger scene type; phones get a full-bleed panel, a centred pin and a shorter scroll */
@media (min-width:901px){
  .demo-pin{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
  .demo .dl{font-size:14.5px}
  .demo .dl.s{font-size:13px;fill:rgba(236,240,244,.66)}
}
@media (max-width:900px){
  .demo-panel{margin-inline:calc(-1*var(--pad));border-radius:0;border-inline:0;padding:10px 6px}
  .demo .dl{font-size:23px}.demo .dl.s{font-size:21px}
  html.dm-on .demo-pin{top:calc(var(--navh,60px) + 4px);min-height:calc(100svh - var(--navh,60px) - 82px);align-content:center}
}
/* round 5b: inactive steps dim the title, keep the text readable */
html.dm-on .demo-steps li,html.dm-on .demo-steps li.on{opacity:1}
html.dm-on .demo-steps li:not(.on) h3{color:rgba(236,240,244,.62)}
html.dm-on .demo-steps li:not(.on) p{color:rgba(236,240,244,.58)}
@media (max-width:900px){html.dm-on .demo-steps li{opacity:0}html.dm-on .demo-steps li.on{opacity:1}}
/* live layer: looping motion once a part of the scene is built (demo.js). Hidden without JS and under reduced motion. */
.demo .dlive{opacity:0;transition:opacity .6s;pointer-events:none}
.demo .dlive.on{opacity:1}
.demo [data-lo]{transition:opacity .6s}.demo [data-lo].lo{opacity:0}
.demo:not(.vis) .pulse{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.demo .dlive{display:none}}
.demo .dl.dm{display:none}
@media (max-width:900px){.demo .dl.dm{display:inline}}
