/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Montserrat:wght@400;500;600&display=swap');

/* CSS Variables - Coralia Ocean Palette */
:root {
    /* Primary teal palette from brand */
    --teal-darkest: #0d4f4f;
    --teal-dark: #177272;
    --teal: #3d929c;
    --teal-light: #7fc4c4;
    --teal-lightest: #b5e0e0;
    
    /* Neutrals */
    --cream: #f5f8f8;
    --cream-dark: #e4eded;
    --charcoal: #011515;
    --gray: #5a7070;
    --white: #ffffff;
    
    --font-display: 'Inter', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    background: transparent;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: clip;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Section snap and transitions */
section {
    scroll-snap-stop: normal;
}

.section-transition {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for child elements */
.section-transition .project-header,
.section-transition .applications-header,
.section-transition .market-header,
.section-transition .nature-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.section-visible .project-header,
.section-visible .applications-header,
.section-visible .market-header,
.section-visible .nature-text {
    opacity: 1;
    transform: translateY(0);
}

.section-transition .project-benefits-grid,
.section-transition .applications-grid,
.section-transition .market-grid,
.section-transition .invest-box,
.section-transition .nature-image {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.section-visible .project-benefits-grid,
.section-visible .applications-grid,
.section-visible .market-grid,
.section-visible .invest-box,
.section-visible .nature-image {
    opacity: 1;
    transform: translateY(0);
}

/* Page visibility */
.page {
    display: none;
}
.page.active {
    display: block;
}

/* Smooth fade transition */
.page {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.page.active {
    opacity: 1;
}

/* Active nav link indicator */
.dropdown-link.active {
    color: var(--teal-dark, #177272);
}


/* Mission learn more button - appears after lines */
.mission .learn-more-btn {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.7s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.7s;
}

.section-visible.mission .learn-more-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem clamp(2rem, 5vw, 10rem);
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Logo with hover color change */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    height: 46px;
    width: auto;
    max-height: 46px;
    object-fit: contain;
    transition: filter 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* Make dark logo smaller to match white logo */
.navbar.scrolled .logo-icon {
    height: 40px;
    max-height: 40px;
}

.navbar.scrolled .nav-logo:hover .logo-icon {
    filter: brightness(0.6) sepia(1) saturate(3) hue-rotate(140deg);
}


/* Menu Wrapper */
.nav-menu-wrapper {
    position: relative;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.menu-btn {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--white);
    border-radius: 50px;
    transition: all 0.3s var(--ease-out);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Scrolled state - dark menu button */
.navbar.scrolled .menu-btn {
    background: var(--teal-dark);
    color: var(--white);
    border: 1.5px solid var(--teal-dark);
}

.navbar.scrolled .menu-btn:hover {
    background: var(--teal-darkest);
    color: var(--white);
    border: 1.5px solid var(--teal-darkest);
}

/* Menu icon toggle */
.menu-btn .close-icon {
    display: none;
}

.menu-btn.active .menu-icon {
    display: none;
}

.menu-btn.active .close-icon {
    display: block;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--white);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s var(--ease-out);
}

.dropdown-link:hover {
    background: var(--teal-lightest);
    color: var(--teal-dark);
    padding-left: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    padding: 8rem 0rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 57, 57, 0.6) 20%;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(2rem, 5vw, 10rem);
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 6.9rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--cream);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

/* Hero Bottom */
.hero-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem clamp(2rem, 5vw, 10rem) 2rem;
    position: relative;
    z-index: 2;
}


.hero-description {
    font-size: clamp(1.2rem, 2.3vw, 2rem);
    font-weight: 700;
    color: var(--cream);
    max-width: 1000px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}




/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        padding: 7rem 1.5rem 2rem;
    }
    .hero-content {
        padding-left: 1.5rem;
        justify-content: center;
        text-align: left;
        align-items: flex-start;
    }
    .hero-bottom {
        padding: 2rem 1.5rem 2rem;
        justify-content: flex-start;
        text-align: left;
    }
    .hero-description {
        font-size: 1.5rem;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .logo-icon {
        height: 35px;
    }
    .navbar.scrolled .logo-icon {
        height: 30px;
        max-height: 30px;
    }
    .dropdown-menu {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        padding: 4.5rem 1rem 1.5rem;
        height: 100dvh;
        min-height: auto;
    }
    .hero-content {
        padding-left: 1rem;
        justify-content: center;
        text-align: left;
        align-items: flex-start;
    }
    .hero-bottom {
        padding: 1rem 1rem 1.5rem;
        justify-content: flex-start;
    }
    .hero-title {
        font-size: clamp(2.5rem, 8.8vw, 7rem);
        text-align: left;
    }
    .hero-description {
        font-size: 1.25rem;
        text-align: left;
        line-height: 1.4;
        max-width: 500px;
    }
}




@media (max-width: 468px) {
    .hero-description {
        max-width: 300px;
        font-size: 0.95rem;
    }
    .hero-title {
        font-size: 2.1rem;
        text-align: left;
    }
}


/* AI Data Centre Section */
.ai-datacentre {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5%;
    background-color: #f5f5f5;
}

.ai-datacentre-header {
    margin-bottom: 6rem;
    text-align: center;
}

.ai-datacentre-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin: 0;
}

.ai-datacentre-title .title-line {
    display: block;
}



.ai-datacentre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.ai-datacentre-image {
    width: 100%;
    height: 400px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.7s;

}

.ai-datacentre-image.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.ai-datacentre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.ai-datacentre-text {
    padding: 2rem;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.9s;
}

.ai-datacentre-text.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.ai-datacentre-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    line-height: 1.8;
    margin: 0;
    text-align: right;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--charcoal);
    opacity: 0.9;
}


/* Responsive Design */
@media (max-width: 968px) {
    .ai-datacentre {
        padding: 4rem 5%;
    }
    
    .ai-datacentre-header {
        margin-bottom: 3rem;
    }

    .ai-datacentre-image.fade-in,
    .ai-datacentre-text.fade-in {
        transform: translateY(0);
    }
    
    .ai-datacentre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ai-datacentre-text {
        padding: 0;
    }
}





/* Mission Section */
.mission {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 6rem clamp(2rem, 5vw, 10rem);
    background: var(--cream);
}

.mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(1.75rem, 3vw, 6rem);
    gap: 5rem;
}

.mission-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin-bottom: 0rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mission-heading.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.mission-heading .heading-line {
    display: block;
}

.mission-statement {
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--charcoal);
    opacity: 0.9;
    max-width: 1400px;
}

/* Animated mission lines */
.mission-line {
    display: inline;
    opacity: 0;
    transition: opacity 1.0s cubic-bezier(0.25, 1, 0.3, 1);
}
.section-visible .mission-line-1 {
    opacity: 1;
    transition-delay: 0.3s;
}
.section-visible .mission-line-2 {
    opacity: 1;
    transition-delay: 0.5s;
}
.section-visible .mission-line-3 {
    opacity: 1;
    transition-delay: 0.7s;
}
.section-visible .mission-line-4 {
    opacity: 1;
    transition-delay: 0.9s;
}
.section-visible .mission-line-5 {
    opacity: 1;
    transition-delay: 1.1s;
}
.section-visible .mission-line-6 {
    opacity: 1;
    transition-delay: 1.3s;
}
.section-visible .mission-line-7 {
    opacity: 1;
    transition-delay: 1.5s;
}

.learn-more-btn {
    position: relative;
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 1.8vw, 2rem);
    font-weight: 500;
    color: var(--teal-dark);
    text-decoration: none;
    margin-top: 2rem;
    transition: color 0.3s var(--ease-out);
}
.learn-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(2px, 0.4vw, 2px);
    background: var(--teal-dark);
    transition: all 0.4s var(--ease-out);
}
.learn-more-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(2px, 0.4vw, 2px);
    background: var(--teal-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
    z-index: 1;
}
.learn-more-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.learn-more-btn:not(:hover)::before {
    transform-origin: right;
}
.learn-more-btn:hover {
    color: var(--teal-light);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mission {
        padding: 4rem 2.5rem;
        min-height: auto;
    }

    .mission-statement {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
        line-height: 1.7;
    }

    .mission-footer {
        margin-top: 2.5rem;
    }

    .mission-content {
        gap: 3rem;
    }
}


/* ========================================
   STICKY TRANSITION WRAPPER & SECTION
   ======================================== */

/* Wrapper creates scroll space for sticky effect */
.transition-wrapper {
    position: relative;
    /* More scroll space so phases feel slower */
    height: 400vh;
}

/* Transition Section - stays sticky */
.transition-section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    padding: 6rem clamp(2rem, 5vw, 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--teal-light);
    transition: background 0.3s ease;
}

.transition-container {
    position: relative;
    width: 100%;
    max-width: 1800px;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ========================================
   TEXT CONTAINER WITH MULTIPLE PHASES
   ======================================== */
   .mission-text {
    position: relative;
    z-index: 10;
  
    /* THIS is the fix */
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  
    padding-right: 2rem;
    min-height: 280px;
  }
  

.text-phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.text-phase.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
    pointer-events: auto;
}

.text-phase h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: var(--teal-lightest);
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.text-phase p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    line-height: 1.6;
    color: var(--cream);
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}


/* ========================================
   SCATTERED IMAGES - DROP IN ANIMATION
   ======================================== */

