/* ==========================================================================
   CASHEW SHELLING MACHINE - MAIN DESIGN SYSTEM & STYLESHEET
   ==========================================================================
   TABLE OF CONTENTS:
   01. FONTS & GLOBAL TYPOGRAPHY
   02. NAVIGATION & FLOATING CONTROLS (FABs)
   03. TABLE OF CONTENTS DRAWER & ACCORDION
   04. HERO SECTION (VIDEO & CASHEW MASK)
   05. PROJECT OVERVIEW META SECTION
   06. PROTOTYPE CAROUSEL SECTION
   07. FRUIT-TO-BOWL SCROLL IMAGE SEQUENCE & HITBOXES
   08. CNSL COMPOSITION & DONUT CHART SECTION
   09. CNSL EXPOSURE & SKIN DAMAGE SIMULATOR SECTION
   10. RESPONSIVE BREAKPOINTS & PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* ==========================================================================
   01. FONTS & GLOBAL TYPOGRAPHY
   ========================================================================== */
@font-face {
    font-family: 'Cashew Blue';
    src: url('./assets/Fonts/Blue_Cashews 400.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff !important;
}

/* Cashew Shelling Hero Section */
.hero-section {
    --cashew-red: #911315;
    --cashew-yellow: #FFCC00;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* The Masking Trick: Sharp outer edges, rounded transparent inner window */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 32px; /* Defines the thickness of the border */
    border-radius: 20px; /* Rounds the inner transparent window */
    box-shadow: 0 0 0 100vw var(--cashew-red); /* Floods the outside with solid red */
    border: none; 
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    position: relative;
    z-index: 5;
    font-family: 'Cashew Blue', serif;
    color: var(--cashew-yellow); 
    font-size: 4rem; /* Reverted back to original size */
    line-height: 1.1;
    margin: 0 0 80px 80px; /* Increased margin */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* Floating Action Buttons */
.nav-fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nav-bg, rgba(25, 25, 25, 0.6));
    border: 1px solid var(--nav-border, rgba(255, 255, 255, 0.1));
    color: var(--text-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    position: fixed;
    z-index: 1000;
    text-decoration: none;
    cursor: none;
    padding: 0;
}

.nav-fab:hover {
    transform: scale(1.1);
}

#toc-toggle {
    top: 30px;
    left: 30px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

#toc-toggle.drawer-open {
    background: rgba(25, 25, 25, 0.7);
    color: #ffffff;
    transform: translateX(490px);
}

#toc-toggle.drawer-open:hover {
    transform: translateX(490px) scale(1.1);
}

#home-up-btn {
    top: 30px;
    right: 30px;
}

#scroll-down-btn {
    bottom: 30px;
    right: 30px;
}

#fast-forward-btn {
    bottom: 30px;
    right: 30px;
    background: rgba(25, 25, 25, 0.7);
    color: #ffffff;
}

#fast-forward-btn span {
    display: inline-block;
    transition: transform 0.2s ease;
}

#fast-forward-btn:hover span {
    transform: scale(1.1);
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Drawer & ToC --- */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 100vh;
    background-color: rgba(68, 68, 68, 0.95);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    font-family: 'Poppins', sans-serif;
    z-index: 999;
    
    /* Hardware-accelerated sliding */
    transform: translateX(-100%); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    will-change: transform;
    box-sizing: border-box;
}

.drawer.open {
    transform: translateX(0); 
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
}

/* --- Redesigned Drawer Inner Content --- */
.drawer-content-wrapper {
    box-sizing: border-box;
    padding: 24px 12px 12px 12px;
    height: 100%;
    overflow-y: scroll; /* Forces scrollbar track to stay visible, preventing jumps */
    display: flex;
    flex-direction: column;
    gap: 16px;
    overscroll-behavior: contain; /* Traps the scroll inside the panel */
}

/* Accordion Sections */
.panel-section {
    background-color: #222222;
    border-radius: 12px;
    padding: 24px; /* Perfectly equal on all sides */
    color: var(--text-white);
    box-sizing: border-box;
}

.panel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.panel-section-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.chevron {
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 8px; /* Gives the background circle room to breathe */
    border-radius: 50%; /* Makes the hover background a perfect circle */
}

/* New Hover Rule: Applies the pill-match background when hovering over the header */
.panel-section-header:hover .chevron {
    background-color: #444444; 
}

/* Buttery smooth CSS Grid Accordion */
.panel-section-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
    opacity: 0;
}

