.digital-story {
    --story-progress: 0;
    --lid-angle: -82;
    --device-rise: 70;
    --device-scale: .82;
    --screen-opacity: 0;
    --site-opacity: 0;
    --dashboard-opacity: 0;
    --ambient-scale: .78;
    --ambient-rotate: 0;
    --ambient-opacity: .2;
    --site-shift: 28;
    --site-scale: .97;
    --dashboard-shift: 24;
    --phone-rise: 42;
    --copy-opacity: 1;
    --story-intro-opacity: 1;
    --apps-opacity: 1;
    --cable-progress: 0;
    --cable-opacity: 0;
    position: relative;
    height: 370vh;
    min-height: 2400px;
    color: #f8fafc;
    background:
        radial-gradient(circle at 50% 35%, rgba(124, 58, 237, .22), transparent 33%),
        radial-gradient(circle at 78% 58%, rgba(8, 145, 178, .15), transparent 25%),
        #070815;
    isolation: isolate;
}

.digital-story::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .28;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.digital-story__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 5.5rem 2rem 2rem;
}

.digital-story__ambient {
    position: absolute;
    width: min(72vw, 980px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, .18);
    box-shadow:
        0 0 0 80px rgba(124, 58, 237, .025),
        0 0 0 180px rgba(8, 145, 178, .02);
    transform: scale(var(--ambient-scale)) rotate(calc(var(--ambient-rotate) * 1deg));
    opacity: var(--ambient-opacity);
}

.digital-story__copy {
    position: absolute;
    z-index: 4;
    top: clamp(5.5rem, 10vh, 8rem);
    left: 50%;
    width: min(92vw, 860px);
    text-align: center;
    transform: translateX(-50%);
    opacity: var(--copy-opacity);
    pointer-events: none;
    transition: opacity .12s linear;
}

.digital-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #a5b4fc;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.digital-story__eyebrow::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: #22d3ee;
    box-shadow: 0 0 18px #22d3ee;
}

.digital-story__copy h2 {
    margin: .8rem 0 0;
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 800;
}

.digital-story__copy h2 span {
    background: linear-gradient(110deg, #a78bfa 12%, #22d3ee 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.digital-story__copy p {
    max-width: 670px;
    margin: 1rem auto 0;
    color: rgba(226, 232, 240, .65);
    font-size: clamp(.95rem, 1.5vw, 1.14rem);
    line-height: 1.65;
    opacity: var(--story-intro-opacity);
    transition: opacity .14s linear;
}

.digital-story__mobile-title { display: none; }

.ai-hero.hero-scroll-enhanced {
    --hero-visual-scale: 1;
    --hero-visual-rotate: 0deg;
    --hero-visual-opacity: 1;
    --hero-copy-scale: 1;
    --hero-copy-opacity: 1;
    --hero-beam-y: -35%;
}

.ai-hero.ai-hero--story {
    overflow: visible !important;
    padding-bottom: 0 !important;
}

.ai-hero.ai-hero--story > #ai-field,
.ai-hero.ai-hero--story > .hero-grid {
    bottom: auto;
    height: min(100vh, 920px) !important;
}

.digital-story.is-hero-story {
    z-index: 3;
    left: auto;
    width: calc(100% + 3rem);
    margin-inline: -1.5rem;
    margin-top: 0;
    transform: none;
}

.ai-hero.hero-scroll-enhanced::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: -10%;
    right: -10%;
    height: 24%;
    pointer-events: none;
    opacity: .42;
    background: linear-gradient(to bottom, transparent, rgba(103, 232, 249, .08), transparent);
    translate: 0 var(--hero-beam-y);
    transform: rotate(-4deg);
    will-change: translate;
}

.ai-hero.hero-scroll-enhanced .hero-copy {
    scale: var(--hero-copy-scale);
    opacity: var(--hero-copy-opacity);
    transform-origin: 50% 40%;
    will-change: scale, opacity;
}

.ai-hero.hero-scroll-enhanced .ai-visual {
    scale: var(--hero-visual-scale);
    rotate: y var(--hero-visual-rotate);
    opacity: var(--hero-visual-opacity);
    transform-origin: 50% 50%;
    will-change: scale, rotate, opacity, translate;
}