.scattered-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.image-float {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;  /* Changed from 0 to 0.3 - slightly visible from start */
    transform: translateY(-100px);  /* Changed from -250px - start closer */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Animate images in - drop from top */
.transition-section.images-in .image-float {
    opacity: 1;
    transform: translateY(0);
}

/* Animate images out - drop down */
.transition-section.images-out .image-float {
    opacity: 0;
    transform: translateY(250px);
}

.image-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-float:hover img {
    transform: scale(1.05);
    transition: transform 0.6s ease-out;
}

/* ========================================
   IMAGE POSITIONING - MORE VARIED SIZES
   ======================================== */

/* Hero-ish image */
.img-1 {
    top: 0%;
    right: 10%;
    width: clamp(220px, 18vw, 320px);
    height: clamp(160px, 14vw, 240px);
  }
  
  /* Smaller + more subtle (often near text) */
  .img-2 {
    top: 4%;
    left: 30%;
    width: clamp(140px, 11vw, 190px);
    height: clamp(110px, 9vw, 150px);
  }
  
  /* Big wide feature */
  .img-3 {
    top: 44%;
    right: 25%;
    width: clamp(240px, 22vw, 360px);
    height: clamp(160px, 16vw, 260px);
  }
  
  /* Medium, often overlapping text zone */
  .img-4 {
    bottom: 0%;
    left: 16%;
    width: clamp(170px, 14vw, 250px);
    height: clamp(130px, 11vw, 190px);
  }
  
  /* Small accent */
  .img-5 {
    bottom: 12%;
    right: 10%;
    width: clamp(130px, 10vw, 180px);
    height: clamp(100px, 8vw, 140px);
  }
  

/* Staggered animation delays for drop-in */
.transition-section.images-in .img-1 {
    transition-delay: 0.1s;
}

.transition-section.images-in .img-2 {
    transition-delay: 0.25s;
}

.transition-section.images-in .img-3 {
    transition-delay: 0.15s;
}

.transition-section.images-in .img-4 {
    transition-delay: 0.3s;
}

.transition-section.images-in .img-5 {
    transition-delay: 0.2s;
}

/* Staggered delays for exit animation */
.transition-section.images-out .img-1 {
    transition-delay: 0.05s;
}

.transition-section.images-out .img-2 {
    transition-delay: 0.15s;
}

.transition-section.images-out .img-3 {
    transition-delay: 0.1s;
}

.transition-section.images-out .img-4 {
    transition-delay: 0s;
}

.transition-section.images-out .img-5 {
    transition-delay: 0.2s;
}

/* ========================================
   LIGHT BACKGROUND TEXT STYLES
   ======================================== */

.transition-section.light-bg .text-phase h1 {
    color: var(--charcoal);
}

.transition-section.light-bg .text-phase p {
    color: var(--gray);
}

.transition-section.light-bg .text-phase .highlight {
    color: var(--teal);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
   @media (max-width: 1400px) {
    
    .img-3 {
        right: 23%;
    }
}

@media (max-width: 1024px) {
    .mission-text {
        max-width: 60%;
    }

    .img-2, .img-4 {
        left: 5%;
    }

    .img-1 {
        right: 5%;
    }
    .img-3 {
        right: 10%;
    }
}

@media (max-width: 768px) {
   

    .transition-section {
        padding: 3rem 1.5rem;
    }

    /* Make the transition container stack */
  .transition-container {
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Text takes full width */
  .mission-text {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-right: 0;
    padding-top: 2rem;
    min-height: 260px;
  }

  /* Let text behave more naturally */
  .text-phase {
    position: absolute;
    width: 100%;
    left: 0;
    top: 40%;
    text-align: left;
  }

  /* Improve readability */
  .text-phase h1 {
    font-size: clamp(1.6rem, 6vw, 2.3rem);
    line-height: 1.25;
  }

  .text-phase p {
    font-size: clamp(1rem, 4vw, 1.15rem);
    line-height: 1.7;
    max-width: 100%;
  }

    /* Adjust image sizes and positions for mobile */
    .img-1 {
        top: 5%;
        right: 5%;
        width: 140px;
        height: 120px;
    }

    .img-2 {
        top: 15%;
        left: 5%;
        width: 120px;
        height: 90px;
    }

    .img-3 {
        top: 68%;
        right: 5%;
        width: 180px;
        height: 120px;
    }

    .img-4 {
        bottom: 0%;
        left: 9%;
        width: 150px;
        height: 130px;
    }

    .img-5 {
        bottom: 2%;
        right: 5%;
        width: 120px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .scattered-images {
        opacity: 0.3;
    }

    .mission-text {
        z-index: 20;
    }

    .img-1 {
        top: 5%;
        right: 5%;
        width: 140px;
        height: 120px;
    }

    .img-2 {
        top: 15%;
        left: 5%;
        width: 120px;
        height: 90px;
    }

    .img-3 {
        top: 68%;
        right: 5%;
        width: 180px;
        height: 120px;
    }

    .img-4 {
        bottom: 0%;
        left: 9%;
        width: 100px;
        height: 90px;
    }

    .img-5 {
        bottom: 2%;
        right: 5%;
        width: 90px;
        height: 60px;
    }
}




/* ========================================
   PROJECT SECTION - REGULAR SCROLL WITH ANIMATIONS
   ======================================== */

/* Regular section - no sticky, just smooth scroll */
.project-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0 6rem clamp(2rem, 4vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure white background is always solid */
    z-index: 1;
}

.project-container {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

/* ========================================
   PROJECT HEADER - ANIMATES IN FROM TOP
   ======================================== */

.project-header {
    text-align: center;
    width: 100%;
    max-width: 800px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text fades in when section is visible */
.project-section.section-visible .project-header {
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--teal-darkest);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.project-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   ACCORDION CARDS CONTAINER
   ======================================== */

.accordion-cards {
    display: flex;
    gap: 1rem;
    height: 600px;
    width: 100%;
}

/* ========================================
   INDIVIDUAL ACCORDION CARD
   ======================================== */

.accordion-card {
    position: relative;
    flex: 1;
    min-width: 120px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(80px);
    transition: flex 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cards slide up when section is visible */
.project-section.section-visible .accordion-card {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.project-section.section-visible .accordion-card:nth-child(1) {
    transition-delay: 0.3s;
}

.project-section.section-visible .accordion-card:nth-child(2) {
    transition-delay: 0.5s;
}

.project-section.section-visible .accordion-card:nth-child(3) {
    transition-delay: 0.7s;
}

/* Expanded state */
.accordion-card:hover,
.accordion-card.active {
    flex: 4;
}

/* Background images */
.accordion-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-card:hover .accordion-card__bg {
    transform: scale(1.05);
}

/* Background images */
.accordion-card--weeds .accordion-card__bg {
    background: url('images/woodyweed1.png');
    background-size: cover;
    background-position: center;
}

.accordion-card--reef .accordion-card__bg {
    background: url('images/runnoff.jpg');
    background-size: cover;
    background-position: center;
}

.accordion-card--carbon .accordion-card__bg {
    background: url('images/carbonchar.png');
    background-size: cover;
    background-position: center;
}

/* Dark overlay for readability */
.accordion-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.7) 80%
    );
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-card:hover .accordion-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

/* ========================================
   COLLAPSED STATE CONTENT
   ======================================== */

.accordion-card__collapsed {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 1.5rem 1rem;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.accordion-card:hover .accordion-card__collapsed,
.accordion-card.active .accordion-card__collapsed {
    opacity: 0;
    pointer-events: none;
}

.accordion-card__collapsed-title {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.4vw, 1.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

/* ========================================
   EXPANDED STATE CONTENT
   ======================================== */

.accordion-card__expanded {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
    z-index: 2;
}

.accordion-card:hover .accordion-card__expanded,
.accordion-card.active .accordion-card__expanded {
    opacity: 1;
    transform: translateY(0);
}

.accordion-card__eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.accordion-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.accordion-card__description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 400px;
}

.accordion-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s,
                color 0.4s ease;
}

.accordion-card:hover .accordion-card__link {
    opacity: 1;
    transform: translateY(0);
}

.accordion-card__link:hover {
    color: var(--teal-light);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .accordion-cards {
        height: 450px;
    }

    .accordion-card__expanded {
        padding: 2rem;
    }
    .accordion-card__collapsed {
        padding: 1rem 1.5rem 0.6rem 0.6rem; /* Less left padding */
    }
    
    .accordion-card__collapsed-title {
        font-size: 0.95rem; /* Slightly smaller */
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 4rem 1.5rem;
    }

    .project-container {
        gap: 3rem;
    }

    .project-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    /* Stack vertically on mobile */
    .accordion-cards {
        flex-direction: column;
        height: auto;
        gap: 0.75rem;
        padding: 0 1.5rem;
    }

    .accordion-card {
        min-height: 150px;
        flex: none;
    }

    .accordion-card:hover,
    .accordion-card.active {
        min-height: 350px;
    }

    .accordion-card__collapsed {
        padding: 1.25rem;
    }

    .accordion-card__expanded {
        padding: 1.5rem;
    }
    .accordion-card__collapsed-title {
        font-size: 1.2rem; /* Slightly smaller */
    }

    .accordion-card__description{
        font-size: 0.8rem;
        font-weight: 600;
    }
}

/* ========================================
   FIRST CARD ACTIVE BY DEFAULT
   ======================================== */

.accordion-cards:not(:hover) .accordion-card:first-child {
    flex: 4;
}

.accordion-cards:not(:hover) .accordion-card:first-child .accordion-card__collapsed {
    opacity: 0;
}

.accordion-cards:not(:hover) .accordion-card:first-child .accordion-card__expanded {
    opacity: 1;
    transform: translateY(0);
}

.accordion-cards:not(:hover) .accordion-card:first-child .accordion-card__link {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
           SPACER SECTION (Simulates project/accordion section)
           ======================================== */
           .spacer-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--cream);
        }

        .spacer-section h2 {
            font-family: var(--font-display);
            font-size: 2rem;
            color: rgba(0, 0, 0, 0.2);
        }

        


/* ========================================
   SECTION 6: MARKET STATS
   ======================================== */
   .market-section {
    min-height: 100vh;
    padding: 6rem clamp(2rem, 5vw, 10rem);
    margin-top: 4rem;
}

.market-container {
    margin: 0 auto;
}

/* Title + Intro Wrapper - Side by side on large screens */
.market-intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
    align-items: center;
    margin-bottom: 10rem;
}

.market-header {
    display: flex;
    align-items: center;
}

.market-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    font-weight: 600;
    color: var(--teal-darkest);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: left;
    margin: 0;
}

.stats-intro {
    max-width: none;
    font-family: var(--font-body);
    margin: 0;
    font-size: clamp(1.125rem, 1.3vw, 1.25rem);
    line-height: 1.7;
    color: var(--charcoal);
    text-align: right;
}


.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.market-card {
    position: relative;
    background: var(--charcoal);
    padding: 3.5rem 2rem;
    border-radius: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease;
    min-height: 280px;
    box-shadow: 0 14px 24px rgba(25, 25, 25, 0.8);
}

/* Staggered animations */
.section-visible .market-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
                box-shadow 0.25s ease;
}

.section-visible .market-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
                box-shadow 0.25s ease;
}

.section-visible .market-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s,
                box-shadow 0.25s ease;
}

