/* ================================================================
   NARRATIVE — Scroll-driven state system for project scenes
   ================================================================ */

/* ── Narrative section wrapper ── */
.narrative {
    position: relative;
    z-index: 1;
    scroll-margin-top: 4.75rem;
    overflow: clip;
    background:
        linear-gradient(90deg, rgba(5, 8, 12, 0.9), rgba(5, 8, 12, 0.72) 45%, rgba(5, 8, 12, 0.88)),
        linear-gradient(180deg, rgba(5, 8, 12, 0.94), rgba(5, 8, 12, 0.62) 36%, rgba(5, 8, 12, 0.96)),
        url("../assets/background_general.webp") center top / cover no-repeat,
        #05080c;
    isolation: isolate;
}

.narrative::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 31% 28%, rgba(183, 243, 107, 0.13), transparent 33%),
        radial-gradient(circle at 82% 61%, rgba(107, 203, 255, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(5, 8, 12, 0.12), rgba(5, 8, 12, 0.78));
    mix-blend-mode: screen;
    opacity: 0.72;
}

/* ── Scroll area — wraps viewport + spacers so sticky has height context ── */
.narrative__scroll-area {
    position: relative;
    min-height: 320vh;
}

/* ── Sticky viewport — holds all three layers ── */
.narrative__viewport {
    position: sticky;
    top: 4.75rem;
    height: calc(100svh - 4.75rem);
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(20rem, 0.9fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding: clamp(1.5rem, 4vh, 3rem) 0 clamp(1.75rem, 4vh, 3.25rem);
    z-index: 2;
}

/* ── Scroll spacers — trigger zones ── */
.narrative__spacer {
    position: relative;
    height: 92vh;
    pointer-events: none;
}

.narrative__spacer:first-of-type {
    height: 58vh; /* shorter first spacer so scene 1 shows immediately */
}

/* ── Background evolution layer ── */
.narrative__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1200ms ease-in-out;
}

.narrative__bg-glow {
    position: absolute;
    width: clamp(20rem, 48vw, 38rem);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(48px);
    mix-blend-mode: screen;
    opacity: 0;
    transition:
        opacity 1200ms ease-in-out,
        transform 1400ms ease-in-out,
        background 1200ms ease-in-out;
}

.narrative__bg-glow--primary {
    top: 12%;
    left: 8%;
    background: radial-gradient(circle, rgba(183, 243, 107, 0.12), transparent 64%);
}

.narrative__bg-glow--secondary {
    bottom: 8%;
    right: 6%;
    background: radial-gradient(circle, rgba(107, 203, 255, 0.09), transparent 62%);
}

/* Scene-specific background accent variations */
[data-active-scene="0"] .narrative__bg-glow--primary {
    opacity: 0.7;
    background: radial-gradient(circle, rgba(183, 243, 107, 0.14), transparent 64%);
    transform: translate3d(0, 0, 0);
}
[data-active-scene="0"] .narrative__bg-glow--secondary {
    opacity: 0.5;
    background: radial-gradient(circle, rgba(107, 203, 255, 0.09), transparent 62%);
    transform: translate3d(0, 0, 0);
}

[data-active-scene="1"] .narrative__bg-glow--primary {
    opacity: 0.65;
    background: radial-gradient(circle, rgba(107, 203, 255, 0.14), transparent 64%);
    transform: translate3d(4%, -6%, 0);
}
[data-active-scene="1"] .narrative__bg-glow--secondary {
    opacity: 0.55;
    background: radial-gradient(circle, rgba(183, 243, 107, 0.08), transparent 62%);
    transform: translate3d(-3%, 4%, 0);
}

[data-active-scene="2"] .narrative__bg-glow--primary {
    opacity: 0.6;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.13), transparent 64%);
    transform: translate3d(-5%, 3%, 0);
}
[data-active-scene="2"] .narrative__bg-glow--secondary {
    opacity: 0.5;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.08), transparent 62%);
    transform: translate3d(5%, -5%, 0);
}

.narrative__bg-line {
    position: absolute;
    height: 1px;
    border-radius: 999px;
    opacity: 0;
    transition:
        opacity 1200ms ease-in-out,
        transform 1400ms ease-in-out,
        background 1200ms ease-in-out;
}