/* The inner wrapper is required for Grid animation to work */
.panel-section-content > div {
    overflow: hidden;
}

.panel-section.expanded .panel-section-content {
    grid-template-rows: 1fr;
    margin-top: 16px;
    opacity: 1;
}

.panel-section.expanded .chevron {
    transform: rotate(180deg);
}

/* Content Typography */
.panel-section-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400; 
}

.details-list strong {
    font-weight: 600; 
}

/* --- Hardcoded TOC List Styling --- */
#toc-list {
    margin-top: 0;
    gap: 8px; 
    list-style: none; /* Removes default ol numbering */
    padding: 0;
    display: flex;
    flex-direction: column;
}

#toc-list a {
    display: flex; 
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    width: 100%;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
    text-decoration: none;
    color: var(--text-white);
    box-sizing: border-box;
}

#toc-list a:hover {
    background-color: #424242;
    font-weight: 500;
    color: #FFFFFF; /* Replaces the blue with crisp white */
    opacity: 1;
}

.toc-num {
    width: 36px; /* Fixed width ensures the text labels align perfectly vertically */
    font-weight: 500;
    opacity: 0.6;
    flex-shrink: 0;
}

/* --- Toggle Button Glow & Attention Ring Animations --- */
@keyframes glow-left-panel {
    0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 255, 255, 0.6); }
    100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
}

.glow-active {
    animation: glow-left-panel 2s infinite;
}

@keyframes attentionRingZoom {
    0% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
        border-width: 1px;
    }
    15% {
        opacity: 1;
        border-width: 2.5px;
    }
    85% {
        opacity: 1;
        border-width: 2.5px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        border-width: 3.5px;
    }
}

.nav-fab .attention-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 16px #ffffff, inset 0 0 16px #ffffff;
    mix-blend-mode: difference;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 10;
}

.nav-fab .attention-ring.animate-ring {
    animation: attentionRingZoom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Panel Title */
#toc-drawer h2.panel-main-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 16px 0;
    padding: 0 8px; 
    line-height: 1.3;
}

/* Custom Sleek Scrollbar for the Drawer */
.drawer-content-wrapper::-webkit-scrollbar {
    width: 8px; /* Slimmer, modern scrollbar */
}

.drawer-content-wrapper::-webkit-scrollbar-track {
    background: transparent; /* Hides the chunky default track */
}

.drawer-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.drawer-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

:root {
    --bg-color: #222222;
    --text-white: #ffffff;
    --accent-blue: #0066FF;
    --font-size-body: clamp(16px, 1.5vw, 24px);
    --font-size-h1: clamp(40px, 5vw, 87px);
    --container-max: 1920px;
    --section-padding: clamp(3rem, 5vw, 6rem);
    --text-grey: #C4C4C4;
    --lh-body: 1.6;
    --lh-heading: 1.2;
}

.project-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.project-section,
.final-showcase-section,
.scroll-sequence-wrapper {
    margin-top: 0;
    margin-bottom: 24px;
}

.overview-section {
    padding: var(--section-padding) 10%;
}

.meta-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.team-avatars {
    display: flex;
    gap: 16px;
}

.team-avatars img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid;
}

.team-avatars img:nth-child(1) { border-color: #00C853; }
.team-avatars img:nth-child(2) { border-color: #FFD600; }
.team-avatars img:nth-child(3) { border-color: #2962FF; }
.team-avatars img:nth-child(4) { border-color: #D50000; }

.details-block {
    display: flex;
    gap: 40px;
}

.detail-col.border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 40px;
}

.meta-label {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 12px;
}

/* --- Cashew Overview: Typography & Layout Fixes --- */

#hero.hero-section {
    margin-bottom: 0 !important;
}

/* --- Gap Fix & Padding Balance --- */
#project-overview.cashew-overview {
    background-color: #ffffff;
    padding: 3rem 10% 1.5rem 10%; /* Halved bottom padding */
    margin: 0;
}

/* Pure black labels with increased weight, negating the inherited 0.7 opacity */
.cashew-overview .meta-label {
    color: #000000;
    opacity: 1; 
    font-size: 14px;
    font-weight: 500; 
    margin-bottom: 12px;
}

/* Red project values with explicitly increased weight to match dark theme optics */
.cashew-overview .meta-value {
    color: #911315;
    font-size: 16px; 
    font-weight: 600; 
    margin: 0;
}

/* Pure black vertical separator lines */
.cashew-overview .detail-col.border-left {
    border-left: 1px solid #000000; 
    padding-left: 40px;
}

/* Avatar Group Layout */
.cashew-overview .team-avatars {
    display: flex;
    align-items: center;
    gap: 0; 
}

.cashew-overview .avatar-wrapper {
    position: relative;
    margin-left: -16px;
    transition: transform 0.2s ease, z-index 0.2s ease;
}

.cashew-overview .avatar-wrapper:first-child {
    margin-left: 0; 
}

/* Avatar Base & Cutout */
.cashew-overview .avatar-wrapper img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 2px solid #ffffff; 
}

