.text-content h2 {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 100px;
    font-style: normal;

}

.text-content h3 {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 42px;
    font-style: normal;
}


.text-content p {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 24px;
    font-style: normal;
}



section header h1 {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 100px;
    font-style: semi-bold;
}


#stats-container button #num-left {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 250px;
    font-style: semi-bold;
}


#stats-container button #num-left {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 250px;
    font-style: semi-bold;
}


.red-bg {
    background-color: #D11C1C !important;
}


.red-text {
    color: #D11C1C !important;
}

.section3 h1,
.section6 h1,
.section7 h1,
.section8 h1 {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 100px;
    font-style: semi-bold;
    line-height: normal;
}


.section4 h1 {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 100px;
    font-style: semi-bold;
    line-height: normal;
}

.section4 h2 {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 60px;
    font-style: semi-bold;
    line-height: normal;
}



/*Timeline*/
.red-bg {
    background-color: #dc2626;
}

/* Sticky container logic */
.scroll-wrapper {
    position: relative;
    /* 5 stats = 500vh for a comfortable scroll pace */
    height: 500vh;
}

.sticky-section {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.timeline-bar-container {
    position: absolute;
    bottom: 7%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10%;
}

.stat-node {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

/* Number size transitions */
.num-huge {
    font-size: clamp(6rem, 15vw, 12rem);
    line-height: 0.85;
    opacity: 1;
}

.num-small {
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    line-height: 1;
    /* opacity: 0.4; */
}

/* Labels */
.label-text {
    transition: opacity 0.4s ease;
}

/* Hide scrollbar but allow scrolling */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}






/*Spotlight*/

.title {
    font-size: 10rem;
    color: hsl(0deg 0% 0% / 24%);
    -webkit-background-clip: text;
    background-clip: text;
    background-image: radial-gradient(closest-side, #fff 100%, transparent 0);
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: 500px 500px;
    transition: all .7s cubic-bezier(.19, 1, .22, 1);

}


.title-spot {
    background: radial-gradient(circle 200px at 20px 20px, white 0%, transparent 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-repeat: no-repeat;
    transition: background-position 0.1s ease-out;
}




h1.text {
    font-size: 90px;
    letter-spacing: -0.01em;
    line-height: 100%;
    margin: 0;
    color: rgba(0, 0, 0, 0.04);
    background: linear-gradient(to right, #ffffff, #ffffff) no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 0%;
    transition: background-size cubic-bezier(0.1, 0.5, 0.5, 1) 2s;
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.span {
    position: absolute;
    background-color: #4246ce;
    color: #0d0d0d;

    clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
    transform-origin: center;
    transition: all cubic-bezier(0.1, 0.5, 0.5, 1) 0.4s;

    display: flex;
    flex-direction: column;
    justify-content: center;
}



.inactive {
    opacity: .5;
    transform: translateY(40px) scale(.9);
    transition: all .35s ease;
}

/* Word-by-Word Scroll Reveal */
.word-reveal-text {
    line-height: 1.5;
}

.word-reveal {
    color: #d1d5db;
    /* Light gray */
    transition: color 1.2s ease-in-out;
    display: inline-block;
}

.word-reveal.revealed {
    color: #000000;
    /* Black */
}

.active {
    opacity: 1;
    transform: scale(1);
}

.animate-up {
    opacity: 1 !important;
    transform: translateY(0px) scale(1) !important;
}

.animate-down {
    opacity: .5 !important;
    transform: translateY(40px) scale(.9) !important;
}

.active {
    opacity: 1;
    transform: scale(1);
}

/* timeline + pointer 
  #itemsContainer { position: relative; padding-left: 20px; } 
  .vertical-line {
    position: absolute;
    left: 20px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: #e5e7eb;
    border-radius: 9999px;
  }

 #pointer {
    left: -27px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: #dc2626;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: top .28s cubic-bezier(.22,.9,.31,1), transform .18s ease;
    transform: translateY(0);
        top: 20px;
  }


  #Factories h2 {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 100px;
    font-style: semi-bold;
    line-height: normal;
  }
  
*/



/* City Animation Styles 

  .animation-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }
        
        .city-dot {
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        
        .city-label {
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        
        .arc-segment {
            stroke-dasharray: 1000;
            stroke-dashoffset: 1000;
            transition: stroke-dashoffset 0.8s ease;
        }
        
        .center-city {
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

*/





/* --- Item Transitions --- */
.city-unit {
    /* Smooth transition for layout changes */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: left top;
    will-change: transform, opacity;
    position: relative;
    padding-left: 4rem;
    /* Increased space for the dot/line */
}

/* 1. INACTIVE STATE (Coming from bottom) */
.city-unit {
    opacity: 0.4;
    transform: scale(0.9);
    /* Small */
}

.city-title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 600;
    color: #9CA3AF;
    /* gray-400 */
    transition: all 0.5s ease;
    line-height: 1.2;
}

.city-subtitle {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    font-size: 1.125rem;
    /* text-lg */
    color: #4B5563;
    /* gray-600 */
    font-weight: 500;
}

.marker-dot {
    position: absolute;
    left: 0;
    top: 0.75rem;
    /* Align with top of text */
    width: 12px;
    height: 12px;
    background-color: #DC2626;
    /* Red-600 (Always Red) */
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 20;
}

/* Parallax helper for Leadership Scrollytelling */
#fixed-view {
    /* allow GPU compositing for smooth transform */
    will-change: transform;
    transform: translateY(0px);
    transition: transform 120ms linear;
    /* keep the inner content from intercepting pointer events while sticky */
    pointer-events: auto;
}

/* Slight visual offset if you want the pinned view to feel separate from the following content */
#leadership-scrolly {
    overflow: visible;
}

/* Ensure the following content sits under/over as needed; no layout jump */
.section3 {
    position: relative;
    z-index: 5;
}

/* 2. EXPANDED STATE (Part of the list, but not current) */
/* Applied when item passes the trigger line */
.city-unit.expanded {
    opacity: 1;
    transform: scale(1);
    /* Full Size */
}

.city-unit.expanded .city-title {
    color: #9CA3AF;
    /* Grey Title */
    font-size: 3.75rem;
    /* text-6xl */
    font-weight: 700;
    line-height: 1.1;
}

.city-unit.expanded .city-subtitle {
    max-height: 100px;
    /* Visible */
    opacity: 1;
    margin-top: 0.5rem;
}

.city-unit.expanded .marker-dot {
    background-color: #DC2626;
    /* Red-600 */
    transform: scale(1.4);
    top: 1.25rem;
}

/* 3. ACTIVE STATE (Current Focus) */
/* Applied to the most recent expanded item */
.city-unit.active .city-title {
    color: #000000;
    /* Dark Black Title */
}

.city-unit.active .marker-dot {
    background-color: #DC2626;
    /* Red-600 */
}

/* Center Line positioning */
.timeline-line {
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #E5E7EB;
    /* gray-200 */
    z-index: 0;
}



















footer {
    color: #000;
}

h1.lets_talk {
    font-family: 'Inter Tight', sans-serif;
    font-size: 350px;
    font-weight: bold;
    color: #ffffff;
    height: 353px;
    overflow: hidden;
}

footer ul {
    list-style-type: none;
    line-height: 14px;
    ;
}

footer h2 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 40px;
    font-weight: bold;
    color: #000;
}

footer h3 {
    color: #000;
}



::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.procedure-dot {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bounce effect */
}

.procedure-text {
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Elastic bounce */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Org Chart Specific Styles */
.org-node {
    transition: all 0.6s ease-out;
}

.org-line {
    transition: stroke-dashoffset 0.1s linear;
}

.org-dot {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}









/* Client Success Section */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#track {
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active Slide Styles */
.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .slide-bg {
    opacity: 1;
}

/* Active Title Color */
.slide.active .slide-title {
    color: white;
}

/* Inactive Slide Styles (Faded/Dimmed) */
.slide:not(.active) .slide-content {
    opacity: 0.4;
    pointer-events: none;
}

/* The ghost text color */
.slide:not(.active) .slide-header {
    opacity: 0.5;
}

.slide:not(.active) .slide-title {
    color: white;
    /* White to match active state */
}

.slide:not(.active) .slide-bg {
    opacity: 0.6;
}

/* Inactive slide images: Grayscale */
.slide:not(.active) .slide-bg img {
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

/* Active slide images: Full color and full opacity */
.slide.active .slide-bg img {
    filter: grayscale(0);
    opacity: 1 !important;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* Inactive slides are strictly ghosted text, no scale down needed for this specific layout */
.slide:not(.active) {
    transform: scale(1);
}

/* Active State Gradient Animation: Appears from Bottom to Top */
.slide .slide-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(220, 38, 38, 0.9) 0%, rgba(220, 38, 38, 0.7) 50%, transparent 100%);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 3s ease;
    pointer-events: none;
    z-index: 5;
}

/* Active slide: Gradient grows from bottom to top */
.slide.active .slide-gradient-overlay {
    opacity: 1;
    transform: scaleY(1);
}

/* Inactive slide: Gradient shrinks from top to bottom */
.slide:not(.active) .slide-gradient-overlay {
    opacity: 0;
    transform: scaleY(0);
}

/* Ensure content stays above the overlay */
.slide .slide-content,
.slide .slide-header {
    position: relative;
    z-index: 10;
}


#discover h1 {
    font-family: "Arimo", sans-serif;
    font-size: 100px;
    font-weight: 600;
    line-height: normal;
}



/* Initial state for scroll reveal items */
.reveal-item {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Active state for reveal items */
.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dot Animation: Start small */
.timeline-dot {
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bounce effect */
}

/* Dot Active: Scale up */
.reveal-item.active .timeline-dot {
    transform: scale(1);
}

/* Line Animation: Grow downwards */
.timeline-line-track {
    height: 0;
    animation: growLine 1.5s ease-out forwards;
}

@keyframes growLine {
    to {
        height: 100%;
    }
}













/* Smooth transition for the Left Side fixed content */
.sticky-content {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    opacity: 0;
    /* Start slightly offset to create a subtle "slide in" feel during the swap */
    transform: translateY(20px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Prevent overlapping interactions */
}

.sticky-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Right side content animation on scroll */
.scroll-content {
    opacity: 0.3;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-content.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Dot Pulse */
.dot {
    transition: all 0.3s ease;
    transform: scale(0.8);
    opacity: 0.5;
}

.dot.active {
    transform: scale(1.2);
    opacity: 1;
    background-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Hide scrollbar for cleaner look */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}










/* The Red Line Color */
:root {
    --brand-red: #d62828;
    --primary-red: #D92525;
    --primary-blue: #254ED9;
    --primary-green: #059669;
    --primary-purple: #7C3AED;
    --primary-orange: #EA580C;
    /* New color for Module 5 */
    --text-black: #1a1a1a;
    --text-grey: #4a4a4a;
    --border-color: #e5e5e5;
    --section-padding: 80px;
}

/* Hide elements initially for animation */
.reveal-node {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-node.active {
    opacity: 1;
    transform: translateY(0);
}

/* SVG Paths */
.connector-path {
    fill: none;
    stroke: var(--brand-red);
    stroke-width: 2;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 2s ease-out;
}

.connector-path.active {
    stroke-dashoffset: 0;
}

/* Vertical List Lines */
.vertical-line {
    width: 2px;
    background-color: var(--brand-red);
    height: 0;
    transition: height 2s linear;
}

.vertical-line.active {
    height: 100%;
}

/* Dots */
.node-dot {
    width: 12px;
    height: 12px;
    background-color: var(--brand-red);
    border-radius: 50%;
    position: absolute;
    z-index: 10;
}

/* Horizontal Connector Lines */
.horizontal-connector {
    position: absolute;
    top: 17px;
    /* Aligns with center of top-3 dot (12px top + 6px half-height - 1px half-line) */
    height: 2px;
    background-color: var(--brand-red);
    z-index: 5;
    /* Behind the dot */
}


.slide-header h2 {
    font-family: "Arimo", sans-serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.5s ease;
}


.text-brand-red {
    color: var(--brand-red);
}

.bg-brand-red {
    background-color: var(--brand-red);
}

.border-brand-red {
    border-color: var(--brand-red);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for cleaner look */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Bullet Points */
ul.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

ul.custom-list li::before {
    content: "";
    color: var(--brand-red);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1.75rem;
}







/* --- Main Layout Wrapper --- */
.module-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    position: relative;
    background: #fff;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}

.module-wrapper:last-child {
    border-bottom: none;
}

/* --- Sticky & Scroll Panels --- */
.sticky-panel {
    width: 40%;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: var(--section-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    will-change: transform, opacity;
}

.scroll-panel {
    width: 60%;
    background: #fff;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    will-change: transform, opacity;
}

/* --- Animation States --- */
/* 1. Exit State (Slides Left) */
.module-wrapper.slide-left .sticky-panel,
.module-wrapper.slide-left .scroll-panel {
    transform: translateX(-150px);
    opacity: 0.1;
}

/* 2. Initial State (Hidden to Right) */
.module-wrapper.prepare-slide-in .sticky-panel,
.module-wrapper.prepare-slide-in .scroll-panel {
    transform: translateX(150px);
    opacity: 0;
}

/* 3. Active State (Slides to Center) */
.module-wrapper.slide-in-active .sticky-panel,
.module-wrapper.slide-in-active .scroll-panel {
    transform: translateX(0);
    opacity: 1;
}


/* --- Content Blocks --- */
.content-block {
    min-height: 100vh;
    padding: 20vh var(--section-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-block:first-child {
    padding-top: 45vh;
}

.content-block:last-child {
    padding-bottom: 45vh;
}

/* --- Dynamic Content in Left Panel --- */
.dynamic-content-wrapper {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.dynamic-content-wrapper.fade-out {
    opacity: 0;
}

/* --- Typography --- */
.main-header {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 60px;
    position: absolute;
    top: var(--section-padding);
    left: var(--section-padding);
}

/* Module Colors */
#ehs-module .main-header,
#ehs-module .number {
    color: var(--primary-red);
}

#ehs-module li::before {
    background-color: var(--primary-red);
}

#quality-module .main-header,
#quality-module .number {
    color: var(--primary-blue);
}

#quality-module li::before {
    background-color: var(--primary-blue);
}

#qa-module .main-header,
#qa-module .number {
    color: var(--primary-green);
}

#qa-module li::before {
    background-color: var(--primary-green);
}

#quality-implementation-module .main-header,
#quality-implementation-module .number {
    color: var(--primary-purple);
}

#quality-implementation-module li::before {
    background-color: var(--primary-purple);
}

#new-module-5 .main-header,
#new-module-5 .number {
    color: var(--primary-orange);
}

#new-module-5 li::before {
    background-color: var(--primary-orange);
}

