/* OneNine Finance OS page (/finance-os, 14 October 2026): the unit in the client's office, told in motion.
   Everything moves with CSS and SVG only (the Content Security Policy allows no inline style or script);
   finance-os.js sets the step of the scene while scrolling. With reduced motion, base.css stops every
   animation and transition, and the script pauses the SVG motion paths. */

/* ------------------------------------------------------------------ hero */
.os-hero { position: relative; overflow: hidden; background: var(--slate);
  background-image: radial-gradient(ellipse 55% 65% at 85% 20%, rgba(248,161,63,.18), transparent 62%),
                    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(11,22,32,.55), transparent 70%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.os-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px); align-items: center; }
.os-hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 5.4vw, 4.9rem); line-height: .98; letter-spacing: -.012em; max-width: 12ch; }
.os-hero h1 em { color: var(--butter); display: block; }
.os-hero .lead { margin-top: 24px; color: rgba(255,255,255,.84); }
.os-hero .hero-cta { margin-top: 30px; }
.os-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: rgba(255,255,255,.82); }
.os-facts li { display: inline-flex; align-items: center; gap: 9px; }
.os-fact-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 4px rgba(255,244,194,.14); }
.os-hero-art { margin: 0; }
.os-hero .hero-wave { width: 250px; left: -120px; bottom: -64px; opacity: .9; }

/* the isometric unit */
.iso { width: 100%; height: auto; overflow: visible; }
.iso-floor-fill { fill: rgba(255,255,255,.035); stroke: rgba(158,175,193,.55); stroke-width: 1.4; stroke-dasharray: 6 7;
  animation: iso-floor 1.2s var(--ease) both; }
