/* SPDX-FileCopyrightText: 2026 Wonmor and Tilo contributors */
/* SPDX-License-Identifier: Apache-2.0 */
/* Per-slide layouts. Deck view works in 1600x900 stage pixels; story view (phones) overrides at the bottom. */

/* ---------- brand marks ---------- */
.arc-l { fill: var(--teal); }
.arc-r { fill: var(--water); }
.dot { fill: var(--gold); }
.wm path { stroke: var(--ink); }
.wm .wm-idot { fill: var(--gold); }
.wm .wm-ot { stroke: var(--teal); }
.wm .wm-ob { stroke: var(--water); }
.flip-x svg { transform: scaleX(-1); }
svg.ic { display: block; }

/* growing fills: bars, gantt, dataset phases */
.hb-fill, .ab-fill, .phs-track i, .g-bar { display: block; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease) .15s; }
.slide.active .hb-fill, .slide.active .ab-fill, .slide.active .phs-track i, .slide.active .g-bar,
.slide.played .hb-fill, .slide.played .ab-fill, .slide.played .phs-track i, .slide.played .g-bar { transform: scaleX(var(--w, 1)); }
html.js .f:not(.on) .hb-fill, html.js .f:not(.on) .ab-fill, html.js .f:not(.on) .phs-track i, html.js .f:not(.on) .g-bar { transform: scaleX(0); }
html:not(.js) .hb-fill, html:not(.js) .ab-fill, html:not(.js) .phs-track i, html:not(.js) .g-bar { transform: scaleX(var(--w, 1)); }
.g-bar { --w: 1; }

