/* ==========================================================================
   ABOUT PAGE STYLES — Que es SecurApp
   Mobile-first responsive approach
   ========================================================================== */

/* ── Storyline — Scroll-driven decorative SVG path ────── */
.about-storyline {
    position: relative;
}

.about-storyline__line {
    display: none;
}


.about-storyline__path {
    stroke: url(#storyline-grad-light);
}

[data-theme="dark"] .about-storyline__path {
    stroke: url(#storyline-grad-dark);
}

@media (prefers-reduced-motion: reduce) {
    .about-storyline__path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}


/* ── Hero Mini ─────────────────────────────────────────── */
.hero-mini {
    position: relative;
    padding-top: calc(var(--nav-height, 72px) + var(--space-6));
    padding-bottom: var(--space-24);
    overflow: hidden;
}

.hero-mini__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-mini__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-top: var(--space-8);
}

.hero-mini__title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-4);
}

.hero-mini__subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    max-width: 560px;
    margin-inline: auto;
}

.hero-mini__descriptor {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-4);
}


/* ── Vision Section ────────────────────────────────────── */
.about-vision {
    padding-top: var(--space-6);
    padding-bottom: var(--space-8);
}


.about-vision__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.about-vision__text {
    text-align: center;
}

.about-vision__text .badge {
    margin-bottom: var(--space-4);
}

.about-vision__text .section__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

.about-vision__text p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    text-align: justify;
    text-justify: inter-word;
}

.about-vision__actions {
    margin-top: var(--space-6);
    text-align: center;
}

.about-vision__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-vision__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    filter:
        drop-shadow(0 4px 8px rgba(81, 112, 255, 0.10))
        drop-shadow(0 16px 32px rgba(81, 112, 255, 0.14))
        drop-shadow(0 32px 64px rgba(206, 50, 255, 0.08));
}

/* Sparkles — on the logo surface, like it's shining */
.about-vision__logo-wrap {
    position: relative;
    display: inline-block;
}

.about-vision__logo-wrap::before {
    content: '';
    position: absolute;
    inset: 10% 10%;
    z-index: 2;
    pointer-events: none;
    background:
        var(--spark) no-repeat 30% 25%,
        var(--spark) no-repeat 65% 40%,
        var(--spark) no-repeat 45% 70%;
    background-size: 18px 18px, 13px 13px, 15px 15px;
    animation: sparkle-a 4s var(--ease-in-out) infinite;
}

.about-vision__logo-wrap::after {
    content: '';
    position: absolute;
    inset: 10% 10%;
    z-index: 2;
    pointer-events: none;
    background:
        var(--spark) no-repeat 55% 20%,
        var(--spark) no-repeat 25% 55%,
        var(--spark) no-repeat 70% 75%;
    background-size: 12px 12px, 16px 16px, 10px 10px;
    animation: sparkle-b 5.5s var(--ease-in-out) 2s infinite;
}

/* White sparkles for both themes */
.about-vision__logo-wrap {
    --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L13.4 9.2L20 12L13.4 14.8L12 24L10.6 14.8L4 12L10.6 9.2Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* Theme logo swap */
.about-vision__logo--dark { display: none; }

[data-theme="dark"] .about-vision__logo--light { display: none; }
[data-theme="dark"] .about-vision__logo--dark { display: block; }

[data-theme="dark"] .about-vision__logo {
    filter:
        drop-shadow(0 4px 8px rgba(255, 255, 255, 0.06))
        drop-shadow(0 16px 32px rgba(81, 112, 255, 0.10))
        drop-shadow(0 32px 64px rgba(206, 50, 255, 0.06));
}

@media (min-width: 1024px) {
    .about-vision__logo {
        max-width: 520px;
    }
}


/* ── Manifesto — Lo que nos define ─────────────────────── */
.about-manifesto {
    padding-top: var(--space-8);
    padding-bottom: var(--space-24);
}

.about-manifesto .section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.about-manifesto__statements {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.about-manifesto__statement {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
}

.about-manifesto__number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-manifesto__number {
    font-size: var(--text-5xl);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 2px 0 rgba(81, 112, 255, 0.4))
        drop-shadow(0 4px 0 rgba(81, 112, 255, 0.2))
        drop-shadow(0 8px 16px rgba(81, 112, 255, 0.25))
        drop-shadow(0 16px 32px rgba(81, 112, 255, 0.1));
    user-select: none;
}

[data-theme="dark"] .about-manifesto__number {
    filter:
        drop-shadow(0 2px 0 rgba(206, 50, 255, 0.4))
        drop-shadow(0 4px 0 rgba(206, 50, 255, 0.2))
        drop-shadow(0 8px 16px rgba(206, 50, 255, 0.3))
        drop-shadow(0 16px 32px rgba(206, 50, 255, 0.12));
}

.about-manifesto__body {
    text-align: center;
}

.about-manifesto__title {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-3);
}

