/* ==========================================================================
   APPS — App development page (violet-leaning)
   CSS-built devices with live UIs. All device internals are sized in `em`
   relative to the device width so they scale cleanly.
   ========================================================================== */

body[data-page="apps"] {
    --v: #7c5cff;
    --v2: #b3a1ff;
    --v3: #ddd4ff;
    --vd: #160f38;
    --pink: #ff3d71;
    --ok: #5ee07a;
}
[data-page="apps"] main h2 em,
[data-page="apps"] main h3 em { color: var(--v2); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes liIn { from { opacity: 0; transform: translateY(-.8em) scale(.97); } to { opacity: 1; transform: none; } }

/* Pause CSS loops when their section is off-screen (toggled by apps.js) */
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ==========================================================================
   PHONE COMPONENT
   ========================================================================== */
.phone {
    --pw: 280px;
    position: relative; width: var(--pw); height: calc(var(--pw) * 2.1667);
    font-size: calc(var(--pw) / 28);
    border-radius: 4.7em; padding: .32em;
    background: linear-gradient(150deg, #6a6876 0%, #1d1d24 18%, #3c3b47 46%, #141419 74%, #55535f 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .07),
        inset 0 0 .2em rgba(255, 255, 255, .25),
        0 4em 7em -2em rgba(0, 0, 0, .85),
        0 1.5em 5em -1em rgba(80, 50, 220, .28);
}
.phone::before, .phone::after {
    content: ''; position: absolute; width: .32em; border-radius: .2em; background: linear-gradient(90deg, #4a4955, #26252d);
}
.phone::before { left: -.26em; top: 10em; height: 2.6em; box-shadow: 0 4.4em 0 #34333c, 0 8.4em 0 #34333c; }
.phone::after { right: -.26em; top: 14em; height: 6em; }

.phone-screen {
    position: absolute; inset: .32em; overflow: hidden; isolation: isolate;
    border: .6em solid #000; border-radius: 4.4em; background: #000;
    font-family: var(--font-body); color: #fff; line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}
.phone-screen b { font-weight: 600; }
.phone-island {
    position: absolute; top: .85em; left: 50%; z-index: 40;
    width: 8.6em; height: 2.5em; margin-left: -4.3em; border-radius: 2em; background: #000;
    transition: width .7s var(--ease-out), height .7s var(--ease-out), margin .7s var(--ease-out);
}
.phone-island::after {
    content: ''; position: absolute; right: 1.1em; top: 50%; width: .9em; height: .9em; margin-top: -.45em;
    border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3550, #07080c 60%);
}

/* status bar */
.ps-status {
    position: relative; z-index: 30; height: 4.2em; display: flex; justify-content: space-between; align-items: center;
    padding: .5em 2.2em 0 2.8em; color: #fff;
}
.ps-time { font-weight: 600; font-size: 1.3em; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ps-icons { display: inline-flex; align-items: center; gap: .45em; }
.ps-icons i { display: block; font-style: normal; }
.ps-status--light { text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.ic-sig {
    width: 1.55em; height: 1em;
    background:
        linear-gradient(currentColor, currentColor) 0 100% / .28em 35% no-repeat,
        linear-gradient(currentColor, currentColor) .42em 100% / .28em 55% no-repeat,
        linear-gradient(currentColor, currentColor) .84em 100% / .28em 78% no-repeat,
        linear-gradient(currentColor, currentColor) 1.26em 100% / .28em 100% no-repeat;
}
.ic-wifi {
    width: 1.45em; height: 1.05em;
    background: radial-gradient(circle at 50% 100%, #fff 0 16%, transparent 17% 36%, #fff 37% 54%, transparent 55% 73%, #fff 74% 92%, transparent 93%);
    clip-path: polygon(0 18%, 100% 18%, 50% 100%);
}
.ic-bat {
    position: relative; width: 2.3em; height: 1.1em; border-radius: .32em; border: .1em solid rgba(255, 255, 255, .45);
}
.ic-bat::before { content: ''; position: absolute; inset: .12em; right: 30%; border-radius: .14em; background: #fff; }
.ic-bat::after { content: ''; position: absolute; right: -.3em; top: 30%; width: .16em; height: 40%; border-radius: 0 .1em .1em 0; background: rgba(255, 255, 255, .45); }

.ps-home {
    position: absolute; z-index: 45; bottom: .7em; left: 50%; width: 10em; height: .38em; margin-left: -5em;
    border-radius: 1em; background: rgba(255, 255, 255, .75);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
    padding: calc(var(--nav-h) + 2.5rem) 0 1.5rem; display: flex; flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .7; }
.hero-glow-a { right: -6%; top: 6%; width: 760px; height: 760px; opacity: .5; }
.hero-glow-b { left: -18%; bottom: -30%; width: 620px; height: 620px; opacity: .25; }
.hero-orbits {
    position: absolute; right: -14%; top: 4%; width: 76%; height: 92%;
    transform: rotate(-14deg); opacity: .9;
}
.hero-orbits ellipse { fill: none; stroke: rgba(179, 161, 255, .16); stroke-width: 1; }
.hero-orbits ellipse:nth-child(2) { stroke-dasharray: 2 8; stroke: rgba(179, 161, 255, .28); }
.hero-orbits .orb { fill: var(--v2); filter: drop-shadow(0 0 6px var(--v)); }
.hero-orbits .orb-b { fill: var(--cyan); }

.hero-inner {
    position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem; align-items: center;
}
.hero-eyebrow { opacity: 0; animation: fadeUp 1s var(--ease-out) .05s forwards; }
.hero-eyebrow::before { color: var(--v2); }
.hero-title {
    font-size: clamp(3.6rem, 9.4vw, 9.6rem); line-height: .86; margin: 1.4rem 0 1.8rem;
}
.hero-title .ln { display: block; overflow: hidden; padding: 0 .08em .07em 0; margin-bottom: -.07em; }
.hero-title .ln > span { display: inline-block; transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; animation: lnUp 1.15s var(--ease-out) forwards; }
.hero-title .ln:nth-child(1) > span { animation-delay: .12s; }
.hero-title .ln:nth-child(2) > span { animation-delay: .22s; }
.hero-title .ln:nth-child(3) > span { animation-delay: .34s; }
.hero-title em {
    font-size: 1.12em; padding-right: .1em;
    background: linear-gradient(100deg, var(--v3) 0%, var(--v2) 30%, var(--v) 62%, var(--accent) 118%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes lnUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-lede { opacity: 0; animation: fadeUp 1s var(--ease-out) .5s forwards; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 2rem; opacity: 0; animation: fadeUp 1s var(--ease-out) .62s forwards; }
.hero-meta {
    display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); margin-top: 2.6rem; padding-top: 1.3rem;
    border-top: 1px solid var(--border); max-width: 34rem; opacity: 0; animation: fadeUp 1s var(--ease-out) .74s forwards;
}
.hero-meta dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hero-meta dd { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.04em; line-height: 1.2; }
.hero-meta dd small { font-size: .5em; color: var(--muted); margin-left: .15em; letter-spacing: 0; }

/* stage + 3D rig */
.hero-stage { position: relative; height: clamp(560px, 80vh, 740px); perspective: 1800px; }
.hero-rig {
    --mx: 0; --my: 0; --hp: 0;
    position: absolute; inset: 0; transform-style: preserve-3d;
    transform: rotateX(calc(7deg + var(--my) * -7deg)) rotateY(calc(-9deg + var(--mx) * 12deg));
}
.hp { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.hp-center { --pw: 268px; z-index: 3; transform: translate(-50%, -50%) translate3d(0, calc(var(--hp) * -70px), 90px); }
.hp-left   { --pw: 228px; transform: translate(-50%, -50%) translate3d(calc(-215px - var(--hp) * 140px), calc(46px + var(--hp) * 60px), -130px) rotateY(20deg) rotateZ(-5deg); }
.hp-right  { --pw: 228px; transform: translate(-50%, -50%) translate3d(calc(215px + var(--hp) * 140px), calc(-26px + var(--hp) * 30px), -130px) rotateY(-20deg) rotateZ(5deg); }
.hp > .phone { --pw: inherit; animation: bob 7s ease-in-out infinite, phoneIn 1.4s var(--ease-out) both; }
.hp-center > .phone { animation-delay: 0s, .25s; }
.hp-left > .phone { animation-delay: -2.4s, .45s; }
.hp-right > .phone { animation-delay: -4.6s, .55s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) scale(.94); } to { opacity: 1; transform: none; } }
.hp-left .phone-screen::after, .hp-right .phone-screen::after {
    content: ''; position: absolute; inset: 0; z-index: 50; pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, transparent 35%, transparent 70%, rgba(0,0,0,.25));
}
.hp-center .phone-screen::after {
    content: ''; position: absolute; inset: 0; z-index: 50; pointer-events: none;
    background: linear-gradient(118deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 32%);
}

.hf {
    position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; white-space: nowrap; color: var(--text);
    padding: .5rem .85rem; border-radius: 100px; border: 1px solid var(--border-strong);
    background: rgba(14, 12, 24, .82); box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    animation: hfFloat 6s ease-in-out infinite, hfIn 1s var(--ease-out) both;
}
.hf-1 { left: 2%; top: 16%; transform: translateZ(160px); animation-delay: -1s, 1.1s; }
.hf-2 { right: -2%; top: 58%; transform: translateZ(200px); animation-delay: -3s, 1.3s; }
.hf-3 { left: 8%; bottom: 9%; transform: translateZ(140px); animation-delay: -5s, 1.5s; }
@keyframes hfIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hfFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v2); box-shadow: 0 0 10px var(--v); }
.hf-dot--ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hf-dot--cy { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero-foot {
    position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem;
    font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.hero-scroll { display: inline-flex; align-items: center; gap: .7rem; }
.hero-scroll i { position: relative; width: 1px; height: 34px; background: var(--border-strong); overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--v2); animation: scrollLine 1.8s var(--ease-out) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* --- Pulse UI ----------------------------------------------------------- */
.ui-pulse { background: radial-gradient(120% 55% at 85% -5%, rgba(124, 92, 255, .55), transparent 62%), radial-gradient(80% 40% at 0% 40%, rgba(46, 230, 255, .08), transparent 70%), #08070f; }
.pl-top { display: flex; align-items: center; gap: .9em; padding: .5em 1.8em 0; }
.pl-av { width: 3.1em; height: 3.1em; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .95em; font-weight: 700; color: #160d40; background: linear-gradient(135deg, var(--v3), var(--v)); }
.pl-hi { display: flex; flex-direction: column; font-weight: 600; font-size: 1.2em; line-height: 1.15; }
.pl-hi small { font-size: .72em; font-weight: 400; color: rgba(255, 255, 255, .55); }
.pl-bell { position: relative; margin-left: auto; width: 2.9em; height: 2.9em; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.pl-bell::before { content: ''; position: absolute; left: 50%; top: 50%; width: 1em; height: 1.05em; margin: -.6em 0 0 -.5em; border: .14em solid #fff; border-bottom-width: .16em; border-radius: .5em .5em .1em .1em; }
.pl-bell::after { content: ''; position: absolute; right: .55em; top: .5em; width: .55em; height: .55em; border-radius: 50%; background: var(--accent); }
.pl-label { padding: 2em 1.8em 0; font-size: 1em; color: rgba(255, 255, 255, .55); }
.pl-bal { padding: .1em 1.8em 0; font-family: var(--font-display); font-size: 3.3em; font-weight: 500; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-bal .d { display: inline-block; }
.pl-bal .d.flip { animation: digit .5s var(--ease-out); }
@keyframes digit { from { transform: translateY(-.45em); opacity: 0; color: var(--v2); } to { transform: none; opacity: 1; } }
.pl-delta { display: inline-flex; gap: .4em; margin: .55em 1.8em 0; padding: .3em .75em; border-radius: 2em; font-size: .95em; color: var(--ok); background: rgba(40, 200, 64, .14); }
.pl-delta span { color: rgba(255, 255, 255, .5); }
.pl-spark { display: block; width: 100%; height: 6.6em; margin-top: 1em; }
.pl-line { fill: none; stroke: var(--v2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.6s var(--ease-out) .8s forwards; }
.pl-area { opacity: 0; animation: fadeIn 1.4s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.pl-actions { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.1em 1.4em 0; text-align: center; font-size: .85em; color: rgba(255, 255, 255, .7); }
.pl-actions span { display: flex; flex-direction: column; align-items: center; gap: .45em; }
.pl-actions i { width: 3.9em; height: 3.9em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.15em; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); }
.pl-actions span:first-child i { background: var(--v); border-color: transparent; }
.pl-act-h { display: flex; justify-content: space-between; align-items: baseline; padding: 1.6em 1.8em .5em; }
.pl-act-h b { font-size: 1.15em; }
.pl-act-h span { font-size: .9em; color: var(--v2); }
.pl-list { list-style: none; overflow: hidden; }
.pl-list li { display: grid; grid-template-columns: 3.1em 1fr auto; gap: .9em; align-items: center; padding: .7em 1.8em; }
.pl-list li.is-new { animation: liIn .7s var(--ease-out); background: linear-gradient(90deg, rgba(124, 92, 255, .14), transparent); }
.pl-list i { width: 3.1em; height: 3.1em; border-radius: 1em; display: grid; place-items: center; font-style: normal; font-weight: 600; color: hsl(var(--h) 85% 78%); background: hsl(var(--h) 60% 55% / .2); }
.pl-list span { display: flex; flex-direction: column; min-width: 0; }
.pl-list span b { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-list small { font-size: .82em; color: rgba(255, 255, 255, .45); }
.pl-list em { font-style: normal; font-weight: 600; font-size: 1em; font-variant-numeric: tabular-nums; }
.pl-list em.in { color: var(--ok); }

/* --- Tempo UI ----------------------------------------------------------- */
.ui-tempo { background: radial-gradient(90% 45% at 50% 32%, rgba(255, 61, 113, .14), transparent 70%), #050508; }
.tp-head { display: flex; justify-content: space-between; align-items: baseline; padding: .6em 2em 0; }
.tp-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.7em; letter-spacing: -.05em; }
.tp-brand::after { content: '.'; color: var(--accent); }
.tp-tag { font-family: var(--font-mono); font-size: .85em; color: rgba(255, 255, 255, .55); }
.tp-tag b { color: #fff; }
.tp-rings { position: relative; width: 19em; height: 19em; margin: 1.4em auto 0; }
.tp-rings svg, .wr-rings, .pay-art svg, .rw-rings { transform: rotate(-90deg); overflow: visible; }
.trk { fill: none; stroke-width: 10; opacity: .17; }
.rng { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); animation: ringFill 2.4s var(--ease-out) .6s both; }
@keyframes ringFill { from { stroke-dashoffset: 100; } }
.r1 { stroke: var(--pink); }
.r2 { stroke: var(--accent); }
.r3 { stroke: var(--cyan); }
.tp-bpm { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.tp-heart { color: var(--pink); font-size: 1.4em; animation: beat .82s ease-in-out infinite; }
.tp-bpm b { font-family: var(--font-display); font-size: 3em; font-weight: 500; letter-spacing: -.04em; margin-top: .1em; font-variant-numeric: tabular-nums; }
.tp-bpm small { font-family: var(--font-mono); font-size: .8em; color: rgba(255, 255, 255, .5); margin-top: .2em; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.tp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1em 1.4em; padding: 1.6em 2em 0; }
.tp-stats div { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .5em; }
.tp-stats small { font-family: var(--font-mono); font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .45); }
.tp-stats b { font-family: var(--font-display); font-size: 1.7em; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tp-stats b.z4 { color: var(--pink); }
.tp-hr { display: flex; align-items: flex-end; gap: .28em; height: 3.6em; padding: 0 2em; margin-top: 1.4em; }
.tp-hr i { flex: 1; height: 40%; border-radius: .2em; background: linear-gradient(var(--pink), rgba(255, 61, 113, .15)); transform-origin: bottom; animation: hrBar 1.4s ease-in-out infinite alternate; }
.tp-hr i:nth-child(3n) { animation-duration: 1.1s; height: 70%; }
.tp-hr i:nth-child(3n+1) { animation-duration: 1.7s; height: 55%; }
.tp-hr i:nth-child(4n) { animation-delay: -.6s; height: 85%; }
.tp-hr i:nth-child(5n) { animation-delay: -1s; }
@keyframes hrBar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.tp-ctrl { display: flex; justify-content: center; gap: 1.2em; margin-top: 1.4em; }
.tp-btn { width: 4.6em; height: 4.6em; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 1em; font-weight: 600; letter-spacing: -.1em; }
.tp-btn--lap { background: rgba(255, 255, 255, .1); letter-spacing: 0; font-size: .95em; }

/* --- Kinfolk UI --------------------------------------------------------- */
.ui-kin { background: #140e1c; }
.kn-video { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(165deg, #46305e 0%, #24183a 45%, #120c1e 100%); }
.kn-bokeh { position: absolute; border-radius: 50%; filter: blur(1.2em); opacity: .55; }
.kn-bokeh.b1 { width: 10em; height: 10em; left: -3em; top: 8em; background: #ff9f6b; opacity: .3; }
.kn-bokeh.b2 { width: 7em; height: 7em; right: -1em; top: 20em; background: #7c5cff; }
.kn-bokeh.b3 { width: 14em; height: 6em; left: 4em; top: 4em; background: #ffd9a8; opacity: .14; }
.kn-person { position: absolute; left: 50%; bottom: 0; width: 24em; height: 40em; margin-left: -12em; animation: breathe 5s ease-in-out infinite; transform-origin: bottom; }
.kn-person .kn-head {
    position: absolute; left: 50%; top: 7.5em; width: 9.4em; height: 11.4em; margin-left: -4.7em; border-radius: 48% 48% 46% 46%;
    background: radial-gradient(60% 55% at 42% 40%, #e2a985, #b77355 70%, #8c5340);
    box-shadow: inset -.8em -.6em 1.6em rgba(60, 20, 30, .35);
}
.kn-person .kn-head::before {
    content: ''; position: absolute; left: -.6em; right: -.6em; top: -1.2em; height: 6.4em; border-radius: 50% 50% 30% 30%;
    background: radial-gradient(100% 90% at 50% 80%, #2a1a22, #120a10);
}
.kn-person .kn-body {
    position: absolute; left: 0; right: 0; bottom: 0; height: 21em; border-radius: 10em 10em 0 0;
    background: linear-gradient(180deg, #f1edf8, #b8b1cc);
}
.kn-person .kn-body::before {
    content: ''; position: absolute; left: 50%; top: 0; width: 8em; height: 9em; margin-left: -4em;
    background: linear-gradient(#3b2f63, #2a2150); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.kn-person .kn-body::after {
    content: ''; position: absolute; left: 50%; top: -2.2em; width: 4em; height: 3.4em; margin-left: -2em; border-radius: 0 0 2em 2em;
    background: #a8664c;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012) translateY(-.15em); } }
.kn-top { position: absolute; z-index: 32; top: 4.4em; left: 1.5em; right: 1.5em; display: flex; justify-content: space-between; align-items: flex-start; }
.kn-who { display: flex; flex-direction: column; padding: .7em 1em; border-radius: 1.2em; background: rgba(10, 6, 18, .55); line-height: 1.25; }
.kn-who b { font-size: 1.1em; }
.kn-who span { font-size: .82em; color: rgba(255, 255, 255, .6); }
.kn-time { display: inline-flex; align-items: center; gap: .45em; padding: .55em .85em; border-radius: 2em; background: rgba(10, 6, 18, .55); font-family: var(--font-mono); font-size: .9em; font-variant-numeric: tabular-nums; }
.kn-rec { width: .6em; height: .6em; border-radius: 50%; background: var(--red); animation: pulseDot 1.4s ease-in-out infinite; }
.kn-e2e { position: absolute; z-index: 32; top: 9.4em; left: 1.5em; font-size: .78em; padding: .4em .8em; border-radius: 2em; background: rgba(94, 224, 122, .16); color: var(--ok); }
.kn-self {
    position: absolute; z-index: 32; right: 1.5em; top: 10.4em; width: 7.4em; height: 10.4em; border-radius: 1.3em; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .3); background: linear-gradient(170deg, #3b5277, #1a2438); box-shadow: 0 1em 2em rgba(0, 0, 0, .4);
}
.kn-self .kn-head { position: absolute; left: 50%; top: 2.4em; width: 3.4em; height: 4em; margin-left: -1.7em; border-radius: 48%; background: radial-gradient(60% 55% at 42% 40%, #f0c6a4, #c48d6a); }
.kn-self .kn-head::before { content: ''; position: absolute; inset: -.3em -.2em 55% -.2em; border-radius: 50% 50% 20% 20%; background: #6b4a2c; }
.kn-self .kn-body { position: absolute; left: .6em; right: .6em; bottom: -1em; height: 4.6em; border-radius: 3em 3em 0 0; background: linear-gradient(#7c5cff, #4b36a8); }
.kn-caption {
    position: absolute; z-index: 32; left: 1.5em; right: 1.5em; bottom: 10.2em; display: flex; gap: .7em; align-items: center;
    padding: .9em 1.1em; border-radius: 1.3em; background: rgba(10, 6, 18, .62); font-size: .98em; line-height: 1.3; min-height: 3.6em;
}
.kn-wave { display: flex; align-items: center; gap: .18em; height: 1.4em; flex: none; }
.kn-wave i { width: .22em; height: 100%; border-radius: 1em; background: var(--v2); animation: hrBar .6s ease-in-out infinite alternate; }
.kn-wave i:nth-child(2) { animation-delay: -.2s; } .kn-wave i:nth-child(3) { animation-delay: -.4s; } .kn-wave i:nth-child(4) { animation-delay: -.1s; } .kn-wave i:nth-child(5) { animation-delay: -.3s; }
.kn-bar { position: absolute; z-index: 32; left: 1.5em; right: 1.5em; bottom: 2.6em; display: flex; justify-content: space-between; }
.kn-b { width: 4.6em; height: 4.6em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.kn-b svg { width: 1.9em; height: 1.9em; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kn-end { background: #ff3b30; }
.kn-end svg { fill: #fff; stroke: none; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.apps-marquee { padding: 1.4rem 0; background: linear-gradient(90deg, rgba(124, 92, 255, .06), transparent 50%, rgba(124, 92, 255, .06)); }
.apps-marquee .marquee-track > span {
    font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); text-transform: none;
    letter-spacing: -.03em; color: var(--text);
}
.apps-marquee .marquee-track > span b { color: var(--v); font-weight: 400; margin: 0 .8em; font-size: .6em; vertical-align: .25em; }

/* ==========================================================================
   PLATFORMS
   ========================================================================== */
.platforms { overflow: hidden; }
.pf-tabs {
    display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: clamp(2rem, 5vw, 3.5rem); background: var(--surface);
}
.pf-tab {
    position: relative; display: grid; gap: .15rem; text-align: left; padding: 1.15rem 1.35rem 1.25rem;
    font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -.02em; color: var(--muted);
    border-right: 1px solid var(--border); transition: color .3s, background .4s;
}
.pf-tab:last-child { border-right: 0; }
.pf-tab small { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--dim); }
.pf-n { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--dim); margin-bottom: .35rem; transition: color .3s; }
.pf-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--v); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.pf-tab:hover { color: var(--text); }
.pf-tab.is-active { color: var(--text); background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .13)); }
.pf-tab.is-active::after { transform: scaleX(1); }
.pf-tab.is-active .pf-n { color: var(--v2); }

.pf-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pf-stage { position: relative; height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pf-ring { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; }
.pf-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, rgba(124, 92, 255, .55) 75%, rgba(46, 230, 255, .4) 85%, transparent 100%); filter: blur(46px); animation: spin 12s linear infinite; }
.pf-ring::after { content: ''; position: absolute; inset: 40px; border-radius: 50%; border: 1px dashed rgba(179, 161, 255, .18); }

.pf-device {
    --dw: 290px; --dh: 628px; --dr: 48px; --sr: 43px;
    position: relative; z-index: 2; font-size: 10px; width: var(--dw); height: var(--dh); border-radius: var(--dr); padding: 4px;
    background: linear-gradient(150deg, #6a6876 0%, #1d1d24 18%, #3c3b47 46%, #141419 74%, #55535f 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 2px rgba(255, 255, 255, .25), 0 40px 80px -20px rgba(0, 0, 0, .85), 0 20px 60px -10px rgba(80, 50, 220, .3);
    transition: width .9s var(--ease-out), height .9s var(--ease-out), border-radius .9s var(--ease-out);
}
.pf-device::before, .pf-device::after {
    content: ''; position: absolute; left: 50%; z-index: -1; width: 74%; height: 170px; margin-left: -37%;
    background: linear-gradient(90deg, #17161d, #2a2833 50%, #17161d);
    opacity: 0; transition: opacity .6s, transform .9s var(--ease-out);
}
.pf-device::before { bottom: calc(100% - 30px); border-radius: 22px 22px 0 0; transform: scaleY(.3); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000 40%, transparent); mask-image: linear-gradient(to top, #000 40%, transparent); }
.pf-device::after { top: calc(100% - 30px); border-radius: 0 0 22px 22px; transform: scaleY(.3); transform-origin: top; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.pf-device[data-mode="android"] { --dr: 38px; --sr: 33px; }
.pf-device[data-mode="wear"] { --dw: 224px; --dh: 266px; --dr: 66px; --sr: 58px; }
.pf-device[data-mode="wear"]::before, .pf-device[data-mode="wear"]::after { opacity: 1; transform: none; }
.pf-screen {
    position: absolute; inset: 4px; overflow: hidden; isolation: isolate; border: 6px solid #000; border-radius: var(--sr); background: #000;
    font-family: var(--font-body); color: #fff; line-height: 1.3; transition: border-radius .9s var(--ease-out), border-width .6s;
}
.pf-device[data-mode="wear"] .pf-screen { border-width: 9px; }
.pf-crown {
    position: absolute; right: -9px; top: 32%; width: 11px; height: 46px; border-radius: 4px;
    background: repeating-linear-gradient(0deg, #55535f 0 2px, #2b2a33 2px 4px); box-shadow: inset 2px 0 2px rgba(0, 0, 0, .5);
    opacity: 0; transform: scaleX(.2); transform-origin: left; transition: opacity .4s, transform .6s var(--ease-out);
}
.pf-device[data-mode="wear"] .pf-crown { opacity: 1; transform: none; transition-delay: .4s; }

.pfs { position: absolute; inset: 0; opacity: 0; transform: scale(.96); filter: blur(6px); transition: opacity .45s, transform .8s var(--ease-out), filter .5s; pointer-events: none; }
.pfs.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .28s; }
.pf-island { position: absolute; top: 10px; left: 50%; z-index: 40; width: 86px; height: 25px; margin-left: -43px; border-radius: 20px; background: #000; }

/* iOS */
.pfs-ios { background: #000; }
.io-nav { display: flex; justify-content: space-between; padding: .2em 1.6em 0; color: #a28cff; font-size: 1.3em; }
.io-title { padding: .1em 1.25em 0; font-size: 3.1em; font-weight: 700; letter-spacing: -.025em; }
.io-search { margin: .7em 1.6em; padding: .65em 1em; background: #1c1c1e; border-radius: 1em; color: #8e8e93; font-size: 1.25em; }
.io-seg { margin: 0 1.6em; display: grid; grid-template-columns: repeat(3, 1fr); padding: .2em; border-radius: .9em; background: #1c1c1e; text-align: center; font-size: 1.1em; font-weight: 500; }
.io-seg span { padding: .4em 0; border-radius: .7em; color: #ccc; }
.io-seg .on { background: #3a3a3c; color: #fff; }
.io-group { margin: 1.3em 1.6em 0; border-radius: 1.2em; background: #1c1c1e; overflow: hidden; }
.io-row { display: flex; align-items: center; gap: 1em; padding: .9em 1.2em; font-size: 1.2em; border-bottom: 1px solid #2c2c2e; }
.io-row:last-child { border-bottom: 0; }
.io-row i { flex: none; width: 2.1em; height: 2.1em; border-radius: .55em; display: grid; place-items: center; font-style: normal; font-size: .85em; color: #fff; background: var(--c); }
.io-row span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.io-row small { font-size: .78em; color: #8e8e93; }
.io-row b { font-variant-numeric: tabular-nums; font-size: .95em; }
.io-sw { position: relative; flex: none; margin-left: auto; width: 4.1em; height: 2.5em; border-radius: 2em; background: #39393d; transition: background .35s; }
.io-sw::after { content: ''; position: absolute; left: .2em; top: .2em; width: 2.1em; height: 2.1em; border-radius: 50%; background: #fff; box-shadow: 0 .2em .5em rgba(0, 0, 0, .3); transition: transform .45s var(--ease-out); }
.io-sw.on { background: var(--v); }
.io-sw.on::after { transform: translateX(1.6em); }
.io-row .io-sw { font-size: .8em; }
.io-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 7.6em; padding-top: .7em; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; background: rgba(24, 24, 27, .96); border-top: 1px solid #2c2c2e; font-size: .95em; color: #8e8e93; }
.io-tabs span { display: flex; flex-direction: column; align-items: center; gap: .1em; }
.io-tabs i { font-style: normal; font-size: 1.8em; line-height: 1.1; }
.io-tabs .on { color: #a28cff; }

/* Android */
.pfs-android { background: #15121b; color: #ebe3f7; }
.ad-punch { position: absolute; top: 12px; left: 50%; z-index: 40; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #0a0a0c; }
.ps-status--ad { padding: .2em 2em 0 2.2em; height: 3.8em; }
.ps-status--ad .ps-time { font-weight: 500; font-size: 1.2em; }
.ad-bar { display: flex; align-items: center; gap: 1em; margin: .4em 1.4em .2em; height: 4.8em; padding: 0 .6em 0 1.5em; border-radius: 3em; background: #2b2535; font-size: 1.15em; }
.ad-menu { color: #cfc4e0; }
.ad-search { flex: 1; color: #a69bb8; }
.ad-av { width: 2.8em; height: 2.8em; border-radius: 50%; display: grid; place-items: center; background: #cbbcff; color: #24135c; font-weight: 600; }
.ad-chips { display: flex; gap: .6em; padding: .8em 1.4em .3em; }
.ad-chips span { padding: .45em .95em; border-radius: .8em; border: 1px solid #4a4357; font-size: 1.05em; color: #cfc4e0; }
.ad-chips .on { background: #4b3d7a; border-color: transparent; color: #ece3ff; }
.ad-card { display: flex; gap: 1em; align-items: center; margin: .8em 1.4em 0; padding: 1.2em 1.3em; border-radius: 1.8em; background: #231e2c; }
.ad-card i { flex: none; width: 3.6em; height: 3.6em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.2em; background: #3a3150; color: #d6c8ff; }
.ad-card span { display: flex; flex-direction: column; }
.ad-card b { font-size: 1.2em; }
.ad-card small { font-size: 1em; color: #a69bb8; }
.ad-card--hero { position: relative; display: grid; gap: .2em; padding: 1.5em 1.5em 1.6em; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #8a6dff, #4a35a8 55%, #2c1f6e); }
.ad-card--hero small { font-size: .9em; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.ad-card--hero b { font-size: 2em; font-weight: 600; letter-spacing: -.02em; }
.ad-card--hero span { font-size: 1.1em; color: rgba(255, 255, 255, .8); }
.ad-card--hero em { position: absolute; right: 1.3em; bottom: 1.4em; padding: .55em 1.3em; border-radius: 2em; background: #ece3ff; color: #24135c; font-style: normal; font-weight: 600; font-size: 1.1em; }
.ad-fab { position: absolute; right: 1.4em; bottom: 9.4em; display: flex; align-items: center; height: 4.6em; padding: 0 1.6em; border-radius: 1.4em; background: #cbbcff; color: #24135c; font-weight: 600; font-size: 1.15em; box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .45); }
.ad-navbar { position: absolute; left: 0; right: 0; bottom: 0; height: 8em; padding-top: 1em; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; background: #1e1a26; font-size: .95em; color: #a69bb8; }
.ad-navbar span { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.ad-navbar i { width: 3.8em; height: 2.1em; border-radius: 1.2em; display: grid; place-items: center; font-style: normal; font-size: 1.4em; }
.ad-navbar .on { color: #ece3ff; }
.ad-navbar .on i { background: #4b3d7a; }
.ad-gesture { position: absolute; left: 50%; bottom: .7em; width: 8em; height: .32em; margin-left: -4em; border-radius: 1em; background: #cfc6dd; }

/* Cross-platform compare */
.pfs-cross { --cx: 50%; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.cx-layer { position: absolute; inset: 0; }
.cx-and { background: #16131c; color: #ebe3f7; }
.cx-and .ps-status { height: 3.8em; }
.cx-and-bar { padding: .9em 1.6em; font-size: 1.8em; font-weight: 500; }
.cx-and-card { position: relative; display: grid; gap: .2em; margin: 0 1.4em .9em; padding: 1.4em 1.4em 1.5em; border-radius: 1.8em; background: #241f2e; }
.cx-and-card b { font-size: 1.35em; }
.cx-and-card small { color: #a69bb8; font-size: 1.05em; }
.cx-pill { position: absolute; right: 1.2em; top: 50%; transform: translateY(-50%); padding: .5em 1.2em; border-radius: 2em; background: #cbbcff; color: #24135c; font-weight: 600; font-size: 1.05em; }
.cx-pill--ghost { background: transparent; border: 1px solid #6b5f80; color: #d6c8ff; }
.cx-and-fab { position: absolute; right: 1.6em; bottom: 3.2em; width: 5.6em; height: 5.6em; border-radius: 1.6em; display: grid; place-items: center; background: #cbbcff; color: #24135c; font-size: 2.4em; font-size: 1.6em; font-weight: 500; }
.cx-ios { background: #000; clip-path: inset(0 calc(100% - var(--cx)) 0 0); }
.cx-ios-title { padding: 1.4em 1.2em .4em; font-size: 3.1em; font-weight: 700; letter-spacing: -.025em; padding-top: .6em; }
.cx-ios-group { margin: .6em 1.6em 0; border-radius: 1.2em; background: #1c1c1e; overflow: hidden; }
.cx-ios-group div { position: relative; display: flex; flex-direction: column; padding: 1em 1.3em; border-bottom: 1px solid #2c2c2e; }
.cx-ios-group div:last-child { border-bottom: 0; }
.cx-ios-group b { font-size: 1.3em; }
.cx-ios-group small { font-size: 1.05em; color: #8e8e93; }
.cx-ios-group span { position: absolute; right: 1em; top: 50%; transform: translateY(-50%); font-size: 2em; color: #48484a; }
.cx-ios-btn { position: absolute; left: 1.6em; right: 1.6em; bottom: 3.6em; padding: 1.1em; border-radius: 1.4em; background: var(--v); text-align: center; font-weight: 600; font-size: 1.3em; }
.cx-tag { position: absolute; left: 1.4em; bottom: 1.4em; font-family: var(--font-mono); font-size: .85em; padding: .3em .6em; border-radius: .4em; background: rgba(255, 255, 255, .1); color: #fff; letter-spacing: .04em; }
.cx-tag--r { left: auto; right: 1.4em; }
.cx-and .cx-tag { bottom: 12em; }
.cx-ios .cx-tag { bottom: 12em; }
.cx-handle { position: absolute; z-index: 10; top: 0; bottom: 0; left: var(--cx); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 1.2em rgba(124, 92, 255, .8); }
.cx-handle span { position: absolute; top: 50%; left: 50%; width: 3.8em; height: 3.8em; margin: -1.9em 0 0 -1.9em; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #120a33; font-size: 1.3em; box-shadow: 0 .4em 1.4em rgba(0, 0, 0, .5); }
.cx-range { position: relative; z-index: 3; width: 220px; margin-top: 1.5rem; accent-color: var(--v); }

/* Watch */
.pfs-wear { background: radial-gradient(80% 70% at 50% 40%, rgba(255, 61, 113, .14), transparent 70%), #000; }
.wr-time { position: absolute; top: 1.5em; right: 2.4em; font-size: 1.5em; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.wr-rings { position: absolute; left: 50%; top: 3.6em; width: 12.5em; height: 12.5em; margin-left: -6.25em; }
.wr-rings .trk, .wr-rings .rng { stroke-width: 11; }
.wr-bpm { position: absolute; left: 0; right: 0; bottom: 1.8em; text-align: center; font-family: var(--font-display); font-size: 1.9em; font-weight: 500; letter-spacing: -.03em; }
.wr-bpm span { color: var(--pink); display: inline-block; animation: beat .78s ease-in-out infinite; }
.wr-bpm small { display: block; font-family: var(--font-mono); font-size: .42em; letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.pfs-wear .rng { animation: none; }
.pfs-wear.is-active .rng { animation: ringFill 1.6s var(--ease-out) .4s both; }

/* info panel */
.pf-info { min-width: 0; }
.pf-info-inner { transition: opacity .3s, transform .5s var(--ease-out); }
.pf-info.is-swap .pf-info-inner { opacity: 0; transform: translateY(12px); }
.pf-info h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.pf-info > .pf-info-inner > p { margin-top: 1rem; font-size: 1.08rem; max-width: 46ch; }
.pf-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.pf-cols h4 { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--v2); margin-bottom: .8rem; }
.pf-cols ul { list-style: none; display: grid; gap: .55rem; }
.pf-cols li { position: relative; padding-left: 1.3rem; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.pf-cols li::before { content: '→'; position: absolute; left: 0; color: var(--v2); }
.pf-cols p { font-size: .93rem; line-height: 1.55; }
.pf-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.75rem; }
.pf-code {
    margin-top: 1.5rem; padding: 1.1rem 1.3rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: #08080c; font-family: var(--font-mono); font-size: .78rem; line-height: 1.7; color: #d7d6cf; tab-size: 2;
}
.pf-code .k { color: #c792ff; } .pf-code .s { color: var(--accent); } .pf-code .c { color: var(--dim); font-style: italic; }
.pf-code .f { color: var(--cyan); } .pf-code .t { color: #ffb86b; } .pf-code .n { color: #ff7ab2; }

/* ==========================================================================
   FEATURE STORY
   ========================================================================== */
.story { padding-bottom: clamp(3rem, 6vw, 5rem); overflow-x: clip; }
.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
.story-grid::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--border) 10%, var(--border) 90%, transparent);
}
.story-stick {
    grid-column: 2; grid-row: 1 / span 6; align-self: start; position: sticky; z-index: 1;
    top: max(calc(var(--nav-h) + 1rem), calc(50vh - 345px));
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.story-stick::before {
    content: ''; position: absolute; left: 50%; top: 45%; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, .32), transparent 62%); filter: blur(20px);
}
.story-meter { display: flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; }
.story-meter b { color: var(--text); font-weight: 500; }
.sm-bar { position: relative; width: 120px; height: 2px; background: var(--border-strong); overflow: hidden; border-radius: 2px; }
.sm-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--v), var(--cyan)); transform-origin: left; transform: scaleX(.1667); transition: transform .6s var(--ease-out); }
.phone--story { --pw: 300px; }

.story-panel { grid-column: 1; min-height: 92vh; display: flex; align-items: center; justify-content: flex-end; opacity: .22; transition: opacity .6s var(--ease-out); }
.story-panel--r { grid-column: 3; justify-content: flex-start; }
.story-panel.is-active { opacity: 1; }
.story-panel[data-step="1"] { grid-row: 1; } .story-panel[data-step="2"] { grid-row: 2; } .story-panel[data-step="3"] { grid-row: 3; }
.story-panel[data-step="4"] { grid-row: 4; } .story-panel[data-step="5"] { grid-row: 5; } .story-panel[data-step="6"] { grid-row: 6; }
.sp-card { max-width: 27rem; }
.sp-n { display: block; font-family: var(--font-display); font-size: clamp(4rem, 7vw, 6.5rem); line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(179, 161, 255, .5); margin-bottom: 1rem; }
.story-panel.is-active .sp-n { -webkit-text-stroke-color: var(--v2); }
.sp-card h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1rem; }
.sp-card p { font-size: 1rem; }
.sp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.sp-slider { display: grid; grid-template-columns: auto 1fr 3.2rem; gap: .9rem; align-items: center; margin-top: 1.4rem; padding: .85rem 1rem; border: 1px solid rgba(124, 92, 255, .35); border-radius: 100px; background: var(--violet-soft); font-family: var(--font-mono); font-size: .75rem; }
.sp-slider label { color: var(--v2); text-transform: uppercase; letter-spacing: .1em; }
.sp-slider input { width: 100%; accent-color: var(--v); }
.sp-slider output { text-align: right; color: var(--text); }

/* story screens */
.ss { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease-out); }
.ss.is-active { opacity: 1; }
.ps-home--auto { background: rgba(255, 255, 255, .7); }

/* island live activity (step 3) */
.phone-island .la { position: absolute; inset: 0; display: flex; align-items: center; gap: .6em; padding: 0 1.1em; opacity: 0; transition: opacity .3s; white-space: nowrap; overflow: hidden; }
.la-ic { font-style: normal; font-size: 1.1em; }
.la-t { font-size: .95em; font-weight: 600; color: #fff; }
.la-bar { flex: 1; height: .35em; border-radius: 1em; background: rgba(255, 255, 255, .15); overflow: hidden; min-width: 3em; }
.la-bar i { display: block; height: 100%; width: 70%; background: var(--accent); border-radius: inherit; }
.phone--story[data-step="3"] .phone-island { width: 20em; height: 3.4em; margin-left: -10em; }
.phone--story[data-step="3"] .phone-island::after { opacity: 0; }
.phone--story[data-step="3"] .phone-island .la { opacity: 1; transition-delay: .35s; }

/* 1 — biometric */
.ss-bio { background: radial-gradient(90% 55% at 20% 5%, #3b2a8c, transparent 62%), radial-gradient(80% 50% at 95% 95%, #10324f, transparent 60%), #0a0812; }
.bio-lock { text-align: center; margin-top: .4em; font-size: 1.3em; }
.bio-clock { text-align: center; font-family: var(--font-display); font-size: 6.6em; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.bio-date { text-align: center; color: rgba(255, 255, 255, .7); font-size: 1.15em; margin-top: .3em; }
.bio-face { position: relative; width: 8.6em; height: 8.6em; margin: 4.2em auto 0; }
.bio-glyph, .bio-check { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bio-glyph { stroke: #fff; }
.bio-check { stroke: var(--ok); }
.bio-check circle, .bio-check path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.bio-scan { position: absolute; left: 6%; right: 6%; top: 10%; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, var(--v2), transparent); box-shadow: 0 0 1em var(--v); }
.bio-msg { position: relative; height: 1.6em; margin-top: 1.6em; text-align: center; font-size: 1.15em; }
.bio-msg span { position: absolute; inset: 0; }
.bio-msg .m2 { opacity: 0; color: var(--ok); font-weight: 600; }
.bio-card { position: absolute; left: 1.8em; right: 1.8em; bottom: 3.4em; display: grid; gap: .2em; padding: 1.3em 1.4em; border-radius: 1.8em; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; }
.bio-card small { font-size: .85em; color: rgba(255, 255, 255, .55); }
.bio-card b { font-size: 1.5em; letter-spacing: -.02em; }
.bio-card span { font-size: .92em; color: var(--ok); }
.ss-bio.is-active .bio-glyph { animation: bioGlyph 4.4s var(--ease-out) infinite; }
.ss-bio.is-active .bio-scan { animation: bioScan 4.4s ease-in-out infinite; }
.ss-bio.is-active .bio-check circle { animation: bioCheckC 4.4s var(--ease-out) infinite; }
.ss-bio.is-active .bio-check path { animation: bioCheckP 4.4s var(--ease-out) infinite; }
.ss-bio.is-active .m1 { animation: bioM1 4.4s infinite; }
.ss-bio.is-active .m2 { animation: bioM2 4.4s var(--ease-out) infinite; }
.ss-bio.is-active .bio-card { animation: bioCard 4.4s var(--ease-out) infinite; }
@keyframes bioGlyph { 0%, 6% { opacity: 0; transform: scale(.85); } 14%, 50% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes bioScan { 0%, 12% { opacity: 0; top: 10%; } 16% { opacity: 1; } 31% { top: 88%; } 46% { top: 10%; opacity: 1; } 50%, 100% { opacity: 0; top: 10%; } }
@keyframes bioCheckC { 0%, 56% { stroke-dashoffset: 100; } 72%, 96% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes bioCheckP { 0%, 64% { stroke-dashoffset: 100; } 78%, 100% { stroke-dashoffset: 0; } }
@keyframes bioM1 { 0%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes bioM2 { 0%, 58% { opacity: 0; transform: translateY(.5em); } 66%, 100% { opacity: 1; transform: none; } }
@keyframes bioCard { 0%, 66% { opacity: 0; transform: translateY(2em); } 80%, 100% { opacity: 1; transform: none; } }

/* 2 — offline */
.ss-off { background: radial-gradient(100% 40% at 50% 0%, rgba(124, 92, 255, .2), transparent 70%), #0b0a10; }
.off-plane { display: none !important; font-size: 1.15em; color: #fff; }
.ss-off.is-airplane .off-plane { display: block !important; }
.ss-off.is-airplane .ic-sig, .ss-off.is-airplane .ic-wifi { opacity: .2; }
.off-head { display: flex; justify-content: space-between; align-items: center; padding: .5em 1.8em 0; }
.off-head b { font-size: 2.3em; letter-spacing: -.03em; }
.off-pill { padding: .35em .85em; border-radius: 2em; font-family: var(--font-mono); font-size: .9em; color: var(--ok); background: rgba(40, 200, 64, .15); transition: color .3s, background .3s; }
.off-pill.is-off { color: var(--amber); background: rgba(254, 188, 46, .15); }
.off-pill.is-sync { color: var(--v2); background: rgba(124, 92, 255, .2); }
.off-toggle { display: flex; align-items: center; margin: 1.4em 1.8em 0; padding: .9em 1.2em; border-radius: 1.2em; background: #1c1c1e; font-size: 1.15em; }
.off-toggle .io-sw { font-size: .85em; }
.off-toggle .io-sw.on { background: var(--amber); }
.off-q { display: flex; justify-content: space-between; margin: 1.5em 1.8em .55em; font-family: var(--font-mono); font-size: .92em; color: rgba(255, 255, 255, .5); }
.off-q b { color: #fff; font-weight: 500; }
.off-prog { height: .35em; margin: 0 1.8em; border-radius: 1em; background: #1c1c1e; overflow: hidden; }
.off-prog i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v), var(--cyan)); transition: width .5s var(--ease-out); }
.off-list { list-style: none; display: grid; gap: .65em; margin: 1.1em 1.8em 0; }
.off-list li { display: flex; gap: 1em; align-items: center; padding: .9em 1.1em; border-radius: 1.2em; background: #16151d; border: 1px solid rgba(255, 255, 255, .06); animation: liIn .55s var(--ease-out); }
.off-list li i { position: relative; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; border: .18em dashed var(--amber); }
.off-list li.is-syncing i { border: .18em solid rgba(124, 92, 255, .25); border-top-color: var(--v2); animation: spin .7s linear infinite; }
.off-list li.is-synced i { border: 0; background: rgba(40, 200, 64, .18); }
.off-list li.is-synced i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ok); font-weight: 700; font-size: 1.05em; }
.off-list span { display: flex; flex-direction: column; min-width: 0; }
.off-list b { font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off-list small { font-size: .85em; color: rgba(255, 255, 255, .45); }
.off-list li.is-queued small { color: var(--amber); }
.off-foot { position: absolute; left: 0; right: 0; bottom: 2.6em; text-align: center; font-family: var(--font-mono); font-size: .85em; color: rgba(255, 255, 255, .38); }

/* 3 — push */
.ss-push { background: radial-gradient(70% 45% at 15% 20%, rgba(124, 92, 255, .7), transparent 70%), radial-gradient(70% 50% at 100% 70%, rgba(46, 230, 255, .35), transparent 70%), radial-gradient(60% 40% at 30% 100%, rgba(255, 61, 113, .35), transparent 70%), #0d0a1a; }
.ss-push .ps-icons { opacity: 0; }
.push-clock { text-align: center; margin-top: .25em; font-family: var(--font-display); font-size: 6.6em; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.push-stack { position: absolute; left: 1.2em; right: 1.2em; top: 16.5em; display: grid; gap: .7em; }
.push-n { display: grid; grid-template-columns: 3em 1fr auto; gap: .9em; align-items: center; padding: 1em 1.15em; border-radius: 1.8em; background: rgba(24, 20, 36, .82); border: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateY(-2em) scale(.95); }
.push-n i { width: 3em; height: 3em; border-radius: .85em; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #0b0b10; background: var(--c); }
.push-n span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.push-n b { font-size: 1.02em; }
.push-n small { font-size: .9em; color: rgba(255, 255, 255, .75); }
.push-n em { align-self: start; font-style: normal; font-size: .8em; color: rgba(255, 255, 255, .45); }
.ss-push.is-active .push-n { animation: pushIn 7s var(--ease-out) infinite; }
.ss-push.is-active .n2 { animation-delay: 1s; }
.ss-push.is-active .n3 { animation-delay: 2s; }
@keyframes pushIn { 0% { opacity: 0; transform: translateY(-2em) scale(.95); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-.6em) scale(.98); } }
.push-live { position: absolute; left: 50%; bottom: 3.2em; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; padding: .6em 1.1em; border-radius: 2em; font-size: .95em; background: rgba(0, 0, 0, .5); }
.push-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--ok); animation: pulseDot 1.2s ease-in-out infinite; }

/* 4 — on-device ML */
.ss-ml { background: #07060b; }
.ml-view { position: absolute; inset: 0 0 14em 0; overflow: hidden; background: linear-gradient(180deg, #1b1532 0%, #0f0c1a 58%, #1a1428 100%); }
.ml-view::before {
    content: ''; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 48%;
    background-image: linear-gradient(rgba(179, 161, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(179, 161, 255, .18) 1px, transparent 1px);
    background-size: 2.6em 2.6em; transform: perspective(14em) rotateX(62deg); transform-origin: top;
    -webkit-mask-image: linear-gradient(transparent, #000 50%); mask-image: linear-gradient(transparent, #000 50%);
}
.ml-pose { position: absolute; left: 4%; top: 12%; width: 92%; height: 84%; }
.ml-bones line { stroke: var(--v2); stroke-width: 2.2; stroke-linecap: round; }
.ml-joints circle { fill: #0b0a12; stroke: var(--accent); stroke-width: 1.4; }
.ml-box { position: absolute; left: 24%; top: 15%; width: 52%; height: 78%; border: 1.5px solid rgba(200, 255, 46, .85); border-radius: .6em; transition: left .12s linear, top .12s linear, width .12s linear, height .12s linear; }
.ml-box span { position: absolute; left: -1.5px; top: -2em; padding: .25em .55em; border-radius: .3em; font-family: var(--font-mono); font-size: .82em; color: var(--accent-ink); background: var(--accent); white-space: nowrap; }
.ml-corners { position: absolute; inset: 5.4em 1.4em 1.4em; --c: rgba(255, 255, 255, .55);
    background:
        linear-gradient(var(--c), var(--c)) 0 0 / 1.8em 2px, linear-gradient(var(--c), var(--c)) 0 0 / 2px 1.8em,
        linear-gradient(var(--c), var(--c)) 100% 0 / 1.8em 2px, linear-gradient(var(--c), var(--c)) 100% 0 / 2px 1.8em,
        linear-gradient(var(--c), var(--c)) 0 100% / 1.8em 2px, linear-gradient(var(--c), var(--c)) 0 100% / 2px 1.8em,
        linear-gradient(var(--c), var(--c)) 100% 100% / 1.8em 2px, linear-gradient(var(--c), var(--c)) 100% 100% / 2px 1.8em;
    background-repeat: no-repeat;
}
.ml-hud { position: absolute; left: 1.4em; right: 1.4em; bottom: 5.6em; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.ml-hud div { display: flex; flex-direction: column; padding: .85em 1em; border-radius: 1.2em; background: #16151d; border: 1px solid rgba(255, 255, 255, .06); }
.ml-hud small { font-family: var(--font-mono); font-size: .72em; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.ml-hud b { font-family: var(--font-display); font-size: 1.9em; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ml-chip { position: absolute; left: 0; right: 0; bottom: 2.6em; text-align: center; font-family: var(--font-mono); font-size: .82em; color: var(--accent); }

/* 5 — accessibility */
.ss-a11y { --dt: 1; background: radial-gradient(100% 40% at 50% 0%, rgba(124, 92, 255, .18), transparent 70%), #0b0a10; }
.ay-body { position: relative; padding: 1.8em 2em 0; font-size: calc(1em * var(--dt)); transition: font-size .4s var(--ease-out); }
.ay-k { display: inline-block; font-family: var(--font-mono); font-size: .85em; letter-spacing: .1em; text-transform: uppercase; color: var(--v2); }
.ay-h { margin: .3em 0 .4em; font-family: var(--font-display); font-size: 2.6em; font-weight: 600; line-height: 1.05; letter-spacing: -.035em; color: #fff; }
.ay-p { font-size: 1.3em; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.ay-btn { display: block; margin-top: 1.1em; padding: .85em; border-radius: 1.2em; text-align: center; font-size: 1.3em; font-weight: 600; background: var(--v); }
.ay-link { display: block; margin-top: .9em; text-align: center; font-size: 1.2em; color: var(--v2); }
.ay-vo { position: absolute; z-index: 20; left: 0; top: 0; width: 0; height: 0; border-radius: .9em; border: .28em solid #0a0a0a; box-shadow: 0 0 0 .2em #fff, inset 0 0 0 .18em #fff; opacity: 0; transition: all .5s var(--ease-out); pointer-events: none; }
.ss-a11y.is-active .ay-vo { opacity: 1; }
.ay-badge { position: absolute; left: 50%; bottom: 2.6em; transform: translateX(-50%); white-space: nowrap; padding: .5em .95em; border-radius: 2em; background: #1c1c1e; font-family: var(--font-mono); font-size: .82em; color: rgba(255, 255, 255, .6); }
.ay-badge b { color: #fff; font-weight: 500; }

/* 6 — payments */
.ss-pay { background: radial-gradient(90% 50% at 50% 20%, rgba(255, 61, 113, .16), transparent 70%), #0b0a10; }
.pay-prod { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.4em 2.4em 0; }
.pay-art { width: 13em; height: 13em; margin-bottom: 1.4em; }
.pay-art .trk, .pay-art .rng { stroke-width: 12; }
.pay-prod b { font-family: var(--font-display); font-size: 2.3em; font-weight: 600; letter-spacing: -.04em; }
.pay-prod small { margin-top: .3em; font-size: 1em; color: rgba(255, 255, 255, .55); }
.pay-buy { margin-top: 1.4em; padding: .85em 1.6em; border-radius: 2em; background: #fff; color: #000; font-weight: 600; font-size: 1.1em; }
.pay-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; }
.pay-sheet { position: absolute; left: .5em; right: .5em; bottom: .5em; padding: .8em 1.8em 2.6em; border-radius: 3.5em; background: #1c1c1e; transform: translateY(112%); box-shadow: 0 -1em 3em rgba(0, 0, 0, .5); }
.pay-grab { width: 4em; height: .4em; margin: 0 auto 1em; border-radius: 1em; background: #48484a; }
.pay-row { display: flex; justify-content: space-between; align-items: center; padding: .85em 0; border-bottom: 1px solid #2c2c2e; font-size: 1.1em; }
.pay-row--h b { font-size: 1.5em; letter-spacing: -.02em; }
.pay-row--h span { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: #2c2c2e; color: #8e8e93; font-size: .8em; }
.pay-row--s { border: 0; font-size: .85em; color: #8e8e93; }
.pay-card { display: flex; gap: 1em; align-items: center; padding: .9em 0; border-bottom: 1px solid #2c2c2e; }
.pay-card i { width: 4.4em; height: 2.8em; border-radius: .45em; background: linear-gradient(135deg, var(--v), #2b1d7a 60%, var(--cyan)); }
.pay-card span { display: flex; flex-direction: column; }
.pay-card b { font-size: 1.1em; }
.pay-card small { color: #8e8e93; font-size: .9em; }
.pay-confirm { position: relative; height: 5em; margin-top: .9em; }
.pay-confirm > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .6em; font-size: 1.1em; opacity: 0; }
.pc-a { color: rgba(255, 255, 255, .85); }
.pc-c { color: var(--ok); font-weight: 600; font-size: 1.6em !important; }
.pay-spin { width: 1.3em; height: 1.3em; border-radius: 50%; border: .18em solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .7s linear infinite; }
.pay-side { position: absolute; right: 0; top: 12.5em; width: .45em; height: 6.4em; border-radius: .4em 0 0 .4em; background: var(--v2); box-shadow: 0 0 1.4em var(--v); opacity: 0; }
.ss-pay.is-active .pay-dim { animation: payDim 6.5s var(--ease-out) infinite; }
.ss-pay.is-active .pay-sheet { animation: paySheet 6.5s var(--ease-out) infinite; }
.ss-pay.is-active .pc-a { animation: payA 6.5s infinite; }
.ss-pay.is-active .pay-side { animation: paySide 6.5s infinite; }
.ss-pay.is-active .pc-b { animation: payB 6.5s infinite; }
.ss-pay.is-active .pc-c { animation: payC 6.5s var(--ease-out) infinite; }
@keyframes payDim { 0%, 8% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes paySheet { 0%, 8% { transform: translateY(112%); } 22%, 100% { transform: none; } }
@keyframes payA { 0%, 20% { opacity: 0; } 26%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes paySide { 0%, 24% { opacity: 0; } 28% { opacity: 1; } 33% { opacity: .2; } 38% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes payB { 0%, 48% { opacity: 0; } 52%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes payC { 0%, 68% { opacity: 0; transform: scale(.7); } 76%, 100% { opacity: 1; transform: none; } }

/* ==========================================================================
   GESTURE DEMO
   ========================================================================== */
.gest { overflow: hidden; }
.gest::before { content: ''; position: absolute; right: -10%; top: 10%; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .18), transparent 65%); pointer-events: none; }
.gest-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.gest-copy h2 { margin: 1.25rem 0; }
.gest-lab { margin-top: 2.4rem; padding: 1.1rem 1.25rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); font-family: var(--font-mono); font-size: .76rem; color: var(--muted); max-width: 32rem; }
.gl-head { display: flex; justify-content: space-between; align-items: center; color: var(--dim); }
.gl-head span:first-child::before { content: '⌁ '; color: var(--v2); }
.gl-live { padding: .15rem .55rem; border-radius: 100px; border: 1px solid var(--border-strong); color: var(--dim); transition: color .2s, border-color .2s; }
.gl-live[data-s="drag"] { color: var(--v2); border-color: rgba(124, 92, 255, .5); }
.gl-live[data-s="spring"] { color: var(--cyan); border-color: rgba(46, 230, 255, .4); }
.gl-live[data-s="fling"] { color: var(--accent); border-color: rgba(200, 255, 46, .4); }
.gl-field { display: grid; grid-template-columns: 6.2rem 1fr 2.6rem; gap: .8rem; align-items: center; margin-top: .75rem; }
.gl-field input { width: 100%; accent-color: var(--v); }
.gl-field output { text-align: right; color: var(--text); }
.gl-scope { display: block; width: 100%; height: 80px; margin-top: 1rem; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.gl-read { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .75rem; color: var(--dim); }
.gl-read b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

.gest-play { display: flex; flex-direction: column; align-items: center; }
.deck { position: relative; width: min(340px, 100%); height: 450px; outline: none; }
.deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; border-radius: 24px; }
.deck-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; border: 1px dashed var(--border-strong); border-radius: 24px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.deck-empty b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--text); letter-spacing: -.03em; }
.dcard {
    --h: 260;
    position: absolute; inset: 0; display: flex; flex-direction: column; padding: 1.25rem; border-radius: 24px; overflow: hidden;
    background: linear-gradient(170deg, hsl(var(--h) 30% 14%), #0c0b12 60%); border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
    will-change: transform; transition: transform .5s var(--ease-out), opacity .4s;
}
.dcard.is-drag { cursor: grabbing; transition: none; }
.dcard.is-free { transition: none; }
.dc-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.dc-art {
    position: relative; flex: 1; margin: 1rem 0; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
    background:
        radial-gradient(60% 70% at 30% 30%, hsl(var(--h) 90% 62% / .55), transparent 70%),
        radial-gradient(60% 60% at 80% 80%, hsl(calc(var(--h) + 60) 90% 60% / .4), transparent 70%),
        #0b0a12;
}
.dc-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; }
.dc-art::after { content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 0 0 22px rgba(255, 255, 255, .03), 0 0 0 44px rgba(255, 255, 255, .02); }
.dc-glyph { position: relative; z-index: 1; font-size: 4.6rem; line-height: 1; color: #fff; text-shadow: 0 0 30px hsl(var(--h) 90% 65%); }
.dcard h3 { font-size: 1.7rem; letter-spacing: -.035em; }
.dcard p { margin-top: .35rem; font-size: .88rem; line-height: 1.45; color: rgba(244, 243, 238, .65); }
.dc-meta { display: flex; gap: .4rem; margin-top: .9rem; }
.dc-stamp { position: absolute; top: 2.2rem; z-index: 3; padding: .3rem .8rem; border: 2px solid; border-radius: 8px; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; letter-spacing: .12em; opacity: 0; pointer-events: none; }
.dc-stamp--ship { left: 1.4rem; color: var(--accent); transform: rotate(-12deg); background: rgba(200, 255, 46, .08); }
.dc-stamp--later { right: 1.4rem; color: var(--v2); transform: rotate(12deg); background: rgba(124, 92, 255, .12); }
.deck-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; font-family: var(--font-mono); font-size: .75rem; color: var(--dim); }
.deck-count b { color: var(--text); font-weight: 500; }
.deck-btn { height: 44px; padding: 0 1.1rem; border-radius: 100px; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .25s, border-color .25s, background .25s; }
.deck-btn--yes:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.deck-btn--no:hover { color: #fff; background: var(--v); border-color: var(--v); }
.deck-hint { margin-top: 1rem; font-family: var(--font-mono); font-size: .7rem; color: var(--dim); text-align: center; }

/* ==========================================================================
   QUALITY BAR
   ========================================================================== */
.q-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.q-stat { position: relative; padding: 2rem 1.6rem 2.2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; transition: background .4s; }
.q-stat::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--v), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.q-stat:hover { background: linear-gradient(180deg, rgba(124, 92, 255, .08), transparent); }
.q-stat:hover::before { transform: scaleX(1); }
.q-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--v2); }
.q-v { display: block; margin: 1.1rem 0 .9rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-v small { font-size: .32em; letter-spacing: 0; color: var(--muted); margin-left: .2em; }
.q-stat p { font-size: .9rem; line-height: 1.55; }

.pipe { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.pipe-rail { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem 0; }
.pipe-rail::before { content: ''; position: absolute; left: 7px; top: 1.9rem; bottom: 1.9rem; width: 1px; background: var(--border-strong); }
.pr-fill { position: absolute; left: 7px; top: 1.9rem; width: 1px; height: calc((100% - 3.8rem) * var(--f, 0)); background: linear-gradient(var(--v), var(--accent)); box-shadow: 0 0 10px var(--v); transition: height .6s var(--ease-out); }
.pr-node { position: relative; z-index: 1; display: flex; align-items: center; gap: .9rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--dim); transition: color .3s; }
.pr-node i { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--bg); transition: background .3s, border-color .3s, box-shadow .3s; }
.pr-node.is-run { color: var(--text); }
.pr-node.is-run i { border-color: var(--accent); animation: pulseDot 1s ease-in-out infinite; }
.pr-node.is-done { color: var(--text); }
.pr-node.is-done i { background: var(--v); border-color: var(--v); box-shadow: 0 0 12px var(--v); }
.pipe-term .term-body { min-height: 380px; font-size: .8rem; line-height: 1.75; }
.pipe-term .term-line .bar { color: var(--v2); }
.pipe-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1.4rem; border-top: 1px solid var(--border); font-size: .7rem; }

/* ==========================================================================
   TIERS
   ========================================================================== */
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tier { position: relative; display: flex; flex-direction: column; gap: .85rem; padding: 2rem 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .4s, background .4s, opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: 0s, 0s, var(--d, 0ms), var(--d, 0ms); }
.tier:hover { border-color: rgba(124, 92, 255, .5); background: var(--surface-2); }
.tier--feat { background: linear-gradient(180deg, rgba(124, 92, 255, .18), var(--surface) 55%); border-color: rgba(124, 92, 255, .55); }
.tier--feat:hover { background: linear-gradient(180deg, rgba(124, 92, 255, .26), var(--surface-2) 55%); }
.tier-badge { position: absolute; top: -1px; right: 1.2rem; padding: .3rem .6rem; background: var(--v); color: #fff; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.tier-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--v2); }
.tier h3 { font-size: 1.65rem; }
.tier-p { font-family: var(--font-display); font-size: clamp(2.3rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.tier-p small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); vertical-align: .9em; margin-right: .2rem; }
.tier-p span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.tier-t { padding-bottom: .9rem; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: .74rem; color: var(--dim); }
.tier ul { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.2rem; }
.tier li { position: relative; padding-left: 1.2rem; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.tier li::before { content: '+'; position: absolute; left: 0; color: var(--v2); font-family: var(--font-mono); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier-note { margin-top: 1.5rem; font-family: var(--font-mono); font-size: .72rem; color: var(--dim); }

/* ==========================================================================
   RELATED WORK
   ========================================================================== */
.rw-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; }
.rw { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .4s, opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: 0s, var(--d, 0ms), var(--d, 0ms); }
.rw:hover { border-color: rgba(124, 92, 255, .55); }
.rw-vis { position: relative; height: clamp(240px, 22vw, 320px); overflow: hidden; display: grid; place-items: center; background: #0a0912; }
.rw-vis > * { transition: transform 1s var(--ease-out); }
.rw:hover .rw-vis > * { transform: scale(1.06); }
.rw--pulse .rw-vis { background: radial-gradient(70% 70% at 70% 20%, rgba(124, 92, 255, .55), transparent 70%), #0a0912; }
.rw-orb { position: absolute; width: 60%; aspect-ratio: 1; right: -10%; top: -20%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--v3), var(--v) 45%, transparent 70%); filter: blur(10px); opacity: .6; }
.rw-num { position: relative; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -.06em; }
.rw--pulse svg { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 30%; }
.rw--pulse svg path { fill: none; stroke: var(--v2); stroke-width: 2; }
.rw--kin .rw-vis { background: linear-gradient(160deg, #2a1d3e, #0d0a14); }
.rw-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 74%; aspect-ratio: 16 / 11; }
.rw-tiles i { border-radius: 10px; background: radial-gradient(22% 26% at 50% 42%, #d29a7c 96%, transparent), radial-gradient(48% 34% at 50% 100%, #e9e5f2 96%, transparent), linear-gradient(160deg, #46305e, #1f1530); }
.rw-tiles i:nth-child(2) { background: radial-gradient(22% 26% at 50% 42%, #f0c6a4 96%, transparent), radial-gradient(48% 34% at 50% 100%, #7c5cff 96%, transparent), linear-gradient(160deg, #3b5277, #1a2438); }
.rw-tiles i:nth-child(3) { background: radial-gradient(22% 26% at 50% 42%, #8a5a48 96%, transparent), radial-gradient(48% 34% at 50% 100%, #2ee6ff 96%, transparent), linear-gradient(160deg, #2e3a2a, #141a12); }
.rw-tiles i:nth-child(4) { background: radial-gradient(22% 26% at 50% 42%, #c08a6a 96%, transparent), radial-gradient(48% 34% at 50% 100%, #ff7a59 96%, transparent), linear-gradient(160deg, #4a2a2a, #1e1010); }
.rw-chip { position: absolute; left: 1rem; top: 1rem; padding: .3rem .6rem; border-radius: 100px; background: rgba(0, 0, 0, .55); font-family: var(--font-mono); font-size: .68rem; color: var(--ok); }
.rw--tempo .rw-vis { background: radial-gradient(60% 60% at 50% 50%, rgba(255, 61, 113, .2), transparent 70%), #08070c; }
.rw-rings { width: 48%; }
.rw-rings .trk, .rw-rings .rng { stroke-width: 10; }
.rw-meta { display: grid; gap: .45rem; padding: 1.4rem 1.5rem 1.6rem; }
.rw-label { justify-self: start; padding: .2rem .5rem; border: 1px solid var(--border-strong); border-radius: 3px; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; color: var(--dim); }
.rw-meta h3 { font-size: 1.9rem; letter-spacing: -.04em; }
.rw-meta p { font-size: .9rem; }
.rw-go { margin-top: .4rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--v2); transition: color .3s; }
.rw-go .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.rw:hover .rw-go { color: var(--accent); }
.rw:hover .rw-go .arrow { transform: translateX(4px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.faq-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-head h2 { margin: 1.25rem 0 1rem; }
.faq-mail { color: var(--v2); border-bottom: 1px solid currentColor; }
.faq-mail:hover { color: var(--accent); }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -.015em; line-height: 1.3; color: var(--text); transition: color .25s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; font-weight: 300; color: var(--v2); transition: transform .4s var(--ease-out); }
.faq-list summary:hover { color: var(--v3); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details > div { padding: 0 3rem 1.6rem 0; }
.faq-list details[open] > div { animation: fadeUp .5s var(--ease-out); }
.faq-list details p { font-size: .98rem; }
.faq-list details p em { font-style: italic; color: var(--text); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
    .hp-left { transform: translate(-50%, -50%) translate3d(calc(-170px - var(--hp) * 120px), calc(46px + var(--hp) * 60px), -130px) rotateY(20deg) rotateZ(-5deg); }
    .hp-right { transform: translate(-50%, -50%) translate3d(calc(170px + var(--hp) * 120px), calc(-26px + var(--hp) * 30px), -130px) rotateY(-20deg) rotateZ(5deg); }
    .hp-center { --pw: 246px; }
    .hp-left, .hp-right { --pw: 206px; }
}
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { max-width: 44rem; }
    .hero-stage { height: 640px; }
    .pf-body { grid-template-columns: minmax(0, 1fr); }
    .pf-stage { height: 660px; }
    .story-grid { grid-template-columns: minmax(0, 1fr) 280px; }
    .story-stick { grid-column: 2; }
    .story-panel, .story-panel--r { grid-column: 1; justify-content: flex-start; }
    .story-grid::before { display: none; }
    .phone--story { --pw: 260px; }
    .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .q-stats { grid-template-columns: repeat(2, 1fr); }
    .rw-grid { grid-template-columns: 1fr 1fr; }
    .rw--pulse { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .gest-grid { grid-template-columns: 1fr; }
    .gest-lab { max-width: none; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-head { position: static; }
    .pipe { grid-template-columns: 1fr; }
    .pipe-rail { flex-direction: row; padding: 0 0 .5rem; overflow: hidden; }
    .pipe-rail::before { left: 7px; right: 7px; top: 7px; bottom: auto; width: auto; height: 1px; }
    .pr-fill { left: 7px; top: 7px; height: 1px; width: calc((100% - 14px) * var(--f, 0)); transition: width .6s var(--ease-out); }
    .pr-node { flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .62rem; }
    .pr-node:last-of-type { align-items: flex-end; }
}
@media (max-width: 768px) {
    .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
    .hero-title { font-size: clamp(3.6rem, 18vw, 5.5rem); margin: 1.1rem 0 1.4rem; }
    .hero-eyebrow { font-size: .64rem; letter-spacing: .12em; }
    .hero-stage { height: 540px; margin: 0 calc(var(--gutter) * -1); perspective: 1200px; }
    .hp-center { --pw: 206px; }
    .hp-left, .hp-right { --pw: 168px; }
    .hp-left { transform: translate(-50%, -50%) translate3d(calc(-118px - var(--hp) * 60px), calc(40px + var(--hp) * 40px), -110px) rotateY(18deg) rotateZ(-5deg); }
    .hp-right { transform: translate(-50%, -50%) translate3d(calc(118px + var(--hp) * 60px), calc(-20px + var(--hp) * 20px), -110px) rotateY(-18deg) rotateZ(5deg); }
    .hf { font-size: .62rem; padding: .4rem .7rem; }
    .hf-1 { left: 4%; top: 6%; }
    .hf-2 { right: 3%; top: auto; bottom: 16%; }
    .hf-3 { display: none; }
    .hero-orbits { right: -60%; width: 160%; top: 30%; height: 70%; }
    .hero-foot .hero-label { max-width: 60%; }

    .pf-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; border-radius: 0; }
    .pf-tabs::-webkit-scrollbar { display: none; }
    .pf-tab { flex: 0 0 auto; min-width: 46%; scroll-snap-align: start; padding: 1rem 1.1rem; }
    .pf-stage { height: 600px; }
    .pf-ring { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
    .pf-device { --dw: 262px; --dh: 568px; font-size: 9px; }
    .pf-device[data-mode="wear"] { --dw: 204px; --dh: 242px; }
    .pf-cols { grid-template-columns: 1fr; gap: 1.5rem; }

    /* story: phone pins to the top, cards scroll over the lower half */
    .story-grid { grid-template-columns: minmax(0, 1fr); }
    .story-stick { grid-column: 1; top: calc(var(--nav-h) + .5rem); gap: .6rem; }
    .story-stick::before { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
    .phone--story { --pw: 188px; }
    .story-panel, .story-panel--r { grid-column: 1; position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; align-items: flex-end; justify-content: stretch; padding-bottom: 7vh; opacity: 1; }
    .story-panel[data-step="1"] { min-height: 115vh; }
    .sp-card { max-width: none; width: 100%; padding: 1.3rem 1.3rem 1.4rem; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: rgba(10, 10, 15, .94); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
    .sp-n { font-size: 2.4rem; margin-bottom: .5rem; }
    .sp-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
    .sp-card p { font-size: .93rem; }
    .sp-tags { margin-top: 1rem; }

    .q-stat { padding: 1.5rem 1.1rem 1.6rem; }
    .q-v { font-size: clamp(2.6rem, 11vw, 3.6rem); }
    .pipe-term .term-body { font-size: .7rem; padding: 1rem; min-height: 340px; }
    .pipe-foot { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .tier-grid { grid-template-columns: 1fr; }
    .rw-grid { grid-template-columns: 1fr; }
    .q-stats { grid-template-columns: 1fr 1fr; }
    .q-stat p { font-size: .8rem; }
    .hero-meta { gap: 1.1rem; }
    .deck { height: 420px; }
    .deck-ctrl { gap: .6rem; }
    .deck-btn { padding: 0 .85rem; }
    .gl-field { grid-template-columns: 5.2rem 1fr 2.4rem; }
}
@media (max-width: 420px) {
    .hp-center { --pw: 190px; }
    .hp-left, .hp-right { --pw: 150px; }
    .hero-stage { height: 480px; }
    .deck-count { font-size: .66rem; text-align: center; }
}

/* ==========================================================================
   REDUCED MOTION — show meaningful end states, no loops
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-title .ln > span, .hero-eyebrow, .hero-lede, .hero-ctas, .hero-meta, .hf { animation: none !important; opacity: 1; transform: none; }
    .hp > .phone { animation: none !important; }
    .push-n { animation: none !important; opacity: 1; transform: none; }
    .pf-ring::before { animation: none; }
    .ay-vo { display: none; }
}
