/* Products. One pinned stage; the three products take turns in one panel.
   Fixed for every product: the panel, the turns, the name block and Learn more, so the page stays Nodeflux.
   Free per product: its colours and how its picture and four values are laid out. */

.pp { overflow-x:clip; --pp-gut:clamp(20px,6vw,88px); --pp-top:clamp(72px,9vh,92px); position:relative; background:#fff; pointer-events:auto; }
/* the decade line sits over the city's last stretch: the stage overlaps the end of the city and stays see-through until the panel opens */
html.enhanced .pp.pp-live { margin-top:-200vh; background:transparent; }
.pp-track { position:relative; height:800vh; }
.pp-stage { position:sticky; top:0; height:100vh; min-height:620px; display:flex; flex-direction:column; gap:2.2vh; padding:var(--pp-top) var(--pp-gut) 3vh; }

/* which product has the stage */
.pp-turns { display:flex; justify-content:center; align-items:center; gap:36px; }
.pp-turns button { all:unset; cursor:pointer; padding:4px 0; border-bottom:2px solid transparent; font-size:15px; font-weight:500; letter-spacing:.01em; color:var(--ink); opacity:.65; transition:opacity .3s, border-color .3s; }
.pp-turns button:hover { opacity:.85; }
.pp-turns button[aria-current="true"] { opacity:1; border-bottom-color:currentColor; }
.pp-turns button:focus-visible { outline:2px solid var(--ink); outline-offset:4px; border-radius:2px; }

/* the panel */
.pp-panels { position:relative; flex:1; min-height:0; }
.pp-panel { position:absolute; inset:0; display:grid; grid-template-columns:minmax(0,34%) minmax(0,1fr); gap:3vw; padding:4.4vh 3vw; border-radius:32px; overflow:hidden; background:var(--bg); color:#fff;
  opacity:0; visibility:hidden; transform:scale(.985); transition:opacity .55s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), visibility 0s .55s; }