.about-manifesto__title .text-gradient {
    display: inline-block;
    transition: opacity var(--duration-normal) var(--ease-smooth),
                transform var(--duration-normal) var(--ease-spring);
}

.about-manifesto__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 480px;
    margin-inline: auto;
    text-align: justify;
    text-justify: inter-word;
}

.about-manifesto__reveal {
    position: relative;
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    font-style: italic;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-normal);
    color: var(--text-tertiary);
    margin-top: var(--space-12);
    overflow: visible;
}

/* Glow behind the phrase — appears during reveal */
.about-manifesto__reveal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, color-mix(in srgb, #5170FF 12%, transparent), transparent 70%);
    border-radius: 50%;
    opacity: var(--glow-opacity, 0);
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .about-manifesto__reveal::before {
    background: radial-gradient(ellipse, color-mix(in srgb, #CE32FF 15%, transparent), transparent 70%);
}

.about-manifesto__reveal-text {
    display: inline-block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    clip-path: inset(0 100% 0 0);
    padding-right: 0.25em;
}

.about-manifesto__divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-default) 30%, var(--border-default) 70%, transparent 100%);
    margin: 0;
}


/* ══════════════════════════════════════════════════════════
   EVOLUTION — Fully Immersive Cinematic Experience
   ══════════════════════════════════════════════════════════ */

.evolution {
    position: relative;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #060610;
}

.evolution__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.evolution__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(81, 112, 255, 0.08) 0%,
        transparent 70%);
    transition: background 1.5s ease;
}

.evolution__vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
        transparent 40%,
        rgba(6, 6, 16, 0.5) 80%,
        rgba(6, 6, 16, 0.85) 100%);
}

.evolution__pin {
    position: relative;
    z-index: 3;
}

.evolution__track {
    display: flex;
    flex-direction: column;
}

.evolution__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-8) var(--space-6);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════
   INTRO — Cinematic welcome
   ═══════════════════════════════════════════════════════ */
.evolution__stage--intro {
    min-height: 100vh;
}

.evolution__intro-overline {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    text-shadow: 0 0 24px rgba(81, 112, 255, 0.5),
                 0 0 48px rgba(81, 112, 255, 0.2);
}

.evolution__intro-title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: #fff;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.evolution__intro-gradient {
    background: linear-gradient(135deg, #60A5FA, #22D3EE);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(81, 112, 255, 0.5));
}

.evolution__intro-sub {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.65);
    font-weight: var(--fw-normal);
    line-height: var(--leading-relaxed);
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6),
                 0 0 24px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════
   OUTRO — Cinematic farewell
   ═══════════════════════════════════════════════════════ */
.evolution__stage--outro {
    min-height: 100vh;
}

.evolution__outro-overline {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    text-shadow: 0 0 24px rgba(206, 50, 255, 0.5),
                 0 0 48px rgba(206, 50, 255, 0.2);
}

.evolution__outro-title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: #fff;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.evolution__outro-gradient {
    background: linear-gradient(135deg, #CE32FF, #FF3E89);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(206, 50, 255, 0.5));
}

.evolution__outro-message {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.65);
    font-weight: var(--fw-normal);
    line-height: var(--leading-relaxed);
    max-width: 560px;
    margin-bottom: var(--space-4);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6),
                 0 0 24px rgba(0, 0, 0, 0.3);
}

.evolution__outro-cta {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.55);
    font-weight: var(--fw-normal);
    line-height: var(--leading-relaxed);
    max-width: 520px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════
   CONTENT STAGES — Era, Title, Phrases
   ═══════════════════════════════════════════════════════ */

.evolution__era {
    display: inline-block;
    font-size: var(--text-base);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-5);
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-full);
}

.evolution__title {
    font-size: var(--text-4xl);
    font-weight: var(--fw-extrabold);
    line-height: 1.15;
    letter-spacing: var(--tracking-tight);
    padding-bottom: 0.08em;
    margin-bottom: var(--space-3);
    color: #fff;
}

.evolution__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    line-height: var(--leading-relaxed);
    max-width: 460px;
    margin-top: var(--space-4);
    margin-bottom: 0;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    will-change: transform, opacity, filter;
}