.section-visible .market-card:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s,
                box-shadow 0.25s ease;
}


.market-label {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--teal-light);
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.market-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.9vw, 6rem);
    font-weight: 800;
    color: var(--teal-light);
    padding-top: 5rem;
    line-height: 1;
    margin: 1rem 0;
}

.market-context {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--teal-lightest);
}

/* ========================================
   MARKET RESPONSIVE
   ======================================== */

/* Large desktop */
@media (max-width: 1400px) {
    .market-section {
        padding: 5rem 3rem;
    }

    .market-subtitle {
        margin-bottom: 6rem;
    }

    .market-grid {
        gap: 1.5rem;
    }

    .market-card {
        padding: 2.5rem 2rem;
        min-height: 260px;
    }
}

/* Desktop - 2 columns */
@media (max-width: 1100px) {
    .market-section {
        padding: 4rem 3rem;
    }

    .market-header {
        margin-bottom: 3rem;
    }

    .market-subtitle {
        margin-bottom: 4rem;
    }

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

    .market-card {
        padding: 2rem 1.75rem;
        min-height: 240px;
        border-radius: 16px;
    }

    .market-number {
        font-size: 3rem;
    }
}

/* Stack title/intro at 1000px */
@media (max-width: 1000px) {
    .market-intro-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .market-title {
        text-align: center;
    }
    
    .stats-intro {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .market-section {
        padding: 3rem 1.5rem;
    }

    .market-intro-wrapper {
        margin-bottom: 3rem;
        gap: 1.5rem;
    }

    .market-header {
        margin-bottom: 2rem;
    }

    .market-title {
        font-size: 2rem;
    }

    .stats-intro {
        font-size: 1rem;
    }

    .market-subtitle {
        font-size: 0.95rem;
        margin-bottom: 3rem;
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .market-card {
        padding: 1.5rem 1.25rem;
        min-height: 200px;
        gap: 1.5rem;
        border-radius: 12px;
    }

    .market-label {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    .market-number {
        font-size: 2.25rem;
        margin: 0.5rem 0;
    }

    .market-context {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Phone - 1 column */
@media (max-width: 520px) {
    .market-section {
        padding: 2.5rem 1.25rem;
    }

    .market-intro-wrapper {
        margin-bottom: 2.5rem;
    }

    .market-title {
        font-size: 1.75rem;
    }

    .stats-intro {
        font-size: 0.95rem;
    }

    .market-subtitle {
        margin-bottom: 2rem;
    }

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

    .market-card {
        padding: 1.5rem;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 1rem;
    }

    .market-label {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .market-number {
        font-size: 2rem;
        margin: 0.25rem 0;
    }

    .market-context {
        font-size: 0.75rem;
    }

    /* Stack label and context on left, number on right */
    .market-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.25rem 1rem;
    }

    .market-label {
        grid-column: 1;
        grid-row: 1;
    }

    .market-context {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0;
    }

    .market-number {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }
}

/* ========================================
   CDR INVESTMENT SECTION
   ======================================== */
   .cdr-investment-section {
    padding: 4rem clamp(2rem, 5vw, 10rem);
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.cdr-investment-container {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding-bottom: 3rem;
}

.cdr-investment-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Animation setup - everything starts hidden */
.cdr-investment-image {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.investment-title,
.investment-subtitle,
.investment-description,
.investment-audience,
.investment-cta-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animate in when section is visible */
.section-visible .cdr-investment-image {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.section-visible .investment-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.section-visible .investment-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-visible .investment-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.section-visible .investment-audience {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.section-visible .investment-cta-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.investment-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--teal-darkest);
    letter-spacing: -0.02em;
}

.investment-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    line-height: 1.5;
    color: var(--charcoal);
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.investment-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1vw, 1.125rem);
    line-height: 1.8;
    color: var(--gray);
    margin: 0;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.investment-audience {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.audience-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.audience-icon {
    width: 28px;
    height: 28px;
    color: var(--teal-dark);
    flex-shrink: 0;
}

.audience-tag {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 0.96vw, 1rem);
    font-weight: 800;
    color: var(--teal-darkest);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cdr-investment-image {
    position: relative;
    height: 600px;
    width: 100%;
}

.investment-image-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investment-image-placeholder img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center;
    position: relative;
    top: -25%;
}

.investment-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cdr-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
}

/* Primary/Filled Button (Purchase CDR Credits) */
.cdr-btn.primary {
    background-color: transparent;
    color: #1a6b6b;
    border: 2px solid #1a6b6b;
}

.cdr-btn.primary:hover {
    background-color: #145555;
    color: white;
    transform: translateY(-2px);
}

/* Secondary/Outlined Button (Learn More) */
.cdr-btn.secondary {
    background-color: transparent;
    color: #1a6b6b;
    border: 2px solid #1a6b6b;
}

.cdr-btn.secondary:hover {
    background-color: #1a6b6b;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   CDR INVESTMENT RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .cdr-investment-container {
        gap: 4rem;
    }
    
    .cdr-investment-image {
        height: 500px;
    }
}

@media (max-width: 968px) {
    .cdr-investment-section {
        padding: 6rem clamp(2rem, 5vw, 4rem);
    }
    
    .cdr-investment-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cdr-investment-text {
        display: contents;
    }
    
    /* Adjust animation for mobile - image comes first */
    .cdr-investment-image {
        transform: translateY(30px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .section-visible .cdr-investment-image {
        transform: translateY(0);
        transition-delay: 0.2s;
    }
    
    .investment-title {
        order: 1;
    }
    
    .investment-subtitle {
        order: 2;
    }
    
    .investment-description:nth-of-type(1) {
        order: 3;
    }
    
    .investment-description:nth-of-type(2) {
        order: 4;
    }
    
    .investment-audience {
        order: 5;
    }
    
    .cdr-investment-image {
        order: 6;
        height: 450px;
    }
    
    .investment-cta-buttons {
        order: 7;
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .cdr-investment-section {
        padding: 4rem 1.5rem;
        min-height: auto;
    }
    
    .cdr-investment-container {
        gap: 2rem;
    }
    
    .investment-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .investment-subtitle {
        font-size: clamp(1.125rem, 5vw, 1.25rem);
    }
    
    .investment-description {
        font-size: 1rem;
    }
    
    .investment-audience {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .audience-item {
        gap: 0.75rem;
    }
    
    .audience-icon {
        width: 24px;
        height: 24px;
    }
    
    .audience-tag {
        font-size: 0.8rem;
    }
    
    .investment-cta-buttons {
        gap: 0.75rem;
        flex-direction: column;
    }
    
    .cdr-btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
    
    .cdr-investment-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .cdr-investment-section {
        padding: 3rem 1.25rem;
    }
    
    .cdr-investment-text {
        gap: 1.25rem;
    }
    
    .cdr-investment-image {
        height: 300px;
    }
    
    .investment-image-placeholder {
        border-radius: 16px;
    }
    
    .audience-item {
        gap: 0.6rem;
    }
    
    .audience-icon {
        width: 22px;
        height: 22px;
    }
    
    .audience-tag {
        font-size: 0.75rem;
    }
    
    .cdr-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}


/* ========================================
   APPLICATIONS SECTION
   ======================================== */
   .applications-section {
    height: 100vh;
    padding: 0rem clamp(2rem, 5vw, 10rem);
    background:var(--white);
    display: flex;
    align-items: center;
}

.applications-container {
    margin: 0 auto;
    width: 100%;
}

/* Header */
.applications-header {
    margin-bottom: 5rem;
}

.applications-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.applications-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--gray);
    max-width: 700px;
    line-height: 1.6;
}

/* ========================================
   ITEMS LIST - HORIZONTAL GRID
   ======================================== */
.items-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    margin-top: 20rem;
}

.item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                all 0.3s ease;
}

/* Staggered animation for items */
.section-visible .item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-visible .item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.section-visible .item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.section-visible .item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.section-visible .item:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.item::before {
    content: '';
    position: absolute;
    left: 0;
    top: -6rem;
    bottom: 0;
    width: 2px;
    background: var(--teal-light);
    transition: background 0.3s ease;
}

.item:hover {
    transform: translateY(-4px) !important;
}

.item:hover::before {
    background: var(--teal-dark);
}

.item-icon {
    font-size: 2.5rem;
    color: var(--teal-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}

.item:hover .item-icon {
    color: var(--teal-darkest);
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1;
    text-transform: uppercase;
}

.item-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    font-family: var(--font-body);
}


/* ========================================
   APPLICATIONS RESPONSIVE
   ======================================== */

/* Large desktop - keep 5 columns */
@media (max-width: 1400px) {
    .applications-section {
        padding: 0 3rem;
    }

    .items-list {
        gap: 2rem;
        margin-top: 15rem;
    }

    .item::before {
        top: -5rem;
    }
}

/* Switch to single column when 5 columns don't fit nicely */
@media (max-width: 1200px) {
    .applications-section {
        height: auto;
        min-height: 100vh;
        padding: 4rem 3rem;
    }

    .applications-header {
        margin-bottom: 3rem;
    }

    .items-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 3rem;
    }

    .item {
        padding: 1.5rem;
        padding-left: 2rem;
        gap: 1rem;
        width: 100%;
    }

    .item::before {
        top: 0;
        left: 0;
        width: 2px;
        bottom: 0;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .applications-section {
        padding: 3rem 2rem;
    }

    .applications-header {
        margin-bottom: 2rem;
    }

    .applications-title {
        font-size: 1.75rem;
    }

    .applications-subtitle {
        font-size: 0.95rem;
    }

    .items-list {
        gap: 0.75rem;
        margin-top: 2.5rem;
    }

    .item {
        padding: 1.25rem;
        padding-left: 1.75rem;
    }

    .item::before {
        width: 1.5px;
    }

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

    .item-title {
        font-size: 1rem;
    }

    .item-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Invest section */
    .invest-section {
        padding: 4rem 1.5rem;
    }

    .invest-box {
        flex-direction: column;
        text-align: center;
    }

    .invest-content h3 {
        font-size: 1.5rem;
    }

    .invest-content p {
        max-width: none;
        font-size: 0.9rem;
    }

    .invest-stats {
        gap: 2rem;
    }

    .invest-stat-number {
        font-size: 2.5rem;
    }
}

/* Phone */
@media (max-width: 520px) {
    .applications-section {
        padding: 2.5rem 1.5rem;
    }

    .applications-title {
        font-size: 1.5rem;
    }

    .applications-subtitle {
        font-size: 0.9rem;
    }

    .items-list {
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .item {
        padding: 1.25rem;
        padding-left: 1.5rem;
        gap: 0.75rem;
    }

    .item::before {
        width: 2px;
    }

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

    .item-title {
        font-size: 0.95rem;
    }

    .item-description {
        font-size: 0.8rem;
    }

    .invest-section {
        padding: 3rem 1.25rem;
    }

    .invest-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .invest-stat-number {
        font-size: 2rem;
    }
}


/* ========================================
   NATURE SECTION
   ======================================== */
   .nature {
    background: var(--cream);
    padding-left: clamp(2rem, 5vw, 10rem);
    padding-right: clamp(2rem, 5vw, 10rem);
    display: flex;
    flex-direction: column;
}

/* Image container */
.nature-image {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    
}

.nature-image .image-overlay {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.nature-image img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center;
    position: relative;
    top: -25%;
}



/* Content area below image */
.nature-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 ;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

/* Left side - text and button */
.nature-text {
    max-width: 450px;
}

.nature-heading {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: 2rem;
    text-decoration: none;
}

.nature-heading:hover {
    color: var(--teal);
}

.nature-text .cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.nature-text .cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nature-text .btn {
    position: relative;
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1vw, 1.75rem);
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    padding-bottom: 0.75rem;
    transition: color 0.3s var(--ease-out);
}

.nature-text .btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.4s var(--ease-out);
}

.nature-text .btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--teal-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
    z-index: 1;
}

.nature-text .btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nature-text .btn:not(:hover)::before {
    transform-origin: right;
}

.nature-text .btn:hover {
    color: var(--teal-dark);
}

/* Right side - giant word */
.nature-word {
    text-align: right;
    white-space: nowrap;
}

.nature-word .letter {
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 700;
    color: var(--teal-light);
    line-height: 0.85;
    letter-spacing: -0.03em;
    display: inline-block;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-visible .nature-word .letter {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays for each letter */
.section-visible .nature-word .letter:nth-child(1) { transition-delay: 0.1s; }
.section-visible .nature-word .letter:nth-child(2) { transition-delay: 0.2s; }
.section-visible .nature-word .letter:nth-child(3) { transition-delay: 0.3s; }
.section-visible .nature-word .letter:nth-child(4) { transition-delay: 0.4s; }
.section-visible .nature-word .letter:nth-child(5) { transition-delay: 0.5s; }
.section-visible .nature-word .letter:nth-child(6) { transition-delay: 0.6s; }
.section-visible .nature-word .letter:nth-child(7) { transition-delay: 0.7s; }

/* ========================================
   NATURE RESPONSIVE
   ======================================== */

@media (max-width: 1700px) {
    .nature-word .letter {
        font-size: clamp(5rem, 10vw, 10rem);
    }
}

@media (max-width: 1024px) {
    .nature {
        padding: 1.5rem;
    }

    .nature-image {
        height: 45vh;
        min-height: 350px;
    }

    .nature-content {
        padding: 0 1rem;
    }

    .nature-word .letter {
        font-size: clamp(4rem, 10vw, 8rem);
    }

    .nature-heading {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .nature-text .cta-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nature {
        padding: 1rem;
        min-height: auto;
    }

    .nature-image {
        height: 40vh;
        min-height: 300px;
        margin-bottom: 1.5rem;
    }

    .nature-image .image-overlay {
        border-radius: 16px;
    }

    .nature-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 0 0.5rem;
        margin-top: 1rem;
    }

    .nature-text {
        max-width: 100%;
        width: 100%;
    }

    .nature-heading {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .nature-text .cta-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .nature-text .btn {
        font-size: 1.1rem;
        padding-top: 0.5rem;
    }

    .nature-word {
        text-align: left;
        width: 100%;
        margin-top: 0;
    }

    .nature-word .letter {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}

@media (max-width: 480px) {
    .nature {
        padding: 1rem 1rem 2rem 1rem;
    }

    .nature-image {
        height: 35vh;
        min-height: 250px;
        margin-bottom: 1rem;
    }

    .nature-image .image-overlay {
        border-radius: 12px;
    }

    .nature-content {
        gap: 1rem;
        padding: 0;
        margin-top: 0.5rem;
    }

    .nature-heading {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .nature-text .cta-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .btn-primary {
        font-size: 0.9rem;
    }

    .nature-word {
        margin-top: 0.5rem;
    }

    .nature-word .letter {
        font-size: clamp(2.5rem, 12vw, 4rem);
        padding-top: 0;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--teal-darkest);
    padding: 4rem clamp(2rem, 5vw, 10rem) 2rem;
    border-top: 1px solid var(--teal-dark);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

/* Brand Column */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--teal-lightest);
}

/* Footer Headings */
.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-lightest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--teal-lightest);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--teal-dark);
    transform: translateX(4px);
}

/* Contact List */
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--teal-lightest);
}

.footer-contact .material-icons {
    font-size: 1.25rem;
    color: var(--teal-light);
}

.footer-contact a {
    color: var(--teal-lightest);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--teal-dark);
}