.number {
    font-size: 100px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
    color: var(--text-black);
}

.left-subtext {
    font-size: 16px;
    color: var(--text-grey);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* --- List Styling --- */
ul {
    list-style: none;
    position: relative;
}

li {
    position: relative;
    padding-left: 0;
    /* ---margin-bottom: 30px;--- */
    font-size: 18px;
    /* ---color: var(--text-grey); --- */
    line-height: 1.6;
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

li.visible {
    opacity: 1;
    transform: translateY(0);
}

li::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--section-padding) - 5px);
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* box-shadow: 0 0 0 4px #fff; */
    z-index: 20;
}

/* Hide bullets for empty list items to support "Left Only" layout */
li:empty::before {
    display: none;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .module-wrapper {
        flex-direction: column;
    }

    .sticky-panel,
    .scroll-panel {
        transform: none !important;
        opacity: 1 !important;
        transition: none;
    }

    .sticky-panel {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 40px;
    }

    .main-header {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 30px;
    }

    .scroll-panel {
        width: 100%;
    }

    .content-block {
        min-height: auto;
        padding: 40px;
        padding-bottom: 60px;
        border-bottom: 1px solid var(--border-color);
    }

    .dynamic-content-wrapper {
        display: none;
    }

    .mobile-header {
        display: block !important;
        margin-bottom: 20px;
    }

    ul {
        border-left: 2px solid var(--border-color);
        margin-left: 0;
        padding-left: 0;
    }

    li {
        padding-left: 30px;
    }

    li::before {
        left: -6px;
        top: 9px;
    }
}