/*
 * Stage-specific gradient titles — NO filter: drop-shadow here,
 * it clips descenders (g, y, p) when combined with background-clip: text.
 * Glow is achieved via a ::after pseudo-element instead.
 */
.evolution__stage[data-stage] .evolution__title {
    position: relative;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evolution__stage[data-stage] .evolution__title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(28px);
    opacity: 0.55;
    pointer-events: none;
}

.evolution__stage[data-stage="origin"] .evolution__title {
    background-image: linear-gradient(135deg, #60A5FA, #22D3EE);
}
.evolution__stage[data-stage="origin"] .evolution__title::after {
    background-image: linear-gradient(135deg, #60A5FA, #22D3EE);
}
.evolution__stage[data-stage="origin"] .evolution__era {
    color: #60A5FA;
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.7), 0 0 40px rgba(34, 211, 238, 0.4), 0 0 80px rgba(96, 165, 250, 0.2);
}

.evolution__stage[data-stage="foundation"] .evolution__title {
    background-image: linear-gradient(135deg, #818CF8, #60A5FA);
}
.evolution__stage[data-stage="foundation"] .evolution__title::after {
    background-image: linear-gradient(135deg, #818CF8, #60A5FA);
}
.evolution__stage[data-stage="foundation"] .evolution__era {
    color: #818CF8;
    text-shadow: 0 0 18px rgba(129, 140, 248, 0.7), 0 0 40px rgba(96, 165, 250, 0.4), 0 0 80px rgba(129, 140, 248, 0.2);
}

.evolution__stage[data-stage="network"] .evolution__title {
    background-image: linear-gradient(135deg, #A78BFA, #CE32FF);
}
.evolution__stage[data-stage="network"] .evolution__title::after {
    background-image: linear-gradient(135deg, #A78BFA, #CE32FF);
}
.evolution__stage[data-stage="network"] .evolution__era {
    color: #A78BFA;
    text-shadow: 0 0 18px rgba(167, 139, 250, 0.7), 0 0 40px rgba(206, 50, 255, 0.4), 0 0 80px rgba(167, 139, 250, 0.2);
}

.evolution__stage[data-stage="intelligence"] .evolution__title {
    background-image: linear-gradient(135deg, #E879F9, #FF3E89);
}
.evolution__stage[data-stage="intelligence"] .evolution__title::after {
    background-image: linear-gradient(135deg, #E879F9, #FF3E89);
}
.evolution__stage[data-stage="intelligence"] .evolution__era {
    color: #E879F9;
    text-shadow: 0 0 18px rgba(232, 121, 249, 0.7), 0 0 40px rgba(255, 62, 137, 0.4), 0 0 80px rgba(232, 121, 249, 0.2);
}

.evolution__stage[data-stage="scale"] .evolution__title {
    background-image: linear-gradient(135deg, #FB7185, #818CF8);
}
.evolution__stage[data-stage="scale"] .evolution__title::after {
    background-image: linear-gradient(135deg, #FB7185, #818CF8);
}
.evolution__stage[data-stage="scale"] .evolution__era {
    color: #FB7185;
    text-shadow: 0 0 18px rgba(251, 113, 133, 0.7), 0 0 40px rgba(129, 140, 248, 0.4), 0 0 80px rgba(251, 113, 133, 0.2);
}

.evolution__stage[data-stage="future"] .evolution__title {
    background-image: linear-gradient(135deg, #818CF8, #E879F9);
}
.evolution__stage[data-stage="future"] .evolution__title::after {
    background-image: linear-gradient(135deg, #818CF8, #E879F9);
}
.evolution__stage[data-stage="future"] .evolution__era {
    color: #818CF8;
    text-shadow: 0 0 18px rgba(129, 140, 248, 0.7), 0 0 40px rgba(232, 121, 249, 0.4), 0 0 80px rgba(129, 140, 248, 0.2);
}

/* ── Phrase — sequential text, floats in the scene ────── */
.evolution__phrase {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.75);
    font-weight: var(--fw-normal);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-relaxed);
    max-width: 380px;
    margin-bottom: var(--space-2);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9),
                 0 0 40px rgba(0, 0, 0, 0.5),
                 0 0 60px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity, filter;
}

.evolution__phrase .text-gradient {
    font-weight: var(--fw-semibold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evolution__stage[data-stage="origin"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #60A5FA, #22D3EE);
}
.evolution__stage[data-stage="foundation"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #818CF8, #60A5FA);
}
.evolution__stage[data-stage="network"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #A78BFA, #CE32FF);
}
.evolution__stage[data-stage="intelligence"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #E879F9, #FF3E89);
}
.evolution__stage[data-stage="scale"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #FB7185, #818CF8);
}
.evolution__stage[data-stage="future"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #818CF8, #E879F9);
}

/* ── Progress — hidden on mobile ─────────────────────── */
.evolution__progress {
    display: none;
}

/* ── Audio toggle — stage-dynamic gradient ────────────── */
.evolution__audio-toggle {
    --audio-c1: 206, 50, 255;
    --audio-c2: 255, 62, 137;
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 20;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--audio-c1), 0.10), rgba(var(--audio-c2), 0.06));
    border: 1px solid rgba(var(--audio-c1), 0.22);
    border-radius: var(--radius-full);
    color: rgba(var(--audio-c1), 0.6);
    cursor: pointer;
    transition: color var(--duration-normal) var(--ease-smooth),
                border-color var(--duration-normal) var(--ease-smooth),
                background var(--duration-normal) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth);
}

.evolution__audio-off {
    display: none;
}

.evolution__audio-toggle svg {
    width: 22px;
    height: 22px;
}

.evolution__audio-toggle:hover {
    color: rgba(var(--audio-c1), 0.9);
    background: linear-gradient(135deg, rgba(var(--audio-c1), 0.18), rgba(var(--audio-c2), 0.10));
    border-color: rgba(var(--audio-c1), 0.35);
    box-shadow: 0 0 20px rgba(var(--audio-c1), 0.15);
}

.evolution__audio-toggle[data-active="true"] {
    color: rgb(var(--audio-c1));
    border-color: rgba(var(--audio-c1), 0.40);
    background: linear-gradient(135deg, rgba(var(--audio-c1), 0.20), rgba(var(--audio-c2), 0.12));
    box-shadow: 0 0 24px rgba(var(--audio-c1), 0.25), 0 0 60px rgba(var(--audio-c2), 0.10);
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path {
    animation: audio-bar-bounce 0.6s var(--ease-in-out) infinite alternate;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(2) {
    animation-delay: 0.1s;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(3) {
    animation-delay: 0.2s;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(4) {
    animation-delay: 0.3s;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(5) {
    animation-delay: 0.15s;
}

/* ── CSS fallback (no Three.js) ──────────────────────── */
.evolution--css-fallback .evolution__canvas {
    display: none;
}

.evolution--css-fallback .evolution__atmosphere {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(81, 112, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(206, 50, 255, 0.08) 0%, transparent 60%);
    animation: evolution-breathe 8s var(--ease-in-out) infinite;
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .evolution__canvas {
        display: none;
    }

    .evolution__atmosphere {
        animation: none;
    }

    .evolution__stage {
        min-height: auto;
        padding: var(--space-16) var(--space-6);
    }

    .evolution__era,
    .evolution__title,
    .evolution__phrase,
    .evolution__intro-overline,
    .evolution__intro-title,
    .evolution__intro-sub,
    .evolution__outro-overline,
    .evolution__outro-title,
    .evolution__outro-message,
    .evolution__outro-cta {
        opacity: 1;
        transform: none;
    }

    .evolution__progress {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first breakpoints
   ═══════════════════════════════════════════════════════ */

/* ── Tablet (640px+) ──────────────────────────────────── */
@media (min-width: 640px) {
    .hero-mini__title {
        font-size: var(--text-4xl);
    }

    .about-manifesto__number {
        font-size: clamp(4rem, 8vw, 6rem);
    }

    .about-manifesto__title {
        font-size: var(--text-2xl);
    }

    .evolution__phrase {
        font-size: var(--text-lg);
    }

    .evolution__intro-title,
    .evolution__outro-title {
        font-size: var(--text-4xl);
    }

    .evolution__intro-overline,
    .evolution__outro-overline {
        font-size: var(--text-lg);
    }

    .evolution__intro-sub,
    .evolution__outro-message {
        font-size: var(--text-xl);
    }
}

/* ── Desktop (1024px+) ────────────────────────────────── */
@media (min-width: 1024px) {
    .about-storyline__line {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1400px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
        opacity: 0;
    }

    .about-storyline .section {
        z-index: 1;
    }

    .about-storyline .section .container {
        position: relative;
        z-index: 3;
    }

    .hero-mini {
        padding-top: calc(var(--nav-height, 72px) + var(--space-12));
        padding-bottom: var(--space-16);
    }

    .about-vision__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }

    .about-vision__text {
        text-align: left;
    }

    .about-vision__text .section__title {
        font-size: var(--text-3xl);
    }

    .about-vision__actions {
        text-align: left;
    }

    .about-manifesto__statements {
        gap: var(--space-10);
    }

    .about-manifesto__statement {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    /* 2nd statement (child 3 counting hr dividers) — number flips to right */
    .about-manifesto__statements > :nth-child(3) .about-manifesto__number-wrap {
        order: 2;
    }

    .about-manifesto__number {
        font-size: clamp(5rem, 10vw, 9rem);
    }

    .about-manifesto__body {
        text-align: left;
    }

    .about-manifesto__title {
        font-size: var(--text-3xl);
    }


    .about-manifesto__text {
        font-size: var(--text-lg);
        margin-inline: 0;
        max-width: none;
    }

    .about-manifesto__reveal {
        font-size: var(--text-3xl);
        margin-top: var(--space-16);
    }

    .about-manifesto__divider {
        margin-block: var(--space-4);
    }

    /* ── Evolution — Desktop horizontal scroll ──────────── */
    .evolution {
        overflow: visible;
    }

    .evolution__canvas,
    .evolution__atmosphere,
    .evolution__vignette {
        position: absolute;
    }

    .evolution__pin {
        height: 100vh;
        overflow: hidden;
    }

    .evolution__track {
        flex-direction: row;
        width: calc(8 * 100vw);
        height: 100vh;
    }

    .evolution__stage {
        min-width: 100vw;
        min-height: 100vh;
        padding: 0;
    }

    .evolution__era {
        font-size: var(--text-lg);
        padding: var(--space-2) var(--space-5);
    }

    .evolution__title {
        font-size: var(--text-hero);
    }

    .evolution__desc {
        font-size: var(--text-lg);
        max-width: 540px;
        margin-top: var(--space-5);
    }

    .evolution__intro-title,
    .evolution__outro-title {
        font-size: var(--text-hero);
    }

    .evolution__intro-overline,
    .evolution__outro-overline {
        font-size: var(--text-xl);
    }

    .evolution__intro-sub,
    .evolution__outro-message {
        font-size: var(--text-xl);
        max-width: 640px;
    }

    /* ── Phrases — positioned by JS per-stage, top and bottom zones ── */
    .evolution__phrase {
        position: absolute;
        font-size: var(--text-lg);
        max-width: 360px;
        text-align: left;
        will-change: transform, opacity, filter;
    }

    .evolution__desc {
        will-change: transform, opacity, filter;
    }

    .evolution__era,
    .evolution__title {
        will-change: transform, opacity, filter, clip-path;
    }

    /* ── Progress — year labels ── */
    .evolution__progress {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        position: fixed;
        bottom: var(--space-8);
        left: 0;
        right: 0;
        margin-inline: auto;
        width: fit-content;
        z-index: 10;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--duration-normal) var(--ease-smooth);
    }

    .evolution__progress.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .evolution__progress-bar {
        width: 320px;
        height: 3px;
        background: rgba(255, 255, 255, 0.10);
        border-radius: var(--radius-full);
        overflow: hidden;
        position: relative;
    }

    .evolution__progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: var(--progress, 0%);
        background: linear-gradient(90deg, var(--bar-from, var(--color-primary)), var(--bar-to, var(--color-secondary)));
        border-radius: var(--radius-full);
        transition: width 100ms linear, background var(--duration-slow) var(--ease-smooth);
    }

    .evolution__progress-years {
        display: flex;
        gap: var(--space-6);
        align-items: center;
    }

    .evolution__year {
        font-size: var(--text-sm);
        font-weight: var(--fw-semibold);
        letter-spacing: var(--tracking-wide);
        color: rgba(255, 255, 255, 0.30);
        border: none;
        background: none;
        padding: var(--space-1) 0;
        cursor: pointer;
        transition: color var(--duration-normal) var(--ease-smooth),
                    transform var(--duration-fast) var(--ease-spring),
                    text-shadow var(--duration-normal) var(--ease-smooth);
    }

    .evolution__year:hover {
        color: rgba(255, 255, 255, 0.60);
    }

    .evolution__year.is-active {
        transform: scale(1.18);
    }

    .evolution__audio-toggle {
        position: fixed;
        bottom: var(--space-8);
        right: var(--space-8);
        width: 56px;
        height: 56px;
    }

    .evolution__audio-toggle svg {
        width: 24px;
        height: 24px;
    }
}