/* Social Links */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-dark);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--teal-darkest);
    transform: translateY(-4px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--teal-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--teal-lightest);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--teal-lightest);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--teal-dark);
}

.footer-legal .separator {
    color: var(--teal-light);
}

/* ========================================
   FOOTER RESPONSIVE
   ======================================== */

/* Large desktop */
@media (max-width: 1200px) {
    .footer {
        padding: 4rem 3rem 2rem;
    }

    .footer-grid {
        gap: 4rem;
    }
}

/* Tablet - keep 2 columns but tighter */
@media (max-width: 968px) {
    .footer {
        padding: 3.5rem 2rem 2rem;
    }

    .footer-grid {
        gap: 3rem;
    }
}

/* Mobile - 1 column stacked */
@media (max-width: 640px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-social {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .footer-legal {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 1.25rem 1.25rem;
    }

    .footer-grid {
        gap: 2.5rem;
    }

    .footer-logo {
        height: 38px;
    }

    .footer-heading {
        font-size: 0.9rem;
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes torusIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-15deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: rotateX(65deg) rotateZ(-20deg) translateY(0);
    }
    50% {
        transform: rotateX(65deg) rotateZ(-20deg) translateY(-15px);
    }
}

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

@keyframes rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}



/* ============================================
   BIOCHAR PAGE STYLES (FULL)
   ============================================ */

/* --------------------------
   HERO
   -------------------------- */
   .bio-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .bio-hero-image-container {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  .bio-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .bio-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0.60));
  }
  
  .bio-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 900px;
    padding: 0 clamp(2rem, 5vw, 6rem);
    text-align: center;
  }
  
  .bio-hero-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.3s;
  }
  
  .bio-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 600;
    line-height: 1;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    text-transform: uppercase;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .bio-word {
    display: inline-block;
    opacity: 0;
  }
  
  .bio-left {
    animation: slideInFromLeft 1s ease forwards;
    animation-delay: 0.5s;
  }
  
  .bio-right {
    animation: slideInFromRight 1s ease forwards;
    animation-delay: 0.5s;
  }
  
  .bio-hero-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1s;
    letter-spacing: -0.02em;
  }
  
  @keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }
  
  @keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }
  
  @keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  /* --------------------------
     WHAT IS BIOCHAR (MISSION STATEMENT)
     -------------------------- */
  .bio-what {
    background: white;
    padding: clamp(8rem, 20vw, 16rem) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
  }
  
  .bio-what-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 6rem);
    width: 100%;
  }
  
  .bio-what-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .bio-what-statement {
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--charcoal);
  }
  
  .bio-what-line {
    display: inline;
    opacity: 0;
    transition: opacity 1.0s cubic-bezier(0.25, 1, 0.3, 1);
  }
  
  .section-visible .bio-what-line-1 { opacity: 1; transition-delay: 0.3s; }
  .section-visible .bio-what-line-2 { opacity: 1; transition-delay: 0.6s; }
  .section-visible .bio-what-line-3 { opacity: 1; transition-delay: 0.9s; }
  

  
  /* --------------------------
     PROCESS (STICKY SCREENS)
     -------------------------- */
  .bio-process-wrapper {
    position: relative;
    background: white;
  }
  
  .bio-process-container {
    position: relative;
  }
  
  /* Sticky visual */
  .bio-process-visual {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: white;
  }
  