/* Specific Red Ring & Gap ONLY for Rishi in Cashew Project */
.cashew-overview .team-avatars .avatar-wrapper:nth-child(1) img { 
    box-sizing: border-box;
    background-color: #ffffff; /* Ensures the inner gap matches the section background */
    padding: 2px; /* Creates the inner white gap */
    border: 3px solid #911315; /* The Cashew theme red ring */
    box-shadow: 0 0 0 2px #ffffff; /* The outer white cutout separator */
}

/* Deterministic Stacking Order */
.cashew-overview .avatar-wrapper:nth-child(1) { z-index: 4; }
.cashew-overview .avatar-wrapper:nth-child(2) { z-index: 3; }
.cashew-overview .avatar-wrapper:nth-child(3) { z-index: 2; }
.cashew-overview .avatar-wrapper:nth-child(4) { z-index: 1; }

/* Tooltip Styles */
.cashew-overview .avatar-wrapper::after {
    content: attr(data-name);
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #222222;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

/* Hover States */
.cashew-overview .avatar-wrapper:hover {
    z-index: 10;
    transform: translateY(-4px);
}

.cashew-overview .avatar-wrapper:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Cashew Prototype Carousel (Edge to Edge) --- */
#prototype-carousel.carousel-section {
    background-color: #ffffff;
    padding: 1.5rem 0 3rem 0; /* Extends to left and right edges */
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.carousel-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Roughly 75% / 25% split */
    gap: 16px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    align-items: stretch;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Shows 100% of the 16:9 render without any cropping */
    border-radius: 8px;
    overflow: hidden;
    background-color: #e0e0e0; /* Placeholder during fades */
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

/* 2px White Progress Bar at the extreme bottom edge */
.carousel-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
    overflow: hidden;
    pointer-events: none;
}

.carousel-progress-bar {
    width: 0%;
    height: 100%;
    background: #911315;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: width 0.05s linear;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.thumb-container {
    flex: 1;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

/* The CSS Striped Pattern */
.pattern-block {
    flex: 1;
    min-height: 0;
    border-radius: 8px;
    background: repeating-linear-gradient(
        -45deg,
        #911315,
        #911315 12px,
        #ffffff 12px,
        #ffffff 24px
    );
}

/* --- Sliding Carousel Mechanics --- */
.sliding-box {
    position: relative;
    overflow: hidden;
}

.sliding-box img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    /* Elegant Ease-in-out curve for the slide */
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Instantly kills the transition so the reset snap-back is invisible */
.sliding-box.resetting img {
    transition: none !important;
}

/* Box 1: Left to Right Slide */
.box-lr .img-current { left: 0; top: 0; }
.box-lr .img-next { left: -100%; top: 0; }
.box-lr.animating .img-current { transform: translateX(100%); }
.box-lr.animating .img-next { transform: translateX(100%); }

/* Box 2: Right to Left Slide */
.box-rl .img-current { left: 0; top: 0; }
.box-rl .img-next { left: 100%; top: 0; }
.box-rl.animating .img-current { transform: translateX(-100%); }
.box-rl.animating .img-next { transform: translateX(-100%); }

/* Box 3: Bottom to Top Slide */
.box-bt .img-current { left: 0; top: 0; }
.box-bt .img-next { left: 0; top: 100%; }
.box-bt.animating .img-current { transform: translateY(-100%); }
.box-bt.animating .img-next { transform: translateY(-100%); }

/* Pause/Play Button Styling */
.carousel-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none; 
    z-index: 20;
    backdrop-filter: blur(8px);
    transition: opacity 0.4s ease-in-out;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.carousel-btn span {
    color: #ffffff;
    font-size: 32px;
    pointer-events: none;
}

/* Rename the hide class to avoid global collision */
.carousel-btn.hide-btn,
.carousel-btn.ai-info-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.95); 
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .carousel-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .side-panel {
        flex-direction: row;
        height: 200px; /* Fixed height for thumb row on mobile */
    }
}

