/* --- 1. IMPORTS & RESET --- */
@import url("fontawesome-all.min.css");
/* ONLY IMPORT: Barlow (Body) and Plus Jakarta Sans (Headers/UI) */
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

* { box-sizing: border-box; }

html {
    /* Sets the base so we are sure what 16px looks like */
    font-size: 16px; 
}

body {
    margin: 0;
    padding: 0;
    background: #efefec;
    
    /* BODY TEXT = BARLOW */
    font-family: 'Barlow', sans-serif;
    font-size: 16px;      /* Multiple of 4 */
    line-height: 28px;    /* Multiple of 4 */
    color: #7c7c7a;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* --- 2. TYPOGRAPHY (Global Pixel-Perfect System) --- */
h1, h2, h3, h4, h5, h6 { 
    color: #111; 
    margin: 0 0 16px 0;   /* Multiple of 4 */
    line-height: 1.2;     
    
    /* HEADERS = PLUS JAKARTA SANS */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; 
    
    /* Fixed pixel letter spacing to avoid decimals */
    letter-spacing: -0.5px; 
}

a { color: #7c7c7a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #000; }

/* --- 3. THE SIDEBAR (Fixed Left) --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #efefec;
    
    /* Spacing: 48px Top/Bottom, 32px Left/Right */
    padding: 48px 32px;
    
    text-align: right;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
}

/* Sidebar Avatar */
#header .avatar {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 0 32px auto; /* 32px bottom margin */
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
#header .avatar img { width: 100%; height: 100%; object-fit: cover; }
#header .avatar.is-visible { opacity: 1; }

/* Sidebar Name */
#header header p {
    font-size: 12px;       /* Multiple of 4 */
    margin-bottom: 4px;    /* Multiple of 4 */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    color: #111;
}
#header header p.is-visible { opacity: 1; }

/* Sidebar Navigation */
#header nav ul { list-style: none; padding: 0; margin: 0; }
#header nav ul li { margin-bottom: 8px; } /* Multiple of 4 */

#header nav ul li a {
    /* NAV LINKS = PLUS JAKARTA SANS */
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #c7c7c7;
    font-weight: 600;
    letter-spacing: -0.5px;
    
    display: block;
    font-size: 16px;       /* Multiple of 4 */
    padding: 8px 0;        /* Multiple of 4 */
}

#header nav ul li a:hover { color: #111; }
#header nav ul li a.active { color: #111; }

/* Sidebar Footer */
#header footer .icons { list-style: none; padding: 0; margin-top: 32px; }
#header footer .icons li { display: inline-block; margin-left: 12px; }
#header footer .icons a { font-size: 16px; color: #7c7c7a; }
#header footer .icons a:hover { color: #7c7c7a; }


/* --- 4. MAIN CONTENT AREA --- */
#wrapper { margin-left: 300px; padding: 0; max-width: none; }
#main { display: flex; flex-direction: column; }

/* Page Sections */
#about {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    /* Top/Bottom: 96px | Left/Right: 8vw (Fluid but safe) */
    padding: 96px max(8vw, 64px); 
}
#about .container { width: 100%; max-width: 1200px; }

#projects {
    min-height: 100vh;
    padding: 96px max(8vw, 64px);
    display: flex; align-items: center; justify-content: center;
}

#projects .container {
    display: flex; flex-direction: column;
    justify-content: flex-start; align-items: center;
    
    /* STRICT GAP: 120px */
    row-gap: 120px;
    
    width: 100%; max-width: 1400px;
}

/* Hero Image */
.hero-image {
    display: block; width: 200px; height: 200px;
    margin: 0 0 32px 0; border-radius: 50%;
    overflow: hidden; background: #eee;
    opacity: 1; transition: opacity 0.8s ease-in-out;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image.fading { opacity: 0; }

.hero-grid {
    display: flex; align-items: center; gap: 32px; margin-bottom: 64px;
}

/* --- 5. COMPONENTS --- */

/* Pill Highlight - BARLOW */
.pill-highlight {
    font-family: 'barlow', sans-serif;
    font-size: 12px;       /* Multiple of 4 */
    font-weight: 400;
    letter-spacing: 0.6px;
    line-height: 16px;     /* Multiple of 4 */
    text-transform: uppercase;
    
    display: inline-flex; align-items: center;
    
    /* Height: 36px (Multiple of 4) */
    height: 36px;
    
    margin-top: 20px;      /* Multiple of 4 */
    margin-bottom: 20px;   /* Multiple of 4 */
    padding: 0 24px;       /* Multiple of 4 */
    border-radius: 8px;
    cursor: pointer;
}

.pill-grey { background: #333; color: #efefec; }
.pill-blue { background: #0892D4; color: #efefec; }
.pill-red { background: #BD0505; color: #efefec; }
.pill-green { background: #00AA74; color: #efefec; }
.pill-lightgrey {background: #3E4950 ; color: #efefec }


/* --- 5.5 FOOTER --- */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
#wrapper { min-height: 100vh; display: flex; flex-direction: column; }

#footer {
    margin-top: auto; 
    padding: 32px 96px; /* Pixel spacing */
    color: #ccc; 
    font-size: 12px;
}
#footer .copyright {
    list-style: none; padding: 0; margin: 0;
    text-align: center; font-size: 12px; color: #999;
}
#footer .copyright li { display: inline; margin: 0 8px; }
#footer .copyright li:after { content: " | "; margin: 0 8px; }
#footer .copyright li:last-child:after { content: ""; }


/* =========================================
   PROJECT CARD STYLES (Strict Pixels)
   ========================================= */

#projects .project-card {
    display: flex; align-items: center; 
    gap: 64px; /* Multiple of 8 */
    margin-bottom: 0; background: transparent;
    border: none; padding: 0;
    width: 100%; max-width: 1200px;
}

#projects .project-card .project-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 64px;
    width: 100%;
}

#projects .project-card .card-image {
    flex: 1; min-width: 300px; aspect-ratio: 3 / 4;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
#projects .project-card .card-image lottie-player {
    width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02);
}
#projects .project-card .card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}

#projects .project-card .card-content { flex: 1.2; }

/* H3 - PLUS JAKARTA SANS */
#projects .project-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;       /* Multiple of 4 */
    font-weight: 700;
    line-height: 48px;     /* Multiple of 8 */
    
    letter-spacing: -0.5px;
    
    text-transform: capitalize;
    color: #efefec;
    display: block; margin: 0; width: 100%; cursor: pointer;
}

/* P - BARLOW (Body) */
#projects .project-card p {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;       /* Multiple of 4 */
    font-weight: 300; 
    line-height: 28px;     /* Multiple of 4 */
    color: rgb(124, 124, 122);
    text-align: left;
    display: block; 
    margin-top: 0px; 
    margin-bottom: 16px;   /* Multiple of 4 */
    width: 100%; max-width: 600px;
}

