/* Exploded-view sequences on the Well Connected showcase pages (2026-11-17).
   A pinned frame that the visitor takes apart by scrolling (assets/site/sequence.js). Load AFTER
   pages.css and landing-system.css.
   - The stage stays dark in both themes, like the hero and the closing band: the frames are night shots.
   - Text over the frames sits on story glass (.sg, same recipe as experience.css). glass.js gives
     .stage .beat.sg panes the refraction rim on the full tier; elsewhere they are frosted, and opaque
     without backdrop-filter or with "reduce transparency".
   - Motion doctrine: the frame and the pane's fade are functions of scroll only. No timers, no autoplay.
     Reduced motion (and the static tier) shows the final, fully exploded frame without the pin. */
.seq{position:relative;height:420vh;background:#05070a;
  --ink:#0f1115;--ink-2:#161a21;--line:#2a303b;--paper:#e8e8ee;--soft:#cfd3dc;--mute:#9aa0ad;--glow:#b0c6ff;--hi:#fff;color:var(--paper);color-scheme:dark}
.seq .stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:#05070a;
  --sg-tint:rgba(11,14,20,.66);--sg-edge:rgba(255,255,255,.18);--sg-hi:rgba(255,255,255,.32);--sg-b:18px;--sg-shadow:0 34px 80px -36px rgba(0,0,0,.9)}
[data-motion=lite] .seq .stage{--sg-b:12px;--sg-tint:rgba(11,14,20,.68)}
.seq-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#05070a}
@media (max-aspect-ratio:4/5){.seq-img{object-fit:contain;object-position:50% 42%}}
.seq .sg{
  position:absolute;
  background:var(--glass-grain),linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.03) 30%,rgba(255,255,255,0) 62%,rgba(176,198,255,.08)),var(--sg-tint);
  border:1px solid var(--sg-edge);
  -webkit-backdrop-filter:blur(var(--sg-b)) saturate(175%);backdrop-filter:blur(var(--sg-b)) saturate(175%);
  box-shadow:inset 0 1px 0 var(--sg-hi),inset 0 -1px 0 rgba(0,0,0,.28),var(--sg-shadow);
}
[data-motion=full] .seq .sg::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;opacity:0;transition:opacity .25s;mix-blend-mode:screen;
  background:radial-gradient(240px circle at var(--mx,-400px) var(--my,-400px),rgba(255,255,255,.85),rgba(176,198,255,.3) 45%,transparent 72%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
[data-motion=full] .seq .sg.lg-near::before{opacity:1}
[data-motion=full] .seq .sg{transition:translate .3s cubic-bezier(.22,1,.36,1)}
[data-motion=full] .seq .sg.lg-near{translate:var(--tx,0) var(--ty,0)}
.lg-refract .seq .sg{-webkit-backdrop-filter:var(--lg-filter,blur(0px)) blur(var(--sg-rb,7px)) saturate(185%);backdrop-filter:var(--lg-filter,blur(0px)) blur(var(--sg-rb,7px)) saturate(185%)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.seq .sg{--sg-tint:rgba(15,17,21,.93)!important}}
@media (prefers-reduced-transparency:reduce){.seq .sg{--sg-tint:rgba(15,17,21,.95)!important;-webkit-backdrop-filter:none;backdrop-filter:none}}

/* the text pane over the frames */
.seq-ov{left:var(--pad);bottom:calc(24px + env(safe-area-inset-bottom));max-width:min(520px,calc(100% - 2 * var(--pad)));border-radius:24px;padding:20px 24px}
.seq-ov .eyebrow{margin:0 0 8px}
.seq-ov h2,.seq-ov h3{font-size:var(--fs-36);line-height:var(--lh-36);color:var(--hi)}
.seq-ov p{margin:10px 0 0;color:var(--soft);font-size:var(--fs-14);line-height:var(--lh-14)}
/* the frame counter */
.seq-count{right:var(--pad);top:96px;border-radius:999px;padding:8px 14px;font:500 12px/16px "JetBrains Mono",ui-monospace,Menlo,monospace;letter-spacing:.18em;text-transform:uppercase;color:var(--soft);font-variant-numeric:tabular-nums}
@media (max-width:760px){
  .seq-ov{bottom:calc(92px + env(safe-area-inset-bottom));padding:16px 18px;border-radius:20px}
  .seq-ov h2,.seq-ov h3{font-size:var(--fs-24);line-height:var(--lh-24)}
  .seq-count{top:84px}
}

/* static: the final frame, no pin (reduced motion, Save-Data, 2G; sequence.js adds .seq-static) */
.seq.seq-static{height:auto}
.seq.seq-static .stage{position:relative;height:auto;aspect-ratio:16/9;min-height:420px}
@media (prefers-reduced-motion:reduce){
  .seq{height:auto}
  .seq .stage{position:relative;height:auto;aspect-ratio:16/9;min-height:420px}
}
@media (prefers-reduced-motion:reduce) and (max-width:760px){
  .seq .stage,.seq.seq-static .stage{aspect-ratio:auto;min-height:0;display:flex;flex-direction:column}
  .seq .seq-img{position:relative;height:auto;aspect-ratio:16/9}
  .seq .seq-ov{position:relative;left:auto;bottom:auto;max-width:none;margin:16px var(--pad) 24px}
  .seq .seq-count{display:none}
}
@media (max-width:760px){
  .seq.seq-static .stage{aspect-ratio:auto;min-height:0;display:flex;flex-direction:column}
  .seq.seq-static .seq-img{position:relative;height:auto;aspect-ratio:16/9}
  .seq.seq-static .seq-ov{position:relative;left:auto;bottom:auto;max-width:none;margin:16px var(--pad) 24px}
  .seq.seq-static .seq-count{display:none}
}

/* closing brand block on the single-device pages */
.sign{text-align:center}
.sign .brand-big{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--paper);font:400 var(--fs-24)/var(--lh-24) var(--brand-display)}
.sign .brand-big img{width:44px;height:44px}
.sign h2{margin:18px auto 14px}
.sign .contact-lines{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;margin:0;padding:0;list-style:none;font:500 13px/20px "JetBrains Mono",ui-monospace,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase}
.sign .contact-lines a{color:var(--glow);text-decoration:none;display:inline-block;padding:12px 4px}
.sign .contact-lines a:hover{text-decoration:underline;text-underline-offset:3px}