/* --- Scroll Image Sequence --- */
#fruit-sequence-section {
    position: relative;
    width: 100%;
    /* 120 frames / 2 frames per scroll = 60 scrolls. 60 * 100px = 6000px scrolling range */
    height: calc(100vh + 6000px);
    background-color: transparent;
}

.sequence-sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sequence-text {
    position: absolute;
    font-size: 134px;
    line-height: 120px;
    letter-spacing: -0.05em; /* -5% */
    color: #000000;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, font-weight 0.1s ease, letter-spacing 0.1s ease;
    pointer-events: none;
}

.sequence-text.visible {
    opacity: 1;
}

#seq-text-1 {
    top: calc(50% - 160px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#seq-text-2 {
    top: 15%;
    left: 10%;
    text-align: left;
    z-index: 10;
}

#seq-text-3 {
    bottom: 15%;
    right: 10%;
    text-align: right;
    z-index: 10;
}

#seq-text-4 {
    top: 15%;
    left: 10%;
    line-height: 130px;
    text-align: left;
    z-index: 10;
}

#seq-text-5 {
    bottom: 15%;
    right: 10%;
    text-align: right;
    z-index: 10;
}

#seq-text-6 {
    top: 60%;
    /* left: 50%; */
    transform: translate(-20%, -50%);
    /* left: ; */
    /* transform: ; */
    z-index: -1;
}

#seq-text-7 {
    /* Position properties left open, but applying the requested transform */
    top: 40%;
    left: 50%;
    transform: translate(50%, -50%);
    z-index: -1;
}

#seq-text-8 {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

#seq-text-9 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 64px;
    font-weight: 600;
    color: #911315;
    z-index: 10;
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), font-size 0.25s ease, font-weight 0.25s ease, color 0.25s ease, opacity 0.3s ease;
    white-space: nowrap;
}

#seq-text-9.hovered-piece {
    font-size: 42px;
    font-weight: 600;
    color: #000000;
}

/* Interactive Frame 120 */
#interactive-frame-120 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Perfectly mirrors the canvas object-fit: contain behavior for a 16:9 image */
    width: 100%;
    max-width: calc(100vh * (16/9));
    height: 100%;
    max-height: calc(100vw * (9/16));
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20; 
}

#interactive-frame-120.active {
    opacity: 1;
    pointer-events: auto;
}

.cashew-hitbox {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    background: transparent;
    transform: translate(-50%, -50%); /* Centers the hitbox on its top/left coordinate */
}

.cashew-hitbox:hover {
    z-index: 10;
}

/* Hitbox coordinates and sizes (adjust as needed to perfectly mask the canvas image) */
#hitbox-os-l { width: 6%; height: 35%; left: 10%; top: 55%; }
#hitbox-cnsl-l { width: 10%; height: 21%; left: 20%; top: 48%; }
#hitbox-skin-l { width: 8%; height: 27%; left: 40%; top: 50%; }
#hitbox-kernel { width: 8%; height: 30%; left: 55%; top: 50%; }
#hitbox-skin-r { width: 10%; height: 27%; left: 66%; top: 50%; }
#hitbox-cnsl-r { width: 10%; height: 10%; left: 80%; top: 55%; }
#hitbox-os-r { width: 13%; height: 35%; left: 90%; top: 50%; }

/* ==========================================================================
   CNSL (Cashew Nut Shell Liquid) Section Styling
   ========================================================================== */