#projects .project-card .project-meta {
    font-family: 'Barlow', sans-serif;
    font-size: 14px; /* Exception: Small text often needs to be 14px */
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#projects .project-card:hover .card-image {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(3, 3, 3, 0.4);
    transition: all 0.3s ease;
}
#projects .project-card:hover .card-image img { transform: none; }


/* --- DARK THEME & TRANSITIONS --- */
body, #main, h1, h2, h3, h4, p {
    transition: background-color 0.4s ease, color 0.6s ease;
}
body.dark-mode { background-color: #121212; color: #e0e0e0; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode strong { color: #ffffff; }
body.dark-mode #main { background-color: #1c2124; }
#header { transition: background-color 0.6s ease, color 0.6s ease; }
body.dark-mode #header { background-color: #1c2124; color: #e0e0e0; }
body.dark-mode #header nav ul li a { color: #bbbbbb; }
body.dark-mode #header nav ul li a.active { color: #efefec; }


/* =========================================
   CASE STUDY PAGE LAYOUT (Global)
   ========================================= */

.cs-header.container, 
.cs-body-layout.container {
    max-width: 1400px;
    margin: 0;
    /* Using max() to ensure minimum pixel safety */
    margin-left: max(8vw, 64px);
    margin-right: max(8vw, 64px);
    padding: 0;
}

/* HERO */
.cs-hero-visual {
    width: 100%; height: 100vh; overflow: hidden;
    background: #f4f4f4; margin-bottom: 32px;
}
.cs-hero-visual img, 
.cs-hero-visual lottie-player {
    width: 100%; height: 100%; display: block; object-fit: cover;
}

/* HEADER */
.cs-header { display: flex; align-items: flex-start; gap: 64px; }

/* H1 - PLUS JAKARTA SANS */
.cs-title-block { flex: 1.2; }
.cs-title-block h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 40px;       /* Multiple of 8 */
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 48px;
    color: #111;
}

.cs-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 400; /* Regular weight */
    color: #7c7c7a;
    line-height: 1.4;
    margin-bottom: 48px;
    max-width: 90%;
}

.cs-meta-block {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.meta-group h5 {
    font-family: 'Barlow', sans-serif;
    font-size: 12px; 
    text-transform: uppercase;
    color: #999; letter-spacing: 1px; margin-bottom: 8px;
}
.meta-group p { 
    font-family: 'Barlow', sans-serif; 
    font-size: 16px; 
    line-height: 24px; 
    color: #333; 
}

.cs-divider {
    border: 0; border-top: 1px solid #eaeaea;
    margin: 64px max(8vw, 64px); 
    max-width: 1200px;
}

/* BODY LAYOUT */
.cs-body-layout {
    display: grid; grid-template-columns: 180px 1fr;
    gap: 48px; padding-bottom: 96px; max-width: 1200px;
    position: relative;
}

.cs-local-sidebar {
    /* 1. Make it Stick */
    position: sticky;
    position: -webkit-sticky; /* Safari support */
    top: calc(50vh - 80px);
    /* 2. Layout Control */
    /* This is critical: prevents the sidebar from stretching to full height */
    align-self: start; 
    height: auto;
    z-index: 5;
}

/* Sticky Nav */
.cs-sticky-nav { position: sticky; top: 64px; align-self: start; }
.cs-local-sidebar ul { list-style: none; padding: 0; margin: 0; }
.cs-local-sidebar li { margin-bottom: 16px; }

.cs-local-sidebar a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-size: 16px;
    color: #c7c7c7;
    text-decoration: none; display: block; padding: 8px 0;
    transition: color 0.2s ease;
}
.cs-local-sidebar a:hover, .cs-local-sidebar a.active { color: #111; }

/* Content Headings */
.cs-section { margin-bottom: 96px; scroll-margin-top: 64px; }
.cs-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px; font-weight: 700; letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.cs-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 32px; }

/* Background Section */
.cs-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px; letter-spacing: -0.5px;
    margin-bottom: 16px; text-transform: lowercase; color: #111;
}

.cs-location {
    display: flex; align-items: center; gap: 8px; margin-bottom: 24px;
    font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px; color: #111;
}

.cs-text-intro { font-size: 20px; line-height: 32px; color: #7c7c7a; margin-bottom: 40px; }
.text-highlight { color: #111; }

/* Gallery */
.cs-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 32px; 
    width: 100%;
    align-items: start;
    margin-bottom: 48px;
}

/* Reset the figure tag */
.gallery-item {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}


/* 1. The Wrapper Forces the Shape */
.image-wrapper {
    width: 100%;
    /* This forces both images to be exactly the same rectangular shape */
    aspect-ratio: 3 / 2; 
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 16px; /* Space between image and caption */
}

.gallery-item img {
    width: 100%;
    
    /* This is the magic line. It forces the image into a 3:2 box.
       You can change this to '4 / 3' if you want them taller, 
       or '16 / 9' if you want them wider. */
    aspect-ratio: 3 / 2; 
    
    /* This ensures the image fills that box without stretching */
    object-fit: cover; 
    
    border-radius: 8px;
    display: block;
    margin-bottom: 16px; /* Space between image and caption */
}

/* Caption Styles */
.gallery-item figcaption {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #7c7c7a;
    text-align: left;
}

/* Dark Mode Support */
body.dark-mode .gallery-item figcaption {
    color: #bbbbbb;
}



/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .cs-gallery-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
}

