/**
 * =====================================================
 * FOUNDERS ORIGIN STORY (Experience Journey)
 * =====================================================
 */

.section-scrolly {
    display: flex;
    flex-direction: row-reverse;
    /* RTL: Visual (Left), Text (Right) */
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 60px 40px;
    position: relative;
    gap: 60px;
    border-radius: 40px;
    transition: background-color 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ambient Color Shifting Themes */
.section-scrolly[data-theme="theme-0"] {
    background-color: rgba(0, 123, 141, 0.03);
}

.section-scrolly[data-theme="theme-1"] {
    background-color: rgba(14, 23, 38, 0.04);
}

.section-scrolly[data-theme="theme-2"] {
    background-color: rgba(0, 123, 141, 0.06);
}

.section-scrolly[data-theme="theme-3"] {
    background-color: rgba(14, 23, 38, 0.06);
}

.section-scrolly[data-theme="theme-4"] {
    background-color: rgba(0, 123, 141, 0.09);
}

/* =========================================
   VISIBILITY UTILITIES
   ========================================= */
@media (min-width: 1025px) {
    .scrolly-mobile-stats {
        display: none !important;
    }
}

/* =========================================
   TEXT CONTAINER (Right - Narrative)
   ========================================= */
.scrolly-text-container {
    flex: 1;
    position: relative;
    z-index: 2;
    padding-top: 20vh;
    padding-bottom: 20vh;
}

.scrolly-step {
    min-height: 80vh;
    /* Ensure scroll space */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    opacity: 0.1;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Vertical Progress Line */
.vertical-progress-line {
    position: absolute;
    right: -30px;
    /* RTL */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
}

.scrolly-step.active .vertical-progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--brand-primary, #007B8D);
    animation: fillProgress 1s ease forwards;
    transform-origin: top;
}

@keyframes fillProgress {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

.scrolly-content-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.step-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 123, 141, 0.1);
    color: var(--brand-primary, #007B8D);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.scrolly-content-card h2 {
    font-size: 2.2rem;
    color: var(--brand-dark);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.scrolly-content-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* Cinematic Text Reveals */
.scrolly-content-card .step-badge,
.scrolly-content-card h2,
.scrolly-content-card p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-step.active .scrolly-content-card .step-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.scrolly-step.active .scrolly-content-card h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.scrolly-step.active .scrolly-content-card p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* =========================================
   VISUAL CONTAINER (Left - Sticky)
   ========================================= */
.scrolly-visual-container {
    flex: 1.2;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrolly-sticky-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Glassmorphic Graphic Pedestal */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.scrolly-graphic {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.scrolly-graphic.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* =========================================
   1. INFOGRAPH: MINDSET (Ethereal Aura)
   ========================================= */
.info-mindset {
    position: relative;
    width: 100%;
    height: 450px;
    display: block;
}

.info-mindset .aura {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: radial-gradient(circle, rgba(0, 123, 141, 0.15) 0%, rgba(0, 123, 141, 0) 70%);
    box-shadow: 0 0 50px rgba(0, 123, 141, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: multiply;
}

@keyframes breatheAura {
    0% {
        transform: scale(1) translate(0, 0);
    }

    33% {
        transform: scale(1.05) translate(10px, -15px);
    }

    66% {
        transform: scale(0.95) translate(-10px, 10px);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

.scrolly-graphic.active .info-mindset .aura {
    opacity: 1;
    transform: scale(1);
    animation: breatheAura 8s infinite ease-in-out;
}

.scrolly-graphic.active .info-mindset .aura-outer {
    transition-delay: 0.1s;
    animation-delay: 1.5s;
}

.scrolly-graphic.active .info-mindset .aura-middle {
    transition-delay: 0.4s;
    animation-delay: 3s;
}

.scrolly-graphic.active .info-mindset .aura-inner {
    transition-delay: 0.7s;
    animation-delay: 4.5s;
}

.info-mindset .aura-outer {
    width: 280px;
    height: 280px;
    top: 5%;
    right: 15%;
    background: radial-gradient(circle, rgba(0, 123, 141, 0.2) 0%, rgba(0, 123, 141, 0) 75%);
}

.info-mindset .aura-middle {
    width: 240px;
    height: 240px;
    bottom: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(0, 123, 141, 0.25) 0%, rgba(0, 123, 141, 0) 70%);
}

.info-mindset .aura-inner {
    width: 220px;
    height: 220px;
    top: 35%;
    left: 45%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 123, 141, 0.35) 0%, rgba(0, 123, 141, 0.05) 75%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.info-mindset .data-val {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-dark);
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-graphic.active .info-mindset .data-val {
    opacity: 1;
    transform: translateY(0);
}

.scrolly-graphic.active .info-mindset .aura-outer .data-val {
    transition-delay: 0.8s;
}

.scrolly-graphic.active .info-mindset .aura-middle .data-val {
    transition-delay: 1.1s;
}

.scrolly-graphic.active .info-mindset .aura-inner .data-val {
    transition-delay: 1.4s;
}

.info-mindset .data-label {
    font-size: 1.05rem;
    margin-top: 5px;
    font-weight: 500;
    color: #4a5568;
    opacity: 0;
    transition: opacity 1s ease;
}

.scrolly-graphic.active .info-mindset .data-label {
    opacity: 0.8;
}

.scrolly-graphic.active .info-mindset .aura-outer .data-label {
    transition-delay: 1s;
}

.scrolly-graphic.active .info-mindset .aura-middle .data-label {
    transition-delay: 1.3s;
}

.scrolly-graphic.active .info-mindset .aura-inner .data-label {
    transition-delay: 1.6s;
}

.info-mindset .aura-inner .data-val {
    color: var(--brand-primary, #007B8D);
}

/* =========================================
   2. INFOGRAPH: KINETIC STACK (Content Types)
   ========================================= */
.info-kinetic-stack {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 20px;
}

/* Hero Total Section */
.stack-hero {
    display: flex;
    align-items: baseline;
    gap: 15px;
    border-bottom: 2px solid rgba(0, 123, 141, 0.1);
    padding-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-graphic.active .stack-hero {
    transform: translateY(0);
    opacity: 1;
}

.stack-total {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.8;
    color: var(--brand-primary, #007B8D);
    letter-spacing: -3px;
}

.stack-total-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kinetic Rows */
.stack-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stack-row {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-graphic.active .stack-row {
    opacity: 1;
    transform: translateX(0);
}

.scrolly-graphic.active .row-1 {
    transition-delay: 0.2s;
}

.scrolly-graphic.active .row-2 {
    transition-delay: 0.4s;
}

.scrolly-graphic.active .row-3 {
    transition-delay: 0.6s;
}

.row-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-dark);
    min-width: 90px;
    text-align: right;
}

.row-line {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-graphic.active .row-1 .row-line {
    transition-delay: 0.5s;
    transform: scaleX(1);
}

.scrolly-graphic.active .row-2 .row-line {
    transition-delay: 0.7s;
    transform: scaleX(1);
}

.scrolly-graphic.active .row-3 .row-line {
    transition-delay: 0.9s;
    transform: scaleX(1);
}

.row-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

/* =========================================
   3. INFOGRAPH: ORBITING NODES (Roles)
   ========================================= */
.info-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Core */
.orbit-core {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--brand-primary, #007B8D);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 123, 141, 0.3), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-graphic.active .orbit-core {
    transform: scale(1);
    opacity: 1;
}

.core-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: white;
}

.core-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Orbital Tracks */
.orbit-track {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(0, 123, 141, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-graphic.active .orbit-track {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.track-1 {
    width: 180px;
    height: 180px;
    transition-delay: 0.1s;
    border-style: solid;
}

.track-2 {
    width: 250px;
    height: 250px;
    transition-delay: 0.2s;
}

.track-3 {
    width: 320px;
    height: 320px;
    transition-delay: 0.3s;
}

/* Satellites Container to handle rotation */
.orbit-satellite {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    animation: orbitSpin linear infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

.scrolly-graphic.active .orbit-satellite {
    opacity: 1;
}

/* Base satellite orb design */
.orbit-satellite::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    top: -30px;
    left: -30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--brand-primary, #007B8D);
}

/* Sub-number and Label positioning (Counter-rotating to stay upright) */
.sat-num {
    position: absolute;
    width: 60px;
    text-align: center;
    top: -15px;
    left: -30px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary, #007B8D);
    animation: counterOrbitSpin linear infinite;
    z-index: 2;
}

.sat-label {
    position: absolute;
    top: 35px;
    left: -40px;
    width: 80px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-dark);
    animation: counterOrbitSpin linear infinite;
    z-index: 2;
}

/* Individual Satellite Positions */
/* translate values equal half the track widths */
.sat-1 {
    transform: rotate(0deg) translateX(90px);
    animation-duration: 20s;
    transition-delay: 0.4s;
}

.sat-1 .sat-num,
.sat-1 .sat-label {
    animation-duration: 20s;
}

.sat-2 {
    transform: rotate(120deg) translateX(125px);
    animation-duration: 25s;
    transition-delay: 0.5s;
}

.sat-2 .sat-num,
.sat-2 .sat-label {
    animation-duration: 25s;
}

.sat-3 {
    transform: rotate(240deg) translateX(160px);
    animation-duration: 30s;
    transition-delay: 0.6s;
}

.sat-3 .sat-num,
.sat-3 .sat-label {
    animation-duration: 30s;
}

/* Spin Animations */
@keyframes orbitSpin {
    from {
        transform: rotate(var(--start-deg, 0deg)) translateX(var(--radius)) rotate(0deg);
    }

    to {
        transform: rotate(calc(var(--start-deg, 0deg) + 360deg)) translateX(var(--radius)) rotate(0deg);
    }
}

/* Redefining exact static transforms for animation via variables */
.sat-1 {
    --start-deg: 0deg;
    --radius: 90px;
}

.sat-2 {
    --start-deg: 120deg;
    --radius: 125px;
}

.sat-3 {
    --start-deg: 240deg;
    --radius: 160px;
}

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

    to {
        transform: rotate(0deg);
    }
}

/* =========================================
   4. INFOGRAPH: RADIAL BURST (Industries)
   ========================================= */
.info-radial-burst {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Core */
.burst-core {
    position: relative;
    width: 100px;
    height: 100px;
    background: var(--brand-primary, #007B8D);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    box-shadow: 0 0 30px rgba(0, 123, 141, 0.4), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scrolly-graphic.active .burst-core {
    transform: scale(1);
    opacity: 1;
}

.burst-core .core-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.burst-core .core-label {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
}

/* Radiating Spokes Container */
.burst-spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    /* Length of the spoke */
    height: 2px;
    transform-origin: 0 center;
    /* Rotate from the exact center of the hub */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 5;
}

/* The Connecting Line */
.spoke-line {
    position: absolute;
    left: 50px;
    /* Start outside the core */
    right: 40px;
    /* End before the node */
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 123, 141, 0.8), rgba(0, 123, 141, 0.1));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-graphic.active .spoke-line {
    transform: scaleX(1);
}

/* The Outer Node */
.spoke-node {
    position: absolute;
    right: -45px;
    /* Position at the very end of the spoke length, adjusted for half width */
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 123, 141, 0.3);
    opacity: 0;
    transform: scale(0.5) rotate(calc(var(--rot) * -1));
    /* Counter-rotate to stay upright */
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.scrolly-graphic.active .spoke-node {
    opacity: 1;
    transform: scale(1) rotate(calc(var(--rot) * -1));
    /* Keep counter-rotation when active */
}

.spoke-node:hover {
    border-color: var(--brand-primary, #007B8D);
    box-shadow: 0 8px 30px rgba(0, 123, 141, 0.2);
    z-index: 20;
}

/* Node Text Styles */
.spoke-node .sat-num {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-primary, #007B8D);
    line-height: 1;
    animation: none;
}

.spoke-node .node-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 2px;
    text-align: center;
    line-height: 1.1;
}

/* Spoke Rotations (360 / 5 = 72 degrees each). Note: -90deg starts it at 12 o'clock */
.spoke-1 {
    transform: rotate(-90deg);
    --rot: -90deg;
}

.spoke-2 {
    transform: rotate(-18deg);
    --rot: -18deg;
}

.spoke-3 {
    transform: rotate(54deg);
    --rot: 54deg;
}

.spoke-4 {
    transform: rotate(126deg);
    --rot: 126deg;
}

.spoke-5 {
    transform: rotate(198deg);
    --rot: 198deg;
}

/* 198 = -162 */

/* Animation Delays for a staggered burst effect */
.spoke-1 .spoke-line {
    transition-delay: 0.2s;
}

.spoke-1 .spoke-node {
    transition-delay: 0.4s;
}

.spoke-2 .spoke-line {
    transition-delay: 0.3s;
}

.spoke-2 .spoke-node {
    transition-delay: 0.5s;
}

.spoke-3 .spoke-line {
    transition-delay: 0.4s;
}

.spoke-3 .spoke-node {
    transition-delay: 0.6s;
}

.spoke-4 .spoke-line {
    transition-delay: 0.5s;
}

.spoke-4 .spoke-node {
    transition-delay: 0.7s;
}

.spoke-5 .spoke-line {
    transition-delay: 0.6s;
}

.spoke-5 .spoke-node {
    transition-delay: 0.8s;
}

/* =========================================
   5. INFOGRAPH: MARKETS (Radar Topography)
   ========================================= */
.info-markets {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Radar Grid or Subtle Rings */
.info-markets::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 123, 141, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.info-markets::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(0, 123, 141, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.market-orb {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    /* Default pre-scroll state */
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.orb-core {
    width: 14px;
    height: 14px;
    background: var(--brand-primary, #007B8D);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 123, 141, 0.8), 0 0 30px rgba(0, 123, 141, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.orb-radar {
    position: absolute;
    top: -24px;
    /* Center relative to the core */
    left: -24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(0, 123, 141, 0.4);
    z-index: 1;
    opacity: 0;
}

.scrolly-graphic.active .orb-radar {
    animation: radarRipple 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes radarRipple {
    0% {
        transform: scale(0.3);
        opacity: 1;
        border-width: 2px;
    }

    100% {
        transform: scale(3);
        /* massive bloom */
        opacity: 0;
        border-width: 0px;
    }
}

.market-orb .label {
    position: absolute;
    bottom: -28px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--brand-dark);
    opacity: 0.8;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.market-orb:hover .orb-core {
    background: white;
    box-shadow: 0 0 20px white, 0 0 40px rgba(0, 123, 141, 0.8);
    transform: scale(1.3);
}

.market-orb:hover .label {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--brand-primary, #007B8D);
    background: rgba(255, 255, 255, 0.95);
}

/* Strategic Spatial Arrangement (Crescent / Topographic Map style) */

/* KSA - Largest, Central-Top */
.orb-ksa {
    top: 35%;
    left: 50%;
}

.scrolly-graphic.active .orb-ksa {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
    transition-delay: 0.1s;
}

.orb-ksa .orb-radar {
    animation-delay: 0s;
}

/* UAE - Mid-Right */
.orb-uae {
    top: 50%;
    left: 75%;
}

.scrolly-graphic.active .orb-uae {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    transition-delay: 0.3s;
}

.orb-uae .orb-radar {
    animation-delay: 0.6s;
}

/* Kuwait - Top-Right */
.orb-kuwait {
    top: 25%;
    left: 70%;
}

.scrolly-graphic.active .orb-kuwait {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
    transition-delay: 0.5s;
}

.orb-kuwait .orb-radar {
    animation-delay: 1.2s;
}

/* Egypt - Mid-Left */
.orb-egypt {
    top: 65%;
    left: 35%;
}

.scrolly-graphic.active .orb-egypt {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    transition-delay: 0.7s;
}

.orb-egypt .orb-radar {
    animation-delay: 1.8s;
}

/* Yemen - Bottom-Right */
.orb-yemen {
    top: 75%;
    left: 60%;
}

.scrolly-graphic.active .orb-yemen {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.85);
    transition-delay: 0.9s;
}

.orb-yemen .orb-radar {
    animation-delay: 2.4s;
}


/* =========================================
   RESPONSIVE (Mobile Fallbacks)
   ========================================= */

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .section-scrolly {
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
    }

    .scrolly-visual-container {
        position: relative;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* Stack graphics vertically */
        gap: 40px;
    }

    .scrolly-sticky-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        min-height: unset;
        display: flex;
        flex-direction: column;
        /* Allow children to flow naturally */
        gap: 40px;
        background: transparent;
        /* Move glassmorphism strictly to children */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .scrolly-graphic {
        position: relative;
        /* Break out of absolute positioning completely */
        inset: auto;
        height: 500px;
        /* Fixed height for rendering */
        width: 100%;

        /* Apply glassmorphic background directly to individual mobile graphics */
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 32px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.3);

        /* Visibility and Scaling */
        opacity: 0.1;
        visibility: visible;
        transform: translateY(30px) scale(0.95);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scrolly-graphic.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        z-index: 10;
    }

    .scrolly-text-container {
        width: 100%;
        padding: 0 0 20px 0;
        display: flex;
        flex-direction: column;
        gap: 60px;
        /* Space between the text+graphic steps */
    }

    .scrolly-step {
        display: flex;
        flex-direction: column;
        gap: 30px;
        /* Space between the text card and the graphic box */
        min-height: auto;
        padding: 0;
        margin-bottom: 0px;
        width: 100%;
        z-index: 10;

        /* Force static visibility on mobile without relying on observers */
        transform: none !important;
        opacity: 1 !important;
    }

    /* Force all inner text content to be statically visible on mobile */
    .scrolly-content-card .step-badge,
    .scrolly-content-card h2,
    .scrolly-content-card p {
        opacity: 1 !important;
        transform: none !important;
    }

    .scrolly-content-card {
        max-width: 100%;
        padding: 30px;
    }

    /* =========================================
       MOBILE STATS GRID (Replaces Visuals)
       ========================================= */
    .scrolly-mobile-stats {
        width: 100%;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }

    .mobile-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .mobile-stats-grid .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .mobile-stats-grid .stat-item.highlight {
        grid-column: 1 / -1; /* spans full width */
        background: rgba(0, 123, 141, 0.08); /* brand primary faint */
        border-color: rgba(0, 123, 141, 0.2);
    }

    .mobile-stats-grid .stat-val {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--brand-primary, #007B8D);
        line-height: 1;
        margin-bottom: 6px;
        font-family: inherit;
    }

    .mobile-stats-grid .highlight .stat-val {
        font-size: 2.4rem;
    }

    .mobile-stats-grid .stat-label {
        font-size: 0.95rem;
        font-weight: 600;
        color: #555;
    }

    .mobile-stats-grid .market-tag {
        background: rgba(14, 23, 38, 0.05); /* brand dark faint */
        border: 1px solid rgba(14, 23, 38, 0.1);
        padding: 12px 16px;
    }

    .mobile-stats-grid .market-tag .stat-label {
        color: var(--brand-dark, #0E1726);
        font-size: 1.05rem;
        font-weight: 700;
    }
}