.cnsl-section {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* 1. Top Infinite Left-to-Right Marquee Ticker */
.cnsl-ticker-wrapper {
    width: 100%;
    background-color: #911315;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    padding: 16px 0;
    user-select: none;
    box-sizing: border-box;
    display: flex;
}

.cnsl-ticker-track {
    display: flex;
    width: max-content;
    animation: marquee-ltr 30s linear infinite;
    will-change: transform;
}

.cnsl-ticker-track:hover {
    animation-play-state: paused;
}

.cnsl-ticker-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.ticker-bullet {
    color: #FFCC00;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

/* Infinite Left-to-Right Animation: Translating from -50% to 0% */
@keyframes marquee-ltr {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* 2. Main Content Grid Layout */
.cnsl-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(1.5rem, 3.5vw, 3rem) 10% 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

/* Left Column: Heading */
.cnsl-title-col {
    flex: 1;
    max-width: 500px;
}

.cnsl-heading {
    font-size: clamp(48px, 6vw, 84px);
    line-height: 1.0;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: #000000;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Right Column: Chart + Stats Wrapper */
.cnsl-chart-col {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 48px;
    position: relative;
}

/* Stats Callouts - Left Aligned to match Figma */
.cnsl-stats-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
}

.cnsl-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cnsl-stat-item .stat-number {
    font-size: clamp(44px, 4.5vw, 67.5px);
    line-height: 100%;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-family: 'Poppins', sans-serif;
}

.stat-80 .stat-number {
    color: #4D0304; /* Figma Dark Maroon */
}

.stat-15 .stat-number {
    color: #911315; /* Figma Dark Red */
}

.stat-5 .stat-number {
    color: #DD0306; /* Figma Bright Red */
}

.cnsl-stat-item .stat-label {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin-top: 4px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Chart Visual - Exact 360px Figma Frame */
.cnsl-chart-visual {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cnsl-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    overflow: visible;
}

/* Inner White Center Disc */
.donut-center-white {
    fill: #FFFFFF;
}

/* Concentric Yellow Accent Ring (16px stroke - Complete Closed Ring) */
.donut-inner-yellow {
    fill: none;
    stroke: #FFCC00;
    stroke-width: 16;
    transform-origin: 180px 180px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.cnsl-section.in-view .donut-inner-yellow {
    opacity: 1;
}

/* Outer Donut Slices (Radius 137.75, Thickness 48.5, Circumference 865.51) */
.donut-slice {
    fill: none;
    stroke-width: 48.5;
    transform-origin: 180px 180px;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 80% Slice (Circumference 865.51, arc 692.41, starts at 162deg sweeps 288deg to 90deg) */
.slice-80 {
    stroke: #4D0304;
    stroke-dasharray: 692.41 865.51;
    stroke-dashoffset: 692.41;
    transform: rotate(162deg);
}

.cnsl-section.in-view .slice-80 {
    stroke-dashoffset: 0;
}

/* 15% Slice (Circumference 865.51, arc 129.83, starts at 108deg sweeps 54deg to 162deg) */
.slice-15 {
    stroke: #911315;
    stroke-dasharray: 129.83 865.51;
    stroke-dashoffset: 129.83;
    transform: rotate(108deg);
    transition-delay: 0.2s;
}

.cnsl-section.in-view .slice-15 {
    stroke-dashoffset: 0;
}

/* 5% Slice (Circumference 865.51, arc 43.28, starts at 90deg sweeps 18deg to 108deg) */
.slice-5 {
    stroke: #DD0306;
    stroke-dasharray: 43.28 865.51;
    stroke-dashoffset: 43.28;
    transform: rotate(90deg);
    transition-delay: 0.4s;
}

.cnsl-section.in-view .slice-5 {
    stroke-dashoffset: 0;
}

/* Center CNSL Droplet Housing (195px diameter matching Figma Ellipse 3) */
.cnsl-droplet-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 195px;
    height: 195px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    z-index: 5;
}

.cnsl-section.in-view .cnsl-droplet-center {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.droplet-white-circle {
    position: relative;
    width: 195px;
    height: 195px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.droplet-white-circle video,
.droplet-white-circle img {
    position: absolute;
    width: auto;
    height: 250%;
    max-width: none;
    top: 50%;
    left: 50%;
    transform: translate(-49%, -49%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .cnsl-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 60px;
    }
    .cnsl-chart-col {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .cnsl-chart-col {
        flex-direction: column-reverse;
        align-items: center;
        gap: 36px;
    }
    .cnsl-stats-wrapper {
        text-align: center;
        align-items: center;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
    .cnsl-stat-item {
        align-items: center;
    }
    .cnsl-chart-visual {
        width: 280px;
        height: 280px;
    }
}

/* ==========================================================================
   CNSL Exposure & Skin Damage Simulator Section (Frame 65)
   ========================================================================== */
.cnsl-exposure-section {
    width: 100%;
    min-height: auto;
    background-color: #ffffff;
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

/* Header (Frame 66) */
.exposure-header {
    width: 100%;
    max-width: 1848px;
    padding: 0 clamp(20px, 3vw, 36px);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    margin-bottom: 50px;
    box-sizing: border-box;
}

.exposure-header-line {
    flex: 1;
    height: 4px;
    background-color: #000000;
    border-radius: 2px;
}

.exposure-header-title {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.5;
    letter-spacing: -0.05em;
    color: #000000;
    white-space: nowrap;
    margin: 0;
}

/* Main Container (Frame 65) */
.exposure-container {
    width: 100%;
    max-width: 1848px;
    padding: 0 clamp(20px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    box-sizing: border-box;
}

/* Visuals Row (Frame 62) */
.exposure-visual-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 6vw, 136px);
    min-height: 360px;
}

/* Left: Severity Color Scale Bars (Frame 60) */
.exposure-severity-scale {
    width: 92.7px;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.severity-bar {
    width: 92.7px;
    height: 45px;
    border-radius: 2px;
    background-color: #D9D9D9;
    box-shadow: inset 4px 4px 4px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
    flex-grow: 1;
}

.severity-bar.active[data-level="1"] { background-color: #0DFF00; }
.severity-bar.active[data-level="2"] { background-color: #B3FF00; }
.severity-bar.active[data-level="3"] { background-color: #F7FF00; }
.severity-bar.active[data-level="4"] { background-color: #FFEA00; }
.severity-bar.active[data-level="5"] { background-color: #FF9500; }
.severity-bar.active[data-level="6"] { background-color: #FF0000; }

/* Center: Dual Hands Damage Visualizer (Frame 61) */
.exposure-hands-display {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: clamp(320px, 35vw, 660px);
    height: 360px;
    flex-shrink: 0;
}

.hand-wrapper {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnsl-hand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.05));
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.hand-left {
    transform: scaleX(-1);
}

/* Right: Symptoms Cutout Display (Frame 63 / Frame 64) */
.exposure-symptoms-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: clamp(320px, 32vw, 586px);
    height: 360px;
    flex-shrink: 0;
}

.exposure-symptoms-card {
    width: 100%;
    height: 314px;
    background: #D9D9D9;
    box-shadow: inset 8px 8px 12px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 0 clamp(20px, 3vw, 36px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden; /* Punch-hole mask for swiping text */
    position: relative;
}

.symptoms-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.symptoms-text {
    position: absolute;
    width: 100%;
    font-family: 'Courier Prime', monospace;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1.35;
    font-weight: 500;
    text-align: right;
    letter-spacing: -0.04em;
    color: #000000;
    margin: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.symptoms-label {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.05em;
    color: #000000;
}

/* Bottom: Interactive Slider & Timeline Section (Frame 59 / Frame 58) */
.exposure-slider-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

/* Ruler Track Container (Frame 47) */
.exposure-ruler-wrapper {
    position: relative;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: flex-end;
}

.exposure-ruler-ticks {
    width: 100%;
    height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 45px;
    box-sizing: border-box;
}

.ruler-tick {
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    transition: background-color 0.15s ease, width 0.15s ease, border-radius 0.15s ease;
}

/* Long mark on every 1 hour */
.ruler-tick-full {
    width: 4px;
    height: 66px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 1px;
}

/* Half mark on every 0.5 hour */
.ruler-tick-half {
    width: 4px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 1px;
}

/* 1/4 mark in between */
.ruler-tick-quarter {
    width: 3px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 1px;
}

/* Active Dial Marker: ONLY the single marker directly under the dial turns #911315 */
.ruler-tick.active-tick {
    background-color: #911315;
}

/* Settled Marker when user releases slider: +2px width & rounded pill corners */
.ruler-tick.active-tick.settled {
    background-color: #911315;
    border-radius: 999px;
}

.ruler-tick-full.active-tick.settled,
.ruler-tick-half.active-tick.settled {
    width: 6px;
}

.ruler-tick-quarter.active-tick.settled {
    width: 5px;
}

/* Slider Groove Track & Draggable Knob (Rectangle 21 & Frame 55) */
.exposure-groove-wrapper {
    position: relative;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    touch-action: none;
}

.exposure-groove-track {
    position: relative;
    width: 100%;
    height: 18px;
    background: #D9D9D9;
    box-shadow: inset 4px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 10000px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.exposure-groove-fill {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 6px;
    width: 0px;
    background: #911315;
    border-radius: 999px;
    pointer-events: none;
    transition: width 0.05s linear;
}

.exposure-slider-knob {
    position: absolute;
    top: 50%;
    left: calc(50% - 45px); /* Center at 4.0h default */
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: #FFFFFF;
    border: 6px solid #911315;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: grab;
    z-index: 10;
    user-select: none;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
}

.exposure-slider-knob:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.4);
    outline-offset: 4px;
}

.exposure-slider-knob.dragging,
.exposure-slider-knob:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); /* Black shadow on press/drag */
}

.slider-hours-val {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.05em;
    color: #000000;
    pointer-events: none;
}

/* Total Time Label (Frame 69) */
.exposure-footer-label {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 1.8vw, 24px);
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: -0.05em;
    color: #000000;
    margin-top: 10px;
}

/* Responsive Breakpoints for CNSL Exposure Section */
@media (max-width: 1200px) {
    .exposure-visual-row {
        gap: 40px;
    }
    .exposure-symptoms-col {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .exposure-visual-row {
        flex-wrap: wrap;
        gap: 36px;
    }
    .exposure-hands-display {
        order: 1;
        width: 100%;
        max-width: 500px;
    }
    .exposure-severity-scale {
        order: 2;
    }
    .exposure-symptoms-col {
        order: 3;
        flex: 1;
        height: auto;
    }
    .exposure-symptoms-card {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .exposure-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .exposure-header-title {
        white-space: normal;
    }
    .exposure-severity-scale {
        width: 60px;
        height: 280px;
    }
    .severity-bar {
        width: 60px;
        height: 35px;
    }
    .exposure-slider-knob {
        width: 70px;
        height: 70px;
        border-width: 4px;
    }
    .slider-hours-val {
        font-size: 22px;
    }
}

/* ==========================================================================
   09. Ergonomic Assessment & Posture Analysis Section
   ========================================================================== */
.ergonomic-assessment-section {
    width: 100%;
    height: 220vh; /* Controlled track for magnetic snapping */
    background-color: #ffffff;
    position: relative;
    box-sizing: border-box;
}

.ergonomic-sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
    box-sizing: border-box;
}

.ergonomic-stage-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    height: 100%;
    max-height: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   09. Musculoskeletal Disorders Intro Section
   ========================================================================== */
.msd-intro-section {
    background-color: #ffffff;
    padding-bottom: 0px;
}

.msd-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(1.5rem, 3.5vw, 3rem) 10% 0px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

.msd-video-col {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.msd-joint-visual {
    width: clamp(260px, 28vw, 400px);
    height: clamp(220px, 24vw, 320px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.msd-joint-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.45);
    transform-origin: center center;
    mix-blend-mode: multiply;
}

/* Center Figure Visual Stage */
.ergonomic-figure-stage {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(380px, 46vw, 680px);
    height: clamp(450px, 78vh, 740px);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.figure-group {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, opacity;
}

.figure-group.figure-1 {
    transform: translateY(0%);
    opacity: 1;
}

.figure-group.figure-2 {
    transform: translateY(120%);
    opacity: 0;
}

.figure-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
}

.figure-group.figure-2 .figure-layer {
    transform: none;
}

.figure-skel {
    z-index: 3;
}

/* Card Container (Frame 63) */
.ergo-card {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.pos-top-left {
    top: 25%;
    left: clamp(20px, 4vw, 50px);
    width: clamp(310px, 32vw, 470px);
}

.pos-top-right {
    top: 14%;
    right: clamp(20px, 4vw, 50px);
    width: clamp(310px, 32vw, 470px);
}

.pos-bottom-left {
    bottom: 12%;
    left: clamp(20px, 4vw, 50px);
    width: clamp(230px, 22vw, 320px);
}

.pos-bottom-right {
    bottom: 40%;
    left: 70%;
    right: clamp(20px, 4vw, 50px);
    width: clamp(310px, 32vw, 470px);
}

/* Card Top Label */
.ergo-card-label-wrapper {
    position: relative;
    width: 100%;
    height: 24px;
    overflow: hidden;
}

.ergo-card-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.15vw, 17px);
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: #000000;
    margin: 0;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, opacity;
}

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

.ergo-card-label.label-2 {
    transform: translateY(15px);
    opacity: 0;
}

/* Row of Two Slots: Color Slot + Text Slot (Frame 112) */
.ergo-card-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    width: 100%;
    height: clamp(88px, 10.5vh, 120px);
}

/* 1. Left Color Indicator Box Slot (Frame 64) */
.ergo-color-slot {
    width: clamp(32px, 3.2vw, 46px);
    height: 100%;
    background: #D9D9D9;
    box-shadow: inset 6px 6px 10px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden; /* Punch-hole mask */
    position: relative;
    flex-shrink: 0;
}

.ergo-color-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-shadow: inset 6px 6px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, opacity;
}

.ergo-color-block.color-1 {
    transform: translateY(0);
    opacity: 1;
}

.ergo-color-block.color-2 {
    transform: translateY(120%);
    opacity: 0;
}

.bg-green { background: #95ED00; }
.bg-orange { background: #FF9500; }
.bg-red { background: #FF0000; }

/* 2. Right Text Box Slot (Frame 82 / Frame 64) */
.ergo-text-slot {
    flex: 1;
    height: 100%;
    background: #D9D9D9;
    box-shadow: inset 8px 8px 12px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden; /* Punch-hole mask */
    position: relative;
    box-sizing: border-box;
}

.ergo-text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(10px, 1.4vw, 20px) clamp(14px, 1.8vw, 28px);
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, opacity;
}

.ergo-text-slide.align-left {
    justify-content: flex-start;
}

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

.ergo-text-slide.text-2 {
    transform: translateY(120%);
    opacity: 0;
}

.ergo-text {
    font-family: 'Courier Prime', monospace;
    font-size: clamp(15px, 1.4vw, 21px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #000000;
    margin: 0;
    text-align: right;
}

.ergo-text-slide.align-left .ergo-text {
    text-align: left;
}

.text-theme-red {
    color: #911315 !important;
}

.ergo-text-empty {
    min-height: 1px;
}

/* State 2 Active Overrides (Magnetic Snap Transitions) */
.state-2-active .figure-group.figure-1 {
    transform: translateY(-120%);
    opacity: 0;
}

.state-2-active .figure-group.figure-2 {
    transform: translateY(0%);
    opacity: 1;
}

.state-2-active .ergo-card-label.label-1 {
    transform: translateY(-15px);
    opacity: 0;
}

.state-2-active .ergo-card-label.label-2 {
    transform: translateY(0);
    opacity: 1;
}

.state-2-active .ergo-color-block.color-1 {
    transform: translateY(-120%);
    opacity: 0;
}

.state-2-active .ergo-color-block.color-2 {
    transform: translateY(0);
    opacity: 1;
}

.state-2-active .ergo-text-slide.text-1 {
    transform: translateY(-120%);
    opacity: 0;
}

.state-2-active .ergo-text-slide.text-2 {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .pos-top-left { top: 12%; left: 3%; width: 330px; }
    .pos-top-right { top: 10%; right: 3%; width: 330px; }
    .pos-bottom-left { bottom: 8%; left: 3%; width: 230px; }
    .pos-bottom-right { bottom: 8%; right: 3%; width: 330px; }
    .ergonomic-figure-stage { width: 55vw; height: 60vh; }
}

@media (max-width: 768px) {
    .ergonomic-assessment-section {
        height: 180vh;
    }
    .ergonomic-header-title {
        font-size: 24px;
    }
    .ergo-card-row {
        height: 76px;
    }
    .ergo-text {
        font-size: 13px;
    }
    .pos-top-left { top: 10%; left: 3%; width: 46%; }
    .pos-top-right { top: 10%; right: 3%; width: 46%; }
    .pos-bottom-left { bottom: 6%; left: 3%; width: 46%; }
    .pos-bottom-right { bottom: 6%; right: 3%; width: 46%; }
    .ergonomic-figure-stage { width: 80vw; height: 50vh; }
}

/* ==========================================================================
   11. Livelihood Panels Full-Bleed Scroll Section (Frame 116 / 113 / 114 / 115)
   ========================================================================== */
.livelihood-section {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    position: relative;
    box-sizing: border-box;
}

.livelihood-panel {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden; /* Images scroll up in their own specific box */
    box-sizing: border-box;
    display: flex;
}

.livelihood-img-wrapper {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    will-change: transform;
}

.livelihood-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.livelihood-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    padding: clamp(1.5rem, 3.5vw, 3rem) 10%;
    box-sizing: border-box;
    display: flex;
    pointer-events: none;
}

.content-top-left {
    align-items: flex-start;
    justify-content: flex-start;
}

.content-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.livelihood-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5.2vw, 88px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.6);
}

.content-top-left .livelihood-title {
    max-width: clamp(340px, 58vw, 1057px);
    text-align: left;
}

.content-bottom-right .livelihood-title {
    max-width: clamp(300px, 45vw, 687px);
    text-align: right;
}

@media (max-width: 1024px) {
    .livelihood-panel {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .livelihood-panel {
        height: 550px;
    }
    .livelihood-title {
        font-size: clamp(28px, 6.5vw, 44px);
    }
}

/* ==========================================================================
   CUSTOM CURSOR STYLES
   ========================================================================== */
*, *::before, *::after {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; 
    z-index: 99999;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border 0.25s ease;
    mix-blend-mode: difference;
    box-sizing: border-box;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.8);
    background-color: transparent;
    border: 2px solid var(--cursor-hover, #ffffff);
    opacity: 1;
}

.custom-cursor.active {
    transform: translate(-50%, -50%) scale(1) !important;
}