/* All screens stacked with slide + scale transition */
.bio-screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100vh) scale(0.85);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1),
                visibility 0.8s ease;
    display: flex;
  }
  
  .bio-screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 2;
  }
  
  /* Background holder - DEFAULT (keeps screen 0 unchanged) */
  .bio-screen-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  .bio-screen-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  
  /* Content layer default */
  .bio-screen-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    padding: 0 clamp(2rem, 5vw, 6rem);
  }
  
  /* Intro screen (0) - YOUR ORIGINAL DESIGN - UNTOUCHED */
  #bio-screen-0 {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  #bio-screen-0 .bio-screen-content {
    color: #1a1a1a;
    max-width: 900px;
    margin: 0 auto;
  }
  
  /* Label + title for screen 0 */
  .bio-process-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--accent);
  }
  
  .bio-process-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
  }
  
  /* Trigger sections */
  .bio-process-triggers {
    position: relative;
    z-index: -1;
  }
  
  .bio-trigger {
    height: 100vh;
    width: 100%;
  }
  
  /* ----------------------------------------------------
     Steps 1–5 "Reference style" - NEW FRAMED LAYOUT
     (big title centered on image, caption bottom-left on image)
     ---------------------------------------------------- */
  
  /* Center the screen stack for steps 1-5 */
  .bio-screen:not(#bio-screen-0) {
    justify-content: center;
    align-items: center;
  }
  
  /* Create a framed panel for steps 1-5 with minimal padding */
  .bio-screen:not(#bio-screen-0) .bio-screen-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 0;
  }
  
  /* Image panel for steps 1-5 - BIGGER, less white space */
  .bio-screen:not(#bio-screen-0) .bio-screen-bg img {
    width: calc(100vw - 8rem);
    height: calc(100vh - 10rem);
    object-fit: cover;
    border-radius: clamp(1.5rem, 2vw, 2rem);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    transform: translateZ(0);
  }
  
  /* Overlay matches panel for steps 1-5 */
  .bio-screen:not(#bio-screen-0) .bio-screen-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 8rem);
    height: calc(100vh - 10rem);
    border-radius: clamp(1.5rem, 2vw, 2rem);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.097), rgba(0,0,0,0.45));
    pointer-events: none;
    z-index: 1;
  }
  
  /* Layout wrapper used for steps 1-5 */
  .bio-screen-layout {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Title container at top - CENTERED */
  .bio-screen-title-wrapper {
    width: calc(100vw - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: clamp(2.5rem, 5vh, 4.8rem);
  }
  
  /* Big title at top CENTERED on image */
  .bio-step-title-top {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--cream);
    text-transform: none;
    max-width: 20ch;
    text-shadow: 4px 4px 6px rgba(0,0,0,0.3);
    text-transform: uppercase;
  }
  
  /* Caption container at bottom - LEFT ALIGNED */
  .bio-screen-caption-wrapper {
    width: calc(100vw - 8rem);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 4rem;
    padding-left: clamp(2rem, 4vw, 4rem);
}
  
  /* Bottom-left caption ON IMAGE */
  .bio-step-caption {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 560px;
    align-items: flex-start;
  }
  
  /* Badge (pill style) */
  .bio-step-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--cream);
    margin: 0;
    text-shadow: 4px 4px 6px rgba(0,0,0,0.6);
  }
  
  /* Caption text */
  .bio-step-text {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.3vw, 1.25rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.95);
    margin: 0;
    max-width: 75ch;
    text-shadow: 4px 4px 12px rgba(0,0,0,0.6);
  }
  
  /* Keep your original .bio-step-title available (for any other places) */
  .bio-step-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.01em;
    text-shadow: 4px 4px 6px rgba(0,0,0,0.6);
  }
  
  /* --------------------------
     CDR (WHY BIOCHAR) SECTION
     -------------------------- */
  .bio-cdr {
    background: white;
    padding: clamp(6rem, 15vw, 10rem) 0;
  }
  
  .bio-cdr-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 4vw, 4rem);
  }
  
  .bio-cdr-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: start;
  }
  
  .bio-cdr-left {
    position: sticky;
    top: 10rem;
  }
  
  .bio-cdr-label {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 0.99vw, 0.875rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
  }
  
  .bio-cdr-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 500px;
  }
  
  .bio-cdr-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
  }
  
  .bio-cdr-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid #e0e0e0;
  }
  
  .bio-cdr-item:last-child {
    border-bottom: 1px solid #e0e0e0;
  }
  
  .bio-cdr-item-title {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
    letter-spacing: -0.01em;
  }
  
  .bio-cdr-item-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
  }
  
  /* --------------------------
     APPS (HORIZONTAL CARDS)
     -------------------------- */
  .bio-apps {
    background: var(--cream);
    padding: clamp(6rem, 15vw, 10rem) 0;
  }
  
  .bio-apps-header {
    margin: 0 auto 2rem;
    padding: 0 clamp(2rem, 5vw, 6rem);
    align-items: left;
  }
  
  .bio-apps-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  
  .bio-apps-scroll {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.bio-apps-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
    animation: scroll-biochar 100s linear infinite;
}


/* Infinite scroll animation for biochar cards */
@keyframes scroll-biochar {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% / 3));
    }
}
  
  .bio-app-card {
    width: clamp(400px, 40vw, 580px);
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.12);
  }
  
  .bio-app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  }
  
  .bio-app-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
  }
  
  .bio-app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .bio-app-card:hover .bio-app-card-image img {
    transform: scale(1.05);
  }
  
  .bio-app-card-body {
    padding: 2.5rem;
  }
  
  .bio-app-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }
  
  .bio-app-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--charcoal);
    margin: 0;
  }
  
  /* --------------------------
     RESPONSIVE
     -------------------------- */
  @media (max-width: 768px) {
    .bio-hero-title { font-size: 3.5rem; }
  
    .bio-cdr-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
  
    .bio-cdr-left { position: static; }
  
    .bio-cdr-item {
      grid-template-columns: 1fr;
      gap: 1rem;
      padding: 2rem 0;
    }
  
    /* Process panel sizes on mobile for steps 1-5 */
    .bio-screen:not(#bio-screen-0) .bio-screen-bg {
      padding: 1.5rem;
    }
    
    .bio-screen:not(#bio-screen-0) .bio-screen-bg img {
      width: calc(100vw - 3rem);
      height: calc(100vh - 8rem);
      border-radius: 1.25rem;
    }
    
    .bio-screen:not(#bio-screen-0) .bio-screen-overlay {
      width: calc(100vw - 3rem);
      height: calc(100vh - 8rem);
      border-radius: 1.25rem;
    }
    
    .bio-step-title-top {
      font-size: clamp(2.5rem, 10vw, 4rem);
      max-width: 100%;
      padding-top: 1.2rem;
    }
    
    .bio-screen-layout {
      padding: 1.5rem;
    }
    
    .bio-screen-title-wrapper {
      width: calc(100vw - 3rem);
      padding-top: 2rem;
    }
    
    .bio-screen-caption-wrapper {
      width: calc(100vw - 3rem);
      padding-bottom: 4rem;
      padding-left: 1rem;
      max-width: 500px;
    }
    
    .bio-step-caption {
      max-width: 100%;
    }
    
    .bio-step-text {
      font-size: 0.9375rem;
      max-width: 100%;
    }
  
    .bio-app-card { width: 85vw; }
  }
  
  @media (max-width: 480px) {
    /* Process panel sizes on small mobile for steps 1-5 */
    .bio-screen:not(#bio-screen-0) .bio-screen-bg {
      padding: 1rem;
    }
    
    .bio-screen:not(#bio-screen-0) .bio-screen-bg img {
      width: calc(100vw - 2rem);
      height: calc(100vh - 2rem);
      border-radius: 1rem;
    }
    
    .bio-screen:not(#bio-screen-0) .bio-screen-overlay {
      width: calc(100vw - 2rem);
      height: calc(100vh - 2rem);
      border-radius: 1rem;
    }
    
    .bio-screen-layout {
      padding: 1rem;
    }
    
    .bio-screen-title-wrapper {
      width: calc(100vw - 2rem);
      padding-top: 3rem;
    }
    
    .bio-screen-caption-wrapper {
      width: calc(100vw - 2rem);
      padding-bottom: 2rem;
      padding-left: 1.5rem;
    }
    
    .bio-step-title-top {
      font-size: clamp(2rem, 9vw, 3rem);
    }
    
    .bio-step-badge {
      font-size: 1.4rem;
      font-weight: 800;
      
    }
    
    .bio-step-text {
      font-size: 0.9rem;
      line-height: 1.6;
      max-width: 330px;
    }
  }
  



/* ========ABOUT PAGE STYLES======== */
/* Body override for about page */
.about-page {
    background-color: var(--cream);
}
/* ========ABOUT PAGE HERO SECTION - SIMPLIFIED FIXED SPACING======== */

/* ========================================
   HERO SECTION - TIGHT TO IMAGE
   ======================================== */
.about-hero-section {
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--cream, #f5f8f8);
    position: relative;
    z-index: 3;
    padding-top: 10rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

.about-title-container {
    position: sticky;
    text-align: center;
    width: 100%;
    z-index: 3;
    background-color: var(--cream, #f5f8f8);
    padding-bottom: 2rem;
    margin-bottom: 0;
}

.about-big-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: clamp(4rem, 14vw, 12rem);
    color: var(--teal-light);
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-weight: 700;
}

.about-subtitle {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: var(--charcoal);
    opacity: 0.75;
    margin: 1rem auto 0;
    padding: 0;
    max-width: 800px;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* ========================================
   IMAGE STORY SECTION - ZOOM FROM SMALL
   ======================================== */
.about-image-story-section {
    display: flex;
    justify-content: center;
    height: 500vh; /* Tall for scroll animation */
    background-color: var(--cream);
    position: relative;
    margin-top: -100vh; /* Pull up behind hero */
    padding-top: 0;
    z-index: 1;
}

.about-image-shim {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.image-story-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    /* Hide bottom overflow so image appears cut off */
    display: flex;
    align-items: flex-start;
}

.about-reveal-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    will-change: transform;
    /* KEY: Start smaller (0.5 = 50% size) and positioned higher */
    transform: scale(0.5) translateY(-15%);
    /* Smooth transition as JS changes the scale */
    transition: transform 0.1s ease-out;
}

/* When fully zoomed (JS will add inline styles but this is the end state) */
.about-reveal-image.fully-zoomed {
    transform: scale(1) translateY(0);
}

.story-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 6rem);
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0));
    z-index: 2;
    opacity: 0;
    transition: background 0.8s ease, opacity 0.8s ease;
}

.story-text-overlay.visible {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    opacity: 1;
}

.story-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.story-statement {
    font-family: var(--font-body);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 0;
}

.story-line {
    display: inline;
    opacity: 0;
    transform: translateY(40px);
}

.story-line-visible-1 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-line-visible-2 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.15s;
}

.story-line-visible-3 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.3s;
}

.story-line-visible-4 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.45s;
}

.story-line-visible-5 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.6s;
}

/* Title animation */
.title-word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-word-1 {
    transition-delay: 0.1s;
}

.title-word.animate {
    transform: translateY(0);
    opacity: 1;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 1200px) {
    .about-hero-section {
        padding-top: 8rem;
    }
    
    .about-title-container {
        padding-top: 3rem;
        padding-bottom: 1.75rem;
    }
    
    .about-image-story-section {
        height: 400vh;
        margin-top: -80vh;
    }
    
    .about-reveal-image {
        transform: scale(0.55) translateY(-12%);
    }
}