.narrative__bg-line--a {
    left: 5%;
    right: 50%;
    top: 35%;
    background: linear-gradient(90deg, transparent, rgba(183, 243, 107, 0.18), rgba(107, 203, 255, 0.08), transparent);
    box-shadow: 0 0 14px rgba(183, 243, 107, 0.06);
}

.narrative__bg-line--b {
    left: 45%;
    right: 8%;
    bottom: 28%;
    background: linear-gradient(90deg, transparent, rgba(107, 203, 255, 0.12), rgba(183, 243, 107, 0.06), transparent);
    box-shadow: 0 0 14px rgba(107, 203, 255, 0.04);
}

[data-active-scene="0"] .narrative__bg-line--a,
[data-active-scene="0"] .narrative__bg-line--b {
    opacity: 0.55;
}

[data-active-scene="1"] .narrative__bg-line--a {
    opacity: 0.48;
    background: linear-gradient(90deg, transparent, rgba(107, 203, 255, 0.2), rgba(183, 243, 107, 0.06), transparent);
    transform: translateY(-8px);
}
[data-active-scene="1"] .narrative__bg-line--b {
    opacity: 0.42;
    background: linear-gradient(90deg, transparent, rgba(107, 203, 255, 0.14), transparent);
    transform: translateY(6px);
}

[data-active-scene="2"] .narrative__bg-line--a {
    opacity: 0.45;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 77, 0.18), rgba(255, 107, 107, 0.06), transparent);
    transform: translateY(-12px);
}
[data-active-scene="2"] .narrative__bg-line--b {
    opacity: 0.4;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 77, 0.12), transparent);
    transform: translateY(10px);
}

/* ── Visual Evidence Layer (Left) ── */
.narrative__visual {
    position: relative;
    height: clamp(300px, 48svh, 500px);
    align-self: start;
}

.narrative__visual-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 600ms cubic-bezier(0.25, 1, 0.5, 1),
        transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    will-change: opacity, transform;
}

.narrative__visual-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.narrative__visual-item img {
    width: min(100%, 640px);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        rgba(13, 16, 22, 0.6);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        border-color 400ms ease,
        box-shadow 400ms ease;
}

.photo-roll {
    position: relative;
    width: min(100%, 660px);
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid rgba(183, 243, 107, 0.14);
    border-radius: var(--radius-md);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px) 0 0 / 18px 100%,
        linear-gradient(180deg, rgba(6, 9, 14, 0.86), rgba(6, 9, 14, 0.62));
    box-shadow:
        0 26px 74px rgba(0, 0, 0, 0.42),
        0 0 38px rgba(183, 243, 107, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.photo-roll::before,
.photo-roll::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    z-index: 2;
    height: 3.5rem;
    pointer-events: none;
}

.photo-roll::before {
    top: 0;
    background: linear-gradient(180deg, rgba(4, 7, 11, 0.96), transparent);
}

.photo-roll::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(4, 7, 11, 0.96), transparent);
}

.photo-roll__track {
    display: grid;
    gap: clamp(0.85rem, 1.8vh, 1.2rem);
    padding: clamp(0.95rem, 2vw, 1.25rem);
    will-change: transform;
}

.photo-roll__frame {
    position: relative;
    margin: 0;
    padding: clamp(0.55rem, 1.2vw, 0.75rem);
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(9, 13, 19, 0.84);
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: rotate(var(--roll-rotation, -1.2deg));
}

.photo-roll__frame:nth-child(even) {
    --roll-rotation: 1.1deg;
}

.photo-roll__frame:nth-child(3n) {
    --roll-rotation: -0.45deg;
}

.photo-roll__frame img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid rgba(183, 243, 107, 0.12);
    border-radius: calc(var(--radius-sm) - 0.1rem);
    background: rgba(4, 8, 13, 0.94);
    box-shadow: none;
}

.photo-roll__frame:nth-child(3) img,
.photo-roll__frame:nth-child(4) img,
.photo-roll__frame:nth-child(6) img {
    aspect-ratio: 4 / 3;
}

