/* ==================== STORY PAGE - SCROLL NARRATIVE ==================== */

:root {
    --primary: #3498DB;
    --primary-dark: #2980b9;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
}

.nav-logo-text {
    color: var(--white);
    transition: color 0.3s ease;
}

.nav-logo:hover .nav-logo-text {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ==================== SCENE STRUCTURE ==================== */
.scene {
    min-height: 100vh;
    max-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(90px, 12vh, 110px) clamp(20px, 5vw, 40px) clamp(50px, 8vh, 70px);
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    background: var(--white);
    scroll-margin-top: 80px;
    border-radius: 0;
    overflow-y: auto;
}

.scene.active {
    opacity: 1;
    transform: translateY(0);
}

.scene-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

/* ==================== SCENE 1: OPENING ==================== */
.scene-1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.scene-1 .scene-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.scene-headline {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: clamp(0.75rem, 1.5vh, 1rem);
    line-height: 1.1;
}

.scene-1 .scene-headline {
    color: var(--white);
}

.scene-main-text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--dark);
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    font-weight: 600;
    opacity: 0.95;
}

.scene-1 .scene-main-text,
.scene-8 .scene-main-text {
    color: var(--white);
}

.scene-supporting {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gray);
    font-style: italic;
}

.scene-supporting-list {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.scene-supporting-list li {
    margin-bottom: 0.5rem;
}

.scene-1 .scene-supporting {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Journey Timeline Visual */
.journey-timeline {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: clamp(30px, 5vh, 60px) auto 0;
    padding: clamp(30px, 5vh, 60px) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journey-timeline .timeline-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
}

.scene-1.active .journey-timeline .timeline-line {
    animation: expandLine 1.5s ease-out forwards;
}

@keyframes expandLine {
    to {
        transform: translateY(-50%) scaleX(1);
    }
}

.journey-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    opacity: 0;
    transform: scale(0);
}

.scene-1.active .journey-node:nth-child(2) {
    animation: popIn 0.5s ease 0.8s forwards;
}

.scene-1.active .journey-node:nth-child(3) {
    animation: popIn 0.5s ease 1.2s forwards;
}

.scene-1.active .journey-node:nth-child(4) {
    animation: popIn 0.5s ease 1.6s forwards;
}

.scene-1.active .journey-node:nth-child(5) {
    animation: popIn 0.5s ease 2s forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.node-circle {
    width: clamp(20px, 3vw, 28px);
    height: clamp(20px, 3vw, 28px);
    border-radius: 50%;
    margin-bottom: clamp(10px, 2vh, 16px);
}

/* Finance node - mostly blue */
.journey-node:nth-child(2) .node-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

/* Systems node - blue to light green blend */
.journey-node:nth-child(3) .node-circle {
    background: linear-gradient(135deg, var(--primary) 30%, #14b8a6 100%);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4), 0 0 15px rgba(20, 184, 166, 0.3);
}

/* Operations node - balanced blue-green */
.journey-node:nth-child(4) .node-circle {
    background: linear-gradient(135deg, #14b8a6 0%, var(--secondary) 100%);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4), 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Vision node - fully green */
.journey-node.final .node-circle {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.node-label {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
}

.journey-node.final .node-label {
    font-size: 1.125rem;
    font-weight: 700;
}

.map-overlay {
    transition: opacity 1s ease;
}

.scene-1.active .map-overlay {
    animation: fadeIn 1s ease 2.5s forwards;
}

.continent {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ==================== SCENE 2: ORIGIN ==================== */
.scene-2 {
    background: var(--white);
}

.scene-2 .scene-headline {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.scene-story {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
    color: var(--gray);
}

/* Proof Points */
.proof-points {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vh, 1rem);
    margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
}

.proof-item {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    align-items: flex-start;
    background: var(--light-gray);
    padding: clamp(0.85rem, 1.5vh, 1.15rem);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.scene.active .proof-item {
    opacity: 1;
    transform: translateX(0);
}

.scene.active .proof-item:nth-child(1) {
    transition-delay: 0.3s;
}

.scene.active .proof-item:nth-child(2) {
    transition-delay: 0.5s;
}

.scene.active .proof-item:nth-child(3) {
    transition-delay: 0.7s;
}

.proof-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    flex-shrink: 0;
}

.proof-item p {
    margin: 0;
    line-height: 1.5;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
}

/* Finance Visual */
.finance-visual {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

/* Finance Foundation Card */
.finance-foundation-card {
    width: 100%;
    max-width: 550px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.scene.active .finance-foundation-card {
    animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.foundation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.foundation-icon {
    font-size: 2.5rem;
}

.foundation-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.foundation-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.finance-metrics {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.finance-dial-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    justify-items: center;
}

.transformation-arrow {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(37, 99, 235, 0.2);
}

.arrow-icon {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease infinite;
}

.arrow-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    margin: 0;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* KPI Dials */
.kpi-dials {
    display: flex;
    gap: 2rem;
}

.dial {
    width: 140px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.scene.active .finance-dial-row:first-child .dial:nth-child(1) {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.scene.active .finance-dial-row:first-child .dial:nth-child(2) {
    animation: fadeInUp 0.8s ease 1s forwards;
}

.scene.active .finance-dial-row:last-child .dial:nth-child(1) {
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.scene.active .finance-dial-row:last-child .dial:nth-child(2) {
    animation: fadeInUp 0.8s ease 1.4s forwards;
}

.dial svg {
    width: 110px;
    height: 110px;
}

.dial-bg {
    fill: var(--primary);
    opacity: 0;
}

.dial-progress {
    display: none;
}

.scene.active .dial-bg {
    animation: fadeInCircle 0.8s ease forwards;
}

@keyframes fadeInCircle {
    to {
        opacity: 1;
    }
}

.dial-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dial-icon {
    font-size: 2.5rem;
    opacity: 0;
}

.scene.active .dial-icon {
    animation: iconPop 0.6s ease 1.8s forwards;
}

@keyframes iconPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.dial-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

/* ==================== SCENE 3: PIVOT ==================== */
.scene-3 {
    background: var(--white);
}

.scene-3 .scene-content {
    gap: clamp(1.5rem, 3vh, 2.5rem);
}

.scene-3 .proof-points {
    margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
    gap: clamp(0.75rem, 1.5vh, 1.25rem);
}

/* Process Map */
.process-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    padding: clamp(0.5rem, 1vh, 1rem);
    max-width: 800px;
    margin: 0 auto;
}

.node {
    width: clamp(90px, 13vw, 120px);
    height: clamp(90px, 13vw, 120px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.3vw, 0.95rem);
    opacity: 0;
    transform: scale(0);
    padding: 0.5rem;
    text-align: center;
    line-height: 1.2;
}

.finance-node {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.systems-node {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.operations-node {
    background: linear-gradient(135deg, var(--secondary), #0d9488);
    color: var(--white);
}

.transformation-node {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
}

.scene.active .finance-node {
    animation: scaleIn 0.6s ease 0.5s forwards;
}

.scene.active .systems-node {
    animation: scaleIn 0.6s ease 1s forwards;
}

.scene.active .operations-node {
    animation: scaleIn 0.6s ease 1.5s forwards;
}

.scene.active .transformation-node {
    animation: scaleIn 0.6s ease 2s forwards;
}

.connector {
    width: clamp(20px, 5vw, 40px);
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
}

.scene.active .connector-1 {
    animation: expandWidth 0.6s ease 0.8s forwards;
}

.scene.active .connector-2 {
    animation: expandWidth 0.6s ease 1.3s forwards;
}

.scene.active .connector-3 {
    animation: expandWidth 0.6s ease 1.8s forwards;
}

/* ==================== SCENE 4: TRANSFORMATION ==================== */
.scene-4 {
    background: var(--white);
}

/* Milestones Visual */
.milestones-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 2rem);
}

.milestone-badge {
    background: var(--light-gray);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: clamp(1rem, 2vh, 2rem);
    text-align: center;
    opacity: 0;
    transform: translateY(30px) rotate(-5deg);
}

.scene.active .milestone-badge:nth-child(1) {
    animation: snapIn 0.6s ease 0.5s forwards;
}

.scene.active .milestone-badge:nth-child(2) {
    animation: snapIn 0.6s ease 0.8s forwards;
}

.scene.active .milestone-badge:nth-child(3) {
    animation: snapIn 0.6s ease 1.1s forwards;
}

.scene.active .milestone-badge:nth-child(4) {
    animation: snapIn 0.6s ease 1.4s forwards;
}

@keyframes snapIn {
    0% {
        opacity: 0;
        transform: translateY(30px) rotate(-5deg);
    }
    60% {
        transform: translateY(-10px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.badge-icon {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: clamp(0.3rem, 1vh, 0.5rem);
}

.badge-icon img {
    width: clamp(80px, 14vw, 120px);
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.milestone-badge span {
    display: block;
    font-weight: 600;
    color: var(--dark);
}

/* ==================== SCENE 5: SCALE ==================== */
.scene-5 {
    background: var(--white);
}

/* Control Room Dashboard */
.control-room {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.dashboard-tile {
    background: var(--light-gray);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: clamp(1rem, 2vh, 2rem);
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
}

.scene.active .dashboard-tile:nth-child(1) {
    animation: scaleIn 0.6s ease 0.4s forwards;
}

.scene.active .dashboard-tile:nth-child(2) {
    animation: scaleIn 0.6s ease 0.6s forwards;
}

.scene.active .dashboard-tile:nth-child(3) {
    animation: scaleIn 0.6s ease 0.8s forwards;
}

.scene.active .dashboard-tile:nth-child(4) {
    animation: scaleIn 0.6s ease 1s forwards;
}

.metric-value {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: clamp(0.3rem, 1vh, 0.5rem);
}

.metric-label {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--gray);
    font-weight: 600;
}

/* ==================== SCENE 6: EXECUTIVE ==================== */
.scene-6 {
    background: var(--white);
}

/* Executive Loop */
.executive-loop {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loop-svg {
    width: 100%;
    max-width: 400px;
    height: 400px;
}

.loop-circle {
    fill: none;
    stroke: #60a5fa;
    stroke-width: 4;
    stroke-dasharray: 10 5;
    opacity: 0;
}

.scene.active .loop-circle {
    animation: fadeInCircle 1s ease 0.5s forwards, rotate 20s linear infinite;
}

@keyframes fadeInCircle {
    to {
        opacity: 0.7;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loop-node {
    opacity: 0;
    transform: scale(0);
}

.scene.active .strategy-node {
    animation: scaleIn 0.6s ease 1s forwards;
}

.scene.active .governance-node {
    animation: scaleIn 0.6s ease 1.3s forwards;
}

.scene.active .delivery-node {
    animation: scaleIn 0.6s ease 1.6s forwards;
}

.scene.active .outcomes-node {
    animation: scaleIn 0.6s ease 1.9s forwards;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== SCENE 7: CAPABILITIES ==================== */
.scene-7 {
    background: var(--white);
}

.scene-7 .scene-content {
    grid-template-columns: 1fr;
    max-width: 1400px;
    gap: clamp(1rem, 2vh, 1.5rem);
}

.scene-7 .scene-story {
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
}

.capability-tile {
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: clamp(1rem, 2vh, 2rem);
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.scene.active .capability-tile:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.scene.active .capability-tile:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.scene.active .capability-tile:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.7s forwards;
}

.scene.active .capability-tile:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.9s forwards;
}

.scene.active .capability-tile:nth-child(5) {
    animation: fadeInUp 0.6s ease 1.1s forwards;
}

.scene.active .capability-tile:nth-child(6) {
    animation: fadeInUp 0.6s ease 1.3s forwards;
}

.capability-tile:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.capability-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.capability-tile h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--primary);
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.capability-tile p {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: var(--gray);
    line-height: 1.6;
}

/* ==================== SCENE 8: CLOSING ==================== */
.scene-8 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
}

.scene-8 .scene-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.scene-8 .scene-headline,
.scene-8 .scene-supporting {
    color: var(--white);
}

.final-headline {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: clamp(1rem, 2vh, 2rem);
}

.cta-group {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: clamp(1.5rem, 3vh, 3rem);
}

.cta-button {
    padding: clamp(0.8rem, 1.5vh, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 30px;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.scene.active .cta-button:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.scene.active .cta-button:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.8s forwards;
}

.scene.active .cta-button:nth-child(3) {
    animation: fadeInUp 0.6s ease 1.1s forwards;
}

.cta-button.primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5);
    font-weight: 800;
}

.cta-button.primary:hover {
    background: #2980b9;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

.cta-button.secondary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.cta-button.tertiary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.cta-button.tertiary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .scene {
        padding: clamp(80px, 10vh, 90px) clamp(20px, 4vw, 30px) clamp(40px, 6vh, 50px);
        max-height: none;
    }

    .scene-content {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vh, 3rem);
    }

    .scene-headline {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .process-map {
        flex-wrap: wrap;
        gap: clamp(0.75rem, 2vw, 1.5rem);
    }

    .node {
        width: clamp(90px, 18vw, 120px);
        height: clamp(90px, 18vw, 120px);
        font-size: clamp(0.85rem, 1.5vw, 1rem);
    }

    .connector {
        width: clamp(20px, 6vw, 40px);
    }

    .journey-timeline {
        margin: clamp(20px, 4vh, 40px) auto 0;
        padding: clamp(20px, 4vh, 40px) 0;
    }

    .loop-svg {
        max-width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(30, 41, 59, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .scene {
        padding: clamp(80px, 10vh, 90px) clamp(15px, 4vw, 20px) clamp(40px, 6vh, 50px);
        height: auto;
        min-height: 100vh;
        max-height: none;
    }

    .scene-content {
        gap: clamp(1.5rem, 3vh, 2.5rem);
    }

    .story-nav {
        padding: 0 20px;
    }

    .scene-headline {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .scene-main-text {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    }

    .scene-story {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .milestones-visual {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .control-room {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .kpi-dials {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .process-map {
        flex-direction: column;
        gap: 1rem;
    }

    .connector {
        width: 4px;
        height: clamp(30px, 6vh, 40px);
        transform: scaleY(0);
        transform-origin: top;
    }

    .node {
        width: clamp(120px, 30vw, 140px);
        height: clamp(120px, 30vw, 140px);
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    .journey-timeline {
        flex-direction: column;
        gap: 1.5rem;
        padding: clamp(20px, 4vh, 30px) 0;
    }

    .journey-timeline .timeline-line {
        display: none;
    }

    .loop-svg {
        max-width: 300px;
        height: 300px;
    }

    .proof-points {
        gap: 1rem;
    }

    .proof-item {
        padding: 1rem;
    }

    .finance-visual {
        gap: 2rem;
    }

    .finance-foundation-card {
        padding: 2rem 1.5rem;
    }

    .foundation-header h3 {
        font-size: 1.5rem;
    }

    .finance-dial-row {
        gap: 1.5rem;
    }

    .dial {
        width: 120px;
    }

    .dial svg {
        width: 90px;
        height: 90px;
    }

    .dial-center {
        width: 90px;
        height: 90px;
    }

    .dial-icon {
        font-size: 2rem;
    }
}

/* ==================== SMALL SCREEN OPTIMIZATION ==================== */
@media (max-width: 480px) {
    .scene {
        padding: clamp(70px, 9vh, 80px) 15px clamp(30px, 5vh, 40px);
        max-height: none;
    }

    .scene-headline {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .scene-main-text {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .scene-supporting {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .scene-story {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .node {
        width: 100px;
        height: 100px;
        font-size: 0.85rem;
    }

    .node-circle {
        width: 18px;
        height: 18px;
        margin-bottom: 8px;
    }

    .node-label {
        font-size: 0.75rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.8rem;
    }

    .badge-icon {
        font-size: 1.5rem;
    }

    .capability-icon {
        font-size: 1.8rem;
    }

    .capability-tile h3 {
        font-size: 0.95rem;
    }

    .capability-tile p {
        font-size: 0.85rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .finance-foundation-card {
        padding: 1.5rem 1rem;
    }

    .foundation-header h3 {
        font-size: 1.25rem;
    }

    .foundation-icon {
        font-size: 2rem;
    }

    .foundation-subtitle {
        font-size: 0.85rem;
    }

    .finance-dial-row {
        gap: 1rem;
    }

    .dial {
        width: 100px;
    }

    .dial svg {
        width: 80px;
        height: 80px;
    }

    .dial-center {
        width: 80px;
        height: 80px;
    }

    .dial-icon {
        font-size: 1.75rem;
    }

    .dial-label {
        font-size: 0.8rem;
    }

    .arrow-label {
        font-size: 0.75rem;
    }
}

/* ==================== SCENE NAVIGATION CONTROLS ==================== */
.scene-nav-controls {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
}

.scene-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scene-nav-btn.visible {
    pointer-events: auto;
}

.scene-nav-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scene-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scene-nav-btn:active {
    transform: translateY(0);
}

.nav-icon {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.next-scene {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d9488 100%);
}

.next-scene:hover {
    background: linear-gradient(135deg, #0d9488 0%, var(--secondary) 100%);
}

.back-to-top {
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    .scene-nav-controls {
        right: 1rem;
        bottom: 1rem;
    }

    .scene-nav-btn {
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .nav-label {
        font-size: 0.6rem;
    }
}