@media (max-width: 900px) {
    .about-hero-section {
        padding-top: 7rem;
    }
    
    .about-title-container {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }
    
    .about-image-story-section {
        height: 350vh;
        margin-top: -70vh;
    }
    
    .about-reveal-image {
        transform: scale(0.6) translateY(-10%);
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding-top: 6rem;
    }
    
    .about-title-container {
        padding-top: 3rem;
        padding-bottom: 1.25rem;
    }
    
    .about-big-title {
        font-size: clamp(3rem, 15vw, 7rem);
    }

    .about-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.25rem);
        max-width: 90%;
        margin-top: 0.75rem;
    }
    
    .about-image-story-section {
        height: 300vh;
        margin-top: -60vh;
    }
    
    .about-reveal-image {
        /* Start even smaller on mobile */
        transform: scale(0.65) translateY(-8%);
    }
}

@media (max-width: 600px) {
    .about-hero-section {
        padding-top: 5.5rem;
    }
    
    .about-title-container {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
    
    .about-image-story-section {
        margin-top: -50vh;
    }
    
    .about-reveal-image {
        transform: scale(0.7) translateY(-5%);
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        padding-top: 5rem;
    }


    .about-title-container {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
    
    .about-big-title {
        font-size: clamp(2.5rem, 16vw, 5rem);
    }
    
    .about-subtitle {
        font-size: clamp(0.875rem, 4vw, 1.125rem);
        margin-top: 0.65rem;
    }
    
    .about-image-story-section {
        height: 250vh;
        margin-top: -45vh;
    }
    
    .about-reveal-image {
        /* Very small start on phones */
        transform: scale(0.75) translateY(-3%);
    }
}

@media (max-width: 375px) {
    .about-title-container {
        padding-top: 2rem;
    } 
    .about-hero-section {
        padding-top: 4.5rem;
    }
    
    .about-title-container {
        top: 2.5rem;
        padding-bottom: 0.875rem;
    }
    
    .about-image-story-section {
        margin-top: -40vh;
    }
}

/* ========================================
   IMAGE + STORY SECTION
   ======================================== */
.about-image-story-section {
    display: flex;
    justify-content: center;
    height: 500vh;
    background-color: var(--cream);
    position: relative;
}

.about-image-shim {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.image-story-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.about-reveal-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    will-change: transform;
    transform: scale(0.75);
}

.story-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 6rem);
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0));
    z-index: 2;
    opacity: 0;
    transition: background 0.8s ease, opacity 0.8s ease;
}

.story-text-overlay.visible {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    opacity: 1;
}

.story-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.story-statement {
    font-family: var(--font-body);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 0;
}

.story-line {
    display: inline;
    opacity: 0;
    transform: translateY(40px);
}

.story-line-visible-1 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-line-visible-2 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.15s;
}

.story-line-visible-3 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.3s;
}

.story-line-visible-4 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.45s;
}

.story-line-visible-5 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.6s;
}

/* ========================================
   VALUES SECTION
   ======================================== */
.about-values {
    display: flex;
    align-items: center;
    padding: clamp(6rem, 10vw, 10rem) clamp(2rem, 5vw, 10rem);
    padding-bottom: clamp(5rem, 8vw, 8rem);
    background: var(--white);
}

.values-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

/* Big expanding title */
.values-big-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: clamp(3rem, 10vw, 8.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.values-title-line {
    display: block;
    overflow: hidden;
    padding: 0.05em 0;
}

.values-title-line span {
    display: block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-visible .values-title-line:nth-child(1) span {
    transform: translateY(0);
    transition-delay: 0.15s;
}

.section-visible .values-title-line:nth-child(2) span {
    transform: translateY(0);
    transition-delay: 0.35s;
}

.section-visible .values-title-line:nth-child(3) span {
    transform: translateY(0);
    transition-delay: 0.55s;
}

/* Values list */
.values-list {
    display: flex;
    flex-direction: column;
}

.value-item {
    position: relative;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-visible .value-item {
    opacity: 1;
    transform: translateY(0);
}

.section-visible .value-item[data-index="0"] {
    transition-delay: 0.2s;
}

.section-visible .value-item[data-index="1"] {
    transition-delay: 0.4s;
}

.section-visible .value-item[data-index="2"] {
    transition-delay: 0.6s;
}

.section-visible .value-item[data-index="3"] {
    transition-delay: 0.8s;
}

.value-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: 0.01em;
    margin: 0;
    cursor: default;
}

.value-divider {
    height: 1px;
    background: var(--charcoal);
    opacity: 0.15;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-visible .value-divider {
    transform: scaleX(1);
}

.section-visible .value-divider:nth-of-type(2) {
    transition-delay: 0.3s;
}

.section-visible .value-divider:nth-of-type(4) {
    transition-delay: 0.5s;
}

.section-visible .value-divider:nth-of-type(6) {
    transition-delay: 0.7s;
}

/* Hover icon */
.value-hover-icon {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%)scale(1.1);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    border-radius: 16px;  /* Rounded corners instead of circle */
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10;
    overflow: hidden;  /* Important for image to respect border-radius */
}

/* Updated for images to fill completely */
.value-hover-icon img {
    width: 100%;   /* Fill the container */
    height: 100%;
    object-fit: cover;  /* Cover the entire area */
}

/* ========================================
   TEAM SECTION - SLIDE UP FLIP FOR ALL SCREENS
   ======================================== */
   .about-team {
    padding: 4rem clamp(1rem, 3vw, 3rem) 8rem;
    background: var(--cream);
}

/* Override section animation for team - only animate text */
.about-team.section-transition {
    opacity: 1;
    transform: translateY(0);
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-big-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8.5rem);
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-visible .team-big-title {
    opacity: 1;
    transform: translateY(0);
}

.team-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--charcoal);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.section-visible .team-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 3 columns on large screens */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* Team Card */
.team-card {
    perspective: 1000px;
    height: 500px;
    width: 100%;
    cursor: pointer;
}



.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Front of Card - SLIDE UP ANIMATION */
.team-card-front {
    background: var(--charcoal);
    transform: translateY(0);
}

/* On hover OR when .flipped class is added */
.team-card:hover .team-card-front,
.team-card.flipped .team-card-front {
    transform: translateY(-100%);
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) !important;
    transition: all 0.5s var(--ease-out);
}

.team-card:hover .team-image,
.team-card.flipped .team-image {
    filter: grayscale(100%);
    transform: scale(1.05);
}

.team-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
    z-index: 2;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-role {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Back of Card - SLIDE UP FROM BELOW */
.team-card-back {
    background: var(--charcoal);
    transform: translateY(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

/* On hover OR when .flipped class is added */
.team-card:hover .team-card-back,
.team-card.flipped .team-card-back {
    transform: translateY(0);
}

.team-bio {
    color: var(--white);
    text-align: left;
}

.team-bio .team-name {
    margin-bottom: 0.25rem;
}

.team-bio .team-role {
    color: var(--teal-lightest);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.team-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1400px) {
    .team-card {
        height: 500px;
    }
    .team-description {
        font-size: 0.9rem;
    }
    
}

/* Responsive: 2 columns on tablets */
@media (max-width: 1000px) {
    .about-team {
        padding: clamp(8rem, 12vh, 12rem) clamp(1.5rem, 4vw, 3rem) 5rem;
    }

    .team-header {
        margin-bottom: 3rem;
    }

    .team-big-title {
        font-size: clamp(2rem, 11vw, 5rem);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Reset all cards to auto positioning */
    .team-card:nth-child(1),
    .team-card:nth-child(2),
    .team-card:nth-child(3),
    .team-card:nth-child(4) {
        grid-column: auto;
    }

    .team-card {
        height: 500px;
        width: 100%;
        max-width: none;
    }
    .team-description {
        font-size: 0.78rem;
    }

}

/* Responsive: 1 column on mobile - SAME SLIDE ANIMATION */
@media (max-width: 768px) {
    .about-team {
        padding: clamp(6rem, 10vh, 10rem) 4rem 4rem;
    }

    .team-header {
        margin-bottom: 2.5rem;
    }

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

    .team-card:nth-child(1),
    .team-card:nth-child(2),
    .team-card:nth-child(3),
    .team-card:nth-child(4),
    .team-card:nth-child(5) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .team-card {
        height: 500px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        /* Keep cursor pointer for tap */
        cursor: pointer;
    }

    /* MOBILE: Same slide-up animation, triggered by .flipped class */
    .team-info {
        padding: 1.5rem;
    }

    .team-name {
        font-size: 1.25rem;
    }

    .team-role {
        font-size: 0.875rem;
    }

    .team-bio {
        padding: 2rem 0rem;
    }

    .team-description {
        font-size: 0.78rem;
    }
}

@media (max-width: 600px) {
    .team-card {
        height: 440px;
    }
    .about-team {
        padding: 5rem 3rem 3rem;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .about-team {
        padding: 5rem 1rem 3rem;
    }

    .team-card {
        height: 320px;
    }

    .team-grid {
        gap: 1.25rem;
    }

    .team-info {
        padding: 1.25rem;
    }

    .team-name {
        font-size: 1.125rem;
    }

    .team-role {
        font-size: 0.8125rem;
    }

    .team-bio {
        padding: 1.75rem 0rem;
    }

    .team-description {
        font-size: 0.78rem;
    }
}


/* ========================================
   PARTNERS/INVESTORS SECTION - FASTER SEAMLESS SCROLL
   ======================================== */
   .partners-section {
    padding: clamp(2rem, 5vh, 5rem) 0;
    background: var(--charcoal);
    overflow: hidden;
    padding-bottom: clamp(4rem, 8vh, 8rem);
}

.partners-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--teal-lightest);
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    margin-top: 2rem;
}


.partner-logo {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--teal-lightest);
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    user-select: none;
    flex-shrink: 0;
    min-width: max-content;
    padding-bottom: 1rem;
    text-align: center;
}

.partner-logo:hover {
    opacity: 1;
}



/* ========================================
   CTA SECTION
   ======================================== */
.about-cta {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 10vw, 8rem) clamp(2rem, 5vw, 10rem);
}

/* Override section animation for CTA - only animate text */
.about-cta.section-transition {
    opacity: 1;
    transform: translateY(0);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.about-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    flex-direction: column;
    align-items: center;
    text-transform: uppercase;
}

/* CTA Title line wrapper for slide-up animation */
.cta-title-line {
    display: block;
    overflow: hidden;
    padding: 0.05em 0;
}

.cta-title-line span {
    display: block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-visible .cta-title-line:nth-child(1) span {
    transform: translateY(0);
    transition-delay: 0.15s;
}

.section-visible .cta-title-line:nth-child(2) span {
    transform: translateY(0);
    transition-delay: 0.35s;
}

.cta-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 1.8vw, 1.35rem);
    color: var(--teal-darkest);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.55s;
}