.iso-k { font: 500 12px var(--mono); letter-spacing: .18em; fill: rgba(255,255,255,.55); }
.iso-glow-a { stop-color: rgba(248,161,63,.42); }
.iso-glow-b { stop-color: rgba(248,161,63,0); }
.iso-glow { fill: url(#iso-glow-g); animation: iso-glow 4.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.iso-unit { animation: iso-drop .9s var(--ease) .2s both; }
.iso-box-t { fill: #EADFC3; }
.iso-box-r { fill: #CFBE93; }
.iso-box-l { fill: #B8A375; }
.iso-mesh { fill: rgba(70,56,28,.38); }
.iso-led { fill: #7FC79A; animation: iso-led 2.2s ease-in-out infinite; }
.iso-os-t { fill: #3A4856; } .iso-os-r { fill: #26313B; } .iso-os-l { fill: #1C252E; }
.iso-sec-t { fill: #B7C5D3; } .iso-sec-r { fill: #94A6B9; } .iso-sec-l { fill: #7F92A6; }
.iso-app-t { fill: #FFF4C2; } .iso-app-r { fill: #EBDB97; } .iso-app-l { fill: #D9C77C; }
.iso-layer { transform-box: view-box; }
.iso-layer-os { animation: iso-in .9s var(--ease) .55s both, iso-float 6s ease-in-out 1.6s infinite; }
.iso-layer-sec { animation: iso-in .9s var(--ease) .75s both, iso-float 6s ease-in-out 2.1s infinite; }
.iso-layer-app { animation: iso-in .9s var(--ease) .95s both, iso-float 6s ease-in-out 2.6s infinite; }
.iso-label { animation: iso-label .7s var(--ease) both; }
.iso-label-unit { animation-delay: .5s; } .iso-label-os { animation-delay: .85s; }
.iso-label-sec { animation-delay: 1.05s; } .iso-label-app { animation-delay: 1.25s; }
.iso-lead { stroke: rgba(255,255,255,.4); stroke-width: 1; }
.iso-lead-dot { fill: var(--butter); }
.iso-t { font: 500 15px var(--sans); fill: rgba(255,255,255,.92); }
.iso-t-light { fill: rgba(255,255,255,.75); font-size: 13px; }
.iso-beam { stroke: rgba(255,244,194,.22); stroke-width: 1; stroke-dasharray: 2 5; fill: none; }
.iso-bit { fill: var(--glow); }
.iso-link { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1.4; stroke-dasharray: 5 6; animation: dash-flow 1.6s linear infinite; }
.iso-node { fill: var(--navy); stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
.iso-node-mark { fill: none; stroke: var(--butter); stroke-width: 2.2; stroke-linecap: round; }
.iso-lock-body { fill: var(--butter); }
.iso-lock-shackle { fill: none; stroke: var(--butter); stroke-width: 1.8; }
.iso-lock { animation: iso-lock 3.6s ease-in-out infinite; }

@keyframes iso-floor { from { opacity: 0; } to { opacity: 1; } }
@keyframes iso-drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes iso-in { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes iso-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes iso-label { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes iso-led { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes iso-glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes iso-lock { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes dash-flow { to { stroke-dashoffset: -22; } }

/* ------------------------------------------------------------------ the flow (sticky scene, steps scroll past) */
.os-flow { padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 6vw, 80px); background: var(--paper); }
.flow-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 0;
  opacity: .32; transition: opacity .5s var(--ease); }
.flow-step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 6vh; }
.flow-step:last-child { min-height: 78vh; }
.flow-step.is-active { opacity: 1; }
.flow-n { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; color: var(--orange-text); }
.flow-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -.01em; }
.flow-step h3 em { font-style: italic; }
.flow-step p { color: var(--ink-2); font-size: 1.04rem; max-width: 46ch; }
.flow-stage { position: sticky; top: 92px; display: grid; gap: 10px; padding: 18px 18px 8px; border-radius: 24px;
  background: var(--white); border: 1px solid var(--hair); box-shadow: 0 30px 70px -48px rgba(11,22,32,.5); }
.stage-count { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--ink-3); justify-self: end; margin-right: 8px; }
.stage-count span { color: var(--ink); }
.scene { width: 100%; height: auto; overflow: visible; display: block; }

/* scene parts */
.sc-k { font: 500 11px var(--mono); letter-spacing: .16em; fill: var(--ink-3); }
.sc-t { font: 600 13px var(--sans); fill: var(--ink); }
.sc-s { font: 500 11px var(--sans); fill: var(--ink-3); }
.sc-s-dark { fill: var(--ink-2); }
.sc-s-ok { fill: var(--ok); font-weight: 600; }
.x-wall { fill: var(--cream); stroke: var(--dusty); stroke-width: 1.6; stroke-dasharray: 7 7;
  transition: stroke .6s var(--ease), stroke-width .6s var(--ease), fill .6s var(--ease); }
.sc-cable { stroke: var(--slate); stroke-width: 2; fill: none; stroke-dasharray: 64; stroke-dashoffset: 64; transition: stroke-dashoffset 1s var(--ease) .5s; }
.sc-hw { fill: url(#sc-metal); stroke: rgba(70,56,28,.25); stroke-width: 1; }
.sc-metal-a { stop-color: #EFE5CB; } .sc-metal-b { stop-color: #C9B686; }
.sc-hw-mesh { fill: url(#sc-mesh); }
.sc-mesh-dot { fill: rgba(70,56,28,.32); }
.sc-led { fill: #57B07A; animation: iso-led 2s ease-in-out infinite; }
.sc-hw-t { font: 600 11.5px var(--sans); fill: #5B4A25; letter-spacing: .02em; }
.sc-band { stroke: none; }
.sc-band-os { fill: var(--slate); } .sc-band-sec { fill: var(--dusty-soft); } .sc-band-app { fill: var(--butter); }
.sc-band-t { font: 600 13.5px var(--sans); fill: var(--ink); }
.sc-band-t-light { fill: var(--white); }
.sc-shield { fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linejoin: round; }
.sc-check-c { fill: var(--ok); }
.sc-check { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-screen { fill: var(--white); stroke: var(--slate); stroke-width: 1.6; }
.sc-base { fill: var(--slate); }
.sc-pw { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.sc-bar { fill: var(--dusty-soft); } .sc-bar-now { fill: var(--slate); }
.sc-line { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.x-path { fill: none; stroke: rgba(46,58,70,.4); stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s var(--ease); }
.sc-dot { fill: var(--orange); }
.sc-dot-back { fill: var(--slate); }
.sc-doc { fill: var(--white); stroke: var(--ok); stroke-width: 1.6; stroke-linejoin: round; }
.sc-doc-t { font: 700 7px var(--sans); fill: var(--ok); }
.sc-cloud { fill: var(--white); stroke: var(--dusty); stroke-width: 1.4; }
.sc-arrow { stroke: var(--bad); stroke-width: 2; fill: none; stroke-linecap: round; }
.sc-arrow-head { stroke: var(--bad); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sc-guard-c { fill: var(--white); stroke: var(--ok); stroke-width: 2; }
.sc-guard { stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; }
.sc-node { fill: var(--slate); }
.sc-node-mark { fill: none; stroke: var(--butter); stroke-width: 2.6; stroke-linecap: round; }
.x-ring { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 277; stroke-dashoffset: 0;
  transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.x-tun { fill: none; stroke: var(--slate); stroke-width: 1.8; stroke-dasharray: 5 6; }
.sc-lock-body { fill: var(--slate); transition: fill .5s; }
.sc-lock-shackle { fill: none; stroke: var(--slate); stroke-width: 2; transition: stroke .5s; }
.sc-pkg { fill: var(--white); stroke: var(--slate); stroke-width: 1.6; }
.sc-pkg-seal { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-health { fill: var(--ok); }
.sc-banner { fill: var(--glow); }
.sc-banner-dot { fill: var(--ink); animation: iso-led 1.4s ease-in-out infinite; }
.sc-banner-t { font: 600 12.5px var(--sans); fill: var(--ink); }

/* what each step shows: s1..s7 are cumulative, cur-N only while step N is on screen */
.x-hw, .x-band, .x-lap, .x-dots, .x-login, .x-report, .x-check, .x-upload, .x-net, .x-o9, .x-tun, .x-lock, .x-upd,
.x-health, .x-banner, .x-allow, .x-cables { opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.x-hw { transform: translateY(-26px); }
.x-band { transform: translateY(-16px); }
.x-lap { transform: translateX(-14px); }
.x-banner { transform: translateY(-8px); }
.x-sec { transition-delay: .12s; } .x-app { transition-delay: .24s; }
.x-lap-b { transition-delay: .1s; } .x-lap-c { transition-delay: .2s; }

.scene.s1 .x-hw, .scene.s1 .x-cables { opacity: 1; transform: none; }
.scene.s1 .sc-cable { stroke-dashoffset: 0; }
.scene.s2 .x-band { opacity: 1; transform: none; }
.scene.s3 .x-lap, .scene.s3 .x-dots { opacity: 1; transform: none; }
.scene.s3 .x-path { stroke-dashoffset: 0; }
.scene.cur-3 .x-login { opacity: 1; }
.scene.s4 .x-report, .scene.s4 .x-check { opacity: 1; }
.scene.cur-4 .x-upload { opacity: 1; }
.scene.s5 .x-net { opacity: 1; }
.scene.cur-5 .x-wall { stroke: var(--ok); stroke-width: 3.2; stroke-dasharray: none; fill: #F4F7EE; }
.scene.cur-5 .x-arrow { animation: knock 2.2s var(--ease) infinite; }
.scene.cur-5 .x-guard { animation: guard 2.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.scene.s6 .x-o9, .scene.s6 .x-tun, .scene.s6 .x-lock { opacity: 1; }
.scene.s6 .x-tun { animation: dash-flow 1.2s linear infinite; }
.scene.cur-6 .x-upd, .scene.cur-6 .x-health { opacity: 1; }
.scene.cur-7 .x-banner, .scene.cur-7 .x-allow { opacity: 1; transform: none; }
.scene.cur-7 .x-tun { stroke: var(--orange); stroke-width: 3.4; stroke-dasharray: none; animation: none; }
.scene.cur-7 .sc-lock-body { fill: var(--orange); }
.scene.cur-7 .sc-lock-shackle { stroke: var(--orange); }
.scene.cur-7 .x-ring { opacity: 1; animation: countdown 8s linear infinite; }
.x-ring { opacity: 0; transition: opacity .5s; }
/* the steps before the current one step back a little, so the eye goes to what is new */
.scene.cur-5 .x-dots, .scene.cur-6 .x-dots, .scene.cur-7 .x-dots { opacity: .45; }
.scene.cur-6 .x-net, .scene.cur-7 .x-net { opacity: .4; }

@keyframes knock { 0% { transform: translate(18px, -11px); opacity: 0; } 25% { opacity: 1; }
  55% { transform: none; opacity: 1; } 62% { transform: translate(3px, -2px); } 100% { transform: translate(6px, -4px); opacity: 0; } }
@keyframes guard { 0%, 50% { transform: scale(1); } 58% { transform: scale(1.18); } 70%, 100% { transform: scale(1); } }
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 277; } }

/* ------------------------------------------------------------------ the layers */
.os-layers { padding: clamp(80px, 10vw, 128px) 0; background: var(--white); }
.layer-cake { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 12px; perspective: 1200px; }
.layer-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px 26px;
  border-radius: 18px; border: 1px solid var(--hair); }
.layer-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.layer-card p { margin-top: 4px; color: var(--ink-2); }
.lc-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-family: var(--serif); font-size: 1.7rem; }
.lc-app { background: var(--butter); border-color: transparent; margin: 0 6%; } .lc-app .lc-n { background: var(--white); }
.lc-sec { background: var(--dusty-soft); border-color: transparent; margin: 0 4%; } .lc-sec .lc-n { background: var(--white); }
.lc-os { background: var(--slate); color: var(--white); border-color: transparent; margin: 0 2%; }
.lc-os p { color: rgba(255,255,255,.78); } .lc-os .lc-n { background: rgba(255,255,255,.1); color: var(--butter); }
.lc-hw { background: linear-gradient(135deg, #F2EAD3, #D8C79C); border-color: transparent; }
.lc-hw p { color: #5B4A25; } .lc-hw .lc-n { background: rgba(255,255,255,.55); }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.layer-cake .layer-card:nth-child(1) { transition-delay: .36s; } .layer-cake .layer-card:nth-child(2) { transition-delay: .24s; }
.layer-cake .layer-card:nth-child(3) { transition-delay: .12s; }
.layer-cake [data-reveal] { transform: translateY(-26px) rotateX(18deg); transform-origin: bottom; }
.layer-cake [data-reveal].in { transform: none; }

/* ------------------------------------------------------------------ who can reach what */
.os-reach { padding: clamp(80px, 10vw, 128px) 0; background: var(--paper); }
.reach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reach-card { background: var(--white); border: 1px solid var(--hair); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.reach-card:nth-child(2) { transition-delay: .12s; } .reach-card:nth-child(3) { transition-delay: .24s; }
.reach-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.reach-card p { color: var(--ink-2); }
.reach-art { width: 100%; max-width: 260px; height: auto; margin-bottom: 6px; }
.ra-screen { fill: var(--white); stroke: var(--slate); stroke-width: 1.6; }
.ra-base { fill: var(--slate); }
.ra-wire { stroke: var(--line); stroke-width: 1.6; stroke-dasharray: 3 5; fill: none; }
.reach-card.in .ra-wire { animation: dash-flow 1.2s linear infinite; }
.ra-pulse { fill: var(--orange); }
.reach-card.in .ra-pulse { animation: ra-travel 2.2s var(--ease) infinite; }
.ra-unit { fill: #E2D4AE; }
.ra-led { fill: #57B07A; animation: iso-led 2s ease-in-out infinite; }
.ra-switch { fill: var(--line); transition: fill .3s; }
.ra-knob { fill: var(--white); }
.reach-card.in .ra-switch { animation: ra-switch 5s var(--ease) infinite; }
.reach-card.in .ra-knob { animation: ra-knob 5s var(--ease) infinite; }
.reach-card.in .ra-wire-o9 { animation: ra-wire 5s var(--ease) infinite; }
.ra-o9 { fill: var(--slate); }
.ra-o9-mark { fill: none; stroke: var(--butter); stroke-width: 2; stroke-linecap: round; }
.ra-cloud { fill: var(--white); stroke: var(--dusty); stroke-width: 1.4; }
.ra-arrow, .ra-arrow-h { stroke: var(--bad); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.reach-card.in .ra-knock { animation: ra-knock 2.4s var(--ease) infinite; }
.ra-wall { stroke: var(--ok); stroke-width: 3; stroke-linecap: round; }
.ra-x { stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; }
@keyframes ra-travel { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(54px); opacity: 0; } }
@keyframes ra-switch { 0%, 30% { fill: var(--line); } 38%, 80% { fill: var(--orange); } 88%, 100% { fill: var(--line); } }
@keyframes ra-knob { 0%, 30% { transform: translateX(0); } 38%, 80% { transform: translateX(20px); } 88%, 100% { transform: translateX(0); } }
@keyframes ra-wire { 0%, 34% { stroke: var(--line); } 42%, 80% { stroke: var(--orange); } 88%, 100% { stroke: var(--line); } }
@keyframes ra-knock { 0% { transform: translateX(-14px); opacity: 0; } 20% { opacity: 1; } 55% { transform: translateX(0); }
  62% { transform: translateX(-4px); } 100% { transform: translateX(-4px); opacity: 0; } }

/* ------------------------------------------------------------------ support access, shown as a loop */
.os-support { padding: clamp(80px, 10vw, 128px) 0; background: var(--white); }
.os-support-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.os-support-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin-top: 10px; }
.os-support-copy h2 em { font-style: italic; }
.os-support-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.sup-steps { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.sup-steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
.sup-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--hair); font-family: var(--serif); font-size: 1.05rem; }
.sup-steps b { font-weight: 600; }
.sup-steps span { color: var(--ink-2); font-size: .95rem; }
.sup-demo { display: grid; gap: 10px; }
.sup-window { border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); background: var(--paper);
  box-shadow: 0 30px 70px -44px rgba(11,22,32,.55); }
.sup-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--slate); color: var(--white); min-height: 56px; }
.sup-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.sup-mono { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--butter); color: var(--ink); font-size: .72rem; }
.sup-chips { position: relative; margin-left: auto; height: 30px; min-width: 238px; }
.sup-chip { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; opacity: 0; }
.sup-off { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); opacity: 1; }
.sup-allowed { background: rgba(255,244,194,.16); color: var(--butter); border: 1px solid rgba(255,244,194,.35); }
.sup-on { background: var(--glow); color: var(--ink); }
.sup-on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.sup-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 18px; }
.sup-card { background: var(--white); border-radius: 14px; padding: 16px; border: 1px solid var(--hair); display: grid; gap: 12px; align-content: start; }
.sup-k { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sup-toggle { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.sup-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line); flex: none; }
.sup-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sup-time { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.sup-fill { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.sup-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.sup-log li { background: var(--white); border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px; font-size: .82rem; opacity: 0; }
.sup-log span { display: block; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }
.sup-caption { font-size: .78rem; color: var(--ink-3); }
/* one loop of 12 seconds: off, allowed, connected, ran out */
.sup-demo.in .sup-off { animation: sup-off 12s infinite; }
.sup-demo.in .sup-allowed { animation: sup-allowed 12s infinite; }
.sup-demo.in .sup-on { animation: sup-on 12s infinite; }
.sup-demo.in .sup-track { animation: sup-track 12s infinite; }
.sup-demo.in .sup-knob { animation: sup-knob 12s infinite; }
.sup-demo.in .sup-fill { animation: sup-fill 12s infinite; }
.sup-demo.in .sup-l1 { animation: sup-l1 12s infinite; }
.sup-demo.in .sup-l2 { animation: sup-l2 12s infinite; }
.sup-demo.in .sup-l3 { animation: sup-l3 12s infinite; }
@keyframes sup-off { 0%, 14% { opacity: 1; } 16%, 84% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes sup-allowed { 0%, 14% { opacity: 0; } 16%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes sup-on { 0%, 32% { opacity: 0; } 34%, 84% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes sup-track { 0%, 12% { background: var(--line); } 15%, 84% { background: var(--orange); } 87%, 100% { background: var(--line); } }
@keyframes sup-knob { 0%, 12% { transform: translateX(0); } 15%, 84% { transform: translateX(18px); } 87%, 100% { transform: translateX(0); } }
@keyframes sup-fill { 0%, 14% { transform: scaleX(0); } 16% { transform: scaleX(1); } 84% { transform: scaleX(0); } 100% { transform: scaleX(0); } }
@keyframes sup-l1 { 0%, 15% { opacity: 0; transform: translateY(6px); } 18%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sup-l2 { 0%, 33% { opacity: 0; transform: translateY(6px); } 36%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sup-l3 { 0%, 84% { opacity: 0; transform: translateY(6px); } 87%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ------------------------------------------------------------------ the end */
.os-cta { position: relative; overflow: hidden; background: var(--slate); padding: clamp(64px, 8vw, 104px) 0; }
.os-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.os-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.os-cta h2 em { color: var(--butter); font-style: italic; }
.os-cta p { margin-top: 12px; color: rgba(255,255,255,.8); max-width: 54ch; }
.os-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 980px) {
  .os-hero-in { grid-template-columns: minmax(0, 1fr); }
  .os-hero-art { max-width: 640px; margin: 0 auto; width: 100%; }
  .os-support-in { grid-template-columns: minmax(0, 1fr); }
  .reach-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  /* the scene stays at the top while the steps scroll underneath it */
  .flow-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-stage { order: -1; top: 64px; z-index: 2; padding: 8px 8px 2px; border-radius: 0 0 18px 18px; margin: 0 calc(var(--gutter) * -1);
    border-left: 0; border-right: 0; border-top: 0; }
  .scene { max-height: 40vh; }
  .stage-count { position: absolute; top: 10px; right: 14px; margin: 0; }
  .flow-step, .flow-step:first-child, .flow-step:last-child { min-height: 58vh; padding-top: 20px; justify-content: flex-start; }
  .flow-step:last-child { min-height: 70vh; }
  .sup-body { grid-template-columns: minmax(0, 1fr); }
  .layer-card { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .lc-app, .lc-sec, .lc-os { margin: 0; }
}

/* the screenshot and test switch: ?step=N&still=1 shows a step without moving */
.still *, .still *::before, .still *::after { transition: none !important; animation-duration: .01ms !important;
  animation-delay: 0s !important; animation-iteration-count: 1 !important; }
.still .sup-demo * { animation-duration: 12s !important; animation-delay: -6s !important; animation-play-state: paused !important; }
.still .flow-step { min-height: 0 !important; padding: 28px 0 !important; }