/* DARK MODE (Case Study) */
body.dark-mode .cs-header h1,
body.dark-mode .cs-section h3,
body.dark-mode .cs-section-title,
body.dark-mode .cs-location,
body.dark-mode .meta-group p { color: #e0e0e0; }
body.dark-mode .cs-local-sidebar a { color: #666; }
body.dark-mode .cs-local-sidebar a:hover, body.dark-mode .cs-local-sidebar a.active { color: #ffffff; }
body.dark-mode .cs-hero-visual { background: #2a2a2a; }
body.dark-mode .cs-divider { border-top: 1px solid #333; }

/* Dark mode trigger for problem section on this page */
body.dark-mode-active .cs-local-sidebar a { color: #7c7c7a; }
body.dark-mode-active .cs-local-sidebar a:hover,
body.dark-mode-active .cs-local-sidebar a.active { color: #efefec; }

/* Smooth color transitions when toggling dark-mode-active */
body,
.cs-local-sidebar a,
.cs-section h3,
.cs-text-intro,
.cs-location,
.meta-group p {
    transition: color 0.2s ease, background-color 0.2s ease;
}


/* =========================================
   SINGLE PROJECT OVERRIDES
   ========================================= */
body.single-project #wrapper { margin-left: 0 !important; width: 100%; padding: 0; }
body.single-project #header { display: none; }

.top-back-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 32px max(8vw, 64px); 
    padding-right: 64px; 
    width: 100%; max-width: 1400px;
}
.nav-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; transition: opacity 0.2s; }
.nav-brand:hover { opacity: 0.6; }

.nav-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(0,0,0,0.1);
}

/* Nav Links - PLUS JAKARTA SANS */
.nav-name, .nav-next {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 16px; color: #333; text-decoration: none;
}

.nav-next { transition: color 0.2s ease; }
.nav-next:hover { color: #000; }

body.dark-mode .nav-name { color: #ffffff; }
body.dark-mode .nav-next { color: #cccccc; }
body.dark-mode .nav-next:hover { color: #ffffff; }


/* =========================================
   6. MOBILE RESPONSIVENESS (Breakpoints)
   ========================================= */

@media screen and (max-width: 900px) {
    /* 1. Header Changes */
    #header {
        position: relative; width: 100%; height: auto;
        text-align: center; border-right: none; border-bottom: 1px solid #eaeaea;
        padding: 24px;
    }
    #header .avatar { display: none; margin: 0 auto 16px auto; }
    
    .projects-active #header .avatar,
    .experiments-active #header .avatar { display: block; }
    
    /* 2. Main Layout Changes */
    #wrapper { margin-left: 0; padding: 0; }
    
    /* 3. Section Padding (Reduced for Mobile) */
    #about, #projects {
        padding: 48px 24px;
    }
    
    #about .container { flex-direction: column; gap: 32px; width: 100%; }
    
    .about-avatar { width: 150px; height: 150px; order: 1; margin: 0 auto; }
    #about header.major { order: 2; text-align: center; }

    /* 4. Project Card Stacking */
    #projects .project-card { 
        flex-direction: column; 
        gap: 32px; 
    }
    #projects .project-card .card-image { width: 100%; min-width: 0; }
    
    /* Reduce large gap between projects */
    #projects .container { row-gap: 64px; }
    
    /* 5. Case Study Adjustments */
    .cs-header { flex-direction: column; gap: 32px; }
    .cs-meta-block { width: 100%; gap: 24px; }
    .cs-body-layout { grid-template-columns: 1fr; gap: 32px; }
    .cs-sticky-nav { display: none; }
    .cs-grid-2col, .cs-gallery-grid { grid-template-columns: 1fr; }
    
    .cs-header.container, .cs-body-layout.container, .cs-divider {
        padding: 0 24px; margin-left: 0; margin-right: 0;
    }
    
    #footer { margin-left: 0; padding: 32px 24px; }
}

/* --- IMPACT CARDS SECTION --- */

.impact-section {
    margin-bottom: 96px; /* Spacing below this section */
    width: 100%;
}

.impact-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;       /* Header size */
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;   /* Space between text and cards */
    max-width: 900px;
}

/* The Grid Layout */
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 32px;             /* 32px gap between cards */
    width: 100%;
}

/* Individual Card Styling */
.impact-card {
    background: #E6E5E3;   /* The Grey Background from image */
    border-radius: 12px;   /* Rounded corners */
    padding: 20px;         /* Internal spacing */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 160px;     /* Ensures cards are substantial height */
}

/* White Icon Square */
.icon-box {
    background: #efefec;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;   /* Space below icon */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.icon-box i {
    font-size: 20px;
    color: #BD0505;
}

/* Descriptive Text */
.impact-text {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;       
    line-height: 28px;
    color: #111;
    margin: 0 0 24px 0; /* Space below text */
    font-weight: 500;
}

/* UPDATED: Matches "My Role" Label Exactly */
.impact-tag {
    /* Typography matches .meta-group h5 */
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;      /* Standard metadata weight */
    text-transform: uppercase;
    color: #7c7c7a;           /* Standard metadata grey */
    letter-spacing: 1px; /* Wide letter spacing */
    
    margin: 0;
    margin-top: auto;      /* Pushes this tag to the bottom of the card */
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .impact-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 24px;
    }
    
    .impact-title {
        font-size: 20px;
    }
}

/* --- IDENTIFIED PROBLEM SECTION (Dark Mode) --- */

.problem-dark-mode {
    /* 1. Breakout to Full Screen Width */
    width: 100%;
    position: relative;
    
    /* 2. Visuals */
    background-color: transparent; /* handled by ::before to avoid 100vw scrollbar gap */
    padding: 96px 0;
    margin-bottom: 120px;
    color: #ffffff;
    
    /* 3. Centering Content */
    display: flex;
    justify-content: center;
    z-index: 1;
}

.problem-dark-mode::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-color: #000000;
    z-index: -1;
}

.problem-content-wrapper {
    width: 100%;
    max-width: 1200px; /* Align with your grid */
    padding: 0 32px;
}

/* Header Text */
.problem-header-block {
    margin-bottom: 64px;
    max-width: 1200px;
}

.problem-main-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #efefec;
    margin-bottom: 24px;
}

.problem-main-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    max-width: 1200px;
    color: #7c7c7a; /* Grey text */
}

/* GRID LAYOUT */
.problem-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* CARD STYLING */
.prob-card {
    background-color: #0A0A0A; /* Slightly lighter black for card bg if desired, or keep transparent */
    border: 1px solid #333333; /* Dark Grey Border */
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    
    transition: all 0.3s ease; /* Smooth hover transition */
}

.card-top-info {
    margin-bottom: 24px;
}

.pc-number {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: #7c7c7a;
    margin-bottom: 8px;
}

.pc-title {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #7c7c7a; /* Dimmed Title */
}