.ai-hero.hero-scroll-enhanced .ai-core {
    box-shadow:
        0 0 calc(80px + var(--hero-glow, 0px)) rgba(124, 58, 237, .32),
        inset 0 0 40px rgba(103, 232, 249, .08);
}

.device-story-stage {
    position: relative;
    z-index: 3;
    width: min(88vw, 980px);
    margin-top: clamp(11rem, 24vh, 14rem);
    perspective: 1800px;
    transform: translateY(calc(var(--device-rise) * 1px)) scale(var(--device-scale));
    transform-origin: 50% 65%;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .55));
}

.laptop-screen-shell {
    position: relative;
    width: 84%;
    margin: 0 auto;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 24px 24px 13px 13px;
    background: linear-gradient(145deg, #27293a, #090a12 58%, #212334);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04), 0 0 50px rgba(124, 58, 237, .18);
    transform-origin: 50% 100%;
    transform: rotateX(calc(var(--lid-angle) * 1deg));
    will-change: transform;
}

.laptop-camera {
    position: absolute;
    z-index: 6;
    top: 5px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #05050a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.browser-window {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px 14px 7px 7px;
    background: #f8fafc;
    opacity: var(--screen-opacity);
}

.browser-topbar {
    height: 9.5%;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    direction: ltr;
    color: #64748b;
    background: #eef2f7;
    border-bottom: 1px solid #dfe5ee;
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-dots i:first-child { background: #fb7185; }
.browser-dots i:nth-child(2) { background: #fbbf24; }
.browser-dots i:last-child { background: #4ade80; }

.browser-address {
    flex: 1;
    height: 58%;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe2eb;
    font-size: clamp(.55rem, 1vw, .75rem);
    white-space: nowrap;
}

.browser-address__lock {
    color: #16a34a;
    font-size: .72rem;
}

.browser-address__text::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: .9em;
    margin-left: 2px;
    vertical-align: -.08em;
    background: #475569;
    animation: story-caret .75s steps(1) infinite;
}

@keyframes story-caret { 50% { opacity: 0; } }

.browser-canvas {
    position: absolute;
    inset: 9.5% 0 0;
    overflow: hidden;
    background: #fff;
}

.screen-site,
.screen-dashboard {
    position: absolute;
    inset: 0;
    transition: none;
}

.screen-site {
    opacity: var(--site-opacity);
    transform: translateY(calc(var(--site-shift) * 1px)) scale(var(--site-scale));
    color: #eef2ff;
    background:
        radial-gradient(circle at 76% 26%, rgba(8, 145, 178, .35), transparent 24%),
        radial-gradient(circle at 22% 75%, rgba(124, 58, 237, .25), transparent 30%),
        #090a19;
}

.screen-site__nav {
    height: 12%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.screen-brand {
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: clamp(.62rem, 1.25vw, 1rem);
}

.screen-brand span { color: #8b5cf6; }

.screen-nav-lines {
    display: block;
    width: 32%;
    height: 5px;
    border-radius: 20px;
    opacity: .48;
    background: repeating-linear-gradient(90deg, #cbd5e1 0 15%, transparent 15% 22%);
}

.screen-site__hero {
    height: 66%;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 4%;
    padding: 5% 6%;
}

.screen-kicker {
    color: #67e8f9;
    font-size: clamp(.42rem, .8vw, .68rem);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.screen-site__hero h3 {
    margin: 3% 0 0;
    max-width: 13ch;
    color: #fff;
    font-size: clamp(1.1rem, 3.1vw, 2.8rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.screen-site__hero h3 span { color: #a78bfa; }

.screen-copy-lines {
    display: block;
    width: 82%;
    height: 20px;
    margin-top: 5%;
    opacity: .34;
    background: repeating-linear-gradient(to bottom, #e2e8f0 0 3px, transparent 3px 8px);
}

.screen-cta {
    display: block;
    width: 32%;
    min-width: 54px;
    height: 12%;
    min-height: 12px;
    margin-top: 6%;
    border-radius: 7px;
    background: linear-gradient(120deg, #7c3aed, #0891b2);
    box-shadow: 0 7px 18px rgba(124, 58, 237, .3);
}

.screen-orb {
    position: relative;
    width: min(20vw, 210px);
    max-width: 80%;
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 34%, #fff, #a5b4fc 7%, #7c3aed 18%, #0c1020 45%, #05050c 65%);
    box-shadow: 0 0 45px rgba(124, 58, 237, .55), inset -12px -14px 30px #02030b;
}

.screen-orb::before,
.screen-orb::after {
    content: "";
    position: absolute;
    inset: -16%;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, .34);
}

.screen-orb::after {
    inset: -33%;
    border-style: dashed;
    border-color: rgba(167, 139, 250, .28);
}

.screen-metrics {
    height: 22%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
    padding: 0 6% 4%;
}

.screen-metrics span {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.screen-dashboard {
    display: grid;
    grid-template-columns: 22% 1fr;
    direction: ltr;
    opacity: var(--dashboard-opacity);
    transform: translateY(calc(var(--dashboard-shift) * 1px));
    color: #172033;
    background: #f5f7fb;
}

.dashboard-sidebar {
    padding: 10% 9%;
    color: white;
    background: linear-gradient(165deg, #13162a, #090b17);
}

.dashboard-sidebar b {
    display: block;
    font-size: clamp(.5rem, 1vw, .85rem);
    color: #a78bfa;
}

.dashboard-sidebar i {
    display: block;
    width: 68%;
    height: 5px;
    margin-top: 16%;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
}

.dashboard-main { padding: 4%; }

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-heading strong {
    font-size: clamp(.64rem, 1.4vw, 1.1rem);
}

.dashboard-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #059669;
    font-size: clamp(.42rem, .75vw, .65rem);
    font-weight: 800;
}

.dashboard-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 9px #10b981;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3%;
    margin-top: 4%;
}

.dashboard-stat {
    padding: 8%;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
}

.dashboard-stat span {
    display: block;
    color: #64748b;
    font-size: clamp(.36rem, .65vw, .55rem);
}

.dashboard-stat b {
    display: block;
    margin-top: 3%;
    font-size: clamp(.7rem, 1.8vw, 1.4rem);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 3%;
    height: 54%;
    margin-top: 4%;
}

.dashboard-chart,
.dashboard-leads {
    padding: 5%;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: white;
}

.chart-bars {
    height: 78%;
    display: flex;
    align-items: end;
    gap: 5%;
    padding-top: 8%;
}

.chart-bars i {
    flex: 1;
    height: var(--bar);
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(to top, #7c3aed, #22d3ee);
}

.dashboard-leads i {
    display: block;
    height: 9%;
    margin: 8% 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #e9e7ff 0 24%, #eef2f7 24%);
}

.laptop-base {
    position: relative;
    z-index: 5;
    width: 100%;
    height: clamp(22px, 4vw, 42px);
    margin-top: -2px;
    border-radius: 4px 4px 38px 38px;
    background: linear-gradient(to bottom, #b9bfcb, #545b68 22%, #1b1e27 45%, #080911 82%);
    box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 24px 36px rgba(0, 0, 0, .38);
    transform: perspective(420px) rotateX(56deg);
    transform-origin: 50% 0;
}

.laptop-base::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 41%;
    width: 18%;
    height: 5px;
    border-radius: 0 0 7px 7px;
    background: rgba(0, 0, 0, .42);
}

.device-story__steps {
    position: absolute;
    z-index: 7;
    bottom: clamp(1.2rem, 4vh, 2.4rem);
    left: 50%;
    width: min(90vw, 680px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    transform: translateX(-50%);
    opacity: var(--copy-opacity);
    direction: ltr;
    transition: opacity .12s linear;
}

.device-story__step {
    position: relative;
    padding-top: .75rem;
    color: rgba(226, 232, 240, .38);
    font-size: clamp(.62rem, 1.2vw, .8rem);
    font-weight: 700;
    text-align: center;
    transition: color .25s ease;
}

.device-story__step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, .12);
}

.device-story__step::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -3px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #343749;
    transform: translateX(-50%);
    transition: background .25s, box-shadow .25s;
}

.device-story__step.is-active {
    color: #fff;
}

.device-story__step.is-active::after {
    background: #22d3ee;
    box-shadow: 0 0 16px #22d3ee;
}

.device-story__hint {
    position: absolute;
    z-index: 10;
    right: clamp(6.75rem, 8.5vw, 8.5rem);
    top: 50%;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: rgba(226, 232, 240, .4);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    opacity: var(--copy-opacity);
    transition: opacity .12s linear;
}

.device-story__hint i {
    width: 1px;
    height: 48px;
    background: linear-gradient(#22d3ee, transparent);
    animation: story-scroll-hint 1.8s ease-in-out infinite;
}

@keyframes story-scroll-hint {
    50% { transform: translateY(12px); opacity: .45; }
}

.phone-story { display: none; }

.story-app-cloud {
    position: absolute;
    z-index: 8;
    top: 58%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    direction: ltr;
}

.story-charge-path {
    position: absolute;
    z-index: 2;
    top: clamp(485px, 72vh, 690px);
    bottom: -2px;
    left: 50%;
    width: min(24vw, 240px);
    min-width: 150px;
    opacity: var(--cable-opacity);
    transform: translateX(-50%);
    pointer-events: none;
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, .24));
}

.story-charge-path svg {
    position: absolute;
    inset: 0 0 18px;
    width: 100%;
    height: calc(100% - 18px);
    overflow: visible;
}

.story-charge-path path {
    fill: none;
    stroke: #96a0b5;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--cable-progress));
    vector-effect: non-scaling-stroke;
}

.story-charge-port {
    position: absolute;
    z-index: 2;
    top: -5px;
    left: 50%;
    width: 44px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 3px 3px 8px 8px;
    background: linear-gradient(#353b49, #080a10);
    box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 0 18px rgba(34, 211, 238, .16);
    transform: translateX(-50%) scaleX(var(--cable-progress));
}

.story-charge-plug {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: 50%;
    width: 42px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px 8px 12px 12px;
    background: linear-gradient(145deg, #dbe1eb, #747e91 48%, #252a35);
    box-shadow: 0 0 0 6px rgba(8, 145, 178, .05), 0 0 26px rgba(34, 211, 238, .24);
    opacity: var(--cable-progress);
    transform: translateX(-50%) scale(var(--cable-progress));
    transform-origin: 50% 100%;
}

.story-charge-plug i {
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 17px;
    height: 13px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #8792a6, #eef2f7 48%, #687286);
    transform: translateX(-50%);
}

.story-app {
    position: absolute;
    top: 0;
    left: 0;
    width: 132px;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .62rem .72rem;
    color: #fff;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 30, 62, .96), rgba(7, 16, 28, .94));
    box-shadow: 0 20px 50px rgba(0, 0, 0, .42), 0 0 30px rgba(124, 58, 237, .2);
    backdrop-filter: blur(16px);
    transform: translate3d(-50%, -50%, 0) scale(.2);
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

.story-app.is-released {
    animation: story-app-float 3.8s ease-in-out infinite;
}

.story-app:nth-child(2).is-released { animation-delay: -.55s; animation-duration: 4.2s; }
.story-app:nth-child(3).is-released { animation-delay: -1.1s; animation-duration: 3.5s; }
.story-app:nth-child(4).is-released { animation-delay: -1.65s; animation-duration: 4.5s; }
.story-app:nth-child(5).is-released { animation-delay: -2.2s; animation-duration: 3.7s; }
.story-app:nth-child(6).is-released { animation-delay: -2.75s; animation-duration: 4.1s; }

@keyframes story-app-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -11px; }
}

.story-app:nth-child(2n) {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .42), 0 0 30px rgba(8, 145, 178, .23);
}

.story-app i {
    flex: 0 0 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #0891b2);
    box-shadow: 0 8px 20px rgba(124, 58, 237, .25);
}

.story-app .brand-logo {
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.06em;
}

.story-app .brand-google {
    color: #4285f4;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08), 0 8px 20px rgba(66, 133, 244, .22);
    font-size: 1.05rem;
}

.story-app .brand-meta {
    color: #fff;
    background: #0866ff;
    font-size: 1.35rem;
    font-weight: 500;
}

.story-app .brand-microsoft {
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
    gap: 2px;
    background: #fff;
}

.brand-microsoft span { width: 8px; height: 8px; }
.brand-microsoft span:first-child { background: #f25022; }
.brand-microsoft span:nth-child(2) { background: #7fba00; }
.brand-microsoft span:nth-child(3) { background: #00a4ef; }
.brand-microsoft span:nth-child(4) { background: #ffb900; }

.story-app .brand-instagram {
    color: #fff;
    background: radial-gradient(circle at 68% 72%, #ffd600 0 16%, #ff7a00 28%, #ff0169 52%, #d300c5 72%, #7638fa 100%);
    font-size: 1.15rem;
}

.story-app .brand-tiktok {
    color: #fff;
    background: #050509;
    font-size: 1.05rem;
    text-shadow: -2px 0 #25f4ee, 2px 1px #fe2c55;
}

.story-app .brand-linkedin {
    color: #fff;
    background: #0a66c2;
    font-size: .78rem;
    letter-spacing: -.08em;
}

.story-app b {
    font-size: .72rem;
    line-height: 1.15;
    letter-spacing: -.01em;
}

html[dir="rtl"] .digital-story__eyebrow { letter-spacing: .08em; }
html[dir="rtl"] .browser-address__text::after { margin: 0 2px 0 0; }

@media (max-width: 767px) {
    .digital-story {
        height: 270vh;
        min-height: 1700px;
    }

    .digital-story__sticky {
        min-height: 620px;
        padding: 4.5rem 1rem 1rem;
    }

    .digital-story__copy {
        top: 5.25rem;
        width: calc(100% - 2rem);
    }

    .digital-story__copy h2,
    .digital-story__copy p { display: none; }

    .digital-story__mobile-title {
        display: block;
        margin-top: .55rem;
        color: #fff;
        font-size: clamp(1.55rem, 8vw, 2.15rem);
        line-height: 1.05;
        letter-spacing: -.035em;
    }

    .device-story-stage {
        display: none;
    }

    .story-app-cloud {
        top: 53%;
    }

    .story-app {
        width: 82px;
        min-height: 42px;
        gap: .4rem;
        padding: .4rem .45rem;
        border-radius: 12px;
    }

    .story-app i {
        flex-basis: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: .56rem;
    }

    .story-app b {
        font-size: .52rem;
    }

    .phone-story {
        position: absolute;
        z-index: 3;
        display: block;
        top: clamp(10.5rem, 24vh, 12.75rem);
        left: 50%;
        width: min(64vw, 260px, calc((100vh - 270px) * .489));
        aspect-ratio: 9 / 18.4;
        margin: 0;
        padding: 7px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 38px;
        background: linear-gradient(145deg, #33364a, #090a12 55%, #242636);
        box-shadow: 0 35px 75px rgba(0, 0, 0, .58), 0 0 42px rgba(124, 58, 237, .24);
        transform: translateX(-50%) translateY(calc(var(--phone-rise) * 1px)) scale(var(--device-scale));
    }

    .phone-story::before {
        content: "";
        position: absolute;
        z-index: 8;
        top: 13px;
        left: 50%;
        width: 32%;
        height: 17px;
        border-radius: 999px;
        background: #080911;
        transform: translateX(-50%);
    }

    .phone-story__screen {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 31px;
        opacity: var(--screen-opacity);
        background: #070815;
    }

    .phone-story__status {
        position: absolute;
        z-index: 9;
        top: 8px;
        inset-inline: 15px;
        display: flex;
        justify-content: space-between;
        color: white;
        font-size: 7px;
        direction: ltr;
    }

    .phone-story__site,
    .phone-story__dashboard {
        position: absolute;
        inset: 0;
        padding: 46px 18px 24px;
    }

    .phone-story__site {
        opacity: var(--site-opacity);
        background:
            radial-gradient(circle at 70% 25%, rgba(8, 145, 178, .28), transparent 25%),
            radial-gradient(circle at 30% 65%, rgba(124, 58, 237, .26), transparent 35%),
            #090a19;
    }

    .phone-story__logo {
        font-size: 10px;
        font-weight: 900;
    }

    .phone-story__logo span { color: #8b5cf6; }

    .phone-story__site h3 {
        margin: 24px 0 0;
        color: white;
        font-size: 27px;
        line-height: .98;
        letter-spacing: -.045em;
    }

    .phone-story__site h3 span { color: #a78bfa; }

    .phone-story__site p {
        margin-top: 14px;
        color: rgba(226, 232, 240, .54);
        font-size: 9px;
        line-height: 1.6;
    }

    .phone-story__orb {
        width: 118px;
        aspect-ratio: 1;
        margin: 32px auto 0;
        border-radius: 50%;
        background: radial-gradient(circle at 40% 34%, #fff, #a5b4fc 6%, #7c3aed 18%, #0c1020 46%, #05050c 67%);
        box-shadow: 0 0 38px rgba(124, 58, 237, .55);
    }

    .phone-story__button {
        width: 64%;
        height: 34px;
        margin-top: 34px;
        border-radius: 10px;
        background: linear-gradient(120deg, #7c3aed, #0891b2);
    }

    .phone-story__dashboard {
        direction: ltr;
        opacity: var(--dashboard-opacity);
        color: #172033;
        background: #f5f7fb;
    }

    .phone-story__dashboard h4 {
        margin: 18px 0 0;
        font-size: 16px;
    }

    .phone-story__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 16px;
    }

    .phone-story__stat {
        padding: 12px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 7px 22px rgba(15, 23, 42, .08);
    }

    .phone-story__stat span {
        display: block;
        color: #64748b;
        font-size: 7px;
    }

    .phone-story__stat b {
        display: block;
        margin-top: 3px;
        font-size: 16px;
    }

    .phone-story__chart {
        height: 180px;
        display: flex;
        align-items: end;
        gap: 9px;
        margin-top: 14px;
        padding: 18px 13px;
        border-radius: 14px;
        background: white;
        box-shadow: 0 7px 22px rgba(15, 23, 42, .07);
    }

    .phone-story__chart i {
        flex: 1;
        height: var(--bar);
        border-radius: 5px 5px 2px 2px;
        background: linear-gradient(to top, #7c3aed, #22d3ee);
    }

    .phone-story__lead {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-top: 12px;
        padding: 11px;
        border-radius: 12px;
        background: white;
        font-size: 8px;
        font-weight: 800;
    }

    .phone-story__lead i {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #d8b4fe;
    }

    .device-story__steps {
        bottom: 1.2rem;
        width: calc(100% - 2rem);
    }

    .device-story__step { font-size: .57rem; }
    .device-story__hint { display: none; }

    .story-charge-path {
        top: 76%;
        width: 155px;
    }
}

@media (max-width: 360px), (max-height: 650px) and (max-width: 767px) {
    .digital-story__copy { top: 4rem; }
    .digital-story__mobile-title { font-size: 1.55rem; }
    .phone-story { top: 9rem; }
}

@media (max-height: 740px) and (min-width: 768px) {
    .digital-story__copy { top: 4.7rem; }
    .digital-story__copy h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
    .digital-story__copy p { margin-top: .7rem; }
    .device-story-stage { width: min(74vw, 780px); margin-top: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
    .digital-story {
        --lid-angle: 0 !important;
        --device-rise: 0 !important;
        --device-scale: 1 !important;
        --screen-opacity: 1 !important;
        --site-opacity: 1 !important;
        --dashboard-opacity: 0 !important;
        --ambient-scale: 1 !important;
        --ambient-rotate: 0 !important;
        --ambient-opacity: .65 !important;
        --site-shift: 0 !important;
        --site-scale: 1 !important;
        --dashboard-shift: 24 !important;
        --phone-rise: 0 !important;
        height: auto;
        min-height: 760px;
    }

    .digital-story__sticky {
        position: relative;
        height: 760px;
    }

    .browser-address__text::after,
    .device-story__hint i { animation: none; }

    .ai-hero.hero-scroll-enhanced .hero-copy,
    .ai-hero.hero-scroll-enhanced .ai-visual {
        scale: 1 !important;
        rotate: 0deg !important;
        opacity: 1 !important;
    }

    .story-app-cloud { display: none; }

    .story-app.is-released { animation: none; }

    .story-charge-path {
        position: absolute;
        opacity: .75;
    }
}