.mobile-header {
    display: none;
}





/*3 circle animations*/
.crimson-bg {
    background-color: #dc2626;
}

.crimson-text {
    color: #dc2626;
}

.procedure-dot {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Ensure dots render cleanly at all scales */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.procedure-text {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    /* Prevent text blurring during scale transforms */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.scroll-section {
    position: relative;
    z-index: 1;
}

.sticky-layer {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.diagram-container {
    position: relative;
    width: 800px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transform-origin: center center;
}

/* Responsive scaling for the diagram */
/* Mobile - Small phones */
@media (max-width: 640px) {
    .diagram-container {
        transform: scale(0.35);
    }
}

/* Tablets - Portrait and Landscape */
@media (min-width: 641px) and (max-width: 1024px) {
    .diagram-container {
        transform: scale(0.55);
    }
}

/* HD Laptops - 1366x768 and similar resolutions */
/* This targets both width and height to catch HD laptop screens */
@media (min-width: 1025px) and (max-width: 1440px) and (max-height: 900px) {
    .diagram-container {
        transform: scale(0.55);
        /* Scaled down more to prevent clipping on HD laptops */
    }

    /* Adjust text size for better readability at this scale */
    .procedure-text {
        font-size: 18px !important;
    }
}

/* Standard Laptops - Higher than HD but not full desktop */
@media (min-width: 1025px) and (min-width: 1441px) and (max-height: 900px) {
    .diagram-container {
        transform: scale(0.7);
    }
}

/* Tablets with specific orientations */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .diagram-container {
        transform: scale(0.6);
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .diagram-container {
        transform: scale(0.5);
    }
}

/* Section 1 Reveal Layer */
#ehs-reveal-layer {
    clip-path: circle(0% at 50% 50%);
    z-index: 20;
}

/* Boundary border of the expanding circle background */
.expansion-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #dc2626;
    border-radius: 50%;
    pointer-events: none;
    z-index: 25;
    transition: width 0.1s linear, height 0.1s linear, opacity 0.3s ease;
}

.timeline-inactive {
    color: hsla(0, 0%, 0%, 0.1);
}

.num-huge,
.num-small,
.label-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.text-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.text-enter {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* --- TILE ANIMATIONS --- */
.logo-tile {
    opacity: 0;
    /* Start higher up to simulate dropping */
    transform: translateY(-50px);
    /* Smooth landing with a slight overshoot (bounce) */
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
    will-change: opacity, transform;
}

/* Revealed State */
.logo-tile.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effect for Logos */
.client-logo {
    /* filter: grayscale(100%);
    opacity: 0.6;*/
    transition: all 0.4s ease;
    transform-origin: center;
}

.logo-tile:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

/* Grid lines (Optional visual flair) */
.logo-grid {
    background-image: linear-gradient(to right, #f3f4f6 1px, transparent 1px),
        linear-gradient(to bottom, #f3f4f6 1px, transparent 1px);
    background-size: 100% 100px;
}

/* Fix for Discover Our Client Success lists */
.slide-content li {
    opacity: 1 !important;
    transform: none !important;
    padding-left: 0 !important;
}

.slide-content li::before {
    display: none !important;
}

/* Red Overlay for Carousel Slides - Animates from bottom to top on hover */
.slide-red-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #dc2626, #b91c1c);
    z-index: 5;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide:hover .slide-red-overlay {
    height: 100%;
}

/* Show button on slide hover */
.slide:hover .slide-button-container {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure title stays white on hover */
.slide:hover .slide-title {
    color: white;
}