/* Scroll-driven showpieces shared by the home and practice pages:
   the system that assembles itself, the laptop + phone mockups, and the AI globe. */

/* ---------- system board: pinned while the steps scroll ---------- */
.buildsys { overflow-x: clip; }
.buildsys__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sys-step { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; transition: filter .5s var(--ease); }
.sys-step:last-child { min-height: 60svh; }
.buildsys.is-live .sys-step:not(.is-on) { filter: opacity(.3); }
.sys-step h3 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.sys-step p { margin-top: 18px; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.buildsys__stage { position: sticky; top: max(96px, calc(50svh - 330px)); }
.board { position: relative; width: min(100%, 640px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 165, 38, .14), transparent 70%); }
.board::before { content: ""; position: absolute; inset: 13%; border: 1px dashed transparent; border-radius: 50%; transition: transform 1.2s var(--ease), border-color .6s; }
.board__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke: #C9C1B6; stroke-width: .5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) calc(var(--i) * 70ms), stroke .6s; }
.wire--link { stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) calc(var(--i) * 110ms), stroke .6s; }
.board__ring { fill: none; stroke: var(--line); stroke-width: .3; stroke-dasharray: .6 1.4; }
.packet--ring { fill: #FFD23F; filter: opacity(0) drop-shadow(0 0 .8px rgba(242, 165, 38, .9)); }
.board[data-step="3"] .packet--ring { filter: drop-shadow(0 0 .8px rgba(242, 165, 38, .9)); }
.packet { fill: var(--amber-deep); filter: opacity(0); transition: filter .5s; }
.packet--back { fill: var(--ink); }
.board__hub { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 8px; translate: -50% -50%; padding: 20px 22px 14px; border-radius: 28px; background-color: var(--bg-2); box-shadow: 0 20px 50px rgba(10, 12, 14, .12); transform: scale(.85); filter: opacity(.4); transition: transform .9s var(--ease), filter .6s, box-shadow .6s; }
.board__hub img { width: 54px; }
.board__hub span { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.node { position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; gap: 8px; translate: -50% -50%; transform: translate(calc(var(--dx) * var(--sc, 1)), calc(var(--dy) * var(--sc, 1))) rotate(var(--r)); transition: transform 1.1s var(--ease-io) calc(var(--i) * 60ms); }
.node__ico { display: inline-flex; align-items: center; justify-content: center; width: clamp(48px, 6vw, 64px); height: clamp(48px, 6vw, 64px); transition: transform .6s var(--ease) calc(var(--i) * 60ms); }
.node__ico svg { width: 100%; height: 100%; transition: filter .6s var(--ease) calc(var(--i) * 60ms); }
.board[data-step="0"] .node__ico svg, .board[data-step="1"] .node__ico svg { filter: grayscale(1) brightness(1.15) drop-shadow(0 1px 0 #8C857C) drop-shadow(0 1px 0 #8C857C) drop-shadow(0 1px 0 #8C857C) drop-shadow(0 8px 6px rgba(10, 12, 14, .2)); }
.node__label { padding: 2px 10px; border-radius: 999px; background-color: var(--bg); font-size: .86rem; font-weight: 700; white-space: nowrap; }
/* step 0, map: the tools sit scattered and grey. Step 1, connect: they move into place
   and the wires draw. Step 2, automate: packets flow. Step 3, measure: everything lights up. */
.board:not([data-step="0"]) .node { transform: none; }
.board:not([data-step="0"]) .wire { stroke-dashoffset: 0; }
.board:not([data-step="0"]) .board__hub { transform: none; filter: none; }
.board:not([data-step="0"]):not([data-step="1"]) .wire { stroke: var(--amber-deep); }
.board:not([data-step="0"]):not([data-step="1"]) .wire--link { stroke-dashoffset: 0; }
.board:not([data-step="0"]):not([data-step="1"]) .packet { filter: none; }
.board[data-step="3"] .node__ico { transform: translateY(-4px) scale(1.12); }
.board[data-step="3"]::before { transform: rotate(90deg) scale(1.04); border-color: var(--amber); }
.board[data-step="3"] .board__hub { box-shadow: 0 0 0 10px rgba(242, 165, 38, .25), 0 24px 60px rgba(10, 12, 14, .18); }

/* ---------- laptop + phone: pinned, the screens scroll ---------- */
.devices { position: relative; height: 260vh; background-color: var(--bg-2); }
.devices__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: clip; }
.devices__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.devices__points { margin-top: 28px; }
.devices__points li { display: flex; align-items: center; gap: 14px; padding-block: 12px; font-size: 1.15rem; font-weight: 600; transition: filter .4s var(--ease), transform .5s var(--ease); }
.devices__points svg { width: 48px; height: 48px; }
.devices.is-live .devices__points li:not(.is-on) { filter: opacity(.35); }
.devices__points li.is-on { transform: translateX(8px); }
.devices__note { margin-top: 24px; font-size: .92rem; color: var(--muted); }
.devices__stage { position: relative; perspective: 1600px; padding-bottom: 6%; }
.laptop { width: 84%; }
.laptop__lid { position: relative; padding: 2% 2% 2.6%; border-radius: 20px 20px 0 0; background-color: #0B0D0F; box-shadow: inset 0 0 0 1.5px #3A3F45, inset 0 0 0 3px #15181B; transform-origin: bottom center; will-change: transform; }
.laptop__cam { position: absolute; left: 50%; top: .7%; width: 9%; height: 1.6%; translate: -50% 0; border-radius: 0 0 8px 8px; background-color: #000; }
.laptop__cam::after { content: ""; position: absolute; left: 50%; top: 22%; width: 5px; height: 5px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3B5068, #0A0F14 70%); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background-color: #F6F5F3; container-type: inline-size; }
.laptop__shot { will-change: transform; }
.laptop__glare, .phone__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 28%, transparent 42%); }
.laptop__base { position: relative; height: 16px; margin-inline: -8%; border-radius: 2px 2px 22px 22px / 2px 2px 14px 14px; background: linear-gradient(#E4E1DC 0%, #C9C4BC 45%, #9E978D 100%); box-shadow: 0 1px 0 #F7F5F1 inset, 0 34px 50px -10px rgba(10, 12, 14, .35), 0 8px 14px rgba(10, 12, 14, .15); }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 6px; translate: -50% 0; border-radius: 0 0 9px 9px; background: linear-gradient(#ABA398, #C4BDB3); }

/* ---------- the sample portal on the screens (sized in cqw so it scales with each screen) ---------- */
.portal, .papp { --pi: #0F1215; --pm: #59616A; --pl: #E4E0DA; color: var(--pi); font-family: var(--body); }
.portal { display: grid; grid-template-columns: 19cqw minmax(0, 1fr); gap: 2cqw; padding: 2cqw; font-size: 1.35cqw; line-height: 1.35; }
.portal__side { align-self: start; display: flex; flex-direction: column; gap: 2.4cqw; min-height: 58cqw; padding: 2cqw 1.6cqw; border-radius: 1.6cqw; background-color: #0F1215; color: #F4F2ED; }
.portal__brand { display: flex; align-items: center; gap: .9cqw; font-family: var(--display); font-size: 1.8cqw; }
.portal__brand i, .portal__side li i { flex: none; width: 1.8cqw; height: 1.8cqw; border-radius: .5cqw; background: linear-gradient(135deg, #F6DF0D, #F58A1F); }
.portal__side ul { display: grid; gap: .5cqw; }
.portal__side li { display: flex; align-items: center; gap: .9cqw; padding: .8cqw 1cqw; border-radius: .9cqw; color: #C3C8CD; }
.portal__side li i { width: 1.3cqw; height: 1.3cqw; border-radius: .35cqw; background: #3A4047; }
.portal__side li.is-cur { background-color: #F2A526; color: #0F1215; font-weight: 700; }
.portal__side li.is-cur i { background: #0F1215; }
.portal__side small { margin-top: auto; font-size: 1.05cqw; color: #A9B0B7; }
.portal__main { display: grid; gap: 1.6cqw; align-content: start; }
.portal__top, .papp__top { display: flex; align-items: center; gap: 1.6cqw; }
.portal__top div, .papp__top div { display: grid; margin-right: auto; }
.portal__top small, .papp__top small { color: var(--pm); }
.portal__top b { font-family: var(--display); font-size: 2.6cqw; letter-spacing: -.02em; }
.portal__search { width: 30cqw; padding: 1cqw 1.6cqw; border: 1px solid var(--pl); border-radius: 99px; background-color: #fff; color: var(--pm); }
.portal__me { display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background-color: #0F1215; color: #F2A526; font-weight: 800; }
.portal__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4cqw; }
.pk { display: grid; gap: .3cqw; padding: 1.6cqw; border: 1px solid var(--pl); border-radius: 1.4cqw; background-color: #fff; }
.pk small { color: var(--pm); }
.pk b { font-family: var(--display); font-size: 3.4cqw; letter-spacing: -.03em; line-height: 1; }
.pk em { font-style: normal; font-weight: 600; color: #1F7A3F; }
.pk--hi { border-color: #F2A526; background-color: #F2A526; }
.pk--hi small, .pk--hi em, .papp .pk--hi small { color: #2B2F33; }
.portal__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4cqw; }
.pcard { padding: 1.8cqw; border: 1px solid var(--pl); border-radius: 1.4cqw; background-color: #fff; }
.pt { margin-bottom: 1.2cqw; font-weight: 700; }
.pcard--chart svg { display: block; width: 100%; height: 16cqw; }
.pc-area { fill: rgba(242, 165, 38, .18); }
.pc-line { fill: none; stroke: #E0791C; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.pc-line--b { stroke: #0F1215; stroke-width: 1.5; }
.pauto { display: grid; gap: 1cqw; }
.pauto li { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.pauto i { flex: none; position: relative; width: 3.4cqw; height: 1.9cqw; border-radius: 99px; background-color: #1F7A3F; }
.pauto i::after { content: ""; position: absolute; right: .25cqw; top: .25cqw; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background-color: #fff; }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2cqw; }
.pipe > div { display: grid; gap: .8cqw; align-content: start; padding: 1cqw; border-radius: 1cqw; background-color: #F3F1ED; }
.ph { display: flex; justify-content: space-between; font-weight: 700; }
.ph em { font-style: normal; color: var(--pm); }
.pipe p:not(.ph) { display: grid; padding: 1cqw; border-radius: .8cqw; background-color: #fff; box-shadow: 0 .2cqw .6cqw rgba(15, 18, 21, .08); font-weight: 600; }
.pipe p.is-hot { box-shadow: inset .4cqw 0 0 #F2A526, 0 .2cqw .6cqw rgba(15, 18, 21, .08); }
.pipe small, .pfeed small, .pquote small, .papp small { font-weight: 400; color: var(--pm); }
.pfeed { display: grid; gap: 1cqw; }
.pfeed li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1cqw; }
.pfeed i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background-color: #F2A526; box-shadow: 0 0 0 .5cqw rgba(242, 165, 38, .2); }
.pquote { display: grid; gap: .8cqw; font-size: 1.5cqw; }
.pstars { color: #8A5200; letter-spacing: .2em; }

/* phone app: same system, 300px reference width */
.papp { display: grid; gap: 4cqw; padding: 17cqw 5cqw 26cqw; font-size: 4.4cqw; line-height: 1.35; }
.papp__top b { font-family: var(--display); font-size: 8cqw; letter-spacing: -.02em; }
.papp .portal__me { width: 11cqw; height: 11cqw; }
.papp__note { display: flex; align-items: center; gap: 3cqw; padding: 3.6cqw; border-radius: 5cqw; background-color: #0F1215; color: #F4F2ED; }
.papp__note i { flex: none; width: 8cqw; height: 8cqw; border-radius: 2.4cqw; background: linear-gradient(135deg, #F6DF0D, #F58A1F); }
.papp__note div { display: grid; }
.papp .papp__note small { color: #A9B0B7; }
.papp__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.papp .pk { padding: 4cqw; border-radius: 4.5cqw; }
.papp .pk b { font-size: 9cqw; }
.papp .pcard { padding: 4.5cqw; border-radius: 4.5cqw; }
.papp .pt { margin-bottom: 3cqw; }
.papp .pcard--chart svg { height: 30cqw; }
.papp__jobs { display: grid; gap: 3cqw; }
.papp__jobs li { display: flex; gap: 3.5cqw; align-items: center; }
.papp__jobs b { flex: none; width: 15cqw; padding: 1.5cqw 0; border-radius: 2.5cqw; background-color: #F3F1ED; text-align: center; }
.papp__jobs span { display: grid; font-weight: 600; }
.papp .pfeed { gap: 3cqw; }
.papp .pfeed i { width: 3.2cqw; height: 3.2cqw; box-shadow: 0 0 0 1.4cqw rgba(242, 165, 38, .2); }
.papp__tabs { position: absolute; left: 4cqw; right: 4cqw; bottom: 7cqw; z-index: 1; display: flex; justify-content: space-around; padding: 3.5cqw; border-radius: 99px; background-color: rgba(255, 255, 255, .92); box-shadow: 0 2cqw 6cqw rgba(15, 18, 21, .16); }
.papp__tabs i { width: 6cqw; height: 6cqw; border-radius: 2cqw; background-color: #D6D1CA; }
.papp__tabs i.is-cur { background: linear-gradient(135deg, #F6DF0D, #F58A1F); }

/* building: while live, a block waits as a grey wireframe until fx.js marks it built */
.pb { position: relative; transition: background-color .5s var(--ease), border-color .5s, box-shadow .5s; }
.pb > * { transition: filter .5s var(--ease), transform .6s var(--ease); }
.devices.is-live .pb:not(.is-built) { border-color: transparent; background-color: #E9E5DF; box-shadow: none; }
.devices.is-live .pb:not(.is-built) > * { filter: opacity(0); transform: translateY(1.2cqw); }
.devices.is-live .pb:not(.is-built)::after { content: ""; position: absolute; inset: 0; border: 1px dashed #B9B2A8; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.devices.is-live .pb:not(.is-built) .pc-line { stroke-dashoffset: 1; }

/* ---------- screen worlds: Branding (a restaurant website), Systems (a workflow), AI (an assistant) ---------- */
.wsite, .flowui, .aiui, .lock { --pi: #0F1215; --pm: #59616A; --pl: #E4E0DA; color: var(--pi); font-family: var(--body); line-height: 1.3; }
.wsite img, .lock img { display: block; width: 100%; object-fit: cover; }
/* website, laptop (1000px reference) */
.laptop__shot.wsite { display: grid; gap: 2.4cqw; padding-bottom: 3cqw; font-size: 1.35cqw; background-color: #FBF8F3; }
.ws__nav { display: flex; align-items: center; gap: 2.6cqw; padding: 1.8cqw 3cqw; background-color: #FBF8F3; font-weight: 600; }
.ws__logo { display: flex; align-items: center; gap: .8cqw; margin-right: auto; font-family: var(--display); font-size: 2cqw; }
.ws__logo i { width: 2cqw; height: 2cqw; border-radius: 50% 50% 50% 0; background-color: #E0791C; }
.ws__btn { display: inline-block; padding: .8cqw 1.8cqw; border-radius: 99px; background-color: #0F1215; color: #FFFFFF; font-weight: 700; }
.ws__btn--ghost { background: none; border: 1px solid #0F1215; color: #0F1215; }
.laptop__shot .ws__hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3cqw; align-items: center; padding-inline: 3cqw; }
.ws__hcopy { display: grid; gap: 1.2cqw; justify-items: start; }
.ws__hcopy small { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A4300; }
.laptop__shot .ws__hcopy b { font-family: var(--display); font-size: 5.6cqw; letter-spacing: -.04em; line-height: .95; }
.laptop__shot .ws__hcopy p { font-size: 1.6cqw; color: var(--pm); }
.laptop__shot .ws__hcopy .ws__btn + .ws__btn { margin-top: -4.6cqw; margin-left: 15cqw; }
.laptop__shot .ws__hero img { aspect-ratio: 4 / 3; border-radius: 2cqw; }
.ws__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; padding-inline: 3cqw; }
.ws__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws__card { display: grid; gap: .5cqw; padding-bottom: 1.4cqw; overflow: hidden; border-radius: 1.6cqw; background-color: #FFFFFF; box-shadow: 0 .4cqw 1.4cqw rgba(15, 18, 21, .08); }
.ws__card img { aspect-ratio: 16 / 10; margin-bottom: .8cqw; }
.ws__card b, .ws__card small { padding-inline: 1.4cqw; }
.ws__card small { color: var(--pm); }
.ws__card--txt { padding: 2cqw .6cqw; justify-items: start; }
.ws__card--txt .ws__btn { margin: .6cqw 1.4cqw 0; }
.ws__band { display: grid; gap: .6cqw; justify-items: center; margin-inline: 3cqw; padding: 3cqw; border-radius: 2cqw; background-color: #0F1215; color: #F4F2ED; text-align: center; }
.ws__band b { font-family: var(--display); font-size: 2.6cqw; letter-spacing: -.02em; }
.ws__band small { color: #C3C8CD; }
.ws__stars { color: #F2A526; letter-spacing: .2em; }
.ws__foot { display: flex; gap: 3cqw; align-items: center; margin-inline: 3cqw; padding-top: 2cqw; border-top: 1px solid var(--pl); color: var(--pm); }
/* website, phone (300px reference) */
.phone__shot.wsite { display: grid; gap: 4cqw; padding: 15cqw 0 30cqw; font-size: 4.2cqw; background-color: #FBF8F3; }
.phone__shot .ws__nav { padding: 2cqw 5cqw; }
.phone__shot .ws__logo { font-size: 5.6cqw; gap: 2cqw; }
.phone__shot .ws__logo i { width: 5cqw; height: 5cqw; }
.ws__burger { display: grid; gap: 1.4cqw; }
.ws__burger i { width: 7cqw; height: .8cqw; border-radius: 1cqw; background-color: #0F1215; }
.phone__shot .ws__hero { display: grid; gap: 4cqw; }
.phone__shot .ws__hero img { aspect-ratio: 4 / 3; }
.phone__shot .ws__hcopy { gap: 2.4cqw; padding-inline: 5cqw; }
.phone__shot .ws__hcopy b { font-family: var(--display); font-size: 11cqw; letter-spacing: -.04em; line-height: .95; }
.phone__shot .ws__btn { padding: 2.4cqw 5cqw; }
.phone__shot .ws__card { margin-inline: 5cqw; border-radius: 4.5cqw; gap: 1.4cqw; padding-bottom: 4cqw; }
.phone__shot .ws__card b, .phone__shot .ws__card small { padding-inline: 4cqw; }
.phone__shot .ws__card--txt { padding: 5cqw 0; }
.phone__shot .ws__band { margin-inline: 5cqw; padding: 6cqw; border-radius: 5cqw; gap: 1.6cqw; }
.phone__shot .ws__band b { font-size: 6.4cqw; }
.ws__order { justify-content: center; background-color: #0F1215; color: #FFFFFF; font-size: 4.4cqw; }

/* workflow builder, laptop */
.laptop__shot.flowui { display: grid; gap: 2cqw; padding: 2cqw; font-size: 1.35cqw; background-color: #F3F1ED; }
.fl__top { display: flex; align-items: center; gap: 2cqw; padding: 1.4cqw 2cqw; border-radius: 1.4cqw; background-color: #0F1215; color: #F4F2ED; }
.fl__name { margin-right: auto; font-weight: 700; }
.fl__state { display: flex; align-items: center; gap: .8cqw; padding: .6cqw 1.4cqw; border-radius: 99px; background-color: #1F7A3F; color: #FFFFFF; font-weight: 700; }
.fl__state i { width: 1cqw; height: 1cqw; border-radius: 50%; background-color: #FFFFFF; }
.fl__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2cqw; align-items: start; }
.fl__canvas { display: grid; justify-items: center; padding: 3cqw 2cqw; border-radius: 1.6cqw; background-color: #FFFFFF; background-image: radial-gradient(#D9D3CA .12cqw, transparent .14cqw); background-size: 2cqw 2cqw; }
.fl__node { display: grid; gap: .3cqw; width: 34cqw; max-width: 100%; padding: 1.4cqw 1.8cqw; border: 1px solid var(--pl); border-left: .5cqw solid #F2A526; border-radius: 1.2cqw; background-color: #FFFFFF; box-shadow: 0 .4cqw 1.2cqw rgba(15, 18, 21, .08); }
.fl__node small { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A4300; }
.fl__node--trigger { border-left-color: #0F1215; }
.fl__node--wait { width: 18cqw; border-left-color: #8E8E93; }
.fl__node--end { border-left-color: #1F7A3F; }
.fl__wire { display: block; width: .3cqw; height: 2.6cqw; background-color: #F2A526; }
.fl__split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; width: 100%; }
.fl__split .fl__node { width: auto; }
.fl__side { display: grid; gap: 2cqw; }
.fl__stats { display: flex; gap: 2.4cqw; }
.fl__stats p { display: grid; }
.fl__stats b { font-family: var(--display); font-size: 3.2cqw; letter-spacing: -.03em; }
.fl__stats small { color: var(--pm); }
.fl__runs { display: grid; gap: 1.2cqw; }
.fl__runs li { display: grid; grid-template-columns: auto 1fr auto; gap: 1cqw; align-items: center; }
.fl__runs i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background-color: #1F7A3F; }
.fl__runs small { color: var(--pm); }
.devices.is-live .fl__wire.pb:not(.is-built) { transform: scaleY(0); }
.fl__wire.pb { transform-origin: top; transition: transform .4s var(--ease); }

/* lock screen notifications, phone */
.phone__shot.lock { display: grid; gap: 3.4cqw; align-content: start; min-height: 100%; padding: 22cqw 5cqw 30cqw; font-size: 4cqw; background: linear-gradient(170deg, #FFE7B8, #F6B24A 45%, #C8661A); }
.lock__time { display: grid; justify-items: center; margin-bottom: 4cqw; color: #2B1A00; }
.lock__time b { font-family: var(--display); font-size: 20cqw; letter-spacing: -.04em; line-height: 1; }
.lock__note { display: grid; grid-template-columns: auto 1fr auto; gap: 3cqw; align-items: center; padding: 3.6cqw; border-radius: 5cqw; background-color: rgba(255, 255, 255, .88); box-shadow: 0 2cqw 5cqw rgba(60, 30, 0, .18); }
.lock__note i { width: 9cqw; height: 9cqw; border-radius: 2.6cqw; background: linear-gradient(135deg, #F6DF0D, #F58A1F); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.lock__note div { display: grid; }
.lock__note small { color: #4A4F55; }
.devices--auto .phone__status { background: none; }
.devices.is-live .lock__note.pb:not(.is-built) { transform: translateY(-6cqw) scale(.9); }

/* AI assistant, laptop */
.laptop__shot.aiui { display: grid; grid-template-columns: 22cqw minmax(0, 1fr); gap: 2cqw; padding: 2cqw; font-size: 1.35cqw; background-color: #F6F5F3; }
.ai__side { display: flex; flex-direction: column; gap: 2cqw; min-height: 58cqw; padding: 2cqw 1.6cqw; border-radius: 1.6cqw; background-color: #0F1215; color: #F4F2ED; }
.ai__side ul { display: grid; gap: .6cqw; }
.ai__side li { padding: .9cqw 1.2cqw; border-radius: .9cqw; color: #C3C8CD; }
.ai__side li.is-cur { background-color: #F2A526; color: #0F1215; font-weight: 700; }
.ai__kb { display: grid; gap: .8cqw; margin-top: auto; }
.ai__kb small { color: #A9B0B7; letter-spacing: .1em; text-transform: uppercase; }
.ai__kb span { padding: .7cqw 1cqw; border: 1px solid #3A4047; border-radius: .8cqw; }
.ai__main { display: grid; gap: 1.6cqw; align-content: start; }
.ai__msg { display: grid; gap: .8cqw; max-width: 80%; padding: 1.6cqw 2cqw; border: 1px solid var(--pl); border-radius: 1.6cqw 1.6cqw 1.6cqw .4cqw; background-color: #FFFFFF; }
.ai__msg--me { justify-self: end; border: 0; border-radius: 1.6cqw 1.6cqw .4cqw 1.6cqw; background-color: #0F1215; color: #F4F2ED; }
.ai__badge { display: flex; align-items: center; gap: .8cqw; font-weight: 700; color: #8A4300; }
.ai__badge i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE29A, #F2A526 60%, #E0791C); box-shadow: 0 0 1cqw rgba(242, 165, 38, .7); }
.ai__src { display: flex; flex-wrap: wrap; gap: .8cqw; }
.ai__src i { padding: .3cqw 1cqw; border-radius: 99px; background-color: #F3F1ED; font-style: normal; color: #4A4F55; }
.ai__act { display: flex; gap: 1cqw; }
.ai__act span { padding: .7cqw 1.4cqw; border: 1px solid var(--pl); border-radius: 99px; font-weight: 600; }
.ai__act .ai__ok { border-color: #F2A526; background-color: #F2A526; }
.ai__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; }
.ai__input { display: flex; justify-content: space-between; align-items: center; padding: 1.4cqw 1.8cqw; border: 1px solid var(--pl); border-radius: 99px; background-color: #FFFFFF; color: var(--pm); }
.ai__input i { width: 3cqw; height: 3cqw; border-radius: 50%; background-color: #F2A526; }
/* AI assistant, phone */
.phone__shot.aiui { display: grid; gap: 4cqw; align-content: start; padding: 17cqw 5cqw 30cqw; font-size: 4.2cqw; background-color: #F6F5F3; }
.phone__shot .ai__msg { max-width: 88%; padding: 4cqw; gap: 2cqw; border-radius: 5cqw 5cqw 5cqw 1.4cqw; }
.phone__shot .ai__msg--me { border-radius: 5cqw 5cqw 1.4cqw 5cqw; }
.phone__shot .ai__badge { gap: 2cqw; }
.phone__shot .ai__badge i { width: 4.5cqw; height: 4.5cqw; }
.phone__shot .ai__src i { padding: 1cqw 3cqw; }
.phone__shot .papp__top b { font-family: var(--display); font-size: 8cqw; }
.phone__shot .portal__me { width: 11cqw; height: 11cqw; }

.devices.is-static { height: auto; padding-block: var(--section); }
.devices.is-static .devices__pin { position: static; height: auto; }

/* ---------- AI band: the globe stays pinned while the story scrolls ---------- */
.ai-band { background-color: var(--bg); color: var(--text); }
.ai-band__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ai-band__stage { position: sticky; top: max(80px, calc(50svh - 340px)); }
.globe { display: block; width: 100%; aspect-ratio: 1; max-width: 680px; margin-inline: auto; }
.ai-band__intro { padding-top: 12svh; }
.ai-band__intro p { margin-top: 18px; font-size: 1.2rem; color: var(--muted); }
.ai-step { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; transition: filter .5s var(--ease); }
.ai-band.is-live .ai-step:not(.is-on) { filter: opacity(.3); }
.ai-step h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
.ai-step p { margin-top: 14px; max-width: 36ch; font-size: 1.15rem; color: var(--muted); }
.ai-band__cta { padding-bottom: 14svh; }

@media (max-width: 900px) {
  .buildsys__grid, .ai-band__grid, .devices__grid { grid-template-columns: minmax(0, 1fr); }
  /* phone: still pinned and animated; the copy shrinks to the headline and a row of points */
  .devices:not(.is-static) .devices__grid { gap: 18px; }
  .devices:not(.is-static) .devices__copy .lede, .devices:not(.is-static) .devices__note { display: none; }
  .devices:not(.is-static) .devices__points { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
  .devices:not(.is-static) .devices__points li { padding-block: 2px; font-size: .9rem; gap: 6px; }
  .devices:not(.is-static) .devices__points svg { width: 26px; height: 26px; }
  .devices__stage { padding-bottom: 16%; }
  .devices:not(.is-static) .devices__stage { width: min(100%, 52svh); margin-inline: auto; }
  /* phone: heading, board and one step share a pinned screen; the steps crossfade in place as you
     scroll (fx.js adds .is-m), so no text ever slides behind the board. Stopped: plain stacked list. */
  .buildsys__steps { display: contents; }
  .buildsys__grid { grid-template-areas: "h" "b" "s"; gap: 18px; }
  .buildsys__steps > .h2 { grid-area: h; }
  .buildsys__stage { grid-area: b; position: static; }
  .sys-step, .sys-step:last-child { grid-area: auto; min-height: 0; }
  .sys-step + .sys-step { margin-top: 28px; }
  .board { --sc: .3; width: min(84%, 330px, 42svh); }
  .node__ico { width: 34px; height: 34px; }
  .node__label { padding: 1px 7px; font-size: .66rem; }
  .board__hub { padding: 10px 12px 8px; border-radius: 18px; }
  .board__hub img { width: 30px; }
  .board__hub span { font-size: .78rem; }
  .sys-step h3 { font-size: 2.6rem; }
  .sys-step p { margin-top: 10px; font-size: 1.05rem; }
  .buildsys.is-m { height: 330svh; padding-block: 0; }
  .buildsys.is-m .buildsys__grid { position: sticky; top: 0; height: 100svh; align-content: center; padding-block: 56px 20px; }
  .buildsys.is-m .sys-step { grid-area: s; align-self: start; margin-top: 0; transition: filter .45s var(--ease), transform .55s var(--ease); }
  .buildsys.is-m .sys-step:not(.is-on) { filter: opacity(0); transform: translateY(14px); }
  .ai-band__stage { order: -1; position: static; }
  .globe { max-width: 360px; }
  .ai-step { min-height: 40svh; }
  .ai-band__intro { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .node, .wire, .board__hub, .board::before { transition: none; }
}