.section-visible .cta-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.15rem 2.75rem;
    background: transparent;
    border: 2px solid var(--charcoal);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, 
                background 0.3s var(--ease-out), color 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out);
}

.section-visible .cta-button {
    opacity: 1;
    transform: translateY(0);
}

.cta-button:hover {
    background: var(--charcoal);
    color: var(--teal-lightest);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .story-section-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* IMAGE ON TOP FOR MOBILE */
    .story-image-side {
        min-height: 350px;
        order: -1; /* Move image to top */
    }

    .story-text-side {
        order: 1; /* Text below */
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .partners-section {
        padding: clamp(4rem, 8vh, 6rem) 0;
    }

    .partners-title {
        margin-bottom: 3rem;
    }

    .partners-track {
        gap: 3rem;
        animation: scroll-partners 25s linear infinite;
    }

    .about-story-section {
        padding: clamp(4rem, 8vh, 6rem) 2rem;
    }

    .story-text-side {
        gap: 2rem;
    }

    .story-paragraph {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

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

    .story-image-side {
        min-height: 300px;
    }

    .about-cta {
        min-height: 70vh;
        padding: 5rem 2rem;
    }

    .cta-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 2rem;
    }

    .cta-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .cta-button {
        padding: 1rem 2.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: 3rem 0;
    }

    .partners-track {
        gap: 2.5rem;
        animation: scroll-partners 20s linear infinite;
    }

    .about-story-section {
        padding: 3rem 1.5rem;
    }

    .story-image-side {
        min-height: 250px;
    }

    .about-cta {
        padding: 4rem 1.5rem;
    }
}
/* ========================================
   RESPONSIVE STYLES
   ======================================== */
   @media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image-story-section {
        height: 350vh;
    }

    .story-text-overlay {
        padding: clamp(2rem, 4vw, 4rem);
    }

    .partners-title {
        margin-bottom: 2.5rem;
    }

    .values-container {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .about-hero-section {
        min-height: 30vh;
        padding-top: 6rem;
        padding-bottom: 0.5rem;
    }

    .about-title-container {
        top: 6rem;
    }

    .about-hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-hero-image-wrapper {
        height: 50vh;
    }

    .about-image-story-section {
        height: 300vh;
    }

    .story-text-overlay {
        padding: 2rem;
    }

    .story-statement {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 2rem;
    }

    .story-description {
        font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    }

    .partners-section {
        padding: clamp(3rem, 6vh, 4rem) 0;
    }

    .partners-title {
        margin-bottom: 2rem;
    }

    .partners-track {
        gap: 4rem;
    }

    .team-card {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        min-height: 25vh;
        padding-top: 5rem;
        padding-bottom: 0.5rem;
    }

    .about-title-container {
        top: 5rem;
    }

    .about-image-story-section {
        height: 250vh;
    }

    .story-text-overlay {
        padding: 1.5rem;
    }

    .story-statement {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        margin-bottom: 1.5rem;
    }

    .story-description {
        font-size: clamp(1.125rem, 3.5vw, 1.5rem);
    }

    .partners-section {
        padding: 2rem 0;
    }

    .partners-title {
        margin-bottom: 1.5rem;
    }


    .partners-track {
        gap: 3rem;
    }

    .about-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .values-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .values-big-title {
        font-size: clamp(2rem, 11vw, 5rem);
    }

    .value-name {
        font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    }

    .value-hover-icon {
        width: 60px;
        height: 60px;
    }

    .value-hover-icon svg {
        width: 30px;
        height: 30px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }


    .team-card {
        height: 450px;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        min-height: 20vh;
        padding-top: 4rem;
        padding-bottom: 0.5rem;
    }

    .about-title-container {
        top: 4rem;
    }

    .about-hero-image-wrapper {
        height: 40vh;
    }

    .about-story {
        padding: 2.5rem 1.5rem;
    }

    .story-image-1 {
        top: 3.5rem;
    }

    .story-image-2 {
        bottom: 3.5rem;
    }

    .about-values {
        padding: 5rem 1.5rem;
        padding-bottom: 6rem;
    }

    .about-team {
        padding: 5rem 1.5rem;
    }

    .value-item {
        padding: 1.5rem 0;
    }

    .about-team {
        padding-top: 10rem;
        padding-bottom: 5rem;
    }

    .team-header {
        margin-bottom: 8rem;
    }
}





/* ========================================
   CDR PAGE - FINAL CLEAN DESIGN
   Matching Coralia's aesthetic
   ======================================== */
/* Hero Section - Centered */
.cdr-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    padding-top: 4rem;
    padding-bottom: 1rem;
    padding-left: 6rem;
    padding-right: 6rem;
    }
    .cdr-hero-container {
    text-align: center;
    max-width: 1200px;
    }

   /* ========================================
   CDR PAGE HERO LINE-BY-LINE ANIMATIONS
   ======================================== */

/* Hero section styling */
.cdr-hero-container .cdr-label,
.cdr-hero-container .cdr-subtitle,
.cdr-hero-container .cdr-title-line {
    opacity: 0;
    transform: translateY(30px);
}

/* Each title line should display as block for line-by-line appearance */
.cdr-title-line {
    display: block;
}

/* Animation keyframes */
@keyframes cdrLineIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Triggered when hero-animate class is added */
.cdr-hero-container.hero-animate .cdr-label {
    animation: cdrLineIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.1s;
}

.cdr-hero-container.hero-animate .cdr-title-line {
    animation: cdrLineIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Line-specific delays set via inline style --line-delay */
.cdr-hero-container.hero-animate .cdr-title-line {
    animation-delay: var(--line-delay, 0.3s);
}

.cdr-hero-container.hero-animate .cdr-subtitle {
    animation: cdrLineIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.9s;
}

/* Smooth reset for re-triggering */
.cdr-hero-container {
    will-change: opacity, transform;
}
    .cdr-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--teal-darkest);
    text-transform: uppercase;
    margin-bottom: 2rem;
    }
    .cdr-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--teal-light);
    margin-bottom: 2.8rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    }

    .cdr-subtitle {
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    font-weight: 400;
    color: var(--teal-darkest);
    line-height: 1.6;
    }


    .cdr-what {
    padding: 10rem 6rem;
    min-height: 100vh;
    background-image: url('images/CDRHERO.avif');
    background-size: cover;
    background-position: center bottom; /* Start at bottom */
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.cdr-what::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

    .cdr-section-container {
        max-width: 1600px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: clamp(2rem, 20vw, 40rem);
        align-items: center;
        position: relative;
        z-index: 2;
    }


    .cdr-heading {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4.5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin-bottom: 2rem;
    }

    .cdr-text-large {
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    line-height: 1.75;
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-weight: 400;
    }
    .cdr-text-body {
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    line-height: 1.75;
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-weight: 400;
    }

    
    /* Cute Rounded Stat Cards with Icons */
    .cdr-stats-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
    }


    .cdr-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    background: black;
    border-radius: 16px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    }


    .stat-icon-wrap {
    flex-shrink: 0;
    }
    .stat-icon {
    width: 28px;
    height: 28px;
    stroke: var(--cream);
    }
    .stat-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    white-space: nowrap;
    }
    .stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--teal-lightest);
    line-height: 1;
    }
    .stat-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--cream-dark);
    font-weight: 400;
    }


    /* Why Different Section */
    .cdr-why {
    padding: 10rem 2rem;
    background: var(--cream);
    }
    .cdr-centered-container {
    max-width: 1400px;
    margin: 0 auto;
    }
    .cdr-heading-center {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--teal-darkest);
    text-align: center;
    align-items: center;
    margin-bottom: 5rem;
    }
    .cdr-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.8rem;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    }
    .cdr-clean-card {
    padding-top: 2.25rem;
    padding-left: 2.24rem;
    padding-right: 2.4rem;
    padding-bottom: 2rem;
    background: var(--teal-lightest);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .cdr-clean-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    }
    .card-icon-wrap {
    margin-bottom: 1.5rem;
    }
    .card-icon {
    width: 40px;
    height: 40px;
    stroke: var(--teal-darkest);
    }
    .card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    padding-top: 2rem;
    }


    .card-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--teal-darkest);
    font-weight: 400;
    }


    /* Trusted By Section */
    .cdr-trusted {
    padding: 10rem 2rem;
    background: var(--white);
    text-align: center;
    }

    .cdr-heading-center{
    color: var(--charcoal);
    }


    .trusted-eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 1rem;
    }
    .trusted-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    margin-top: 6%;
    }
    
    .logo-item {
        font-family: var(--font-display);
        font-weight: 600;
        padding: 1.3rem 2.5rem;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 220px;
        height: 100px;
    }
    .logo-item img {
        max-height: 100px;
        max-width: 220px;
        width: auto;
        height: auto;
        object-fit: contain;
    }


    /* Data Centres Split Section - Image Left, Text Right */
    .cdr-datacentres {
    background: var(--cream);
    }
    .cdr-split-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    }
    .split-image {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.2s ease;
    }

    .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    background-position: center bottom;
    }
    .image-overlay-label {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    }
    .overlay-location {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--cream);
    text-transform: uppercase;
    }
    .overlay-detail {
    font-size: 0.9375rem;
    color: var(--white);
    font-weight: 400;
    }
    .split-content {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    }
    .content-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 1.5rem;
    }
    .split-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    }
    .split-description {
    font-size: clamp(0.8rem, 1vw, 1.0625rem);
    line-height: 1.75;
    color: var(--teal-darkest);
    margin-bottom: 4rem;
    font-weight: 400;

    }
    .split-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    }
    .split-stat {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    }
    .split-stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--teal-dark);
    line-height: 1;
    }
    .split-stat-label {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray);
    font-weight: 400;
    }

    
    /* Final CTA */
    .cdr-cta {
    padding: 10rem 2rem;
    background: var(--charcoal);
    text-align: center;
    }
    .cdr-cta-container {
    max-width: 1000px;
    margin: 0 auto;
    }
    .cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 1.75rem;
    line-height: 1.2;
    }
    .cta-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--cream);
    margin-bottom: 2.5rem;
    font-weight: 400;
    }
    .cta-features-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    }
    .cta-features-row span {
    font-size: 0.875rem;
    color: var(--cream);
    font-weight: 400;
    }
    .cta-features-row .dot {
    color: var(--teal-light);
    }
    .cdr-cta-button {
        display: inline-block;
    padding: 1.125rem 3.5rem;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 50px; /* Full pill shape */
    transition: all 0.3s ease;
    margin-bottom: 3.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    }
    
    .cdr-cta-button:hover {
        background: var(--white);
    color: var(--charcoal);
    transform: translateY(-2px);
    }


    .cta-stats-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    }
    .cta-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    }
    .cta-stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--teal-light);
    line-height: 1;
    }
    .cta-stat-label {
    font-size: 0.8125rem;
    color: var(--cream);
    font-weight: 400;
    }
    .cta-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    }
    /* Custom bar height CSS variables */
    .chart-bar-item[data-height="5%"] .bar-fill {
    --bar-height: 5%;
    }
    .chart-bar-item[data-height="28%"] .bar-fill {
    --bar-height: 28%;
    }
    .chart-bar-item[data-height="49%"] .bar-fill {
    --bar-height: 49%;
    }
    .chart-bar-item[data-height="100%"] .bar-fill {
    --bar-height: 100%;
    }
    
    /* Responsive Design */