.pc-body {
    font-family: 'Barlow', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: #7c7c7a;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Bold Text Styling (Default) */
.pc-body strong {
    color: #efefec; /* White highlight initially */
    font-weight: 400;
    transition: color 0.3s ease;
}

/* TAGS (Pills) */
.pc-tags {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pc-pill {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #efefec;
    background-color: #3E4950;
    padding: 4px 16px;
    border-radius: 8px;
}

/* --- HOVER EFFECTS --- */

/* 1. Border turns Red */
.prob-card:hover {
    border-color: #E16262; 
    box-shadow: 0 0 20px rgba(214, 48, 49, 0.1); /* Subtle red glow */
}

/* 2. Highlighted text turns Red */
.prob-card:hover .pc-body strong {
    color: #E16262;
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .problem-cards-grid {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    .pc-body {
        font-size: 20px;
    }
}


/* --- FINAL SOLUTION SECTION --- */

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 48px;
    margin-bottom: 96px;
    align-items: stretch;
}

/* 1. SINGLE COUNTER LABEL (SOLUTION 01/04) */
.solution-counter {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #7c7c7a;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    margin-bottom: 24px; /* Space before the grid starts */
}

/* 1. Metadata Numbers (01/04) - Matches "My Role" */
.meta-number {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #7c7c7a;           /* Standard Grey */
    letter-spacing: 1px;   /* Wide spacing */
    display: block;
    margin-bottom: 8px;
}



/* 2. Labels (BEFORE / AFTER) - Matches "My Role" font */
.meta-label {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 700;      /* Bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

/* Specific Colors */
.label-before { color: #BD0505; } /* Brick Red */
.label-after  { color: #6AB04C; } /* Green */

.solution-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;       
    line-height: 40px;
    font-weight: 600;
    margin: 0 0 16px 0;
    
    /* CRITICAL: Forces equal height so descriptions align */
    /* 28px line-height * 3 lines = 84px */
    min-height: 84px;      
    display: flex;
    align-items: start; /* Ensures short text stays at the top */
}

.solution-col {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    height: 100%;           /* Fills the grid cell height */
}

/* Description Text (Below Heading, Above Image) */
.solution-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 26px;     /* Comfortable reading height */
    font-weight: 400;      /* Regular weight */
    
    margin-top: 16px;     /* Pulls it closer to the heading */
    margin-bottom: 32px;   /* Pushes the image down */
    
    /* Optional: Limit width for better readability */
    max-width: 90%;
    /* Optional: Ensure descriptions also align their bottoms if needed */
    /* min-height: 104px; */
}

/* SPECIFIC COLORS FOR BEFORE vs AFTER */

/* The First Column (Before) -> Grey Text */
.solution-col:first-child .solution-heading {
    color: #7c7c7a; 
}

.solution-col:first-child .solution-desc {
    color: #7c7c7a; 
} 

/* The Second Column (After) -> Black Text */
.solution-col:last-child .solution-heading {
    color: #111; 
}

.solution-col:last-child .solution-desc {
    color: #111; 
} 
/* 4. The Grey Visual Box */
.solution-visual {
    width: 100%;
    aspect-ratio: 1 / 1;   /* Square box as shown in image */
    background: #f4f4f4;   /* Placeholder Grey */
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
}

.solution-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Fix for Cropped GIF/Video */
.solution-visual .fit-content {
    width: 100%;
    height: 100%;
    
    /* CHANGE THIS: 'contain' ensures the whole image/video is visible */
    object-fit: contain; 
    
    /* Optional: Adds a specific background color if the video doesn't fill the box */
    background-color: #f4f4f4; 
}

/* Ensure the video tag behaves like an image block */
.solution-visual video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Prevents video cropping */
}

/* Dark Mode Adjustments */
body.dark-mode .solution-heading { color: #fff; }
body.dark-mode .meta-number { color: #666; }

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .solution-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 64px;
    }
    .solution-heading {
        min-height: auto; /* Remove height alignment on mobile */
    }
}

/* --- IMPACT SECTION --- */

/* Three Column Grid */
.impact-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 Equal Columns */
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 96px;
}

/* The Grey Card */
.impact-metric-card {
    background-color: #0A0A0A;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 320px;
}

/* Big Number (5-10%) */
.metric-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;       /* Large display size */
    font-weight: 700;      /* Bold */
    color: #efefec;
    margin: 0 0 16px 0;
    line-height: 1;
    letter-spacing: -1px;
}

/* Description Text */
.metric-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #7c7c7a;
    font-weight: 400;
    margin-bottom: 32px;
    flex-grow: 1; /* Pushes the tags to the bottom */
}

/* Tag Container */
.metric-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px; /* Aligns to bottom of card */
    align-content: flex-start;
}


/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .impact-grid-3 {
        grid-template-columns: 1fr; /* Stack vertically on phone */
    }
    .impact-metric-card {
        min-height: auto;
    }
}
/* --- DEEP DIVE: NESTED CARD LAYOUT --- */

/* 1. The Outer Grey Frame */
.deep-dive-wrapper {
    background-color: #E6E5E3; /* Light Grey */
    border-radius: 16px;       /* Soft corners for the outer box */
    padding: 64px;             /* The spacing between Grey edge and White card */
    margin-bottom: 96px;
}

/* Deep Dive Intro */
.deep-dive-intro {
    display: block;
    margin-bottom: 32px;
}

.deep-dive-heading .eco-title {
    margin-bottom: 16px;
}

.deep-dive-toptext {
    max-width: 520px;
    margin-top: 16px;
}

.deep-dive-toptext strong {
    color: #111;
    font-weight: 600;
}

.deep-dive-layout-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 96px;
}

.deep-dive-layout img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    padding: 8px;
}

.deep-dive-layout {
    padding: 8px;
    background: #E6E5E3;
    border-radius: 16px;
    overflow: hidden;
}

.deep-dive-dash {
    width: 96px;
    height: 2px;
    margin-top: 120px;
    right: -64px;
    background-image: repeating-linear-gradient(
        to right,
        #E16262 0,
        #E16262 6px,
        transparent 6px,
        transparent 12px
    );
}

.deep-dive-right {
    max-width: 520px;
}

.deep-dive-lead {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #7c7c7a;
    margin-bottom: 24px;
}

.deep-dive-zones {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: grid;
    gap: 16px;
}

.deep-dive-zones li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: #111;
}

.zone-number {
    color: #E16262;
    font-weight: 600;
    min-width: 18px;
    text-align: right;
}

.zone-sub {
    color: #7c7c7a;
}

.deep-dive-note {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #7c7c7a;
    margin: 0;
}

.deep-dive-flow-title {
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: #7c7c7a;
    margin: 0 0 32px 0;
}

.deep-dive-flow {
    display: grid;
    gap: 64px;
    margin-bottom: 96px;
}

.deep-dive-flow-sticky {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: start;
    width: 100%;
}

.deep-dive-flow-left-list {
    display: grid;
    gap: 140px;
    min-width: 0;
    padding-bottom: 160px;
}

.flow-left-item {
    position: relative;
}

.flow-left-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: #E6E5E3;
    padding: 8px;
}

.deep-dive-flow-dash {
    width: 96px;
    height: 2px;
    position: absolute;
    top: 30%;
    right: -64px;
    background-image: repeating-linear-gradient(
        to right,
        #E16262 0,
        #E16262 6px,
        transparent 6px,
        transparent 12px
    );
}

.deep-dive-flow-right-sticky {
    position: sticky;
    top: 120px;
    max-width: 520px;
    min-height: 520px;
    align-self: start;
    min-width: 0;
    justify-self: start;
    width: 100%;
}