/* Scene-specific image accents */
[data-active-scene="0"] .narrative__visual-item.is-active img {
    border-color: rgba(183, 243, 107, 0.16);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(183, 243, 107, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-active-scene="1"] .narrative__visual-item.is-active img {
    border-color: rgba(107, 203, 255, 0.16);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(107, 203, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-active-scene="2"] .narrative__visual-item.is-active img {
    border-color: rgba(255, 184, 77, 0.16);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(255, 184, 77, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── System Panel Layer (Right) ── */
.narrative__panel {
    position: relative;
    height: clamp(340px, 52svh, 520px);
    display: flex;
    align-items: center;
    align-self: start;
}

.narrative__panel-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 600ms cubic-bezier(0.25, 1, 0.5, 1) 120ms,
        transform 600ms cubic-bezier(0.25, 1, 0.5, 1) 120ms;
    pointer-events: none;
    will-change: opacity, transform;
}

.narrative__panel-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Panel card styling ── */
.scene-card {
    width: 100%;
    max-height: 100%;
    padding: clamp(1.25rem, 2.2vw, 1.85rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius-lg) + 0.2rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(9, 11, 15, 0.72);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        border-color 600ms ease,
        box-shadow 600ms ease;
}

.narrative--gsap .narrative__visual-item,
.narrative--gsap .narrative__panel-item {
    transition: none;
}

.narrative--gsap .scene-card__eyebrow,
.narrative--gsap .scene-card__title,
.narrative--gsap .scene-card__subtitle,
.narrative--gsap .scene-card__block,
.narrative--gsap .scene-card__chip,
.narrative--gsap .scene-card__cta {
    will-change: opacity, transform;
}

/* Scene-accent card borders */
[data-active-scene="0"] .narrative__panel-item.is-active .scene-card {
    border-color: rgba(183, 243, 107, 0.14);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(183, 243, 107, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-active-scene="1"] .narrative__panel-item.is-active .scene-card {
    border-color: rgba(107, 203, 255, 0.14);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(107, 203, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-active-scene="2"] .narrative__panel-item.is-active .scene-card {
    border-color: rgba(255, 184, 77, 0.14);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(255, 184, 77, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Card inner elements ── */
.scene-card__eyebrow {
    display: inline-block;
    margin: 0 0 var(--space-2);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scene-card__title {
    margin: 0 0 var(--space-1);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
}

.scene-card__subtitle {
    margin: 0 0 var(--space-3);
    color: var(--text-muted);
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    line-height: 1.5;
}

/* Problem / Solution / Impact blocks */
.scene-card__blocks {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.scene-card__block {
    position: relative;
    padding-left: var(--space-4);
}

.scene-card__block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.4;
    transition: background 600ms ease;
}

.scene-card__block--solution::before {
    background: var(--accent-blue);
}

.scene-card__block--impact::before {
    background: var(--accent-amber);
}

/* Scene-specific accent overrides for blocks */
[data-active-scene="1"] .scene-card__block::before {
    background: var(--accent-blue);
}
[data-active-scene="1"] .scene-card__block--solution::before {
    background: var(--accent);
}

[data-active-scene="2"] .scene-card__block::before {
    background: var(--accent-amber);
}
[data-active-scene="2"] .scene-card__block--solution::before {
    background: var(--accent-blue);
}

.scene-card__block-label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scene-card__block-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Impact value highlight */
.scene-card__block--impact .scene-card__block-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

[data-active-scene="0"] .scene-card__block--impact .scene-card__block-text {
    color: var(--accent);
}
[data-active-scene="1"] .scene-card__block--impact .scene-card__block-text {
    color: var(--accent-blue);
}
[data-active-scene="2"] .scene-card__block--impact .scene-card__block-text {
    color: var(--accent-amber);
}

/* Chip row */
.scene-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

.scene-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition:
        border-color 400ms ease,
        background 400ms ease,
        color 400ms ease;
}

/* Scene-accent chip coloring */
[data-active-scene="0"] .scene-card__chip {
    border-color: rgba(183, 243, 107, 0.15);
    background: rgba(183, 243, 107, 0.05);
    color: rgba(183, 243, 107, 0.8);
}

[data-active-scene="1"] .scene-card__chip {
    border-color: rgba(107, 203, 255, 0.15);
    background: rgba(107, 203, 255, 0.05);
    color: rgba(107, 203, 255, 0.8);
}

[data-active-scene="2"] .scene-card__chip {
    border-color: rgba(255, 184, 77, 0.15);
    background: rgba(255, 184, 77, 0.05);
    color: rgba(255, 184, 77, 0.8);
}

/* CTA link */
.scene-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.7rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    transition:
        transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 260ms ease,
        background 260ms ease,
        box-shadow 260ms ease,
        color 260ms ease;
}

.scene-card__cta:hover {
    transform: translateY(-2px);
}

[data-active-scene="0"] .scene-card__cta {
    border-color: rgba(183, 243, 107, 0.28);
    background: rgba(183, 243, 107, 0.06);
}
[data-active-scene="0"] .scene-card__cta:hover {
    border-color: rgba(183, 243, 107, 0.5);
    background: rgba(183, 243, 107, 0.12);
    box-shadow: 0 0 20px rgba(183, 243, 107, 0.08);
    color: var(--accent);
}

[data-active-scene="1"] .scene-card__cta {
    border-color: rgba(107, 203, 255, 0.28);
    background: rgba(107, 203, 255, 0.06);
}
[data-active-scene="1"] .scene-card__cta:hover {
    border-color: rgba(107, 203, 255, 0.5);
    background: rgba(107, 203, 255, 0.12);
    box-shadow: 0 0 20px rgba(107, 203, 255, 0.08);
    color: var(--accent-blue);
}

[data-active-scene="2"] .scene-card__cta {
    border-color: rgba(255, 184, 77, 0.28);
    background: rgba(255, 184, 77, 0.06);
}
[data-active-scene="2"] .scene-card__cta:hover {
    border-color: rgba(255, 184, 77, 0.5);
    background: rgba(255, 184, 77, 0.12);
    box-shadow: 0 0 20px rgba(255, 184, 77, 0.08);
    color: var(--accent-amber);
}

.scene-card__cta-arrow {
    display: inline-block;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-card__cta:hover .scene-card__cta-arrow {
    transform: translateX(3px);
}

/* ── Section heading above the narrative ── */
.narrative__heading {
    position: relative;
    z-index: 3;
    padding: clamp(4.5rem, 9vh, 6.5rem) 0 clamp(1rem, 3vh, 2rem);
}

.narrative__heading .section-heading {
    max-width: 38rem;
}

/* ── Dot Navigation ── */
.narrative__dots {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.narrative__dots.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.narrative__dot {
    position: relative;
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition:
        background 400ms ease,
        transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 400ms ease;
}

.narrative__dot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: border-color 400ms ease;
}

.narrative__dot.is-active {
    transform: scale(1.2);
}

/* Scene 1 Dot (D-Assistance) - Lime Green */
.narrative__dot[data-scene-index="0"] {
    background: rgba(183, 243, 107, 0.2);
}
.narrative__dot[data-scene-index="0"]:hover {
    transform: scale(1.3);
    background: rgba(183, 243, 107, 0.45);
}
.narrative__dot[data-scene-index="0"].is-active {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(183, 243, 107, 0.5);
}
.narrative__dot[data-scene-index="0"].is-active::before {
    border-color: rgba(183, 243, 107, 0.2);
}

/* Scene 2 Dot (Beelab) - Cyan Blue */
.narrative__dot[data-scene-index="1"] {
    background: rgba(107, 203, 255, 0.2);
}
.narrative__dot[data-scene-index="1"]:hover {
    transform: scale(1.3);
    background: rgba(107, 203, 255, 0.45);
}
.narrative__dot[data-scene-index="1"].is-active {
    background: var(--accent-blue);
    box-shadow: 0 0 12px rgba(107, 203, 255, 0.5);
}
.narrative__dot[data-scene-index="1"].is-active::before {
    border-color: rgba(107, 203, 255, 0.2);
}

/* Scene 3 Dot (BEEXCURSION) - Amber */
.narrative__dot[data-scene-index="2"] {
    background: rgba(255, 184, 77, 0.2);
}
.narrative__dot[data-scene-index="2"]:hover {
    transform: scale(1.3);
    background: rgba(255, 184, 77, 0.45);
}
.narrative__dot[data-scene-index="2"].is-active {
    background: var(--accent-amber);
    box-shadow: 0 0 12px rgba(255, 184, 77, 0.5);
}
.narrative__dot[data-scene-index="2"].is-active::before {
    border-color: rgba(255, 184, 77, 0.2);
}

/* Dot tooltip */
.narrative__dot-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(17, 21, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.narrative__dot:hover .narrative__dot-label {
    opacity: 1;
}

.narrative__dot.is-active .narrative__dot-label {
    color: var(--text);
}

/* ── Scene counter / progress indicator ── */
.narrative__counter {
    position: absolute;
    left: 0;
    bottom: clamp(1.5rem, 3vh, 2.5rem);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 400ms ease;
}

.narrative__counter.is-visible {
    opacity: 1;
}

.narrative__counter-current {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    transition: color 600ms ease;
}

[data-active-scene="0"] .narrative__counter-current {
    color: var(--accent);
}
[data-active-scene="1"] .narrative__counter-current {
    color: var(--accent-blue);
}
[data-active-scene="2"] .narrative__counter-current {
    color: var(--accent-amber);
}

.narrative__counter-separator {
    color: var(--text-soft);
    opacity: 0.4;
}

.narrative__counter-total {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
}

.narrative__counter-label {
    margin-left: var(--space-2);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .narrative__viewport {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        top: 4.25rem;
        height: auto;
        min-height: calc(100svh - 4.25rem);
        padding-top: clamp(2rem, 5vh, 3rem);
        padding-bottom: var(--space-4);
    }

    .narrative__visual {
        height: clamp(200px, 35vh, 300px);
        align-self: auto;
    }

    .photo-roll {
        min-height: 220px;
    }

    .narrative__panel {
        height: auto;
        min-height: clamp(280px, 45vh, 400px);
        align-self: auto;
    }

    .narrative__panel-item {
        align-items: flex-start;
    }

    .narrative__dots {
        right: 0.75rem;
        gap: var(--space-2);
    }

    .narrative__dot {
        width: 10px;
        height: 10px;
    }

    .narrative__dot-label {
        display: none;
    }

    .narrative__spacer {
        height: 82vh;
    }

    .narrative__spacer:first-of-type {
        height: 48vh;
    }

    .scene-card {
        padding: var(--space-4);
    }

    .scene-card__title {
        font-size: clamp(1.35rem, 5vw, 1.8rem);
    }

    .narrative__counter {
        bottom: var(--space-3);
    }
}

@media (max-width: 600px) {
    .narrative__heading {
        padding-top: var(--space-7);
    }

    .narrative__viewport {
        gap: var(--space-3);
        padding-top: var(--space-3);
    }

    .narrative__visual {
        height: clamp(145px, 22vh, 185px);
    }

    .photo-roll {
        min-height: 155px;
        border-radius: var(--radius-sm);
    }

    .photo-roll__track {
        gap: 0.62rem;
        padding: 0.7rem;
    }

    .photo-roll__frame {
        padding: 0.45rem;
    }

    .scene-card {
        padding: var(--space-3);
    }

    .scene-card__eyebrow {
        margin-bottom: 0.4rem;
        font-size: 0.68rem;
    }

    .scene-card__subtitle {
        margin-bottom: var(--space-2);
        font-size: 0.84rem;
    }

    .scene-card__blocks {
        gap: 0.55rem;
        margin-bottom: var(--space-2);
    }

    .scene-card__block-text {
        font-size: 0.78rem;
        line-height: 1.38;
    }

    .scene-card__block--impact .scene-card__block-text {
        font-size: 1.1rem;
    }

    .scene-card__chips {
        gap: 0.35rem;
        margin-bottom: var(--space-2);
    }

    .scene-card__chip {
        padding: 0.22rem 0.48rem;
        font-size: 0.66rem;
    }

    .scene-card__cta {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .narrative__visual-item,
    .narrative__panel-item,
    .narrative__bg-glow,
    .narrative__bg-line,
    .photo-roll__track,
    .scene-card,
    .scene-card__chip,
    .scene-card__cta,
    .narrative__dot,
    .narrative__dots,
    .narrative__counter {
        transition: none;
    }

    .narrative__visual-item.is-active,
    .narrative__panel-item.is-active {
        opacity: 1;
        transform: none;
    }
}