@media (max-width: 1200px) {
    .cdr-section-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .cdr-split-container {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }
    
    .split-image {
        min-height: 50vh;
    }
    
    .cdr-stats-column {
        width: 100%;
    }
    
    .cdr-stat-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Section Padding Adjustments */
    .cdr-hero {
        min-height: 80vh;
        padding: 6rem 1.5rem 4rem;
    }
    
    .cdr-what,
    .cdr-why,
    .cdr-trusted,
    .cdr-datacentres,
    .cdr-cta {
        padding: 6rem 1.5rem;
    }
    
    .cdr-what {
  min-height: 100vh;
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
  padding: 0 6rem;          /* REMOVE vertical padding */
  background-image: url('images/CDRHERO.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

    
    /* Hero Section */
    .cdr-label {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .cdr-cta-button {
        padding: 1rem 3rem;
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
    
    .cdr-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2rem;
    }
    
    .cdr-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
    }
    
    /* What is CDR Section */
    .cdr-section-container {
        gap: 3rem;
    }
    
    .cdr-heading {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    
    .cdr-text-large,
    .cdr-text-body {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    /* Stat Cards */
    .cdr-stats-column {
        gap: 0.75rem;
    }
    
    .cdr-stat-card {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .stat-icon {
        width: 24px;
        height: 24px;
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    .stat-desc {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Why Different Section - ICON LEFT, TEXT STACKED RIGHT */
    .cdr-why {
        padding: 4rem 1.5rem;
    }
    
    .cdr-heading-center {
        font-size: clamp(1.75rem, 6vw, 3rem);
        margin-bottom: 2rem;
    }
    
    .cdr-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cdr-clean-card {
        padding: 1.25rem;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .card-icon-wrap {
        margin-bottom: 0;
        flex-shrink: 0;
        padding-top: 0.25rem; /* Align icon with first line of text */
    }
    
    .card-icon {
        width: 28px;
        height: 28px;
    }
    
    .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .card-title {
        font-size: 0.9375rem;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    
    /* Trusted By Section - HORIZONTAL LOGOS */
    .cdr-trusted {
        padding: 4rem 1.5rem;
    }
    
    .trusted-logos-row {
        flex-direction: row;
        gap: 1rem;
        margin-top: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-item {
        font-size: 0.9375rem;
        padding: 1rem 1rem;
        flex: 1;
        min-width: 100px;
        max-width: 45%; /* Keeps them side by side */
    }
    .logo-item img {
        max-height: 70px;
        max-width: 100px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Split Section */
    .split-content {
        padding: 3rem 1.5rem;
    }
    
    .split-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.25rem;
    }
    
    .split-description {
        font-size: 0.9375rem;
        margin-bottom: 2.5rem;
    }
    
    .split-stats {
        gap: 1.5rem;
    }
    
    .split-stat-number {
        font-size: 1.75rem;
    }
    
    .split-stat-label {
        font-size: 0.8125rem;
    }
    
    .image-overlay-label {
        bottom: 1.5rem;
        left: 1.5rem;
    }
    
    .overlay-location {
        font-size: 0.75rem;
    }
    
    .overlay-detail {
        font-size: 0.875rem;
    }
    
    /* CTA Section - HORIZONTAL STATS */
    .cdr-cta {
        padding: 4rem 1.5rem;
    }
    
    .cta-title {
        font-size: clamp(1.75rem, 6vw, 3rem);
        margin-bottom: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-features-row {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-features-row span {
        font-size: 0.8125rem;
    }
    
    .cta-button {
        padding: 0.875rem 2.5rem;
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
    
    .cta-stats-wrap {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .cta-stat-item {
        gap: 0.375rem;
        flex: 1;
        min-width: 70px;
    }
    
    .cta-stat-num {
        font-size: 1.35rem;
    }
    
    .cta-stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .cta-stat-divider {
        width: 1px;
        height: 35px;
        flex-shrink: 0;
    }
}

@media (max-width: 550px) {
    .logo-item {
        padding: 1rem 0.5rem;
    }
    
}

@media (max-width: 480px) {
    /* Extra small screens */
    .cdr-hero {
        padding: 5rem 1rem 3rem;
    }
    
    .cdr-what,
    .cdr-why,
    .cdr-trusted,
    .cdr-cta {
        padding: 4rem 1rem;
    }
    
    .cdr-title {
        font-size: 1.875rem;
    }
    
    .cdr-heading {
        font-size: 1.75rem;
    }
    
    .cdr-clean-card {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .card-icon {
        width: 24px;
        height: 24px;
    }
    
    .card-title {
        font-size: 0.875rem;
    }
    
    .card-text {
        font-size: 0.75rem;
    }
    
    .split-content {
        padding: 2.5rem 1.25rem;
    }
    
    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
    }
    
    .logo-item {
        font-size: 0.875rem;
        padding: 0.875rem 1rem;
        min-width: 90px;
        max-width: 48%;
    }
    
    .cta-stat-num {
        font-size: 1.15rem;
    }
    
    .cta-stat-label {
        font-size: 0.6rem;
    }
    
    .cta-stat-divider {
        height: 30px;
    }

    .cdr-cta-button {
        padding: 0.875rem 2.5rem;
        font-size: 0.875rem;
    }
}


    /* Animation Utilities */
    .section-transition {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .section-visible {
    opacity: 1;
    transform: translateY(0);
    }

    /* Image fade-in animation */
.split-image {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.split-image.image-visible {
    opacity: 1;
}

.split-image img {
    transition: transform 0.1s ease-out;
}

/* Mobile - disable parallax */
@media (max-width: 768px) {
    .cdr-what {
        background-attachment: scroll;
    }
    
    .split-image img {
        transform: none !important;
    }
}

/* ========================================
   CDR PAGE TEXT ANIMATIONS
   ======================================== */

/* Text animations */
.cdr-heading,
.cdr-heading-center,
.cdr-text-large,
.cdr-text-body,
.cta-title,
.cta-description,
.split-title,
.split-description,
.cdr-title,
.cdr-subtitle,
.cdr-label,
.trusted-eyebrow {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.text-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card animations */
.cdr-clean-card,
.cdr-stat-card,
.logo-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button animation */
.cdr-cta-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.button-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats animation */
.cta-stats-wrap,
.split-stats {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.stats-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Disable on very small screens for performance */
@media (max-width: 480px) {
    .cdr-heading,
    .cdr-heading-center,
    .cdr-text-large,
    .cdr-text-body,
    .cta-title,
    .cta-description,
    .split-title,
    .split-description,
    .cdr-title,
    .cdr-subtitle,
    .cdr-label,
    .trusted-eyebrow,
    .cdr-clean-card,
    .cdr-stat-card,
    .logo-item,
    .cdr-cta-button,
    .cta-stats-wrap,
    .split-stats {
        opacity: 1;
        transform: none;
    }
}


/* ========================================
   CDR ANIMATIONS UPGRADE (retrigger + stagger)
   ======================================== */

/* HERO: line-by-line reveal */
#page-cdr .cdr-hero-container .cdr-label,
#page-cdr .cdr-hero-container .cdr-subtitle,
#page-cdr .cdr-hero-container .cdr-title-line {
  opacity: 0;
  transform: translateY(18px);
}

/* When we trigger hero animation */
#page-cdr .cdr-hero-container.hero-animate .cdr-label {
  animation: cdrLineIn 0.75s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.05s;
}

#page-cdr .cdr-hero-container.hero-animate .cdr-title-line {
  animation: cdrLineIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* the JS sets per-line delays using --line-delay */
#page-cdr .cdr-hero-container.hero-animate .cdr-title-line {
  animation-delay: var(--line-delay, 0.15s);
}

#page-cdr .cdr-hero-container.hero-animate .cdr-subtitle {
  animation: cdrLineIn 0.75s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.55s;
}

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

/* SCROLL: let things reset so they can re-animate */
#page-cdr .text-visible,
#page-cdr .card-visible,
#page-cdr .image-visible,
#page-cdr .button-visible,
#page-cdr .stats-visible {
  will-change: opacity, transform;
}

/* STAGGER (cards/logos/stats) – delay is set via JS inline style */
#page-cdr .cdr-clean-card,
#page-cdr .cdr-stat-card,
#page-cdr .logo-item {
  transition-delay: var(--stagger, 0ms);
}