.flow-right-item {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.flow-right-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.deep-dive-flow-image {
    width: 100%;
    max-width: 300px;
    height: 220px;
    display: block;
    border-radius: 12px;
    margin-bottom: 16px;
    object-fit: cover;
}

.deep-dive-zone-meta {
    display: grid;
    gap: 8px;
}

.flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #E16262;
    color: #FBE2E2;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.deep-dive-zone-title {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #E16262;
    margin: 0;
}

.deep-dive-zone-sub {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #7c7c7a;
    margin: 0;
}

.deep-dive-zone-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #7c7c7a;
    margin: 0;
}


/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .deep-dive-wrapper {
        padding: 24px; /* Less grey padding on mobile */
    }
    .deep-dive-intro {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }
    .deep-dive-layout-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 64px;
    }
    .deep-dive-dash {
        display: none;
    }
    .deep-dive-flow-dash {
        display: none;
    }
    .deep-dive-flow-sticky {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .deep-dive-flow-right-sticky {
        position: static;
        max-width: none;
    }
    .flow-right-item {
        display: block;
        opacity: 1;
        transform: none;
        margin-top: 16px;
        position: static;
        pointer-events: auto;
    }
    
}

/* --- ECOSYSTEM GRID (Updated Structure) --- */

.ecosystem-layout-grid {
    margin-top: 96px; 
    display: grid;
    /* Keeps the 55% / 45% split */
    grid-template-columns: 1.2fr 1fr; 
    column-gap: 64px;
    row-gap: 48px;
    align-items: start;
}

/* Re-use existing Title/Intro/Visual styles... */
.eco-title {
    grid-column: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin: 0;
}

.eco-intro-text {
    grid-column: 2;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #7C7C7A;
    margin: 0;
}

.eco-visual-card {
    grid-column: 1;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- NEW RIGHT COLUMN STACK --- */
.eco-right-stack {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 64px; /* Space between the List and the Insight */
}

/* 1. ZONES LIST STYLING */
.zone-list-header {
    font-family: 'barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #7C7C7A;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.zone-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

/* The Pink Number Badge */
.zone-badge {
    background-color: #E06969; /* Light Pink BG */
    color: #FFEBE6;            /* Salmon Red Text */
    
    font-family: 'barlow', sans-serif;
    font-weight: 700;
    font-size: 18px;
    
    /* Square shape with rounded corners */
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -2px; /* Optical alignment with text */
}

.zone-text {
    font-family: 'barlow', sans-serif;
    font-size: 16px;
    color: #111;
    font-weight: 500;
    line-height: 1.4;
}

.zone-text strong {
    font-weight: 500;
    color: #111;
}

/* 2. INSIGHT BLOCK STYLING */
.eco-insight-block {
    /* No grid column needed here, it's inside the stack */
    padding-left: 0;
}

/* (Keep existing insight typography styles) */
.insight-label {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    color: #7c7c7a;
    margin-bottom: 24px;
}

.insight-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px; 
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.insight-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #7c7c7a;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1100px) {
    .ecosystem-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .eco-title, .eco-intro-text, .eco-visual-card, .eco-right-stack {
        grid-column: auto;
    }
}

/* --- PART 3: ACTORS SECTION --- */

.actors-section {
    margin-top: 120px; /* Separation from previous section */
}

/* 1. HEADER (Reusing eco-title/text styles) */
.actors-header {
    display: block;
    margin-bottom: 48px;
    align-items: start;
}

/* --- PART 3: ACTORS SECTION (Refined) --- */

.actors-section {
    margin-top: 120px; 
}

/* 1. HEADER */
.actors-header {
    display: block;
    margin-bottom: 48px;
    align-items: start;
}

/* 2. LEGEND BAR (Updated for Image Icons) */
.actors-legend {
    margin-bottom: 120px;
}
.legend-label {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.legend-items {
    display: flex;
    gap: 32px;
    flex-wrap: nowrap;
    align-items: left;
    /* justify-content: space-between; */
    width: 100%;
}
.actor-item {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    display: flex;
    align-items: center;
    gap: 12px; /* Space between icon and text */
}
/* Style for the Actor Icons (Circle avatars) */
.actor-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Makes them circular */
    object-fit: cover;
    display: block;
}

.role-desc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.role-desc-card {
    background: #efefec;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.role-desc-card:hover {
    transform: translateY(-4px);
    border-color: #e5e5e5;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.role-desc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.role-desc-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.role-desc-header h4 {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin: 0;
}

.role-desc-meta {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #7c7c7a;
    margin-left: 6px;
    text-transform: lowercase;
}

.role-desc-card ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.role-desc-card li {
    margin-bottom: 8px;
}

/* 3. THE MAIN GRID */
.actors-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0;
    align-items: start;
}

/* Diagram Card (Legend + Diagram) */
.actors-diagram-card {
    grid-area: diagram;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    /* padding-bottom: 40px; */
}

.actors-diagram-content {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
    padding-bottom: 48px;
}

.actors-diagram-left {
    min-width: 0;
}

.actors-diagram-right {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.flow-diagram-wrapper {
    overflow: visible;
}

.flow-diagram-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.25);
    transform-origin: left center;
}

.actors-insight {
    margin-top: 0;
    align-self: start;
    grid-area: insight;
}

.handoff-card-2 {
    width: 100%;
    max-width: 520px;
    align-self: start;
    justify-self: start;
    grid-area: handoff2;
}

.actors-bottom-row {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    grid-template-areas: "insight handoff2";
    gap: 32px;
    align-items: start;
    margin-top: 48px;
    width: 100%;
}

.handoff-card-callout {
    background-color: #FFEBE6;
    border: 1px solid #EACBCB;
    padding: 56px;
    margin-bottom: 40px;
    /* min-height: 320px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.handoff-callout-header {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #D63031;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 80px;
}

.handoff-callout-dot {
    width: 18px;
    height: 18px;
    background: #D63031;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(214, 48, 49, 0.2);
}

.handoff-badges {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
}

.handoff-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F7C7C7;
    border: 6px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.handoff-badge + .handoff-badge {
    margin-left: -18px;
}

.handoff-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(1) brightness(0);
}

.handoff-callout-text {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    padding-top: 40px;
    /* margin: 0; */
}

/* --- THE RED HANDOFF CARDS (Preserved Style) --- */
.handoff-card {
    background-color: #FFEBE6; /* Pink BG */
    border: 1px solid #EACBCB; 
    border-radius: 12px;
    padding: 24px;
    position: relative;
    
    /* Ensure cards have a white shadow/stack effect if needed */
    box-shadow: 0 4px 12px rgba(214, 48, 49, 0.05);
}

