/* VoltPulse adaptation of Konexo's owner-approved PIEDRA visual system. */
:root {
    --vp-rail: #1b1a18;
    --vp-bg: #f5f4f0;
    --vp-surface: #fdfcfa;
    --vp-surface-subtle: #f9f8f6;
    --vp-ink: #22211e;
    --vp-muted: #6c6b68;
    --vp-hairline: #e4e1d8;
    --vp-divider: #e9e8e6;
    --vp-blue: #005de2;
    --vp-blue-wash: rgba(0, 93, 226, .08);
    --vp-green: #3d7a36;
    --vp-yellow: #7a6000;
    --vp-orange: #d96a00;
    --vp-red: #b01c33;
    --vp-purple: #8a42b0;
    --vp-radius: 8px;
}

/* Pico y Carga extends the base distribution models; VIP is the compact urgent exception. */
@media (min-width: 1001px) {
    .how-distribution-slide .how-distribution-peak.glass-panel {
        background-color: var(--vp-rail) !important;
        background-image: none !important;
        border-color: var(--vp-rail) !important;
    }
    .how-distribution-slide .how-distribution-peak.glass-panel h4 { color: #fff !important; }
    .how-distribution-slide .how-distribution-peak.glass-panel p { color: #e3dfd7 !important; }
}

/* Konexo + VoltPulse demo: one joint corporate story, with the deck imagery used as evidence. */
.demo-document {
    scroll-snap-type: y mandatory;
}
.demo-document section.slide.demo-slide {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}
.demo-page { background: var(--vp-bg); color: var(--vp-ink); }
.mobile-copy { display: none; }
.demo-page .presentation-nav { z-index: 30; }
.demo-slide {
    min-height: 100vh;
    height: 100vh;
    padding: 4.8rem clamp(1.25rem, 4vw, 4rem) 2rem !important;
    background: var(--vp-bg) !important;
    border-bottom-color: var(--vp-hairline) !important;
}
.demo-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1200px);
    margin: auto;
    animation: vp-enter 700ms cubic-bezier(.22, 1, .36, 1) both;
}
.demo-stack {
    min-height: calc(100vh - 6.8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.25rem, 3vh, 2.4rem);
}
.demo-eyebrow,
.demo-card-kicker {
    margin: 0 0 .75rem;
    color: var(--vp-blue);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.demo-heading { max-width: 54rem; }
.desktop-title-break { display: none; }
.demo-heading h2,
.demo-close h2 {
    margin: 0;
    color: var(--vp-ink);
    font-size: clamp(2.5rem, 5vw, 4.55rem);
    font-weight: 720;
    letter-spacing: -.065em;
    line-height: .94;
}
.demo-heading h2 span,
.demo-close h2 span { color: var(--vp-blue); }
.demo-heading > p:last-child {
    max-width: 40rem;
    margin: 1.15rem 0 0;
    color: var(--vp-muted);
    font-size: 1rem;
    line-height: 1.55;
}

@media (min-width: 761px) {
    #demo-slide-7 .demo-heading h2 { font-size: clamp(2.15rem, 4.2vw, 3.85rem); }
    #demo-slide-7 .desktop-title-break { display: block; }
}
.demo-slide-number {
    position: absolute;
    z-index: 4;
    right: clamp(1.25rem, 4vw, 4rem);
    bottom: 2rem;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border: 1px solid var(--vp-hairline);
    border-radius: .45rem;
    background: var(--vp-surface);
    color: var(--vp-muted);
    font-size: .72rem;
    font-weight: 700;
}
.demo-hero,
.demo-close { isolation: isolate; color: #fff; }
.demo-hero-image,
.demo-close-image {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.demo-hero-shade,
.demo-close-shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 12, 14, .9) 0%, rgba(10, 12, 14, .72) 43%, rgba(10, 12, 14, .24) 100%);
}
.demo-hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 6.8rem);
}
.demo-hero .demo-eyebrow,
.demo-close .demo-eyebrow { color: #76a5f5; }
.demo-hero h1 {
    max-width: 52rem;
    margin: 0;
    color: #fff;
    font-size: clamp(3.4rem, 7.4vw, 7rem);
    font-weight: 720;
    letter-spacing: -.075em;
    line-height: .86;
}
.demo-hero h1 span { color: #76a5f5; }
.demo-hero-lead { max-width: 32rem; margin: 1.35rem 0 0; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 560; line-height: 1.25; }
.demo-hero-rule { width: 3rem; height: 2px; margin: 1.6rem 0 1.1rem; background: #76a5f5; }
.demo-hero-detail { max-width: 28rem; margin: 0; color: #dedbd4; font-size: .95rem; line-height: 1.55; }
.demo-hero-positioning { max-width: 34rem; margin: 0; color: #f2f0eb; font-size: 1rem; line-height: 1.4; }
.demo-hero-positioning strong { color: #76a5f5; }
.demo-dual-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: stretch;
    max-width: 62rem;
    margin: 2rem auto;
}
.demo-platform-card,
.demo-flow-grid article,
.demo-modes-grid article,
.demo-kai-grid article,
.demo-kpi-grid article,
.demo-results-grid article {
    border: 1px solid var(--vp-hairline);
    border-radius: var(--vp-radius);
    background: var(--vp-surface);
    box-sizing: border-box;
}
.demo-stack .demo-dual-grid,
.demo-stack .demo-modules-grid,
.demo-stack .demo-flow-grid,
.demo-stack .demo-modes-grid,
.demo-stack .demo-kai-grid,
.demo-stack .demo-report-layout,
.demo-stack .demo-results-grid { margin-top: 0; margin-bottom: 0; }
.demo-stack .demo-rail { margin-top: 0; margin-bottom: 0; }
.demo-platform-card { padding: 2rem; }
.demo-platform-card-featured { background: var(--vp-surface-subtle); }
.demo-platform-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.55rem;
    place-items: center;
    border-radius: 1rem;
    background: var(--vp-blue-wash);
    color: var(--vp-blue);
    font-size: 1.55rem;
}
.demo-platform-card h3 { margin: 0; color: var(--vp-ink); font-size: 2rem; letter-spacing: -.05em; }
.demo-platform-card > p:last-child { margin: 1rem 0 0; color: var(--vp-muted); font-size: .95rem; line-height: 1.55; }
.demo-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .9rem; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--vp-hairline); list-style: none; }
.demo-module-list li { display: flex; align-items: center; gap: .45rem; min-width: 0; color: var(--vp-ink); font-size: .76rem; line-height: 1.25; }
.demo-module-list i { flex: 0 0 auto; color: var(--vp-blue); font-size: .65rem; }
.demo-energy-anchor { display: flex; align-items: center; gap: .7rem; margin-top: 2.25rem; padding: .9rem; border: 1px solid var(--vp-hairline); border-radius: var(--vp-radius); background: var(--vp-surface); color: var(--vp-ink); font-size: .8rem; font-weight: 650; line-height: 1.35; }
.demo-energy-anchor i { color: var(--vp-blue); font-size: 1.1rem; }
.demo-modules-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.demo-modules-grid article { min-height: 12.5rem; padding: 1.25rem; border: 1px solid var(--vp-hairline); border-radius: var(--vp-radius); background: var(--vp-surface); }
.demo-modules-grid i { display: block; margin-bottom: 2.4rem; color: var(--vp-blue); font-size: 1.45rem; }
.demo-modules-grid h3 { margin: 0; color: var(--vp-ink); font-size: 1.05rem; letter-spacing: -.035em; }
.demo-modules-grid p { margin: .55rem 0 0; color: var(--vp-muted); font-size: .78rem; line-height: 1.45; }
.demo-roadmap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr); align-items: center; gap: .7rem; width: min(100%, 60rem); margin: 0 auto; padding: .9rem 1.05rem; border: 1px solid var(--vp-hairline); border-radius: var(--vp-radius); background: var(--vp-surface-subtle); }
.demo-roadmap span { color: var(--vp-blue); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.demo-roadmap p { margin: 0; color: var(--vp-ink); font-size: .82rem; font-weight: 560; }
.demo-roadmap i { color: var(--vp-blue); font-size: .8rem; }
.demo-council-layer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--vp-hairline); border-radius: var(--vp-radius); background: var(--vp-surface-subtle); }
.demo-council-layer-icon { display: grid; width: 2.9rem; height: 2.9rem; place-items: center; border-radius: .8rem; background: var(--vp-blue-wash); color: var(--vp-blue); font-size: 1.15rem; }
.demo-council-layer .demo-card-kicker { margin: 0 0 .3rem; color: var(--vp-blue); }
.demo-council-layer h3 { margin: 0; color: var(--vp-ink); font-size: 1.05rem; letter-spacing: -.035em; }
.demo-council-layer p { margin: .35rem 0 0; color: var(--vp-muted); font-size: .78rem; line-height: 1.4; }
.demo-council-frequency { align-self: start; padding: .42rem .55rem; border-radius: .35rem; background: var(--vp-rail); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.demo-connection { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; color: var(--vp-blue); }
.demo-connection span { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; background: var(--vp-blue-wash); font-weight: 700; }
.demo-rail,
.demo-close-rail,
.demo-report-note {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: var(--vp-radius);
}
.demo-rail { align-self: center; margin: 0; padding: .85rem 1.05rem; background: var(--vp-rail); color: #d8d5cd; }
.demo-rail .why-wordmark-symbol,
.demo-close-rail .why-wordmark-symbol { color: #76a5f5 !important; }
.demo-rail p,
.demo-close-rail p { margin: 0; font-weight: 600; }
.demo-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin: 2rem 0;
}
.demo-flow-grid article { position: relative; min-height: 15rem; padding: 1.5rem; }
.demo-flow-grid article > span { color: var(--vp-muted); font-size: .72rem; font-weight: 700; }
.demo-flow-grid i,
.demo-modes-grid i,
.demo-kai-grid i,
.demo-results-grid i { display: block; color: var(--vp-blue); font-size: 1.65rem; }
.demo-flow-grid i { margin: 2.2rem 0 1.15rem; }
.demo-flow-grid h3,
.demo-modes-grid h3,
.demo-kai-grid h3,
.demo-results-grid h3 { margin: 0; color: var(--vp-ink); font-size: 1.25rem; letter-spacing: -.035em; }
.demo-flow-grid p,
.demo-modes-grid p,
.demo-kai-grid p,
.demo-results-grid p { margin: .65rem 0 0; color: var(--vp-muted); font-size: .85rem; line-height: 1.5; }
.demo-modes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin: 2rem 0; }
.demo-modes-grid article { grid-column: span 2; min-height: 10.5rem; padding: 1.15rem 1.25rem; text-align: center; }
.demo-modes-grid i { margin: .3rem 0 .75rem; }
.demo-modes-grid .demo-mode-peak { grid-column: span 4; background: var(--vp-rail); border-color: var(--vp-rail); }
.demo-mode-peak i { color: #f2c94c; }
.demo-mode-peak h3 { color: #fff; }
.demo-mode-peak p { max-width: 31rem; margin-left: auto; margin-right: auto; color: #e3dfd7; }
.demo-modes-grid .demo-mode-vip { grid-column: span 2; border-color: rgba(242, 201, 76, .32); background: #fffdf4; }
.demo-mode-vip i,
.demo-mode-vip h3 { color: var(--vp-yellow); }
.demo-mode-vip p { color: var(--vp-muted); }

/* Slide 05: give the distribution models a calmer two-row rhythm and a
   little more breathing room before the slide footer. */
@media (min-width: 1001px) {
    #demo-slide-5 .demo-stack { gap: clamp(1.45rem, 2.6vh, 2rem); transform: translateY(-.35rem); }
    #demo-slide-5 .demo-modes-grid { column-gap: 1rem; row-gap: 1rem; }
    #demo-slide-5 .demo-modes-grid article,
    #demo-slide-5 .demo-modes-grid .demo-mode-peak,
    #demo-slide-5 .demo-modes-grid .demo-mode-vip { min-height: 9.6rem; }
}
.demo-flexibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 1.8rem 0 .9rem; }
.demo-flexibility-card { min-height: 14rem; padding: 1.55rem 1.7rem; background: linear-gradient(145deg, #fff 0%, #f7faff 100%); }
.demo-flexibility-card .demo-kai-step { margin-bottom: 2rem; }
.demo-flexibility-card i { display: block; margin-bottom: 1rem; color: var(--vp-blue); font-size: 1.55rem; }
.demo-flexibility-card h3 { margin: 0; color: var(--vp-ink); font-size: 1.35rem; letter-spacing: -.04em; }
.demo-flexibility-card p { max-width: 30rem; margin: .75rem 0 0; color: var(--vp-muted); font-size: .9rem; line-height: 1.45; }
.demo-flexibility-voltpulse { position: relative; overflow: hidden; background: var(--vp-rail); border-color: var(--vp-rail); }
.demo-flexibility-voltpulse::before { content: ""; position: absolute; right: -3.5rem; top: -4.25rem; width: 15rem; height: 15rem; border-radius: 50%; background: radial-gradient(circle, rgba(0,93,226,.38), rgba(0,93,226,0) 68%); }
.demo-flexibility-voltpulse > * { position: relative; z-index: 1; }
.demo-flexibility-voltpulse .demo-kai-step { color: #76a5f5; }
.demo-flexibility-voltpulse i { color: #76a5f5; }
.demo-flexibility-voltpulse h3 { color: #fff; }
.demo-flexibility-voltpulse p { color: #dedbd4; }
.demo-simulator-callout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid rgba(0,93,226,.32); border-radius: var(--vp-radius); background: #eef4ff; color: var(--vp-ink); text-decoration: none; }
.demo-simulator-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .7rem; background: var(--vp-blue); color: #fff; }
.demo-simulator-callout small { display: block; margin-bottom: .3rem; color: var(--vp-blue); font-size: .66rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.demo-simulator-callout strong { display: block; max-width: 46rem; font-size: .95rem; line-height: 1.35; }
.demo-simulator-url { color: var(--vp-blue); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.demo-simulator-url i { margin-left: .25rem; }
.demo-kai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 2rem 0; }
.demo-kai-grid article { position: relative; min-height: 16rem; padding: 1.7rem; display: flex; flex-direction: column; overflow: hidden; }
.demo-kai-grid article:not(.demo-kai-feature) { background: linear-gradient(145deg, #fff 0%, #f8fbff 100%); box-shadow: 0 10px 22px rgba(27, 26, 24, .035); }
.demo-kai-step { display: block; margin-bottom: 2.4rem; color: var(--vp-muted); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.demo-kai-grid i { margin-bottom: 1.4rem; }
.demo-kai-grid article > p:last-child { margin-top: auto; }
.demo-kai-feature { background: var(--vp-rail) !important; border-color: var(--vp-rail) !important; box-shadow: 0 16px 34px rgba(27, 26, 24, .18); }
.demo-kai-feature::before { content: ""; position: absolute; top: -6rem; right: -5rem; width: 15rem; height: 15rem; border-radius: 50%; background: radial-gradient(circle, rgba(0, 93, 226, .28), rgba(0, 93, 226, 0) 68%); pointer-events: none; }
.demo-kai-feature > :not(.demo-kai-mark) { position: relative; z-index: 1; }
.demo-kai-feature h3 { color: #fff; }
.demo-kai-feature p { color: #d8d5cd; }
.demo-kai-feature h3 + p { margin-top: auto; }
.demo-kai-feature .demo-card-kicker { margin-top: 1.15rem; color: #76a5f5; }
.demo-kai-feature .demo-kai-step { color: #76a5f5; }
.demo-kai-mark { position: absolute; right: .85rem; bottom: .55rem; color: rgba(118, 165, 245, .09); font-size: clamp(3.6rem, 6vw, 5.8rem); font-weight: 800; letter-spacing: -.1em; line-height: .8; pointer-events: none; }
.demo-kai-promise { margin-top: .85rem; color: #76a5f5; font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.demo-kai-readout { margin-top: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--vp-hairline); border-radius: var(--vp-radius); background: var(--vp-surface-subtle); }
.demo-kai-readout-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.demo-kai-readout-heading .demo-card-kicker { margin: 0; color: var(--vp-blue); }
.demo-kai-status { color: var(--vp-green); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.demo-kai-status i { margin-right: .35rem; }
.demo-kai-readout-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .85rem; }
.demo-kai-readout-flow div { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.demo-kai-readout-flow span { color: var(--vp-muted); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.demo-kai-readout-flow strong { color: var(--vp-ink); font-size: .78rem; line-height: 1.35; }
.demo-kai-readout-flow > i { color: var(--vp-blue); font-size: .8rem; }
.demo-report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; gap: 1.25rem; margin: 1.8rem 0; }
.demo-council-report { min-width: 0; }
.demo-report-section-label { margin-bottom: .5rem; color: var(--vp-blue); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.demo-council-report h3 { margin: 0 0 .85rem; color: var(--vp-ink); font-size: 1.3rem; letter-spacing: -.04em; }
.demo-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.demo-kpi-grid article { min-height: 7.5rem; padding: 1rem; }
.demo-kpi-grid span { display: block; color: var(--vp-blue); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.demo-kpi-grid strong { display: block; margin-top: .75rem; color: var(--vp-ink); font-size: 1.22rem; letter-spacing: -.04em; }
.demo-kpi-grid p { margin: .5rem 0 0; color: var(--vp-muted); font-size: .8rem; line-height: 1.4; }
.demo-report-note { margin-top: .75rem; padding: 1rem 1.1rem; border: 1px solid var(--vp-hairline); background: var(--vp-surface-subtle); color: var(--vp-ink); }
.demo-report-note i { color: var(--vp-blue); }
.demo-report-note p { margin: 0; font-size: .88rem; }
.demo-report-preview { position: relative; width: 100%; aspect-ratio: 900 / 1352; min-height: 0; margin: 0; overflow: hidden; border: 1px solid var(--vp-hairline); border-radius: var(--vp-radius); background: var(--vp-surface); }
.demo-report-preview img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--vp-surface); }
.demo-report-preview figcaption { position: absolute; right: .65rem; bottom: .65rem; left: .65rem; margin: 0; padding: .45rem .55rem; border-radius: .35rem; background: rgba(253, 252, 250, .92); color: var(--vp-muted); font-size: .62rem; }
.demo-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 2rem 0; }
.demo-results-grid article { min-height: 15rem; padding: 1.5rem; }
.demo-results-grid i { margin-bottom: 3rem; }
.demo-close-shade { background: linear-gradient(90deg, rgba(10, 12, 14, .9), rgba(10, 12, 14, .64) 52%, rgba(10, 12, 14, .22)); }
.demo-close-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 6.8rem); }
.demo-close h2 { max-width: 55rem; color: #fff; }
.demo-close-summary { max-width: 42rem; margin: 1.15rem 0 0; color: #e3e1da; font-size: 1rem; line-height: 1.45; }
.demo-close-pill-grid { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.demo-close-pill-grid span { min-width: 7.5rem; padding: .55rem .8rem; border: 1px solid rgba(118,165,245,.75); border-radius: .35rem; background: rgba(10,12,14,.32); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.demo-close-rail { width: fit-content; margin-top: 2rem; padding: .85rem 1.1rem; background: var(--vp-rail); color: #fff; }
.demo-slide-number-inverse { border-color: rgba(255,255,255,.18); background: rgba(27,26,24,.65); color: #d8d5cd; }

@media (min-width: 1001px) {
    .demo-kai-slide .demo-stack { position: relative; top: -.75rem; }
    .demo-kai-slide .demo-kai-grid article { min-height: 14rem; }
    .demo-kai-slide .demo-kai-readout { padding: .8rem 1rem; }
    .demo-kai-slide .demo-kai-readout-heading { margin-bottom: .6rem; }
    #demo-slide-8 .demo-report-layout {
        grid-template-columns: minmax(0, 1fr) 18rem;
        align-items: start;
        gap: 1.65rem;
    }
    #demo-slide-8 .demo-report-preview {
        margin-top: 0;
        aspect-ratio: 895 / 1179;
        border: 1px solid rgba(27, 26, 24, .10);
        border-radius: .6rem;
        box-shadow: 0 .5rem 1.25rem rgba(27, 26, 24, .045);
        background: transparent;
    }
    #demo-slide-8 .demo-report-preview img {
        display: block;
        height: auto;
    }
    #demo-slide-8 .demo-report-preview figcaption { display: none; }
}

/* On taller desktop canvases, let the report counterbalance the headline.
   This pulls the evidence into the editorial composition without affecting
   compact laptop frames or the stacked mobile view. */
@media (min-width: 1001px) and (min-height: 821px) {
    #demo-slide-8 .demo-report-preview {
        margin-top: -3.25rem;
        margin-left: -.35rem;
    }
}

@media (max-width: 760px) {
    .demo-slide { height: auto; min-height: 100vh; padding: 5.5rem 1.2rem 3.5rem !important; }
    .demo-stack,
    .demo-hero-copy,
    .demo-close-copy { min-height: calc(100vh - 8rem); }
    .demo-heading h2,
    .demo-close h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
    .demo-dual-grid,
    .demo-modules-grid,
    .demo-flow-grid,
    .demo-kai-grid,
    .demo-kai-readout,
    .demo-results-grid,
    .demo-report-layout { grid-template-columns: 1fr; }
    .demo-connection { flex-direction: row; }
    .demo-module-list { grid-template-columns: 1fr; }
    .demo-energy-anchor { margin-top: 1.4rem; }
    .demo-modules-grid { grid-template-columns: 1fr; }
    .demo-modules-grid article { min-height: auto; }
    .demo-modules-grid i { margin-bottom: 1rem; }
    .demo-roadmap { grid-template-columns: auto 1fr; }
    .demo-roadmap i { display: none; }
    .demo-flow-grid article,
    .demo-kai-grid article,
    .demo-results-grid article { min-height: auto; }
    .demo-flow-grid i { margin: 1.5rem 0 .8rem; }
    .demo-kai-readout-heading { align-items: flex-start; flex-direction: column; gap: .45rem; }
    .demo-kai-readout-flow { grid-template-columns: 1fr; gap: .65rem; }
    .demo-kai-readout-flow > i { transform: rotate(90deg); justify-self: center; }
    .demo-modes-grid { grid-template-columns: 1fr; }
    .demo-modes-grid article,
    .demo-modes-grid .demo-mode-peak,
    .demo-modes-grid .demo-mode-vip { grid-column: auto; min-height: auto; }
    .demo-flexibility-grid { grid-template-columns: 1fr; }
    .demo-simulator-callout { grid-template-columns: auto minmax(0, 1fr); }
    .demo-simulator-url { grid-column: 2; white-space: normal; }
    .demo-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-report-preview { width: auto; min-height: 24rem; aspect-ratio: auto; }
    .demo-slide-number { right: 1.2rem; bottom: 1.3rem; }
}

html { background: var(--vp-bg); }
body {
    background: var(--vp-bg);
    color: var(--vp-ink);
    font-family: "Instrument Sans", sans-serif;
}
h1, h2, h3, h4 { font-family: inherit; }
::selection { background: #cfdff6; color: var(--vp-ink); }

/* Responsive corporate presentation: preserve the card language while giving
   medium and small screens enough vertical rhythm to breathe. */
@media (max-width: 1100px) {
    .demo-slide { height: auto; min-height: auto; padding: 4.5rem 2rem 3.5rem !important; }
    .demo-stack { min-height: auto; gap: 1.5rem; }
    .demo-heading { max-width: 54rem; }
    .demo-heading h2,
    .demo-close h2 { font-size: clamp(2.35rem, 5.2vw, 3.75rem); line-height: .98; }
    .demo-heading > p:last-child { margin-top: .8rem; max-width: 36rem; }
    .demo-modules-grid,
    .demo-flow-grid,
    .demo-kai-grid { gap: .85rem; }
    .demo-modules-grid article { min-height: 10.5rem; padding: 1rem; }
    .demo-modules-grid i { margin-bottom: 1.5rem; }
    .demo-flow-grid article { min-height: 12rem; padding: 1.15rem; }
    .demo-flow-grid i { margin: 1.5rem 0 .8rem; }
    .demo-kai-grid article { min-height: 13rem; padding: 1.25rem; }
    .demo-kai-step { margin-bottom: 1.2rem; }
    .demo-kai-grid i { margin-bottom: .9rem; }
    .demo-kai-readout { margin-top: 0; padding: .8rem .9rem; }
    .demo-kai-readout-heading { margin-bottom: .55rem; }
    .demo-report-layout { gap: .9rem; }
    .demo-council-layer { gap: .8rem; padding: .9rem 1rem; }
}

@media (max-width: 760px) {
    .demo-slide { padding: 4.5rem 1rem 3rem !important; }
    .demo-stack,
    .demo-hero-copy,
    .demo-close-copy { min-height: auto; }
    .demo-heading h2,
    .demo-close h2 { font-size: clamp(2.25rem, 11vw, 3.2rem); line-height: .97; }
    .demo-heading > p:last-child { font-size: .92rem; line-height: 1.45; }
    .demo-modules-grid[style] { grid-template-columns: 1fr !important; }
    .demo-modules-grid article { min-height: 0; padding: .9rem 1rem; }
    .demo-modules-grid i { display: inline-block; margin: 0 .65rem 0 0; font-size: 1.1rem; }
    .demo-modules-grid h3 { display: inline; font-size: 1rem; }
    .demo-modules-grid p { margin: .35rem 0 0 1.8rem; font-size: .75rem; }
    .demo-roadmap-expanded { gap: .55rem; padding: .85rem; }
    .demo-roadmap-expanded > article { padding-top: .55rem; }
    .demo-council-layer { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .demo-council-frequency { grid-column: 2; justify-self: start; }
    .demo-close-summary { font-size: .92rem; }
    .demo-close-pill-grid { margin-top: 1rem; }
    .demo-close-pill-grid span { min-width: 0; flex: 1 1 7rem; }
    .demo-council-roles { width: 100%; gap: .45rem; font-size: .72rem; }
    .demo-kai-grid article { min-height: 0; padding: 1rem; }
    .demo-kai-grid article > p:last-child { margin-top: 1rem; }
    .demo-kai-readout-flow { gap: .5rem; }
    .demo-kai-readout-flow > div:nth-of-type(2),
    .demo-kai-readout-flow > i:nth-of-type(2) { display: none; }
    .demo-kai-readout-flow strong { font-size: .74rem; }
    .demo-report-preview { min-height: 14rem; }
    .demo-kpi-grid { grid-template-columns: 1fr; }
    .demo-slide-number { bottom: .8rem; }

}

@media (min-width: 1440px) {
    /* Keep the evidence panel substantial, but proportionate to the KPI
       block so both columns resolve on the same visual baseline. */
    #demo-slide-8 .demo-report-layout {
        grid-template-columns: minmax(0, 1fr) 18.5rem;
        gap: 1.85rem;
    }
}

.accent-text,
.text-cyan-300,
.text-cyan-400,
.text-cyan-500 { color: var(--vp-blue) !important; }
.text-white,
.slide-title,
.slide-subtitle strong,
.slide-subtitle .emphasis { color: var(--vp-ink) !important; }
.text-slate-300,
.text-slate-400 { color: var(--vp-muted) !important; }
.text-slate-200 { color: var(--vp-ink) !important; }
.text-slate-500 { color: #908f8b !important; }
.text-green-300,
.text-green-400 { color: var(--vp-green) !important; }
.text-yellow-300,
.text-yellow-400,
.text-yellow-500 { color: var(--vp-yellow) !important; }
.text-orange-300,
.text-orange-400 { color: var(--vp-orange) !important; }
.text-red-300,
.text-red-400 { color: var(--vp-red) !important; }
.text-purple-300,
.text-purple-400 { color: var(--vp-purple) !important; }

.glass-panel {
    background: var(--vp-surface) !important;
    backdrop-filter: none;
    border: 1px solid var(--vp-hairline) !important;
    border-radius: var(--vp-radius);
    box-shadow: 0 1px 2px rgba(27, 26, 24, .05);
    transition: background-color .18s ease, transform .18s ease;
}
.glass-panel:hover { background: #f5f4f2 !important; border-color: var(--vp-hairline) !important; }
.glow-sphere,
.home-orbit,
.scroll-hint { display: none !important; }
.telemetry-line,
.overload-fill,
.animate-cloud,
.distribution-icon,
.nudge-content { animation: none !important; filter: none !important; }

.home-shell {
    background: var(--vp-bg);
    padding: 1.5rem clamp(1rem, 4vw, 4rem) 1rem;
}
/* Header/hero/footer are content-safe (centered, max-width:1100px) by default in styles.css.
   The dark rail is a left-anchored sidebar, so these need to be left-anchored too instead of
   centering as an independent column - otherwise they drift away from the rail on wide screens. */
.home-header,
.home-hero,
.home-footer { margin-left: 0; margin-right: 0; max-width: none; width: 100%; }
.home-header { color: #d8d5cd; }
.brand-lockup { color: inherit; }
.brand-lockup strong { font-family: inherit; font-weight: 700; }
.brand-lockup small { color: #a4a29d; }
.brand-mark {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #5794f2;
    font-size: 1.35rem;
    font-weight: 800;
}
.home-kicker { color: var(--vp-muted); }
.home-hero { min-height: 43vh; padding: 3rem 0 2rem; }
.home-hero-copy { width: min(100%, 1200px); max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 0; }
.home-hero h1 {
    color: var(--vp-ink);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 750;
    line-height: .92;
    letter-spacing: -.065em;
}
.home-lead { color: var(--vp-muted); font-size: 1rem; }
.eyebrow { color: var(--vp-blue); letter-spacing: .14em; }
.home-choices { margin: 0 auto; width: 100%; padding-left: 0; }
.home-section-heading { width: min(100%, 1000px); margin-left: auto; margin-right: auto; }
.home-section-heading h2 { color: var(--vp-ink); }
.home-card { color: var(--vp-ink); }
.home-card-featured { background: var(--vp-surface-subtle) !important; }
.home-card-number { color: var(--vp-muted); font-variant-numeric: tabular-nums; }
.home-card-icon { color: var(--vp-blue); background: var(--vp-blue-wash); border-color: transparent; }
.home-card-copy p { color: var(--vp-muted); }
.home-card-link { color: var(--vp-blue); }
.home-footer { color: var(--vp-muted); }

.presentation-page { background: var(--vp-bg); }
.presentation-nav,
.why-page .presentation-nav {
    background: rgba(245, 244, 240, .96);
    background-image: none;
    border-color: var(--vp-hairline);
    color: var(--vp-ink);
    backdrop-filter: none;
}
.presentation-home-link,
.presentation-next-link,
.why-page .presentation-nav a { color: var(--vp-blue); }
.presentation-nav-label,
.why-page .presentation-nav-label { color: var(--vp-muted); }
section.slide { border-bottom: 1px solid var(--vp-hairline); background: var(--vp-bg); }
.slide-title { text-transform: none; letter-spacing: -.04em; }
.slide-subtitle { color: var(--vp-muted); }

.bg-cyan-400,
.bg-cyan-500 { background-color: var(--vp-blue) !important; }
.bg-cyan-500\/10,
.bg-cyan-950\/10,
.bg-green-500\/10,
.bg-red-950\/10 { background: var(--vp-surface-subtle) !important; }
.border-cyan-400\/20,
.border-cyan-400\/30,
.border-cyan-500\/20,
.border-cyan-500\/30,
.border-green-400\/30,
.border-green-500\/20,
.border-red-500\/30,
.border-yellow-500\/20 { border-color: var(--vp-hairline) !important; }

.why-page,
.why-slide,
.why-frame { background: var(--vp-bg) !important; color: var(--vp-ink) !important; }
.why-frame { border-color: var(--vp-hairline) !important; box-shadow: none !important; }
.why-wordmark,
.why-slide-heading h2,
.why-intro h1,
.why-pillar h3,
.why-sequence-step h3 { color: var(--vp-ink) !important; font-family: inherit !important; }
.why-wordmark-symbol,
.why-eyebrow,
.why-slide-heading h2 span,
.why-intro h1 span,
.why-final-bar span { color: var(--vp-blue) !important; }
.why-rule { background: var(--vp-blue) !important; box-shadow: none !important; }
.why-table,
.why-table-row,
.why-pillar,
.why-sequence-step,
.why-final-bar { background: var(--vp-surface) !important; border-color: var(--vp-hairline) !important; box-shadow: none !important; }
.why-table-head { background: var(--vp-rail) !important; color: #d8d5cd !important; }
.why-table-head > div,
.why-table-head > div:first-child,
.why-table-head > div:last-child { background: var(--vp-rail) !important; color: #d8d5cd !important; }
.why-table-row { border-color: var(--vp-divider) !important; }
.why-cell + .why-cell { border-color: var(--vp-divider) !important; }
.why-cell p,
.why-cell:last-child p { color: var(--vp-muted) !important; }
.why-cell p strong { color: var(--vp-ink) !important; }
.why-pillar p strong { color: var(--vp-ink) !important; }
.why-table-journey .why-cell:last-child p { color: var(--vp-ink) !important; }
.why-table-journey .why-cell:last-child .why-cell-icon { background: var(--vp-blue-wash) !important; color: var(--vp-blue) !important; }
.why-cell-icon,
.why-pillar-icon,
.why-sequence-icon { background: var(--vp-blue-wash) !important; color: var(--vp-blue) !important; border-color: transparent !important; box-shadow: none !important; }
.why-wordmark-symbol { border-color: transparent !important; background: transparent !important; }
.why-cell-icon-muted { color: var(--vp-muted) !important; background: var(--vp-surface-subtle) !important; }
.why-slide-number,
.why-intro p,
.why-slide-heading p,
.why-pillar p,
.why-sequence-step p { color: var(--vp-muted) !important; }

/* The final close is the one intentional material inversion on this page. */
.why-final-bar {
    background: var(--vp-rail) !important;
    border-color: var(--vp-rail) !important;
    border-radius: var(--vp-radius);
    color: #d8d5cd !important;
}
.why-final-bar p,
.why-final-bar p span,
.why-final-bar p strong { color: #d8d5cd !important; }
.why-final-bar p strong { font-weight: 700; color: #fff !important; }
.why-final-bar .why-wordmark-symbol { color: #5794f2 !important; }
.why-slide-number-last {
    border: 1px solid var(--vp-hairline) !important;
    background: var(--vp-surface) !important;
    color: var(--vp-muted) !important;
}

@media (min-width: 1001px) {
    /* Give the opening statement enough room to read as one composed idea. */
    .why-slide-compare .why-compare-layout {
        grid-template-columns: minmax(360px, .52fr) minmax(0, 1fr);
        gap: 3.8rem;
    }
    .why-slide-compare .why-intro h1 {
        max-width: 34rem;
        font-size: clamp(3rem, 3.25vw, 3.35rem);
        line-height: .94;
        letter-spacing: -.075em;
    }
}

.why-kai-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    flex: 1 1 auto;
    align-items: stretch;
    margin: 1.8rem 0 1.1rem;
}
.why-kai-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 14.5rem;
    padding: 1.35rem 1rem;
    border: 1px solid var(--vp-hairline);
    border-radius: var(--vp-radius);
    background: var(--vp-surface);
    color: var(--vp-ink);
}
.why-kai-icon {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 1.15rem;
    border-radius: 1rem;
    background: var(--vp-blue-wash);
    color: var(--vp-blue);
}
.why-kai-card h3 {
    margin: 0;
    color: var(--vp-ink);
    font-size: 1.3rem;
    font-weight: 650;
    letter-spacing: -.03em;
}
.why-kai-card p {
    max-width: 24rem;
    margin: auto 0 0;
    color: var(--vp-muted);
    font-size: .85rem;
    line-height: 1.5;
}
.why-kai-card-featured {
    background: var(--vp-rail);
    border-color: var(--vp-rail);
    color: #d8d5cd;
}
.why-kai-card-featured h3 { color: #fff; }
.why-kai-card-featured p { color: #d8d5cd; }
.why-kai-card-featured .why-kai-icon { background: rgba(87, 148, 242, .12); color: #5794f2; }
.why-kai-label {
    display: block;
    margin: 0 0 .75rem;
    color: #5794f2;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media (min-width: 1001px) {
    /* Keep the five value pillars on one optical baseline at presentation width. */
    .why-pillar {
        height: 15rem;
        min-height: 15rem;
        box-sizing: border-box;
    }

    .why-slide-kai .why-frame {
        height: auto;
        min-height: 0;
        gap: 1.35rem;
    }
    .why-slide-kai .why-kai-grid {
        min-height: 15rem;
        margin: 0;
    }
    .why-slide-kai .why-kai-card {
        min-height: 15rem;
        box-sizing: border-box;
    }

    /* Compose the final slide as one deliberate scene instead of three floating islands. */
    .why-slide-sequence .why-frame {
        height: auto;
        min-height: 0;
        gap: 1.35rem;
    }
    .why-slide-sequence .why-slide-heading {
        width: 100%;
    }
    .why-slide-sequence .why-sequence-grid {
        height: 15rem;
        min-height: 15rem;
        margin: 0;
        padding: 0 0.25rem;
        border: 1px solid var(--vp-hairline);
        border-radius: var(--vp-radius);
        background: var(--vp-surface);
        box-sizing: border-box;
    }
    .why-slide-sequence .why-sequence-grid::before {
        display: none;
    }
    .why-slide-sequence .why-sequence-step {
        min-height: 0;
        background: transparent !important;
    }
    .why-slide-sequence .why-sequence-step + .why-sequence-step {
        border-left: 1px solid var(--vp-divider);
    }
    .why-slide-sequence .why-sequence-icon {
        width: 3.6rem;
        height: 3.6rem;
        margin-bottom: 0.85rem;
        border-radius: 1rem;
    }
    .why-slide-sequence .why-sequence-step p {
        margin-top: 0.55rem;
    }
    .why-slide-sequence .why-final-bar {
        margin: 0 auto;
    }
    .why-slide-sequence .why-slide-number-last {
        align-self: flex-end;
    }
}

@media (max-width: 760px) {
    .why-kai-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
        margin: 1.8rem 0 1.3rem;
    }
    .why-kai-card {
        min-height: 13rem;
        padding: 1.2rem .9rem;
    }
    .why-kai-card p { margin-top: .9rem; }
}

@media (max-width: 760px) {
    .home-shell { height: auto; min-height: 100vh; background: var(--vp-bg); }
    .home-hero-copy,
    .home-choices { margin-left: 0; width: 100%; padding-left: 0; }
    .home-hero { display: block; }
}

@media (min-width: 1440px) {
    .home-page .content-safe { max-width: 1400px; }
    .home-page .home-hero-copy { max-width: 64rem; }
    .home-page .home-card-grid,
    .home-page .home-section-heading { width: min(100%, 1200px); max-width: 1200px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


/* Refined PIEDRA motion: movement communicates hierarchy and state, never decoration. */
@keyframes vp-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes vp-draw-line {
    from { stroke-dashoffset: 1200; opacity: .35; }
    to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes vp-fill-bar {
    from { width: 0; }
    to { width: 90%; }
}
@keyframes vp-breathe {
    0%, 100% { opacity: .72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.035); }
}
@keyframes vp-icon-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.home-card {
    animation: vp-enter 650ms cubic-bezier(.22, 1, .36, 1) both;
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1), border-color 220ms ease, box-shadow 220ms ease;
}
.home-card:nth-child(2) { animation-delay: 90ms; }
.home-card:nth-child(3) { animation-delay: 180ms; }
.home-card:hover { transform: translateY(-2px); }
.home-card-arrow { transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }

.presentation-page .fade-in {
    transition: opacity 650ms cubic-bezier(.22, 1, .36, 1), transform 650ms cubic-bezier(.22, 1, .36, 1);
}
.presentation-page .fade-in:not(.visible) { transform: translateY(16px); }
.presentation-page .fade-in.visible { transform: translateY(0); }
.presentation-page .fade-in.delay-100 { transition-delay: 100ms; }
.presentation-page .fade-in.delay-200 { transition-delay: 180ms; }
.presentation-page .fade-in.delay-300 { transition-delay: 260ms; }

.presentation-page:not(.why-page) .slide > .content-safe {
    animation: none;
}

/* Scenes enter when the audience reaches them, never while they are off-screen. */
html.motion-ready .demo-content {
    opacity: 0;
    transform: translateY(16px);
    animation: none;
    transition: opacity 650ms cubic-bezier(.22, 1, .36, 1), transform 650ms cubic-bezier(.22, 1, .36, 1);
}
html.motion-ready .demo-slide.motion-visible .demo-content { opacity: 1; transform: translateY(0); }
html.motion-ready .demo-slide .demo-stack > * {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 520ms cubic-bezier(.22, 1, .36, 1), transform 520ms cubic-bezier(.22, 1, .36, 1);
}
html.motion-ready .demo-slide.motion-visible .demo-stack > * { opacity: 1; transform: translateY(0); }
html.motion-ready .demo-slide .demo-stack > *:nth-child(2) { transition-delay: 70ms; }
html.motion-ready .demo-slide .demo-stack > *:nth-child(3) { transition-delay: 140ms; }
html.motion-ready .demo-slide .demo-stack > *:nth-child(4) { transition-delay: 210ms; }

@media (hover: hover) and (pointer: fine) {
    .demo-platform-card,
    .demo-modules-grid article,
    .demo-flow-grid article,
    .demo-modes-grid article,
    .demo-kai-grid article,
    .demo-kpi-grid article,
    .demo-flexibility-card {
        transition: transform 240ms cubic-bezier(.22, 1, .36, 1), box-shadow 240ms ease, border-color 240ms ease;
    }
    .demo-platform-card:hover,
    .demo-modules-grid article:hover,
    .demo-flow-grid article:hover,
    .demo-modes-grid article:hover,
    .demo-kai-grid article:hover,
    .demo-kpi-grid article:hover,
    .demo-flexibility-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(27, 26, 24, .07);
    }
}
html.motion-ready .why-page .why-frame > * {
    opacity: 0;
    transform: translateY(16px);
    animation: none;
    transition: opacity 650ms cubic-bezier(.22, 1, .36, 1), transform 650ms cubic-bezier(.22, 1, .36, 1);
}
html.motion-ready .why-page .why-slide.motion-visible .why-frame > * { opacity: 1; transform: translateY(0); }
html.motion-ready .why-page .why-frame > *:nth-child(2) { transition-delay: 90ms; }
html.motion-ready .why-page .why-frame > *:nth-child(3) { transition-delay: 180ms; }
.why-page .why-table-row,
.why-page .why-pillar,
.why-page .why-sequence-step {
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}
.why-page .why-table-row:hover,
.why-page .why-pillar:hover,
.why-page .why-sequence-step:hover { transform: translateY(-2px); }

.telemetry-line {
    animation: none;
    filter: none !important;
}
.overload-fill {
    animation: none;
    background: var(--vp-blue) !important;
}
.animate-cloud {
    animation: none;
    filter: none !important;
}
.distribution-icon {
    animation: none;
    filter: none !important;
}
.distribution-icon-fifo,
.distribution-icon-round,
.distribution-icon-calendar,
.distribution-icon-vip { animation-delay: 120ms; }

.presentation-page .slide.motion-visible .telemetry-line { animation: vp-draw-line 2.4s cubic-bezier(.22, 1, .36, 1) both; }
.presentation-page .slide.motion-visible .overload-fill { animation: vp-fill-bar 1.15s cubic-bezier(.22, 1, .36, 1) both; }
.presentation-page .slide.motion-visible .animate-cloud { animation: vp-breathe 4s ease-in-out infinite; }
.presentation-page .slide.motion-visible .distribution-icon { animation: vp-icon-pulse 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .home-card,
    .presentation-page .fade-in,
    .presentation-page:not(.why-page) .slide > .content-safe,
    .why-page .why-frame > *,
    .telemetry-line,
    .overload-fill,
    .animate-cloud,
    .distribution-icon {
        animation: none !important;
        transition: none !important;
    }
    .presentation-page .fade-in,
    .why-page .why-frame > * { opacity: 1 !important; transform: none !important; }
    html.motion-ready .demo-content { opacity: 1 !important; transform: none !important; }
    html.motion-ready .demo-slide .demo-stack > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Wide presentation composition: make the proof and the close read as complete scenes. */
@media (min-width: 1001px) {
    .why-slide-pillars .why-frame,
    .why-slide-kai .why-frame,
    .why-slide-sequence .why-frame {
        height: auto;
        min-height: calc(100vh - 6.8rem);
        justify-content: center;
        gap: 1.35rem;
    }

    .why-slide-pillars .why-pillars-grid {
        flex: 0 0 23rem;
        height: 23rem;
        min-height: 23rem;
        margin: 1.25rem 0;
        padding: .75rem .5rem;
        border: 1px solid var(--vp-hairline);
        border-radius: var(--vp-radius);
        background: var(--vp-surface);
        box-sizing: border-box;
        gap: 0;
    }
    .why-slide-pillars .why-pillar {
        height: 100%;
        min-height: 0;
        justify-content: center;
        padding: 1.8rem 1.1rem;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box;
    }
    .why-slide-pillars .why-pillar + .why-pillar { border-left: 1px solid var(--vp-divider); }
    .why-slide-pillars .why-pillar-icon {
        width: 4.35rem;
        height: 4.35rem;
        margin-bottom: 1.25rem;
    }
    .why-slide-pillars .why-pillar h3 { min-height: 3rem; font-size: .86rem; }
    .why-slide-pillars .why-pillar p { max-width: 13rem; margin-top: 1.1rem; font-size: .82rem; }

    .why-slide-kai .why-kai-grid {
        flex: 0 0 19.5rem;
        min-height: 19.5rem;
        margin: 0;
    }
    .why-slide-kai .why-kai-card { min-height: 19.5rem; padding: 1.75rem 1.25rem; }
    .why-slide-kai .why-kai-icon { width: 4.1rem; height: 4.1rem; margin-bottom: 1.35rem; }
    .why-slide-kai .why-kai-card h3 { font-size: 1.45rem; }
    .why-slide-kai .why-kai-card p { font-size: .92rem; line-height: 1.55; }

    .why-slide-sequence .why-sequence-grid {
        flex: 0 0 20rem;
        height: 20rem;
        min-height: 20rem;
        margin: 0;
    }
    .why-slide-sequence .why-sequence-step { min-height: 0; }
    .why-slide-sequence .why-sequence-icon { width: 4rem; height: 4rem; }
    .why-slide-sequence .why-sequence-step h3 { font-size: .9rem; }
    .why-slide-sequence .why-sequence-step p { max-width: 13rem; font-size: .78rem; }
    .why-slide-sequence .why-final-bar { min-height: 3.35rem; max-width: 54rem; margin: 0 auto; box-sizing: border-box; }
    .why-slide-sequence .why-slide-number-last { position: absolute; right: 0; bottom: 0; }

    .how-solution-slide .content-safe,
    .how-distribution-slide .content-safe {
        max-width: 1200px;
        min-height: calc(100vh - 6.75rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .how-solution-rule { box-shadow: 0 1px 2px rgba(27, 26, 24, .05) !important; }
    .how-solution-slide .bg-cyan-500\/30 { background: var(--vp-divider) !important; }
    .how-solution-step-number {
        background: var(--vp-surface) !important;
        border-color: var(--vp-hairline) !important;
        box-shadow: none !important;
    }
    .how-solution-step-number span { color: var(--vp-blue) !important; }
    .how-solution-step-number.is-featured {
        background: var(--vp-rail) !important;
        border-color: var(--vp-rail) !important;
    }
    .how-solution-step-number.is-featured span { color: #5794f2 !important; }
    .how-solution-card.is-featured { background: var(--vp-surface-subtle) !important; }

    .how-distribution-slide .content-safe { justify-content: center; gap: 1.5rem; }
    .how-distribution-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(11.5rem, 1fr));
        gap: .75rem !important;
        margin: 0;
    }
    .how-distribution-card {
        min-height: 0 !important;
        padding: 1.5rem 1.2rem !important;
    }
    .how-distribution-card:nth-child(-n+3),
    .how-distribution-vip { grid-column: span 2; }
    .how-distribution-peak { grid-column: span 4; }
    .how-distribution-card h4 { color: var(--vp-ink) !important; }
    .how-distribution-card p { color: var(--vp-muted) !important; }
    .how-distribution-peak {
        background: var(--vp-rail) !important;
        border-color: var(--vp-rail) !important;
    }
    .how-distribution-peak h4 { color: #fff !important; }
    .how-distribution-peak p { max-width: 36rem; color: #e3dfd7 !important; }
    .how-distribution-vip { background: #fffdf4 !important; }
    .how-distribution-vip h4,
    .how-distribution-vip .text-yellow-500 { color: var(--vp-yellow) !important; }
}

@media (min-width: 1100px) {
    .home-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Intermediate screens need a presentation rhythm, not a compressed desktop.
   Let dense concepts use a second row before reducing their visual hierarchy. */
@media (min-width: 761px) and (max-width: 1200px) {
    .demo-slide { padding: 4.25rem 2.5rem 3.5rem !important; }
    .demo-heading h2,
    .demo-close h2 { font-size: clamp(2.45rem, 4.5vw, 3.35rem); }
    .demo-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-flow-grid article { min-height: 9.5rem; }
    .demo-modes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-modes-grid article,
    .demo-modes-grid .demo-mode-peak { grid-column: auto; min-height: 9rem; }
    .demo-modes-grid .demo-mode-vip { grid-column: span 2; min-height: 8.5rem; }
    .demo-flexibility-card { min-height: 11.25rem; }
    .demo-kai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-kai-grid .demo-kai-feature { grid-column: span 2; min-height: 10.5rem; }
    .demo-kai-grid article { min-height: 11.5rem; }
    .demo-report-layout { grid-template-columns: minmax(0, 1fr); }
    .demo-report-preview { width: min(15rem, 100%); }
}

/* Short desktop and laptop viewports: keep each slide readable as one frame.
   Height takes precedence over the medium-width stacking rules above. */
@media (min-width: 761px) and (max-height: 820px) {
    .demo-slide {
        height: 100vh;
        height: 100svh;
        min-height: 100vh;
        min-height: 100svh;
        padding: 3.35rem 2.25rem 1.7rem !important;
    }
    .demo-stack,
    .demo-hero-copy,
    .demo-close-copy {
        min-height: calc(100vh - 5.05rem);
        min-height: calc(100svh - 5.05rem);
    }
    .demo-stack { gap: .85rem; }
    .demo-heading { max-width: 54rem; }
    .demo-heading h2,
    .demo-close h2 {
        font-size: clamp(2.15rem, 4vw, 3rem);
        line-height: .96;
    }
    .demo-heading > p:last-child {
        max-width: 38rem;
        margin-top: .55rem;
        font-size: .9rem;
        line-height: 1.4;
    }
    .demo-eyebrow,
    .demo-card-kicker { margin-bottom: .45rem; }
    .demo-hero h1 { font-size: clamp(3rem, 6.2vw, 5.2rem); }
    .demo-hero-lead { margin-top: .85rem; }
    .demo-hero-rule { margin: 1rem 0 .75rem; }
    .demo-hero-positioning { font-size: .86rem; }
    .demo-dual-grid { margin: 0 auto; }
    .demo-platform-card { padding: 1.25rem; }
    .demo-platform-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: .85rem;
        font-size: 1.2rem;
    }
    .demo-platform-card h3 { font-size: 1.55rem; }
    .demo-platform-card > p:last-child { margin-top: .55rem; font-size: .84rem; }
    .demo-modules-grid article { min-height: 8.25rem; padding: .9rem 1rem; }
    .demo-modules-grid i { margin-bottom: .8rem; font-size: 1.2rem; }
    .demo-council-layer { gap: .75rem; padding: .65rem .85rem; }
    .demo-council-layer-icon { width: 2.4rem; height: 2.4rem; }
    .demo-council-layer p { margin-top: .2rem; }
    .demo-roadmap-expanded { padding: .65rem .8rem; }
    .demo-flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .demo-flow-grid article { min-height: 8.75rem; padding: .9rem 1rem; }
    .demo-flow-grid i { margin: .85rem 0 .55rem; font-size: 1.35rem; }
    .demo-flow-grid p { font-size: .78rem; line-height: 1.35; }
    .demo-modes-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .demo-modes-grid article { grid-column: span 2; min-height: 8.2rem; padding: .8rem 1rem; }
    .demo-modes-grid .demo-mode-peak { grid-column: span 4; min-height: 8.2rem; }
    .demo-modes-grid .demo-mode-vip { grid-column: span 2; min-height: 8.2rem; }
    .demo-modes-grid i { margin: .15rem 0 .5rem; font-size: 1.35rem; }
    .demo-modes-grid p { margin-top: .4rem; font-size: .78rem; line-height: 1.35; }
    .demo-kai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .demo-kai-grid .demo-kai-feature { grid-column: span 1; min-height: 9.75rem; }
    .demo-kai-grid article { min-height: 9.75rem; padding: .9rem 1.05rem; }
    .demo-kai-step { margin-bottom: .65rem; }
    .demo-kai-grid i { margin-bottom: .55rem; font-size: 1.35rem; }
    .demo-kai-grid p { font-size: .78rem; line-height: 1.35; }
    .demo-kai-readout { padding: .65rem .8rem; }
    .demo-kai-readout-heading { margin-bottom: .4rem; }
    .demo-report-layout {
        grid-template-columns: minmax(0, 1fr) 13rem;
        gap: .85rem;
        margin: 0;
    }
    .demo-report-preview { width: 100%; }
    .demo-report-section-label { margin-bottom: .3rem; }
    .demo-council-report h3 { margin-bottom: .55rem; font-size: 1.1rem; }
    .demo-kpi-grid { gap: .5rem; }
    .demo-kpi-grid article { min-height: 5.65rem; padding: .7rem .8rem; }
    .demo-kpi-grid strong { margin-top: .4rem; font-size: 1.02rem; }
    .demo-kpi-grid p { margin-top: .3rem; font-size: .72rem; }
    .demo-report-note { margin-top: .5rem; padding: .65rem .8rem; }
    .demo-report-note p { font-size: .78rem; }
    /* Slide 09 keeps its two-column comparison, but condenses its card
       internals so short landscape viewports do not overlap the simulator. */
    .demo-flexibility-grid { gap: .65rem; margin: .4rem 0; }
    .demo-flexibility-card {
        display: grid;
        grid-template-columns: 1.45rem minmax(0, 1fr);
        align-items: center;
        column-gap: .6rem;
        min-height: 0;
        padding: .7rem .85rem;
    }
    .demo-flexibility-card .demo-kai-step { grid-column: 1 / -1; margin-bottom: .35rem; }
    .demo-flexibility-card i { grid-row: span 2; margin: 0; font-size: 1.05rem; }
    .demo-flexibility-card h3 { margin: 0; font-size: 1.05rem; }
    .demo-flexibility-card p { grid-column: 2; margin: .12rem 0 0; font-size: .76rem; line-height: 1.3; }
    .demo-simulator-callout { gap: .65rem; padding: .7rem .85rem; }
    .demo-simulator-icon { width: 2.25rem; height: 2.25rem; }
    .demo-simulator-callout small { margin-bottom: .2rem; font-size: .6rem; }
    .demo-simulator-callout strong { font-size: .8rem; line-height: 1.3; }
    .demo-simulator-url { font-size: .7rem; }
    .demo-close-summary { margin-top: .75rem; font-size: .9rem; }
    .demo-close-pill-grid { margin-top: .9rem; }
    .demo-close-rail { margin-top: 1.1rem; }
    .demo-slide-number { right: 2.25rem; bottom: .65rem; }
}

/* Phone landscape and other very short viewports: preserve one slide per
   screen while keeping the desktop card silhouettes and hierarchy. */
@media (min-width: 761px) and (max-height: 520px) {
    .demo-slide { padding: 2.75rem 1.4rem .8rem !important; }
    .demo-stack,
    .demo-hero-copy,
    .demo-close-copy {
        min-height: calc(100vh - 3.55rem);
        min-height: calc(100svh - 3.55rem);
    }
    .demo-stack { gap: .5rem; }
    .demo-heading { max-width: 50rem; }
    .demo-heading h2,
    .demo-close h2,
    #demo-slide-7 .demo-heading h2 {
        font-size: clamp(1.7rem, 3.7vw, 2.15rem);
        line-height: .96;
    }
    .demo-heading > p:last-child { margin-top: .35rem; font-size: .75rem; line-height: 1.3; }
    .demo-eyebrow,
    .demo-card-kicker { margin-bottom: .3rem; font-size: .56rem; }

    .demo-modules-grid article { min-height: 4.9rem; padding: .55rem .7rem; }
    .demo-modules-grid i { margin-bottom: .4rem; font-size: 1rem; }
    .demo-modules-grid h3 { font-size: .9rem; }
    .demo-modules-grid p { margin-top: .25rem; font-size: .69rem; line-height: 1.25; }
    .demo-council-layer { gap: .55rem; padding: .45rem .65rem; }
    .demo-council-layer-icon { width: 2rem; height: 2rem; font-size: .9rem; }
    .demo-council-layer h3 { font-size: .9rem; }
    .demo-council-layer > div > p:last-child { display: none; }
    .demo-council-frequency { padding: .3rem .4rem; font-size: .53rem; }
    .demo-roadmap-expanded { padding: .4rem .6rem; }
    .demo-roadmap-expanded > article small { display: none; }

    .demo-flow-grid article { min-height: 5.75rem; padding: .55rem .7rem; }
    .demo-flow-grid i { margin: .45rem 0 .3rem; font-size: 1.05rem; }
    .demo-flow-grid h3 { font-size: .95rem; }
    .demo-flow-grid p { margin-top: .25rem; font-size: .69rem; line-height: 1.25; }

    .demo-modes-grid article,
    .demo-modes-grid .demo-mode-vip,
    .demo-modes-grid .demo-mode-peak { min-height: 4.9rem; padding: .5rem .65rem; }
    .demo-modes-grid i { margin: 0 0 .25rem; font-size: 1rem; }
    .demo-modes-grid h3 { font-size: .92rem; }
    .demo-modes-grid p { margin-top: .2rem; font-size: .68rem; line-height: 1.2; }

    .demo-kai-grid article,
    .demo-kai-grid .demo-kai-feature { min-height: 6.15rem; padding: .6rem .75rem; }
    .demo-kai-step { margin-bottom: .35rem; font-size: .53rem; }
    .demo-kai-grid i { margin-bottom: .3rem; font-size: 1rem; }
    .demo-kai-grid h3 { font-size: .95rem; }
    .demo-kai-grid p { font-size: .68rem; line-height: 1.25; }
    .demo-kai-readout { padding: .45rem .65rem; }
    .demo-kai-readout-heading { margin-bottom: .25rem; }
    .demo-kai-readout-flow strong { font-size: .67rem; line-height: 1.2; }

    .demo-kpi-grid article { min-height: 4.4rem; padding: .5rem .65rem; }
    .demo-kpi-grid strong { margin-top: .25rem; font-size: .9rem; }
    .demo-kpi-grid p { margin-top: .2rem; font-size: .68rem; line-height: 1.2; }
    .demo-report-note { margin-top: .35rem; padding: .45rem .65rem; }
    .demo-report-note p { font-size: .69rem; }
    .demo-slide-number { right: 1.4rem; bottom: .35rem; }
}

/* Mobile slides must grow with their content; styles.css gives section.slide
   a fixed viewport height and hidden overflow, which clips long cards. */
@media (max-width: 760px) {
    .mobile-copy { display: inline; }
    .desktop-copy { display: none; }

    .presentation-nav {
        padding: .85rem 1rem;
    }
    .presentation-nav-label { display: none; }
    .presentation-nav a { font-size: .56rem; letter-spacing: .12em; }

    html,
    body.presentation-page.demo-page {
        height: auto !important;
        min-height: 100%;
        overflow-y: auto !important;
        scroll-behavior: smooth;
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    section.slide.demo-slide {
        height: auto !important;
        min-height: 100svh !important;
        overflow: visible !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: normal !important;
    }
    section.slide.demo-slide .demo-content {
        flex: 0 0 auto;
    }

    .demo-stack { gap: 1.25rem; }
    .demo-platform-card { padding: 1.2rem; }
    .demo-platform-icon { width: 2.75rem; height: 2.75rem; margin-bottom: .75rem; }
    .demo-platform-card h3 { font-size: 1.65rem; }
    .demo-platform-card > p:last-child { margin-top: .5rem; font-size: .82rem; line-height: 1.45; }

    .demo-roadmap-expanded > article small { display: none; }

    .demo-flow-grid { gap: .55rem; margin: .15rem 0; }
    .demo-flow-grid article {
        display: grid;
        grid-template-columns: 1.5rem minmax(0, 1fr);
        align-items: center;
        column-gap: .65rem;
        min-height: 0;
        padding: .8rem .9rem;
    }
    .demo-flow-grid article > span { display: none; }
    .demo-flow-grid i { grid-row: span 2; margin: 0; font-size: 1.15rem; }
    .demo-flow-grid h3 { margin: 0; font-size: 1rem; }
    .demo-flow-grid p { grid-column: 2; margin: .15rem 0 0; font-size: .74rem; line-height: 1.35; }

    .demo-modes-grid { gap: .55rem; margin: .15rem 0; }
    .demo-modes-grid article,
    .demo-modes-grid .demo-mode-vip,
    .demo-modes-grid .demo-mode-peak {
        display: grid;
        grid-template-columns: 1.55rem minmax(0, 1fr);
        align-items: center;
        column-gap: .65rem;
        min-height: 0;
        padding: .75rem .9rem;
        text-align: left;
    }
    .demo-modes-grid i { grid-row: span 2; margin: 0; font-size: 1.1rem; text-align: center; }
    .demo-modes-grid h3 { margin: 0; font-size: .98rem; text-align: left; }
    .demo-modes-grid p,
    .demo-modes-grid .demo-mode-peak p { grid-column: 2; max-width: none; margin: .12rem 0 0; font-size: .71rem; line-height: 1.35; text-align: left; }

    .demo-kai-grid { gap: .55rem; margin: .15rem 0; }
    .demo-kai-grid article {
        display: grid;
        grid-template-columns: 1.55rem minmax(0, 1fr);
        align-items: center;
        column-gap: .7rem;
        min-height: 0;
        padding: .85rem 1rem;
    }
    .demo-kai-step { grid-column: 1 / -1; margin-bottom: .5rem; }
    .demo-kai-grid i { grid-row: span 2; margin: 0; font-size: 1.15rem; }
    .demo-kai-grid h3 { margin: 0; font-size: 1.03rem; }
    .demo-kai-grid article > p:last-child,
    .demo-kai-feature h3 + p { grid-column: 2; margin: .15rem 0 0; font-size: .78rem; line-height: 1.35; }
    .demo-kai-readout { padding: .9rem; }
    .demo-kai-readout-flow strong { font-size: .76rem; }

    .demo-report-layout { margin: .15rem 0; }
    .demo-kpi-grid { gap: .6rem; }
    .demo-kpi-grid article { min-height: 0; padding: .8rem .85rem; }
    .demo-kpi-grid strong { margin-top: .45rem; font-size: 1rem; line-height: 1.05; }
    .demo-kpi-grid p { margin-top: .35rem; font-size: .71rem; line-height: 1.3; }
    .demo-report-note { margin-top: .6rem; padding: .8rem .9rem; }
    .demo-report-note p { font-size: .76rem; line-height: 1.35; }
    .demo-report-preview { min-height: 12.5rem; }

    .demo-flexibility-grid { gap: .55rem; margin: .15rem 0; }
    .demo-flexibility-card {
        display: grid;
        grid-template-columns: 1.55rem minmax(0, 1fr);
        align-items: center;
        column-gap: .7rem;
        min-height: 0;
        padding: .9rem 1rem;
    }
    .demo-flexibility-card .demo-kai-step { grid-column: 1 / -1; margin-bottom: .5rem; }
    .demo-flexibility-card i { grid-row: span 2; margin: 0; font-size: 1.15rem; }
    .demo-flexibility-card h3 { margin: 0; font-size: 1.08rem; }
    .demo-flexibility-card p { grid-column: 2; margin: .15rem 0 0; font-size: .78rem; line-height: 1.35; }
    .demo-simulator-callout { gap: .75rem; padding: .9rem; }
    .demo-simulator-icon { width: 2.45rem; height: 2.45rem; }
    .demo-simulator-callout strong { font-size: .82rem; line-height: 1.35; }
    .demo-simulator-url { margin-top: -.15rem; font-size: .72rem; }
}

/* Mobile presentation system: free reading, one-column hierarchy, touch-safe controls.
   Desktop composition remains intentionally unchanged. */
@media (max-width: 760px) {
    html { scroll-snap-type: none !important; }
    body.presentation-page {
        height: auto !important;
        min-height: 100%;
        overflow-x: clip;
        overflow-y: auto !important;
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .presentation-page .presentation-nav {
        min-height: 3.25rem;
        padding: calc(.35rem + env(safe-area-inset-top)) 1rem .35rem;
        background: rgba(245, 244, 240, .88);
        border-bottom: 1px solid rgba(27, 26, 24, .06);
        -webkit-backdrop-filter: saturate(160%) blur(16px);
        backdrop-filter: saturate(160%) blur(16px);
    }
    .presentation-page .presentation-nav-label { display: none; }
    .presentation-page .presentation-nav a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        padding: 0 .15rem;
        font-size: .56rem;
        letter-spacing: .12em;
    }

    .presentation-page section.slide {
        width: 100%;
        height: auto !important;
        min-height: 100svh !important;
        justify-content: flex-start;
        box-sizing: border-box;
        overflow: visible !important;
        padding: calc(5.75rem + env(safe-area-inset-top)) 1rem 3rem !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }
    .presentation-page section.slide > .content-safe {
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }
    .presentation-page .slide-title,
    .why-page .why-intro h1,
    .why-page .why-slide-heading h2 {
        text-wrap: balance;
    }
    .presentation-page .slide-title {
        font-size: clamp(2.1rem, 10vw, 2.8rem);
        line-height: .98;
    }
    .presentation-page .slide-subtitle {
        max-width: 38rem;
        margin-top: .7rem;
        font-size: .9rem;
        line-height: 1.5;
    }
    .presentation-page .fade-in,
    html.motion-ready .why-page .why-frame > * {
        transition-delay: 0ms !important;
    }
    .presentation-page .glass-panel:hover,
    .why-page .why-table-row:hover,
    .why-page .why-pillar:hover,
    .why-page .why-sequence-step:hover {
        transform: none !important;
    }

    /* Long-form "Cómo funciona": prefer one primary reading column and
       turn repeated card grids into compact scan rows. */
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:first-of-type,
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:last-of-type {
        justify-content: center;
    }
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:first-of-type h1,
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:last-of-type h1 {
        font-size: clamp(3.2rem, 15vw, 4.7rem) !important;
        line-height: .9;
        text-wrap: balance;
    }
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:first-of-type .mt-12,
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:last-of-type .mt-12 { margin-top: 2rem !important; }
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:first-of-type .mt-8,
    body.presentation-page:not(.why-page):not(.demo-page) section.slide:last-of-type .mt-8 { margin-top: 1.35rem !important; }

    body.presentation-page:not(.why-page):not(.demo-page) .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .grid.grid-cols-2:not(.how-distribution-grid) > .glass-panel {
        min-height: 0 !important;
        padding: .85rem .9rem !important;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-solution-slide .content-safe,
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-slide .content-safe {
        min-height: 0;
        gap: 1rem;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-solution-rule {
        margin-bottom: .9rem !important;
        padding: .8rem .9rem !important;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-solution-rule > p:first-child {
        font-size: .95rem !important;
        line-height: 1.25;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-solution-step {
        gap: .7rem !important;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-solution-step-number {
        width: 2.6rem !important;
        height: 2.6rem !important;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-solution-card {
        padding: .8rem .9rem !important;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-grid {
        grid-template-columns: 1fr !important;
        gap: .55rem !important;
        margin-top: 0;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-card,
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-card:nth-child(-n+3),
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-vip,
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-peak {
        grid-column: auto !important;
        display: grid !important;
        grid-template-columns: 2.25rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: .7rem;
        min-height: 0 !important;
        padding: .78rem .9rem !important;
        text-align: left;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-card i {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0 !important;
        font-size: 1rem !important;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-card h4 {
        grid-column: 2;
        grid-row: 1;
        margin: 0 !important;
        font-size: .94rem !important;
        text-align: left;
    }
    body.presentation-page:not(.why-page):not(.demo-page) .how-distribution-card p {
        grid-column: 2;
        grid-row: 2;
        margin-top: .15rem !important;
        font-size: .72rem !important;
        line-height: 1.35 !important;
        text-align: left;
    }

    /* "Por qué VoltPulse": replace narrow two-column comparisons with
       explicit paired rows, and turn feature matrices into readable lists. */
    .why-page section.slide.why-slide {
        padding: calc(5.75rem + env(safe-area-inset-top)) 1rem 3rem !important;
    }
    .why-page .why-frame {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        gap: 1rem;
    }
    .why-page .why-slide-top { margin-bottom: .65rem; }
    .why-page .why-intro { padding: 0; }
    .why-page .why-intro h1,
    .why-page .why-slide-heading h2 {
        font-size: clamp(2.2rem, 10.5vw, 2.9rem);
        line-height: .96;
        letter-spacing: -.055em;
    }
    .why-page .why-intro > p,
    .why-page .why-slide-heading > p {
        max-width: 100%;
        font-size: .82rem;
        line-height: 1.5;
    }
    .why-page .why-intro-callout br { display: none; }
    .why-page .why-compare-layout { gap: 1rem; }
    .why-page .why-table { border-radius: .7rem; }
    .why-page .why-table-head { display: none; }
    .why-page .why-table-row { grid-template-columns: 1fr; }
    .why-page .why-table-row + .why-table-row { border-top: 1px solid var(--vp-divider) !important; }
    .why-page .why-cell {
        display: grid;
        grid-template-columns: 2.15rem minmax(0, 1fr);
        align-items: center;
        gap: .65rem;
        padding: .7rem .8rem;
    }
    .why-page .why-cell::before {
        grid-column: 1 / -1;
        display: block;
        color: var(--vp-blue);
        font-size: .55rem;
        font-weight: 700;
        letter-spacing: .12em;
    }
    .why-page .why-cell:first-child::before { content: "EL RETO"; }
    .why-page .why-cell:last-child::before { content: "LA RESPUESTA"; }
    .why-page .why-cell + .why-cell {
        border-top: 1px solid var(--vp-divider) !important;
        border-left: 0 !important;
        background: var(--vp-surface-subtle) !important;
    }
    .why-page .why-cell-icon {
        grid-column: 1;
        grid-row: 2;
        width: 2.15rem;
        height: 2.15rem;
        font-size: .82rem;
    }
    .why-page .why-cell p {
        grid-column: 2;
        grid-row: 2;
        font-size: .74rem;
        line-height: 1.42;
    }

    .why-page .why-pillars-grid {
        grid-template-columns: 1fr;
        gap: .55rem;
        margin: .25rem 0 .45rem;
    }
    .why-page .why-pillar,
    .why-page .why-pillar:last-child {
        grid-column: auto;
        display: grid;
        grid-template-columns: 2.55rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: .75rem;
        min-height: 0;
        padding: .8rem .9rem;
        text-align: left;
    }
    .why-page .why-pillar-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 2.55rem;
        height: 2.55rem;
        margin: 0;
        border-radius: .7rem;
        font-size: 1rem;
    }
    .why-page .why-pillar h3 {
        grid-column: 2;
        min-height: 0;
        font-size: .72rem;
        line-height: 1.25;
        text-align: left;
    }
    .why-page .why-pillar h3 br { display: none; }
    .why-page .why-pillar p {
        grid-column: 2;
        max-width: none;
        margin: .18rem 0 0;
        font-size: .7rem;
        line-height: 1.4;
        text-align: left;
    }

    .why-page .why-kai-grid {
        grid-template-columns: 1fr;
        gap: .55rem;
        margin: .25rem 0 .45rem;
    }
    .why-page .why-kai-card {
        display: grid;
        grid-template-columns: 2.55rem minmax(0, 1fr);
        align-items: center;
        column-gap: .75rem;
        min-height: 0;
        padding: .85rem .9rem;
    }
    .why-page .why-kai-icon {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 2.55rem;
        height: 2.55rem;
        margin: 0;
        border-radius: .7rem;
        font-size: 1rem;
    }
    .why-page .why-kai-label {
        grid-column: 2;
        margin: 0 0 .15rem;
        font-size: .54rem;
    }
    .why-page .why-kai-card h3 {
        grid-column: 2;
        font-size: 1rem;
    }
    .why-page .why-kai-card p {
        grid-column: 2;
        max-width: none;
        margin: .18rem 0 0;
        font-size: .72rem;
        line-height: 1.4;
    }

    .why-page .why-sequence-grid {
        gap: 0;
        margin: .25rem 0 .65rem;
    }
    .why-page .why-sequence-grid::before { display: none; }
    .why-page .why-sequence-step {
        display: grid;
        grid-template-columns: 2.45rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        min-height: 0;
        padding: .65rem 0;
        text-align: left;
        border-bottom: 1px solid var(--vp-divider) !important;
    }
    .why-page .why-sequence-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 2.45rem;
        height: 2.45rem;
        margin: 0;
        border-radius: .65rem;
        font-size: .95rem;
    }
    .why-page .why-sequence-step h3 {
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 0 .7rem;
        font-size: .72rem;
    }
    .why-page .why-sequence-step p {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
        margin: .12rem 0 0 .7rem;
        font-size: .68rem;
        line-height: 1.35;
    }
    .why-page .why-final-bar {
        margin-top: .75rem;
        padding: .75rem .85rem;
        align-items: center;
    }
    .why-page .why-final-bar p {
        font-size: .84rem;
        line-height: 1.35;
    }
}