.pp-panel.is-on { opacity:1; visibility:visible; transform:none; transition:opacity .55s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.pv { --bg:#120B24; --acc:#A78BFA; --acc-ink:#1A0F33; --line:rgba(167,139,250,.3); }
.pa { --bg:#0F3A26; --acc:#D6F26A; --acc-ink:#173A27; --line:rgba(214,242,106,.3); }
.pt { --bg:#0A1621; --acc:#5FE1E6; --acc-ink:#052226; --line:rgba(95,225,230,.3); --alarm:#F2A541; }
/* the name is white with the mark in the accent; amber stays only for alarms (decision 2026-11-30: amber on black read like another brand) */
.pt .pp-name { color:var(--tw-ink); display:flex; align-items:center; gap:.2em; }
.pt .pp-name svg { width:.66em; height:.66em; flex:none; color:var(--acc); }
/* with the mark the name is wider: keep the pair as wide as the bare name was, clear of the clip at 34% */
@media (min-width:821px) { .pt .pp-name { gap:.16em; font-size:clamp(40px, min(8.6vh, 4.8vw), 102px); } }
.pp-panel ::selection { background:var(--acc); color:var(--acc-ink); }

/* the name block: same place and size for every product */
.pp-copy { position:relative; z-index:3; align-self:start; margin-top:7vh; }
.pp-name { margin:0; font-size:clamp(52px,10.5vh,124px); font-weight:600; letter-spacing:-.04em; line-height:.92; color:var(--acc); }
.pp-by { display:flex; align-items:center; gap:8px; margin-top:1.6vh; font-size:14px; color:rgba(255,255,255,.72); }
.pp-by img { height:16px; width:auto; filter:invert(1) brightness(2); }
.pp-lead { margin:2.4vh 0 3.2vh; max-width:22ch; font-size:clamp(19px,2.8vh,28px); line-height:1.2; letter-spacing:-.02em; text-wrap:balance; }
.pp-more { display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:0 24px; border-radius:999px; background:var(--acc); color:var(--acc-ink); font-weight:600; font-size:15px; text-decoration:none; }
.pp-more svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; transition:transform .3s cubic-bezier(.2,.7,.2,1); }
.pp-more:hover svg { transform:translateX(3px); }
.pp-more:focus-visible { outline:2px solid #fff; outline-offset:3px; }

/* ---------- VisionAIre: a camera monitor ---------- */
.pv-feed { position:absolute; inset:0; }
.pv-feed img { width:100%; height:100%; object-fit:cover; object-position:center 60%; }
.pv-feed::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(18,11,36,.96) 0%, rgba(18,11,36,.86) 30%, rgba(18,11,36,.2) 55%, rgba(18,11,36,0) 70%), linear-gradient(0deg, rgba(18,11,36,.9), rgba(18,11,36,0) 26%); }
.pv-hud { position:absolute; z-index:2; left:3vw; right:3vw; bottom:3.4vh; margin:0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(6,1fr); border-top:1px solid var(--line); }
.pv-hud li { display:grid; gap:4px; align-content:start; padding:14px 14px 0 0; }
.pv-hud li + li { padding-left:14px; border-left:1px solid var(--line); }
.pv-hud b { font:500 clamp(13px,1.9vh,17px)/1.25 ui-monospace,"SF Mono",Menlo,monospace; letter-spacing:.02em; text-transform:uppercase; color:var(--acc); }
.pv-hud span { font-size:13px; line-height:1.35; color:rgba(255,255,255,.72); }

/* ---------- Athena: people and their agents around the team ---------- */
.pa-values { position:absolute; z-index:3; left:3vw; bottom:3.4vh; width:calc(34% + 1vw); display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pa-v { position:relative; display:grid; align-content:start; gap:2px; min-height:clamp(84px,12.5vh,112px); padding:12px 70px 12px 14px; border-radius:20px; color:#16261C; overflow:hidden; }
.pa-v b { font-size:clamp(14px,2vh,17px); font-weight:600; letter-spacing:-.02em; line-height:1.1; }
.pa-v span { font-size:12px; line-height:1.3; color:#46534A; }
.pa-v img { position:absolute; right:-4px; bottom:-6px; height:78%; width:auto; }
.pa-v.lime { background:#D6F26A; } .pa-v.lav { background:#EEE8FD; } .pa-v.peach { background:#FDE9D6; } .pa-v.mint { background:#E3F3EC; }
.pa .pp-copy { margin-top:3vh; }
.pa .pp-lead { margin:1.8vh 0 2.4vh; }

/* the composition is one box with a fixed shape, scaled as a whole, so it keeps its layout at every size */
.pa-orbit { position:absolute; left:calc(34% + 3vw); right:0; top:0; bottom:0; container-type:size; }
.pa-comp { position:absolute; right:0; bottom:0; aspect-ratio:1.05; height:min(100cqh, calc(100cqw / 1.05)); container-type:size; }
.pa-scene { position:absolute; height:96%; width:auto; max-width:none; right:-13%; bottom:-8%;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 20%), linear-gradient(180deg,transparent 0,#000 24%); -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0,#000 20%), linear-gradient(180deg,transparent 0,#000 24%); mask-composite:intersect; }
.pa-title { position:absolute; z-index:4; margin:0; transform:translate(-50%,-50%); text-align:center; white-space:nowrap; font-size:max(18px,5.5cqh); font-weight:600; line-height:1.08; letter-spacing:-.03em; color:#fff; }
.pa-title span { display:inline-block; margin-top:6px; padding:0 .22em .04em; border-radius:14px; background:#C6B4F8; color:#173A27; }
.pa-o { position:absolute; z-index:3; width:6.8cqh; aspect-ratio:1; object-fit:cover; object-position:top; border-radius:50%; transform:translate(-50%,-50%); background:#F7F4EC; box-shadow:0 10px 24px -10px rgba(0,0,0,.5); }
.pa-o.h { border:3px solid #fff; } .pa-o.a { border:3px solid #D6F26A; background:#EEE8FD; }
.pa-convo { position:absolute; z-index:6; left:0; top:39%; width:40%; display:grid; gap:1.4cqh; }
.pa-line { display:flex; align-items:flex-end; gap:1.4cqh; }
.pa-line img { width:9.6cqh; aspect-ratio:1; flex:none; border-radius:50%; object-fit:cover; object-position:top; box-shadow:0 0 0 4px rgba(214,242,106,.3), 0 8px 26px -6px rgba(214,242,106,.4); }
.pa-line.ag img { border:3px solid #D6F26A; background:#EEE8FD; }
.pa-line.hu { justify-content:flex-end; }
.pa-line.hu img { border:3px solid #fff; background:#FDE9D6; }
.pa-line p { margin:0; padding:1.4cqh 1.9cqh; border-radius:2.5cqh; font-size:max(11px,2.05cqh); line-height:1.35; color:#16261C; box-shadow:0 14px 30px -14px rgba(0,0,0,.6); }
.pa-line b { display:block; margin-bottom:2px; font-size:max(10px,1.65cqh); font-weight:600; }
.pa-line.ag p { background:#EEE8FD; border-bottom-left-radius:4px; } .pa-line.ag b { color:#6A48DE; }
.pa-line.hu p { background:#fff; border-bottom-right-radius:4px; } .pa-line.hu b { color:#1F4A31; }

/* ---------- VisionAIre: a few cards float over the feed ---------- */
.pv-feed::after { background:linear-gradient(90deg, rgba(18,11,36,.96) 0%, rgba(18,11,36,.82) 28%, rgba(18,11,36,.1) 52%, rgba(18,11,36,0) 70%), linear-gradient(0deg, rgba(18,11,36,.92), rgba(18,11,36,0) 24%); }
/* The cards sit in two columns on the right of the picture, laid out by the grid, and everything in them is in em, so the group
   scales with the panel and keeps its shape. The size follows the narrower of the width and the height. */
.pv-float { position:absolute; z-index:2; left:36%; right:3vw; top:9%; bottom:22%; pointer-events:none; display:grid; grid-template-columns:repeat(2, 17.5em); justify-content:end; align-content:center; column-gap:1.1em;
  font-size:clamp(10px, min(1.12vw, calc((100vh - 130px) * .0215)), 17px); }
.vc-col { display:grid; gap:1.1em; align-content:start; }
.vc-col.b { padding-top:2.6em; }
.vc { border-radius:1em; background:rgba(26,18,48,.92); border:1px solid rgba(167,139,250,.28); box-shadow:0 2em 4em -1.6em rgba(0,0,0,.75); color:#ece8f7; padding:.72em; min-width:0; }
.vc b { display:block; font-size:1.04em; font-weight:600; line-height:1.25; }
.vc span { font-size:.86em; color:#a59cc3; }
.vc b.ok { color:#4ade80; }
.vc .mono { font:500 .8em ui-monospace,"SF Mono",Menlo,monospace; letter-spacing:.04em; color:#a59cc3; white-space:nowrap; }
.vc svg { width:1.05em; height:1.05em; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }   /* line icons */
/* the two clips: real VisionAIre footage, playing in the card */
.vc-thumb { position:relative; border-radius:.65em; overflow:hidden; aspect-ratio:16/9; background:#0a0616; }   /* CCTV: 16:9 on every screen */
.vc-thumb video { width:100%; height:100%; object-fit:cover; display:block; }
.vc-cam { position:absolute; left:.45em; top:.45em; display:inline-flex; align-items:center; gap:.45em; padding:.22em .6em; border-radius:99px; background:rgba(10,6,22,.78); color:#fff !important; font:500 .8em ui-monospace,Menlo,monospace !important; white-space:nowrap; }
.vc-cam i { width:.45em; height:.45em; border-radius:50%; background:#4ade80; }
.vc-body { margin:.6em .2em 0; }
.vc-title b { white-space:nowrap; } .vc-title span { display:block; }
/* the two app cards, in the shape of the VisionAIre app's own: Statistics' total people and Stream Detail's recent events */
.vc-total, .vc-event { padding:.95em 1em; }
.vc-h { display:flex; align-items:center; gap:.5em; color:#fff; }
.vc-h svg { color:#8b5cf6; }
.vc .vc-sub { display:block; margin-top:.2em; font-size:.82em; }
.vc-total-n { margin:.45em 0 .15em; font:500 1.35em/1.1 "Inter Tight", system-ui, sans-serif; font-variant-numeric:tabular-nums; color:#ece8f7; }   /* calm: a step above the text, not a headline */
.vc-in-now { margin-left:auto; display:inline-flex; align-items:center; gap:.4em; padding:.15em .55em; border-radius:99px; background:rgba(74,222,128,.14); color:#4ade80 !important; font-size:.76em !important; font-weight:500; white-space:nowrap; }
.vc-in-now i { width:.45em; height:.45em; border-radius:50%; background:#4ade80; }
/* the hourly chart, in the colours of the earlier people-counting chart: the running hour solid */
.vc .vc-chart { width:100%; height:2.9em; margin-top:.7em; overflow:visible; }
.vc-chart path { fill:rgba(167,139,250,.45); stroke:none; } .vc-chart path.now { fill:#A78BFA; }
.vc-axis { display:flex; justify-content:space-between; margin-top:.4em; }
.vc .vc-axis span { font:500 .7em ui-monospace,"SF Mono",Menlo,monospace; color:#8f86ad; letter-spacing:.02em; }
.live-dot { width:.55em; height:.55em; border-radius:50%; background:#4ade80; flex:none; }
.vc-live { margin-left:auto; padding:.1em .55em; border:1px solid rgba(255,255,255,.3); border-radius:.4em; font-size:.76em !important; color:#fff !important; }
.vc-ev { display:grid; grid-template-columns:4em 1fr; align-items:center; gap:.7em; margin-top:.8em; padding-left:.55em; border-left:2px solid #6366f1; }
.vc-ev img { width:4em; height:4em; border-radius:.45em; object-fit:cover; display:block; }
.vc-ev > div { min-width:0; display:grid; gap:.18em; align-content:start; }
.vc-ev b { display:flex; align-items:center; gap:.4em; white-space:nowrap; overflow:hidden; }
.vc-ev span { font-size:.76em; color:#d9d3ee; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pv-hud b { text-transform:none; }

/* ---------- Twinverse: one timeline over the whole site ---------- */
.pt { --tw-ink:#e6edf1; --tw-dim:#93a4af; --tw-line:#1d3040; --tw-panel:#0f1e2b; }
.pt-world { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 55%; }
.pt::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg, rgba(10,22,33,.97) 0%, rgba(10,22,33,.88) 30%, rgba(10,22,33,.15) 58%, rgba(10,22,33,0) 75%), linear-gradient(0deg, rgba(10,22,33,.98) 0%, rgba(10,22,33,.85) 26%, rgba(10,22,33,0) 52%); }
.pt-rec { position:absolute; z-index:3; right:18px; top:18px; display:inline-flex; align-items:center; gap:8px; padding:5px 10px; border-radius:99px; background:rgba(6,14,21,.8); border:1px solid var(--tw-line); color:var(--tw-ink); font:11px ui-monospace,Menlo,monospace; letter-spacing:.04em; }
.pt-rec em { width:7px; height:7px; border-radius:50%; background:var(--acc); }
.pt-time { position:absolute; z-index:3; left:3vw; right:3vw; bottom:3vh; }
.pt-marks { position:relative; height:clamp(96px,14vh,128px); }
.pt-marks figure { position:absolute; bottom:0; margin:0; transform:translateX(-50%); display:grid; justify-items:center; gap:6px; }
.pt-marks img { width:clamp(120px,10vw,150px); aspect-ratio:16/10; object-fit:cover; border-radius:8px; border:1px solid var(--tw-line); opacity:.72; }
.pt-marks figcaption { font:11.5px ui-monospace,Menlo,monospace; color:var(--tw-dim); white-space:nowrap; }
.pt-marks figure.on { z-index:2; }
.pt-marks figure.on img { opacity:1; border-color:var(--acc); box-shadow:0 0 0 3px rgba(95,225,230,.25); transform:scale(1.08); }
.pt-marks figure.on figcaption { color:var(--acc); }
.pt-alarm { position:absolute; left:50%; bottom:calc(100% + 14px); transform:translateX(-50%); width:clamp(260px,22vw,310px); padding:12px 14px; border-radius:12px; background:rgba(15,28,40,.95); border:1px solid rgba(242,165,65,.45); box-shadow:0 18px 40px -18px rgba(0,0,0,.85); text-align:left; }
.pt-alarm::after { content:""; position:absolute; left:50%; bottom:-7px; width:12px; height:12px; margin-left:-6px; background:inherit; border-right:1px solid rgba(242,165,65,.45); border-bottom:1px solid rgba(242,165,65,.45); transform:rotate(45deg); }
.pt-alarm .warn { display:inline-block; padding:2px 8px; border-radius:4px; background:var(--alarm); color:#1B1204; font:600 10.5px ui-monospace,Menlo,monospace; letter-spacing:.06em; text-transform:uppercase; }
.pt-alarm > p { margin:7px 0 3px; font-size:15px; font-weight:600; line-height:1.25; color:var(--tw-ink); }
.pt-alarm > span { font:11.5px ui-monospace,Menlo,monospace; color:var(--tw-dim); }
.pt-hits { margin:10px 0 0 !important; padding-top:9px; border-top:1px solid var(--tw-line); font:12px ui-monospace,Menlo,monospace; color:var(--tw-ink); }
.pt-hits em { display:block; margin-bottom:3px; font-style:normal; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:#b5d96b; }
.pt-bar { display:flex; align-items:center; gap:14px; margin-top:14px; }
.pt-btn { padding:7px 12px; border-radius:6px; border:1px solid var(--tw-line); background:var(--tw-panel); color:var(--tw-ink); font:12px ui-monospace,Menlo,monospace; white-space:nowrap; }
.pt-track { position:relative; flex:1; height:10px; border-radius:5px; background:linear-gradient(90deg, rgba(95,225,230,.25), rgba(95,225,230,.55)); }
.pt-track .tick { position:absolute; top:-5px; width:2px; height:20px; margin-left:-1px; background:var(--tw-dim); }
.pt-track .head { position:absolute; z-index:2; top:-9px; width:4px; height:28px; margin-left:-2px; border-radius:2px; background:var(--acc); box-shadow:0 0 14px rgba(95,225,230,.8); }
.pt-clock { font:500 15px ui-monospace,Menlo,monospace; color:var(--acc); font-variant-numeric:tabular-nums; }
.pt-note { margin:10px 0 0; font-size:13.5px; color:var(--tw-dim); }

/* tablets and small laptops: the left column is narrow */
@media (min-width:821px) and (max-width:1180px) {
  .pa-v span { display:none; } .pa-v { min-height:clamp(64px,9vh,84px); padding-right:58px; } .pa-v img { height:70%; }
  .pv-hud span { display:none; } .pv-hud { grid-template-columns:repeat(3,1fr); } .pv-hud li:nth-child(4) { padding-left:0; border-left:0; } .pv-hud li:nth-child(n+4) { margin-top:8px; }
}

/* phones: name block on top, the product's picture under it, two values */
@media (max-width:820px) {
  .pp-stage { padding:calc(var(--pp-top) - 8px) 16px 16px; gap:12px; }
  .pp-turns { gap:24px; } .pp-turns button { font-size:14px; }
  .pp-panel { display:flex; flex-direction:column; gap:12px; padding:20px; border-radius:24px; }
  .pp-copy, .pa .pp-copy { margin-top:4px; }
  .pp-name { font-size:clamp(44px,13vw,64px); }
  .pp-lead, .pa .pp-lead { font-size:16px; margin:8px 0 12px; }
  .pv-feed::after { background:linear-gradient(180deg, rgba(18,11,36,.95) 0%, rgba(18,11,36,.8) 45%, rgba(18,11,36,.2) 70%, rgba(18,11,36,.9)); }
  .pv-hud { grid-template-columns:1fr 1fr; left:20px; right:20px; bottom:16px; } .pv-hud li:nth-child(odd) { padding-left:0; border-left:0; } .pv-hud li:nth-child(n+3) { margin-top:10px; } .pv-hud span { display:none; }
  .pa-orbit { position:relative; left:auto; right:auto; top:auto; bottom:auto; flex:1; min-height:0; margin:0 -20px; }
  .pa-comp { left:50%; right:auto; transform:translateX(-50%); }
  .pa-convo { top:40%; width:62%; } .pa-line p { font-size:10px; } .pa-line b { font-size:9px; }
  .pa-values { position:static; width:auto; gap:6px; } .pa-v { min-height:44px; padding:8px 40px 8px 10px; } .pa-v span { display:none; } .pa-v b { font-size:11.5px; } .pa-v img { height:70%; }
  .pt-world { object-position:70% 50%; } .pt::before { background:linear-gradient(180deg, rgba(10,22,33,.97) 0%, rgba(10,22,33,.7) 45%, rgba(10,22,33,.2) 60%, rgba(10,22,33,.98) 85%); }
  .pt-rec, .pt-btn, .pt-note, .pt-hits { display:none; }
  .pt-time { left:16px; right:16px; bottom:16px; } .pt-marks figure:nth-child(odd) figcaption { display:none; } .pt-marks img { width:72px; } .pt-marks figcaption { font-size:10px; }
  .pt-alarm { width:220px; left:60%; } .pt-alarm > p { font-size:13px; }
  .pv-float { left:auto; right:10px; top:auto; bottom:27%; grid-template-columns:17.5em; font-size:13px; } .vc-col.b { padding-top:0; }
}
@media (max-width:820px) and (max-height:720px) {
  .pa-v.peach, .pa-v.mint { display:none; } .pa .pp-lead { display:none; }
}

/* without the script, or with reduced motion: the three panels sit one under the other */
.pp:not(.pp-live) .pp-track { height:auto; }
.pp:not(.pp-live) .pp-stage { position:static; height:auto; }
.pp:not(.pp-live) .pp-panels { display:grid; gap:24px; }
.pp:not(.pp-live) .pp-panel { position:relative; inset:auto; min-height:min(100vh,860px); opacity:1; visibility:visible; transform:none; }
.pp:not(.pp-live) .pp-turns button { cursor:default; }
@media (prefers-reduced-motion:reduce) { .pp-panel { transition:none; } }

/* the name never outgrows its column */
.pp-name { font-size:clamp(44px, min(10.5vh, 5.9vw), 124px); }
@media (max-width:820px) { .pp-name { font-size:clamp(44px,13vw,64px); } .pa-values { order:3; } }
/* the alarm opens to the right of its marker, so it never sits over the name block */
.pt-alarm { left:-12px; transform:none; }
.pt-alarm::after { left:calc(clamp(120px,10vw,150px) / 2 + 12px); }
@media (max-width:820px) { .pt-alarm { left:-30px; } }
@media (min-width:821px) and (max-width:1180px) { .pt-hits { display:none; } }

/* The breath before the products: one line in the middle of a white screen. Scroll inks it word by word,
   it holds, then it lifts away while the first panel rises from below and grows into place. */
.pp-intro { position:absolute; z-index:4; left:var(--pp-gut); right:var(--pp-gut); top:50%; margin:0 auto; max-width:11em; transform:translateY(-50%);
  font-size:clamp(44px,min(7.4vw,12.5vh),128px); font-weight:600; line-height:.98; letter-spacing:-.045em; text-align:center; text-wrap:balance; color:var(--ink); }
.pp-intro .w { opacity:.14; transition:opacity .25s linear; }
.pp-intro .w.on { opacity:1; }
/* VisionAIre comes in through a detection box: four corners lock onto the line, then open into the camera. */
.pp.pp-live .pp-intro.gone { pointer-events:none; user-select:none; }
.pp.pp-live .pp-turns { opacity:var(--rise,1); }
.pp.pp-live .pp-panels { clip-path:var(--clip,none); }
.pp.pp-live .pv-feed img { scale:calc(1 + (1 - var(--rise,1)) * .18); }
.pp-lock { position:absolute; z-index:5; pointer-events:none; opacity:0; display:none; }
.pp.pp-live .pp-lock { display:block; }
.pp-lock { --cb:4px; }
.pp-lock i { position:absolute; width:clamp(26px,3.2vw,46px); aspect-ratio:1; border:var(--cb) solid #7C3AED; }
.pp-lock i:nth-child(1) { left:0; top:0; border-width:var(--cb) 0 0 var(--cb); }
.pp-lock i:nth-child(2) { right:0; top:0; border-width:var(--cb) var(--cb) 0 0; }
.pp-lock i:nth-child(3) { left:0; bottom:0; border-width:0 0 var(--cb) var(--cb); }
.pp-lock i:nth-child(4) { right:0; bottom:0; border-width:0 var(--cb) var(--cb) 0; }
.pp-lock b { position:absolute; left:0; bottom:100%; margin-bottom:8px; padding:4px 9px; background:#7C3AED; color:#fff; font:600 13px ui-monospace,Menlo,monospace; letter-spacing:.1em; white-space:nowrap; }
/* the scan: a violet line reads the box top to bottom; above it the camera is already there and the line turns white */
.pp-scan { position:absolute; left:0; right:0; top:0; height:3px; background:#A78BFA; box-shadow:0 0 22px 3px rgba(167,139,250,.85); opacity:0; }
.pp-intro.wtxt { color:#fff; opacity:0; pointer-events:none; }
.pp-intro.wtxt .w { opacity:1 !important; }
/* VisionAIre's words and values come in only once the camera is fully open, so the growing box never cuts them.
   One after another, scrubbed by the scroll (--e, set by products.js), like the other panels' entrances. */
.pp.pp-live .pv .pp-copy > *, .pp.pp-live .pv .pv-hud li { --t:clamp(0, (var(--e,1) - var(--k,0) * .08) / .4, 1); opacity:var(--t); translate:0 calc((1 - var(--t)) * 26px); }
.pp.pp-live .pv .pp-name { --k:0; } .pp.pp-live .pv .pp-by { --k:1; } .pp.pp-live .pv .pp-lead { --k:2; } .pp.pp-live .pv .pp-more { --k:3; }
.pp.pp-live .pv .pv-hud li:nth-child(1) { --k:4; } .pp.pp-live .pv .pv-hud li:nth-child(2) { --k:4.6; } .pp.pp-live .pv .pv-hud li:nth-child(3) { --k:5.2; } .pp.pp-live .pv .pv-hud li:nth-child(4) { --k:5.8; } .pp.pp-live .pv .pv-hud li:nth-child(5) { --k:6.4; } .pp.pp-live .pv .pv-hud li:nth-child(6) { --k:7; }
.pp:not(.pp-live) .pp-intro { position:static; transform:none; padding:16vh 0; }

/* Everything in the stage follows the scroll, like the GSAP scrub in the hero: no timed transitions,
   so a fast scroll can never skip a step, and scrolling back plays it in reverse.
   products.js sets --e (0..1) on each panel as it takes the stage; the rules below read it. */
.pp.pp-live .pp-panel { transition:none; opacity:1; transform:none; visibility:hidden; }
.pp.pp-live .pp-intro .w { transition:none; }
/* Athena: people and agents take their seats around the team, then the conversation follows */
.pp.pp-live .pa-o { --ok:clamp(0, (var(--e,1) * 1.9 - var(--k,0) * .1) * 3, 1); opacity:var(--ok); scale:calc(.3 + .7 * var(--ok)); }
.pp.pp-live .pa-title { --t:clamp(0, (var(--e,1) - .3) * 4, 1); opacity:var(--t); translate:0 calc((1 - var(--t)) * 14px); }
.pp.pp-live .pa-line.ag { --t:clamp(0, (var(--e,1) - .55) * 5, 1); opacity:var(--t); translate:0 calc((1 - var(--t)) * 14px); }
.pp.pp-live .pa-line.hu { --t:clamp(0, (var(--e,1) - .78) * 5, 1); opacity:var(--t); translate:0 calc((1 - var(--t)) * 14px); }
/* Twinverse: the playhead runs from the start of the day to the alarm, which then opens */
.pp.pp-live .pt .pt-track .head { left:calc(38% * clamp(0, var(--e,1) / .6, 1)) !important; }
.pp.pp-live .pt-alarm { --t:clamp(0, (var(--e,1) - .62) * 3.5, 1); opacity:var(--t); translate:0 calc((1 - var(--t)) * 10px); scale:calc(.94 + .06 * var(--t)); transform-origin:20% 100%; }
.pp.pp-live .pt-marks figure.on img { opacity:calc(.55 + .45 * clamp(0, (var(--e,1) - .55) * 5, 1)); }
/* VisionAIre: the cards float in as the camera opens, one after another */
.pp.pp-live .vc { --t:clamp(0, (var(--e,1) - .1 - var(--k,0) * .1) / .4, 1); opacity:var(--t); translate:calc((1 - var(--t)) * 60px) 0; }
.pp.pp-live .vc-dwell { --k:0; } .pp.pp-live .vc-event { --k:1; } .pp.pp-live .vc-total { --k:2; } .pp.pp-live .vc-veh { --k:3; }
.pp:not(.pp-live) .pp-intro.wtxt { display:none; }
.pp.pp-live .pv .pv-hud { border-top-color:rgba(167,139,250, calc(.3 * var(--e,1))); }

/* ---------- Twinverse: the real capture in a window, the timeline down the right, four values along the bottom ---------- */
.pt-time [style*="--at"] { left:var(--at); }
.pp.pp-live .pt .pt-track .head { left:calc(var(--at) * clamp(0, var(--e,1) / .6, 1)) !important; }
.pt-clip { display:none; }
.pt-vals { display:none; }
.pt-chip { display:none; }
@media (min-width:821px) {
  .pt-clip { display:block; position:absolute; z-index:2; left:34%; top:19%; width:37%; aspect-ratio:680 / 430; overflow:hidden; border-radius:14px; border:1px solid rgba(95,225,230,.45); box-shadow:0 30px 60px -24px rgba(0,0,0,.8); background:#081420; }
  .pt-clip video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .pt-live { position:absolute; z-index:1; left:12px; top:12px; display:inline-flex; align-items:center; gap:7px; padding:4px 10px; border-radius:99px; background:rgba(6,14,21,.82); font:500 11px ui-monospace,Menlo,monospace; color:var(--tw-ink); }
  .pt-live i { width:7px; height:7px; border-radius:50%; background:#4ade80; box-shadow:0 0 8px #4ade80; }

  .pt-vals { position:absolute; z-index:3; grid-column:auto; grid-row:auto; left:3vw; bottom:3.6vh; width:calc(100% - 6vw - 260px); margin:0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
  .pt-vals li { position:relative; display:grid; gap:6px; align-content:start; padding:16px 18px 18px; border:1px solid rgba(255,255,255,.08); border-radius:14px; overflow:hidden;
    background:linear-gradient(180deg, rgba(18,34,48,.92), rgba(11,23,34,.92)); backdrop-filter:blur(8px); box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -22px rgba(0,0,0,.8); }
  .pt-vals li::before { content:""; position:absolute; left:18px; right:18px; top:0; height:2px; border-radius:0 0 2px 2px; background:var(--acc); opacity:.85; }
  .pt-vals em { display:block; font:500 10.5px ui-monospace,Menlo,monospace; font-style:normal; letter-spacing:.1em; text-transform:uppercase; color:#4fd1d9; }
  .pt-vals b { font-size:17px; font-weight:600; letter-spacing:-.01em; line-height:1.2; color:var(--tw-ink); }
  .pt-vals span { font-size:13.5px; line-height:1.4; color:var(--tw-dim); }

  /* the timeline runs down the right edge, its moments to its left */
  .pt-time { left:auto; right:3vw; top:8%; bottom:8%; width:210px; }
  .pt-time [style*="--at"] { left:auto; top:var(--at); }
  .pt-marks { position:absolute; inset:0 38px 0 0; height:auto; }
  .pt-marks figure { left:auto !important; right:0; bottom:auto; transform:translateY(-50%); justify-items:end; gap:5px; }
  .pt-marks img { width:124px; }
  .pt-marks figure.on img { transform:scale(1.06); transform-origin:right center; }
  .pt-bar { position:absolute; right:0; top:0; bottom:0; width:10px; margin:0; display:block; }
  .pt-btn, .pt-note { display:none; }
  .pt-clock { position:absolute; right:-4px; top:calc(100% + 10px); font-size:13px; }
  .pt-track { position:absolute; inset:0; height:auto; width:10px; flex:none; background:linear-gradient(180deg, rgba(95,225,230,.25), rgba(95,225,230,.55)); }
  .pt-track .tick { left:-5px !important; width:20px; height:2px; margin:-1px 0 0; }
  .pt-track .head { width:28px; height:4px; margin:-2px 0 0; }
  .pp.pp-live .pt .pt-track .head { left:-9px !important; top:calc(var(--at) * clamp(0, var(--e,1) / .6, 1)); }
  .pp:not(.pp-live) .pt .pt-track .head, .pt .pt-track .head { left:-9px !important; }
  .pt-alarm { width:250px; left:auto; right:calc(100% + 16px); bottom:auto; top:50%; transform:translateY(-50%); transform-origin:100% 50%; }
  .pt-alarm::after { left:auto; right:-7px; bottom:auto; top:50%; margin:-6px 0 0; transform:rotate(-45deg); }
  .pp.pp-live .pt-alarm { translate:calc((1 - var(--t)) * 10px) 0; }
}
@media (min-width:821px) and (max-width:1180px) {
  .pt-vals span { display:none; } .pt-vals b { font-size:15px; } .pt-vals li { padding:14px; }
  .pt-clip { left:36%; width:33%; }
}

/* phones and small tablets: the same four cards in two columns, crossed as on desktop (each column stacks on its own), each card down to its title and one number */
@media (max-width:820px) {
  .pv .pv-float { left:12px; right:12px; top:auto; bottom:92px; grid-template-columns:repeat(2, minmax(0,1fr)); justify-content:stretch; align-content:end; gap:8px; font-size:10.5px; }
  .pv .vc-col { gap:8px; align-content:end; } .pv .vc-col.b { padding-top:0; }
  .pv .vc-total .vc-sub, .pv .vc-live { display:none; }
  .pv .vc-title span { font-size:.78em; }
  .pv .vc-total-n { font-size:1.25em; }
  .pv .vc .vc-chart { height:2.4em; margin-top:.5em; } .pv .vc .vc-axis span { font-size:.66em; } .pv .vc-in-now { font-size:.7em !important; }
  .pv .vc-total, .pv .vc-event { padding:.8em; }
  .pv .vc-ev { grid-template-columns:3.4em 1fr; gap:.55em; padding-left:.45em; }
  .pv .vc-ev img { width:3.4em; height:3.4em; }
  .pv .pv-hud { left:12px; right:12px; bottom:12px; gap:6px; border-top:0; grid-template-columns:repeat(3, minmax(0,1fr)); }
  .pv .pv-hud li:nth-child(n) { display:flex; align-items:center; justify-content:center; height:32px; margin:0; padding:0 2px; border:1px solid var(--line); border-radius:9px; background:rgba(26,18,48,.82); }
  .pv .pv-hud b { font-size:10.5px; letter-spacing:0; white-space:nowrap; }
}
/* short phones: everything a step smaller, so all four cards still fit */
@media (max-width:600px) and (max-height:740px) {
  .pv.pp-panel { padding:16px; }
  .pv .pp-copy { margin-top:0; }
  .pv .pp-name { font-size:38px; }
  .pv .pp-by { margin-top:6px; font-size:12px; } .pv .pp-by img { height:13px; }
  .pv .pp-lead { font-size:13.5px; margin:6px 0 10px; max-width:28ch; }
  .pv .pp-more { min-height:38px; padding:0 18px; font-size:13px; }
  .pv .pv-float { bottom:82px; gap:6px; font-size:9.5px; }
  .pv .pv-hud { bottom:10px; }
  .pv .pv-hud li:nth-child(n) { height:27px; }
  .pv .pv-hud b { font-size:9.5px; }
}

/* phones: the product tabs start below the header */
@media (max-width:600px) { .pp-stage { padding-top:92px; } }

/* phones, Athena: four equal tiles, the mascot beside its label */
@media (max-width:600px) {
  .pa .pa-values { gap:8px; }
  .pa .pa-v { display:flex; align-items:center; gap:8px; min-height:54px; padding:6px 10px; border-radius:14px; }
  .pa .pa-v img { position:static; order:-1; flex:none; width:40px; height:40px; object-fit:contain; }
  .pa .pa-v b { font-size:12.5px; line-height:1.15; }
  .pa .pa-convo { left:10px; }
  .pa .pa-scene { -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18%,#000 88%,transparent), linear-gradient(180deg,transparent 0,#000 24%); mask-image:linear-gradient(90deg,transparent 0,#000 18%,#000 88%,transparent), linear-gradient(180deg,transparent 0,#000 24%); }
}

/* phones, Twinverse: the film with a short alarm, the four moments over the timeline, then the four values */
@media (max-width:600px) {
  .pt.pp-panel { gap:8px; padding:16px; }
  .pt .pp-copy { order:1; }
  .pt .pt-clip { display:block; order:2; position:relative; z-index:2; flex:1 1 0; min-height:90px; margin-top:6px; overflow:hidden; border-radius:14px; border:1px solid rgba(95,225,230,.45); background:#081420; }
  .pt .pt-clip video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .pt .pt-live { position:absolute; z-index:1; left:8px; top:8px; display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:99px; background:rgba(6,14,21,.82); font:500 10px ui-monospace,Menlo,monospace; color:var(--tw-ink); }
  .pt .pt-live i { width:6px; height:6px; border-radius:50%; background:#4ade80; }
  .pt .pt-chip { display:block; position:absolute; z-index:1; left:8px; bottom:8px; margin:0; padding:6px 10px; border-radius:9px; border:1px solid rgba(242,165,65,.45); border-left:3px solid var(--alarm); background:rgba(8,18,27,.45); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:var(--tw-ink); }
  .pt .pt-chip b { display:block; font-size:12px; font-weight:600; line-height:1.25; }
  .pt .pt-chip span { display:block; margin-top:1px; font:10px ui-monospace,Menlo,monospace; color:#d3dde2; }
  .pt .pt-alarm { display:none; }
  .pt .pt-time { order:3; position:relative; z-index:3; left:auto; right:auto; bottom:auto; }
  .pt .pt-marks { height:auto; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:6px; }
  .pt .pt-marks figure { position:static; transform:none; align-content:start; gap:3px; }
  .pt .pt-marks img { width:100%; height:auto; }
  .pt .pt-marks figure.on img { transform:none; box-shadow:none; border:2px solid var(--acc); }
  .pt .pt-marks figure:nth-child(n) figcaption { display:block; white-space:normal; text-align:center; font-size:9px; line-height:1.2; }
  .pt .pt-bar { margin-top:6px; }
  .pt .pt-clock { display:none; }
  .pt .pt-track { height:6px; }
  .pt .pt-track .tick { top:-4px; height:14px; }
  .pt .pt-track .tick:nth-of-type(2) { left:12.5% !important; } .pt .pt-track .tick:nth-of-type(3) { left:37.5% !important; }
  .pt .pt-track .tick:nth-of-type(4) { left:62.5% !important; } .pt .pt-track .tick:nth-of-type(5) { left:87.5% !important; }
  .pt .pt-track .head { top:-7px; height:20px; }
  .pt .pt-vals { order:4; position:relative; z-index:3; display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:0; padding:0; list-style:none; }
  .pt .pt-vals li { display:grid; gap:2px; align-content:start; padding:7px 9px; border-radius:10px; border:1px solid rgba(95,225,230,.28); background:rgba(15,28,40,.9); }
  .pt .pt-vals em { display:none; }
  .pt .pt-vals b { font-size:12px; line-height:1.2; color:var(--tw-ink); }
  .pt .pt-vals span { font-size:10px; line-height:1.25; color:var(--tw-dim); }
}

/* short phones: Athena keeps its description and all four values; Twinverse drops the small print */
@media (max-width:600px) and (max-height:740px) {
  .pa.pp-panel, .pt.pp-panel { padding:14px; gap:8px; }
  .pa .pp-copy, .pt .pp-copy { margin-top:0; }
  .pa .pp-name, .pt .pp-name { font-size:36px; }
  .pa .pp-by, .pt .pp-by { margin-top:4px; font-size:12px; } .pa .pp-by img, .pt .pp-by img { height:12px; }
  .pa.pp-panel .pp-lead, .pt.pp-panel .pp-lead { display:block; font-size:13px; margin:5px 0 8px; max-width:30ch; }
  .pa .pp-more, .pt .pp-more { min-height:34px; padding:0 16px; font-size:13px; }
  .pa .pa-v.peach, .pa .pa-v.mint { display:flex; }
  .pa .pa-v { min-height:42px; padding:4px 8px; } .pa .pa-v img { width:30px; height:30px; } .pa .pa-v b { font-size:11px; }
  .pa .pa-title { font-size:13px; }
  .pt .pt-marks figure:nth-child(n) figcaption { display:none; }
  .pt .pt-marks img { aspect-ratio:16/8; }
  .pt .pt-bar { margin-top:4px; }
  .pt .pt-vals li { padding:5px 8px; } .pt .pt-vals span { display:none; } .pt .pt-vals b { font-size:11px; }
}