.handoff-card-1 {
    margin-top: 120px;
    width: 100%;
    max-width: 360px;
    min-width: 320px;
    padding: 20px 24px;
    justify-self: start;
}

.handoff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.handoff-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #D63031; /* Red Text */
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.red-dot {
    width: 12px;
    height: 12px;
    background-color: #D63031;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(214, 48, 49, 0.2); 
}

.handoff-icons {
    display: flex;
    gap: -8px; /* Negative margin for overlap look if desired, or 4px for space */
}
.handoff-icons img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.handoff-text {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
}

/* --- FINAL STACKED CARD EFFECT (3 Layers Match) --- */

.card-stacked-effect {
    position: relative;
    z-index: 1;
    margin-bottom: 48px; 
}

/* Shared style for both underlying layers */
.card-stacked-effect::before,
.card-stacked-effect::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #fcd2c7; 
    border: 1px solid #EACBCB;
    border-radius: 12px;
    transform-origin: top left;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* LAYER 2 (Middle) */
.card-stacked-effect::before {
    z-index: -1;
    transform: translate(10px, 10px) scale(0.97);
    box-shadow: 0 10px 18px rgba(214, 48, 49, 0.12);
    opacity: 0.9;
}

/* LAYER 3 (Bottom) */
.card-stacked-effect::after {
    z-index: -2;
    transform: translate(20px, 20px) scale(0.94);
    box-shadow: 0 14px 26px rgba(214, 48, 49, 0.08);
    opacity: 0.8;
}

/* Callout stack: 4 flat layers with no blur */
.handoff-card-callout.card-stacked-effect {
    box-shadow:
        0 16px 0 rgba(255, 235, 230, 0.80),
        0 32px 0 rgba(255, 235, 230, 0.40),
        0 48px 0 rgba(255, 235, 230, 0.20),
        0 64px 0 rgba(255, 235, 230, 0.10);
}

.handoff-card-callout.card-stacked-effect::before,
.handoff-card-callout.card-stacked-effect::after {
    content: none;
}

/* Hover Animation: Fans the cards out slightly */
.card-stacked-effect:hover::before {
    transform: translate(12px, 12px) scale(0.97);
}
.card-stacked-effect:hover::after {
    transform: translate(24px, 24px) scale(0.94);
}
/* Mobile Responsiveness */
@media screen and (max-width: 1100px) {
    .actors-header, .actors-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .actors-grid {
        grid-template-columns: 1fr;
    }

    .actors-diagram-card {
        padding: 24px;
    }

    .actors-diagram-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .actors-bottom-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .role-desc-grid {
        grid-template-columns: 1fr;
    }

    .flow-diagram-wrapper img {
        transform: none;
    }

    .legend-items {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .handoff-card-callout {
        padding: 32px;
        min-height: auto;
    }

    .handoff-callout-header {
        position: static;
        margin-bottom: 16px;
    }

    .handoff-badges {
        position: static;
        margin-bottom: 16px;
    }

    .handoff-callout-text {
        font-size: 28px;
        line-height: 1.3;
    }
}

/* --- PART 4: USER PERCEPTION (Insights) --- */

.perception-section {
    margin-top: 120px;
    margin-bottom: 120px;
}

.perception-header {
    display: block;
    margin-bottom: 48px;
    align-items: start;
}

.perception-image {
    margin-bottom: 32px;
}

.perception-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* White Insight Cards */
.insight-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.insight-card-white {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.insight-label-small {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #7c7c7a;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.insight_icon {
    width: 40px;
    height: 40px;
}

.insight-title-main {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111; /* Grey Title */
    margin-bottom: 16px;
    line-height: 1.4;
}

.insight-body {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #7c7c7a;
    max-width: 900px;
}

/* --- PART 5: IDEATION & STRATEGY --- */

.ideation-section {
    margin-bottom: 96px;
}

.ideation-header {
    display: block;
    margin-bottom: 48px;
    align-items: start;
}

/* Dark Dashboard Container */
.strategy-dashboard {
    background-color: #1A1C1E; /* Dark Grey/Black */
    border-radius: 16px;
    padding: 64px;
    
    display: flex;
    gap: 64px;
    align-items: stretch;
}

/* Left Side: Efficiency & Keywords */
.strat-left {
    flex: 1; /* Approx 30-35% */
    border-right: 1px solid rgba(255,255,255,0.1); /* Subtle divider */
    padding-right: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.strat-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 48px;
    line-height: 1.2;
}

.text-accent-red {
    color: #E06969; /* Salmon/Red Accent */
}

.strat-sublabel {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #7c7c7a;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Dark Pills */
.strat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-dark {
    background-color: #33363A; /* Slightly lighter than bg */
    color: #ccc;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Right Side: HMW Statements */
.strat-right {
    flex: 2; /* Approx 65% */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hmw-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
}

.hmw-icon {
    width: 24px;
    padding-top: 4px; /* Align icon with text top */
}

.hmw-label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.9;
}

.hmw-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #aaa; /* Softer grey text */
}

.hmw-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    width: 100%;
    margin: 8px 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1000px) {
    .perception-header, .ideation-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .strategy-dashboard {
        flex-direction: column;
        padding: 40px;
        gap: 48px;
    }
    
    .strat-left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: 48px;
    }
}

/* --- EVALUATION SECTION (Grey Noise Box) --- */


/* The Grey Container */
.eval-container {
    background-color: #666666; /* Match workflow card dark */
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 96px;
    color: #ffffff;
}

.eval-stack-only {
    display: flex;
    justify-content: center;
}

.eval-ui-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    /* max-width: 720px; */
}

.eval-ui-stack img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* box-shadow: 0 10px 24px rgba(0,0,0,0.2); */
}

.eval-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 64px;
    align-items: start;
}

.eval-row-annotated {
    grid-template-columns: auto 1fr;
    column-gap: 88px;
    row-gap: 24px;
    grid-template-areas:
        "info info"
        "ui notes";
}

/* 1. Left: Info */
.eval-info {
    text-align: left;
}

.eval-row-annotated .eval-info,
.eval-row-annotated .eval-notes {
    padding-top: 12px;
}

.eval-item-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff; /* Primary White */
    line-height: 1.3;
    margin-bottom: 16px;
}

.eval-label {
    display: inline-block;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #EFEFEC; /* Old Design Label Color */
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.6;
}

.eval-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #EFEFEC; /* Black Description */
    max-width: 600px;
    opacity: 0.8;
}