/* ---------- 1. hero ---------- */
.hero { display: flex; justify-content: center; margin-top: -6px; }
.scene { width: 100%; height: 400px; overflow: visible; }
.scene text { font-family: var(--font); }
.cap-box { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.bub-box, .bub-tail { fill: var(--water-soft); stroke: color-mix(in srgb, var(--water) 40%, transparent); stroke-width: 1.5; }
.bub-tail { stroke: none; fill: color-mix(in srgb, var(--water) 16%, var(--bg)); }
.cap-k { font-size: 15px; font-weight: 600; letter-spacing: .12em; fill: var(--faint); }
.cap-t, .bub-t { font-size: 27px; font-weight: 500; fill: var(--ink); }
.brick { fill: var(--ink); opacity: .82; }
.wave { fill: none; stroke: var(--water); stroke-width: 7; stroke-linecap: round; opacity: 0; }
.h-lbl { font-size: 21px; font-weight: 500; fill: var(--muted); text-anchor: middle; }
.hero-copy { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; }
.hero-copy .lead { font-size: 21px; }
.swap { display: grid; align-items: end; }
.swap > * { grid-area: 1 / 1; }
#s-hook .display { font-size: 76px; }
.hero-end { display: flex; flex-direction: column; gap: 10px; }
.hero-wm { height: 84px; width: auto; align-self: flex-start; }
.display.sm { font-size: 58px !important; }

/* ---------- 2. one sentence ---------- */
.one { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.one-q { font-size: 60px; line-height: 1.16; letter-spacing: -.03em; font-weight: 500; max-width: 25ch; }
.one-motto { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.m-no, .m-yes { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 16px; font-size: 26px; font-weight: 500; }
.m-no { background: var(--bad-soft); color: var(--bad); }
.m-no span { text-decoration: line-through; text-decoration-thickness: 2px; }
.m-yes { background: var(--teal-soft); color: var(--teal); }
.m-no svg, .m-yes svg { width: 26px; height: 26px; }

/* ---------- 3. counts ---------- */
.hbars { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.hb { display: grid; grid-template-columns: 190px 1fr; grid-template-rows: auto auto; column-gap: 20px; row-gap: 5px; align-items: center; }
.hb-v { grid-row: 1 / 3; font-size: 46px; font-weight: 600; letter-spacing: -.03em; }
.hb-track { height: 14px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.hb-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--water)); }
.hb-l { font-size: 16px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#s-count .card .stat .v { font-size: 46px; }
#s-count .card { padding: 16px 20px; }

/* ---------- 4. ratio ---------- */
.ratio { flex: 1; display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.ratio-fig { display: flex; flex-direction: column; gap: 14px; }
.dots { width: 100%; height: auto; overflow: visible; }
.dots circle { fill: color-mix(in srgb, var(--ink) 17%, transparent); opacity: 0; transition: opacity .6s var(--ease), fill .6s var(--ease); transition-delay: calc(var(--dl, 0) * 1ms); }
.dots.lit circle { opacity: 1; }
.dots.focus circle { opacity: .5; transition-delay: 0ms; }
.dots .hot { fill: var(--teal); opacity: 1 !important; transform-box: fill-box; transform-origin: center; transition: transform .8s var(--expo), fill .4s; }
.dots.focus .hot { transform: scale(2.1); }
.dots .halo { fill: none; stroke: var(--teal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dots.focus .halo { animation: halo 2.4s var(--ease) infinite; }
@keyframes halo { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
.ratio-cap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; color: var(--ink); font-weight: 500; }
.pip { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.ratio-side ul.clean { gap: 16px; }
.ratio-side li.cmp::before { background: var(--water); }

/* ---------- 5. life ---------- */
.life .card p { font-size: 17px; }
.big-n { font-size: 30px; }

/* ---------- 6. exists ---------- */
.exist .card { padding: 18px 18px 16px; }
.exist .card h3 { font-size: 20px; }
.exist .card p { font-size: 16px; }
.gap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 6px; }
.gap-l, .gap-r { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 18px; }
.gap-l { background: var(--bad-soft); }
.gap-l svg { color: var(--bad); width: 28px; height: 28px; flex: none; margin-top: 2px; }
.gap-r { background: var(--teal-soft); }
.gap-r svg { color: var(--teal); width: 28px; height: 28px; flex: none; margin-top: 2px; }
.gap p { font-size: 18px; line-height: 1.45; color: var(--ink); }

/* ---------- 7. world ---------- */
.world .card { padding: 16px 20px; gap: 6px; }
.world .stat .v { font-size: 44px; }
.world .stat .l { font-size: 15px; }
.world .card p { font-size: 15px; }

/* ---------- 8. ai ---------- */
.aibars { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 6px; }
.ab { display: grid; grid-template-columns: 230px 1fr 90px; gap: 18px; align-items: center; }
.ab-n { font-size: 20px; color: var(--muted); }
.ab-track { height: 34px; border-radius: 10px; background: var(--panel2); overflow: hidden; }
.ab-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--teal), var(--water)); }
.ab-fill.bad { background: var(--bad); min-width: 4px; }
.ab-v { font-size: 26px; font-weight: 600; text-align: right; }
.ab-src { font-size: 15px; color: var(--faint); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#s-ai .card h3 { display: flex; gap: 10px; align-items: center; }
#s-ai .card h3 svg { width: 24px; height: 24px; color: var(--teal); }

/* ---------- 10. mission ---------- */
.mission { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.mission-l { display: flex; flex-direction: column; gap: 22px; }
.mission h2.title { font-size: 56px; }
ol.three { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
ol.three li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
ol.three p { font-size: 17px; color: var(--muted); margin-top: 4px; }

/* ---------- 11. principles, how ---------- */
.princ, .how { gap: 14px 22px; }
.pr { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.pr h3 { font-size: 21px; }
.pr p { font-size: 16.5px; line-height: 1.45; color: var(--muted); margin-top: 4px; }

/* ---------- 12. modules ---------- */
.mods { gap: 14px; }
.card.mod { flex-direction: row; gap: 14px; padding: 16px 18px; }
.mod-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mod-h { display: flex; align-items: baseline; gap: 10px; }
.mod-id { font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.card.mod h3 { font-size: 20px; }
.card.mod p { font-size: 15.5px; line-height: 1.42; }
.insp { font-size: 13px; color: var(--faint); }

/* ---------- 13. vri ---------- */
.vri { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.phones { display: flex; gap: 18px; justify-content: space-between; }
.screen { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; width: 250px; }
.screen figcaption { font-size: 15px; color: var(--muted); text-align: center; line-height: 1.35; }
.phone { width: 236px; height: 400px; border-radius: 34px; padding: 12px; background: var(--ink); box-shadow: var(--shadow); }
.ph-top, .ph-body { background: var(--bg); }
.ph-top { height: 34px; border-radius: 22px 22px 0 0; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ph-dots { display: flex; gap: 3px; } .ph-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.ph-body { height: calc(100% - 34px); border-radius: 0 0 22px 22px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.ph-h { font-size: 20px; font-weight: 600; color: var(--ink); }
.ph-s { font-size: 13px; color: var(--muted); }
.ph-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ph-tags span { font-size: 12px; padding: 5px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.ph-tags span.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.ph-big { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 64px; border: 0; border-radius: 18px; background: var(--teal); color: #fff; font-size: 19px; font-weight: 600; font-family: var(--font); }
.ph-big svg { width: 24px; height: 24px; }
.ph-btn { display: inline-block; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 12px; background: var(--panel2); color: var(--ink); }
.ph-btn.ok { background: var(--teal); color: #fff; }
.ring { width: 120px; }
.ring-mk { width: 120px; height: auto; overflow: visible; }
.ring-mk .arc-r { animation: ring-r 2.6s var(--ease) infinite; }
.ring-mk .mk { transform-box: view-box; transform-origin: 132px 264px; animation: ring-spin 2.6s var(--ease) infinite; }
@keyframes ring-r { 0%, 8% { transform: translateX(0); } 28%, 72% { transform: translateX(-156px); } 92%, 100% { transform: translateX(0); } }
@keyframes ring-spin { 0%, 28% { transform: rotate(0); } 72%, 100% { transform: rotate(360deg); } }
.q-pos, .q-eta { font-variant-numeric: tabular-nums; }
.pulse { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: 0 0 0 0 var(--teal-soft); animation: ph-pulse 1.6s var(--ease) infinite; }
.pulse svg { width: 34px; height: 34px; }
@keyframes ph-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 45%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.call { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: 1.6fr 1fr; gap: 8px; padding: 10px !important; }
.tile { border-radius: 14px; background: var(--panel2); display: flex; align-items: flex-end; justify-content: flex-start; padding: 8px; font-size: 12px; color: var(--muted); position: relative; }
.tile.big { grid-column: 1 / 3; background: linear-gradient(160deg, var(--teal-soft), var(--water-soft)); color: var(--ink); font-weight: 600; }
.tile .pin { position: absolute; right: 8px; top: 8px; color: var(--gold-ink); } .tile .pin svg { width: 16px; height: 16px; }
.tile.qr { flex-direction: column; align-items: flex-start; gap: 6px; }
.qr-c { width: 34px; height: 34px; border-radius: 4px; background:
  conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 10px 10px; opacity: .8; }
.closed { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); color: var(--muted); }
.closed svg { width: 34px; height: 34px; }
.alert-screen { background: linear-gradient(180deg, var(--teal-soft), transparent 70%), var(--bg) !important; }
.vri-side { display: flex; flex-direction: column; gap: 10px; }
.vri-side ul.clean { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }

/* ---------- 14. face ---------- */
.face { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.face-l { display: flex; flex-direction: column; gap: 24px; }
.face h2.title { font-size: 52px; }
.table-phone { width: 520px; height: 640px; justify-self: center; border-radius: 48px; padding: 16px; background: var(--ink); box-shadow: var(--shadow); display: grid; grid-template-rows: 1fr auto 1.25fr; gap: 0; }
.tp-half { background: var(--bg); padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.tp-half:first-child { border-radius: 34px 34px 0 0; }
.tp-half:last-child { border-radius: 0 0 34px 34px; }
.tp-half.flip { transform: rotate(180deg); border-radius: 0 0 34px 34px; }
.tp-k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tp-reply { font-size: 26px; font-weight: 500; color: var(--ink); }
.tp-mid { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--panel2); font-size: 14px; color: var(--muted); }
.tp-mid span { display: inline-flex; align-items: center; gap: 6px; }
.tp-mid svg { width: 18px; height: 18px; }
.tp-call { background: var(--teal); color: #fff; padding: 6px 12px; border-radius: 99px; font-weight: 600; }
.tp-cap { font-size: 28px; line-height: 1.35; font-weight: 500; color: var(--ink); min-height: 4.2em; }
.caret { display: inline-block; width: 3px; height: 1em; background: var(--water); vertical-align: -.12em; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tp-warn { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--gold-ink); }
.tp-warn svg { width: 18px; height: 18px; flex: none; }
.tp-phr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tp-phr span { font-size: 15px; padding: 8px 12px; border-radius: 12px; background: var(--water-soft); color: var(--water-ink); font-weight: 500; }

/* ---------- 15. not building ---------- */
.nots { gap: 14px 20px; }
.no { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--bad) 45%, var(--line)); }
.no > svg { width: 26px; height: 26px; color: var(--bad); flex: none; margin-top: 2px; }
.no b { display: block; font-size: 20px; font-weight: 600; }
.no span { display: block; font-size: 16px; color: var(--muted); margin-top: 4px; }

/* ---------- 16. architecture ---------- */
.arch { flex: 1; min-height: 0; display: flex; }
.arch-svg { width: 100%; height: 100%; max-height: 560px; }
.arch-svg .nd rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; transition: stroke .4s, opacity .4s; }
.arch-svg .nd { transition: opacity .45s var(--ease); }
.arch-svg .nl { font-size: 17px; font-weight: 600; fill: var(--ink); }
.arch-svg .ns { font-size: 13px; fill: var(--muted); }
.arch-svg .gp rect { fill: color-mix(in srgb, var(--panel2) 55%, transparent); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 6; }
.arch-svg .gp.own rect { stroke: var(--gold); }
.arch-svg .gp.uz rect { stroke: var(--teal); stroke-width: 2; }
.arch-svg .gl { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; fill: var(--faint); }
.arch-svg .gp.own .gl { fill: var(--gold-ink); }
.arch-svg .gp.uz .gl { fill: var(--teal); }
.arch-svg .uzn { fill: var(--teal); }
.arch-svg .nd.ext rect { stroke-dasharray: 4 5; }
.arch-svg .e { fill: none; stroke: var(--line); stroke-width: 2; transition: opacity .45s, stroke .45s; }
.arch-svg .gp { transition: opacity .45s; }
#s-arch[data-step="1"] .nd:not(.p1), #s-arch[data-step="1"] .e:not(.p1), #s-arch[data-step="1"] .gp:not(.p1),
#s-arch[data-step="2"] .nd:not(.p2), #s-arch[data-step="2"] .e:not(.p2), #s-arch[data-step="2"] .gp:not(.p2),
#s-arch[data-step="3"] .nd:not(.p3), #s-arch[data-step="3"] .e:not(.p3), #s-arch[data-step="3"] .gp:not(.p3),
#s-arch[data-step="4"] .nd:not(.p4), #s-arch[data-step="4"] .e:not(.p4), #s-arch[data-step="4"] .gp:not(.p4) { opacity: .22; }
#s-arch[data-step="1"] .nd.p1 rect, #s-arch[data-step="1"] .e.p1 { stroke: var(--teal); }
#s-arch[data-step="2"] .nd.p2 rect, #s-arch[data-step="2"] .e.p2 { stroke: var(--water); }
#s-arch[data-step="3"] .nd.p3 rect, #s-arch[data-step="3"] .e.p3 { stroke: var(--gold); }
#s-arch[data-step="4"] .nd.p4 rect, #s-arch[data-step="4"] .e.p4 { stroke: var(--teal); }
#s-arch[data-step="1"] .e.p1, #s-arch[data-step="2"] .e.p2, #s-arch[data-step="3"] .e.p3, #s-arch[data-step="4"] .e.p4 { stroke-width: 3; stroke-dasharray: 7 9; animation: flow 1.1s linear infinite; }
#s-arch[data-step="4"] .gp.uz rect { stroke-width: 3; fill: var(--teal-soft); }
@keyframes flow { to { stroke-dashoffset: -32; } }
.arch-leg { display: flex; gap: 10px; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--panel2); }
.lg b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--ink); color: var(--bg); }
.arch-list { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 17-19. tables, repos, terminal ---------- */
.stack { display: grid; grid-template-columns: 1.65fr 1fr; gap: 28px; align-items: start; }
.asr { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line2); color: var(--muted); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.mono { color: var(--ink); font-size: 14.5px; }
.tbl td.num { white-space: nowrap; color: var(--ink); }
.own { background: var(--panel); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.own h3 { color: var(--gold-ink); }
.own-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.own-l li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 16px; color: var(--muted); }
.own-l li b { color: var(--ink); white-space: nowrap; }
.asr-task { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.asr-task .k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--water-ink); }
.repos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.repo-l { display: flex; flex-direction: column; gap: 8px; }
.repo { display: grid; grid-template-columns: 210px 170px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.repo .rn { color: var(--ink); font-size: 15px; }
.repo .rd { font-size: 15px; color: var(--muted); }
.repo .chip { justify-self: start; font-size: 12px; }
.term { border-radius: 18px; overflow: hidden; background: #0E1113; border: 1px solid #262B30; box-shadow: var(--shadow); }
.term-h { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #171B1F; }
.term-h i { width: 10px; height: 10px; border-radius: 50%; background: #3A4047; }
.term-h span { margin-left: 8px; font-size: 13px; color: #9AA0A6; }
.term pre { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 15.5px; line-height: 1.65; color: #E8E6E1; overflow-x: auto; }
.term .c { color: #7FD8C1; }

/* ---------- 20. dataset ---------- */
.data { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.phases { display: flex; flex-direction: column; gap: 16px; }
.phs { display: flex; flex-direction: column; gap: 8px; }
.phs-h { display: flex; align-items: baseline; gap: 14px; }
.phs-id { font-size: 14px; font-weight: 600; color: var(--bg); background: var(--ink); padding: 3px 9px; border-radius: 8px; align-self: center; }
.phs-n { font-size: 54px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.phs-u { font-size: 18px; color: var(--muted); }
.phs-track { height: 16px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.phs-track i { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--water)); min-width: 10px; }
.phs-f { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); flex-wrap: wrap; }
.consent { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.consent h3 { display: flex; gap: 10px; align-items: center; }
.consent h3 svg { width: 24px; height: 24px; color: var(--teal); }
.layers { display: flex; flex-direction: column; gap: 6px; }
.ly { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 15px; color: var(--muted); padding: 7px 10px; border-radius: 10px; background: var(--panel2); }
.ly b { font-size: 14px; color: var(--teal); }
.ly:nth-child(3) { background: var(--teal-soft); color: var(--ink); }

/* ---------- 21. roadmap ---------- */
.gantt { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.g-axis, .g-row { display: grid; grid-template-columns: 250px 560px 1fr; gap: 24px; align-items: center; }
.g-axis { position: relative; height: 22px; }
.g-axis span { position: absolute; left: calc(274px + var(--x) * 560px); transform: translateX(-50%); font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.g-axis em { position: absolute; left: calc(274px + 560px + 18px); font-style: normal; font-size: 13px; color: var(--faint); }
.g-name { display: flex; flex-direction: column; gap: 2px; }
.g-name b { font-size: 19px; font-weight: 600; }
.g-name span { font-size: 14px; color: var(--faint); }
.g-lane { position: relative; height: 38px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px calc(100% / 8)); }
.g-bar { position: absolute; top: 4px; bottom: 4px; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); border-radius: 8px; }
.g-bar.p0 { background: var(--faint); }
.g-bar.p1 { background: var(--teal); }
.g-bar.p2 { background: var(--water); }
.g-bar.p3 { background: color-mix(in srgb, var(--teal) 55%, var(--water)); }
.g-bar.p4 { background: var(--gold); }
.g-txt { display: flex; flex-direction: column; gap: 3px; font-size: 15px; color: var(--muted); line-height: 1.35; }
.g-kpi { font-size: 15px; color: var(--ink); font-weight: 600; }
.g-row { padding: 8px 0; border-top: 1px solid var(--line2); }

/* ---------- 22. money ---------- */
.money .stat .v { font-size: 52px; }
.money .card { gap: 8px; }

/* ---------- 23. roles ---------- */
.roles { gap: 14px; }
.role { padding: 20px 20px; gap: 10px; }
.role .row-h { display: flex; align-items: center; gap: 12px; }
.role .icon { width: 38px; height: 38px; } .role .icon svg { width: 22px; height: 22px; }
.role h3 { font-size: 21px; }
.role p { font-size: 16.5px; line-height: 1.45; }
.role .chip { font-size: 12px; }
.humans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hu { display: flex; gap: 12px; align-items: center; padding: 16px 16px; border-radius: 16px; background: var(--gold-soft); }
.hu b { display: block; font-size: 18px; }
.hu span { display: block; font-size: 15px; color: var(--muted); }
.hu .icon { background: var(--panel); }
.commit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- 25. limits ---------- */
.lims { gap: 12px; }
.lim { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--bad); min-height: 150px; }
.lim b { font-size: 18px; font-weight: 600; line-height: 1.3; }
.lim span { font-size: 15px; color: var(--muted); line-height: 1.42; }

/* ---------- 26. cta ---------- */
.cta { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; }
.cta-svg { width: 360px; height: auto; overflow: visible; }
.cta-h { font-size: 84px; }
.cta-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; text-align: left; transition: border-color .2s, transform .15s; }
.btn:hover { border-color: var(--teal); }
.btn:active { transform: scale(.97); }
.btn svg { width: 24px; height: 24px; color: var(--teal); flex: none; }
.btn span { display: flex; flex-direction: column; }
.btn b { font-size: 18px; color: inherit; }
.btn small { font-size: 13px; color: var(--muted); }
.btn.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.pri svg { color: var(--gold); }
.btn.pri small { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ---------- 404 ---------- */
body.nf { min-height: 100vh; display: grid; place-items: center; }
.nf-main { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 16px; text-align: center; }
.nf-mark { width: 200px; }
.nf-code { font-size: 64px; font-weight: 600; letter-spacing: -.03em; }
.nf-l h1 { font-size: 22px; }
.nf-l p { margin-top: 4px; }
.nf-l + .nf-l { margin-top: 10px; }

/* ===================== story view (phones, narrow windows) ===================== */
html.story-view .display, html.story-view #s-hook .display { font-size: clamp(34px, 8.6vw, 60px); }
html.story-view .display.sm { font-size: clamp(30px, 7vw, 48px) !important; }
html.story-view h2.title, html.story-view .mission h2.title, html.story-view .face h2.title { font-size: clamp(25px, 6.4vw, 40px); max-width: none; }
html.story-view .lead, html.story-view .hero-copy .lead { font-size: clamp(17px, 4.4vw, 21px); }
html.story-view .body { font-size: 17px; }
html.story-view ul.clean li { font-size: 17px; }
html.story-view .stat .v, html.story-view .world .stat .v, html.story-view .money .stat .v, html.story-view #s-count .card .stat .v { font-size: 40px; }
html.story-view .one-q { font-size: clamp(26px, 6.6vw, 44px); }
html.story-view .m-no, html.story-view .m-yes { font-size: 18px; padding: 12px 16px; }
html.story-view .c2, html.story-view .c3, html.story-view .c4, html.story-view .c5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
html.story-view .hero-copy, html.story-view .ratio, html.story-view .mission, html.story-view .face, html.story-view .stack,
html.story-view .asr, html.story-view .repos, html.story-view .data, html.story-view .gap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
html.story-view .one { gap: 24px; }
html.story-view .scene { height: auto; max-height: 360px; }
html.story-view .h-cap, html.story-view .h-bub, html.story-view .h-waves, html.story-view .h-lbl, html.story-view .h-wall { display: none; }
html.story-view .hero-wm { height: 64px; }
html.story-view .hb { grid-template-columns: 96px 1fr; column-gap: 12px; }
html.story-view .hb-v { font-size: 26px; }
html.story-view .hb-l { font-size: 14px; }
html.story-view .ab { grid-template-columns: 110px 1fr 46px; gap: 10px; }
html.story-view .ab-n { font-size: 14px; }
html.story-view .ab-v { font-size: 18px; }
html.story-view .ab-track { height: 24px; }
html.story-view .phones { overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
html.story-view .screen { flex: none; scroll-snap-align: center; }
html.story-view .vri-side ul.clean { grid-template-columns: minmax(0, 1fr); }
html.story-view .table-phone { width: min(100%, 420px); height: auto; min-height: 520px; border-radius: 36px; padding: 12px; }
html.story-view .tp-cap { font-size: 21px; }
html.story-view .tp-reply { font-size: 20px; }
html.story-view .tbl { font-size: 14px; }
html.story-view .tbl td, html.story-view .tbl th { padding: 9px 10px; }
html.story-view .repo { grid-template-columns: minmax(0, 1fr); gap: 6px; }
html.story-view .term pre { font-size: 13px; }
html.story-view .phs-n { font-size: 40px; }
html.story-view .g-axis { display: none; }
html.story-view .g-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
html.story-view .g-lane { height: 22px; }
html.story-view .humans { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
html.story-view .lim { min-height: 0; }
html.story-view .cta-svg { width: min(70vw, 280px); }
html.story-view .cta-h { font-size: clamp(36px, 9vw, 64px); }
html.story-view .btn { width: 100%; }
html.story-view .cta-acts { width: 100%; max-width: 520px; }
html.story-view .kicker { font-size: 13px; }
html.story-view .card { padding: 18px; border-radius: 18px; }
html.story-view .srcs { gap: 6px; }
html.story-view .src { white-space: normal; }
html.story-view .ratio-cap { font-size: 17px; }

/* tighter fits for the longest translations */
#s-count h2.title { font-size: 44px; }
#s-count .hbars { gap: 8px; }
html.deck-view .phone { height: 372px; }
#s-count .card { padding-top: 16px; padding-bottom: 16px; }