/* 2. Center: UI Image */
.eval-ui {
    display: flex;
    padding-left: 40px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.eval-ui-annotated {
    position: relative;
    grid-area: ui;
    margin-top: 24px;
}

.eval-row-annotated .eval-info {
    grid-area: info;
}

.eval-row-annotated .eval-notes {
    grid-area: notes;
}

.eval-annotation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.eval-annotation-lines path {
    stroke: #D63031;
    stroke-width: 2px;
    stroke-dasharray: 6 6;
    stroke-linecap: round;
    filter: url(#lineShadow);
}
.eval-ui img {
    max-width: 100%;
    height: auto;
    transform: none;
    object-fit: contain;
    /* Optional shadow to pop off the grey bg */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); 
}

/* 3. Right: Notes */
.eval-notes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-left: none;
    padding-left: 0;
    max-width: 320px;
    position: relative;
    --arrow-offset: 120px;
    --arrow-width: 100px;
}

.eval-notes .note-item.callout {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.eval-notes .note-item.callout:first-child {
    position: relative;
    padding-top: 12px;
}

.eval-notes .note-item.callout:first-child::before {
    content: none;
    position: absolute;
    left: calc(var(--arrow-offset) * -1);
    top: calc(50% + 40px);
    width: var(--arrow-width);
    border-top: 2px dashed #D63031;
    transform: translateY(-50%);
}

.eval-notes .note-item.callout:first-child::after {
    content: none;
    position: absolute;
    left: calc((var(--arrow-offset) * -1) + var(--arrow-width) - 8px);
    top: calc(50% + 40px);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #D63031;
    transform: translateY(-50%);
}

.note-text {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #EFEFEC;
}

.note-text strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

/* Divider inside grey box */
.eval-divider {
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin: 64px 0;
    width: 100%;
}

/* --- INSIGHT 3 SECTION --- */

.insight-3-section {
    margin-bottom: 120px;
}

.insight-3-header {
    display: block;
    margin-bottom: 48px;
    align-items: start;
}

.insight-3-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.insight-3-intro {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    color: #7c7c7a;
    line-height: 1.5;
}

/* Insight 3 Card (White with Red Border/Shadow effect) */
.insight-card-highlight {
    background-color: #ffffff;
    border: 1px solid #E06969; /* Subtle pink border */
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}


.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.insight-icon {
    width: 24px;
    height: 24px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1100px) {
    .eval-row {
        grid-template-columns: 1fr; /* Stack evaluation items */
        text-align: left;
    }
    .eval-notes {
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed rgba(0,0,0,0.2);
        padding-top: 24px;
    }
    
    .insight-3-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- PART 6: FOUNDATIONS & WORKFLOWS --- */

.foundations-header {
    display: block;
    margin-bottom: 64px;
    align-items: start;
}

.workflow-stack {
    display: flex;
    flex-direction: column;
    gap: 32px; /* Space between cards */
    margin-bottom: 120px;
}

/* GENERAL CARD STYLING */
.workflow-card {
    border-radius: 12px;
    overflow: hidden;
    padding: 48px;
    position: relative;
}

/* 1. DARK CARD (Before) */
.card-dark {
    background-color: #666666; /* Grey from image */
    color: #ffffff;
}

.wf-title-white {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    max-width: 800px;
    margin-bottom: 16px;
}

.label-before-white {
    color: rgba(255,255,255,0.7);
}

/* 2. LIGHT CARD (After) */
.card-light {
    background-color: #ffffff;
    border: 1px solid #E5E5E5;
    /* Optional shadow to lift it */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
}

.wf-title-dark {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #111111;
    max-width: 800px;
    margin-bottom: 16px;
}

.label-after-green {
    color: #6AB04C; /* Success Green */
}

/* SHARED ELEMENTS */
.card-content-top {
    margin-bottom: 32px;
}

.wf-label {
    display: inline-block;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wf-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.wf-visual {
    position: relative;
}

.workflow-handoff-overlay {
    position: absolute;
    top: 50%;
    right: 48px;
    left: auto;
    transform: translateY(-10%);
    max-width: 320px;
    z-index: 2;
}

.workflow-handoff-overlay .handoff-card-1 {
    margin-top: 0;
    max-width: 320px;
}

/* RATIONALE SECTION (Only in Light Cards) */
.wf-rationale {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed #ddd; /* Dotted separation line */
}

.rationale-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 900px;
}

.rationale-text strong {
    color: #999; /* Label color for "Rationale?" */
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .foundations-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .workflow-card {
        padding: 32px;
    }
    .wf-title-white, .wf-title-dark {
        font-size: 20px;
    }
}

/* --- PART 7: INTERFACE STRATEGY --- */

.interface-header {
    display: block;
    margin-bottom: 64px;
    align-items: start;
}

/* DASHBOARD CONTAINER */
.env-dashboard {
    background-color: #1A1C1E; /* Dark Grey/Black */
    border-radius: 16px;
    padding: 64px;
    
    display: flex;
    gap: 64px;
    align-items: center; /* Vertically center content */
}

/* LEFT COL */
.env-left {
    flex: 1.2; /* Takes up about 35% space */
    padding-right: 20px;
}

.env-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    /* margin-bottom: 32px; */
    line-height: 1.3;
}

.env-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #888; /* Grey text */
}

/* RIGHT COL (The Stack) */
.env-right-stack {
    flex: 2; /* Takes up about 65% space */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* INDIVIDUAL ROWS */
.role-row {
    background-color: #25282B; /* Lighter dark grey for cards */
    border-radius: 8px;
    padding: 20px 20px;
    
    display: grid;
    /* Grid: Role (25%) | Device (35%) | Context (40%) */
    grid-template-columns: 1.2fr 1.5fr 2fr; 
    align-items: center;
    gap: 20px;
}

/* Role Identity */
.role-id {
    display: flex;
    align-items: center;
    gap: 12px;
}
.role-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* Optional: white border circle */
    border: 1px solid rgba(255,255,255,0.2); 
}
.role-name {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #7c7c7c;
    font-weight: 500;
    
}

/* Device Info */
.role-device {
    display: flex;
    align-items: center;
    gap: 12px;
    /* border-left: 1px solid rgba(255,255,255,0.1); */
}
.device-icon {
    width: 20px;
    opacity: 1; /* Make white icons slightly subtle */
}
.device-name {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #7c7c7a;
}

/* Context Info */
/* .role-context {
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 24px;
} */
.context-text {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    /* line-height: 1; */
    color: #7c7c7a;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1100px) {
    .env-dashboard {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
    }
    
    .env-left {
        width: 100%;
        margin-bottom: 32px;
        padding-right: 0;
    }
    
    .env-right-stack {
        width: 100%;
    }
    
    /* Stack content inside the row on mobile */
    .role-row {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 16px;
        padding: 24px;
    }
    
    .role-device, .role-context {
        border-left: none; /* Remove vertical dividers */
        padding-left: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.05); /* Add horizontal dividers */
    }
}

/* --- PART 8: SKETCHES & WIREFRAMES --- */

#sketches-wireframes {
    margin-top: 120px;
    margin-bottom: 120px;
}

/* Re-using the grid header layout */
.sketch-header {
    display: block;
    margin-bottom: 64px;
    align-items: start;
}

/* Container for the side-by-side flow */
.design-evolution-flow {
    display: flex;
    align-items: center; /* Vertically center the arrow */
    gap: 32px;
    margin-bottom: 24px;
    background-color: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

/* Common Card Styling */
.evolution-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.evolution-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Specific Sizes to match image proportions */
.sketch-card {
    flex: 0.8; /* Smaller width (~40%) */
    aspect-ratio: 4/3; /* Keeps it boxy */
}

.wireframe-card {
    flex: 1.2; /* Larger width (~60%) */
    /* Let height define itself based on image, or set aspect ratio */
}

/* The Arrow */
.evolution-arrow {
    flex-shrink: 0; /* Prevents arrow from squishing */
    opacity: 0.6;
}

/* Caption Styling */
.media-caption {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .sketch-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .design-evolution-flow {
        flex-direction: column; /* Stack images vertically */
        gap: 24px;
    }
    
    .evolution-arrow {
        transform: rotate(90deg); /* Point arrow down */
    }
    
    .sketch-card, .wireframe-card {
        width: 100%;
        flex: auto;
        aspect-ratio: auto;
    }
}

/* --- PART 9: ITERATIONS & VALIDATION --- */

#iterations {
    margin-top: 120px;
    margin-bottom: 120px;
}

/* 1. HEADER (Standard Grid) */
.iter-header {
    display: block;
    margin-bottom: 64px;
    align-items: start;
}

/* 2. METHODOLOGY ROW (3 Cards) */
.method-row {
    display: flex;
    gap: 32px;
    margin-bottom: 96px;
}

.method-card {
    flex: 1;
    background-color: #efefec;
    /* border: 1px, #efefec; */
    border-radius: 8px;
    padding: 20px;
}

.method-label {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.method-value {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #444;
}

/* 3. ITERATION 1 BLOCK */
.iter-focus-block {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Text left, Image wider right */
    gap: 64px;
    align-items: start;
    margin-bottom: 96px;
}

.iter-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iter-heading-small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 24px;
    line-height: 1.3;
}

.iter-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111
}

.iter-image-col img {
    width: 100%;
    max-width: 400px; /* Limits phone size */
    height: auto;
    display: block;
    border-radius: 8px;
    /* Optional shadow for the UI screen */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 4. FINDINGS SECTION */
.findings-container {
    margin-bottom: 96px;
    /* Optional background band behind findings if desired, 
       otherwise white cards sit on page bg */
}

.findings-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.findings-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #111; /* Grey title */
}

.aha-moment {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #D63031; /* Red Accent */
}

.findings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.find-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.find-text {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #7c7c7a;
}

.find-text strong {
    display: block;
    margin-bottom: 8px;
    color: #111;
    font-weight: 700;
}

/* 5. COMPARISON SECTION */
.comp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.comp-col {
    display: flex;
    flex-direction: column;
}

.comp-visual {
    background-color: #ffffff; /* Frame for the image */
    padding: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid #eee;
}

.comp-visual img {
    width: 100%;
    max-width: 300px; /* Phone width constraint */
    height: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.comp-label {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 12px;
    text-align: center;
}

.comp-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

.iter-footer-note {
    margin-top: 64px;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    /* max-width: 800px; */
}

/* Mobile Responsiveness */
@media screen and (max-width: 1000px) {
    .iter-header, .iter-focus-block, .comp-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .method-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .findings-grid {
        grid-template-columns: 1fr;
    }
    
    .iter-image-col {
        justify-self: center; /* Center image on mobile */
    }
}

/* --- PART 10: FINAL DESIGNS --- */

#final-designs {
    margin-top: 120px;
    margin-bottom: 160px; /* Extra space at bottom of page */
}

.final-header {
    display: block;
    margin-bottom: 80px;
    align-items: start;
}

.actors-header .eco-intro-text,
.perception-header .eco-intro-text,
.ideation-header .eco-intro-text,
.evaluation-header .eco-intro-text,
.foundations-header .eco-intro-text,
.interface-header .eco-intro-text,
.sketch-header .eco-intro-text,
.iter-header .eco-intro-text,
.final-header .eco-intro-text {
    margin-top: 16px;
}

.insight-3-header .insight-3-intro {
    margin-top: 16px;
}

.final-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.final-stack-single {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 0;
    border: 1px solid #efefec;
}

/* Base Card Style */
.final-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    border: 0;
    display: flex;
    align-items: center;
    min-height: 480px;
    padding: 32px 64px;
}

.final-card + .final-card {
    border-top: 1px solid #efefec;
}

/* LAYOUT VARIATIONS */

/* Left: Image First */
.layout-left {
    flex-direction: row;
}

/* Right: Image Second */
.layout-right {
    flex-direction: row-reverse; /* Flips the order */
}

/* CONTENT AREAS */
.final-visual {
    flex: 1.2; /* Image takes 60% width */
    background-color: #fff;
    height: 100%;
    min-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.final-visual.lottie-stack {
    flex-direction: column;
    gap: 32px;
    padding: 24px;
}

.final-visual.lottie-stack .fit-lottie {
    width: 100%;
    max-width: 420px;
    height: auto;
}

.final-visual.final-visual-left {
    justify-content: flex-start;
    padding-left: 32px;
}

.final-visual.final-visual-left .fit-lottie {
    max-width: 420px;
}

.final-visual img {
    max-width: 90%;
    height: auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Nice shadow for UI */
    border-radius: 8px;
}

.final-visual video,
.final-visual .final-video {
    max-width: 90%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.final-content {
    flex: 0.8; /* Text takes 40% width */
    padding: 64px;
}

.final-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin-bottom: 24px;
}

.final-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #7C7C7A;
}

/* Green Label "NEW DESIGN" */
.new-design-tag {
    position: absolute;
    top: 32px;
    left: 32px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    color: #6AB04C; /* Green */
    background-color: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Mobile Responsiveness */
@media screen and (max-width: 1000px) {
    .final-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Force Vertical Stack on Mobile */
    .final-card, .layout-left, .layout-right {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 32px;
    }

    .final-visual {
        width: 100%;
        min-height: 300px;
        padding: 40px;
    }

    .final-content {
        width: 100%;
        padding: 40px 32px;
    }

    .final-heading {
        font-size: 24px;
    }
}
