@import url("https://use.typekit.net/wvb6wrd.css");

:root {
    --red: #e93939;
    --lightred: #ff7663;
    --black: #121111;
    --gray: #2b2927;
    --lightgray: #85756b;
    --white: #f7ede4;
    
    --font-main: "futura-pt", sans-serif;
    /*--font-main: "trade-gothic-next", sans-serif;
    --font-main: "quasimoda", sans-serif;
    --font-main: "azo-sans-web", sans-serif;*/
    
    --font-light: 400;
    --font-bold: 700;

    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Custom Text Selection Color --- */
::selection {
    background-color: var(--gray); /* Uses your #85756b color */
    color: var(--white);                /* Ensures the text remains legible */
}

/* Fallback for older Firefox browsers */
::-moz-selection {
    background-color: var(--gray);
    color: var(--white);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--white);
    background-color: var(--black);
    -webkit-font-smoothing: antialiased;
}

/* Global Link Reset - Removes Underlines */
a {
    text-decoration: none;
    color: inherit;
}

/* Header - Sticky */
.sticky-header {
    position: sticky;
    top: 0;
    background: var(--black);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: var(--font-bold);
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.main-nav a {
    font-weight: var(--font-bold);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-left: 30px;
    letter-spacing: 1px;
}

.shop-link { color: var(--red) !important; }

/* Content Wrapper */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 72px;
}

/* Hero Section - 3 Column Logic */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    padding: 80px 0 0 0;
    align-items: start;
    /* border-bottom: 1px solid #eee; */
}

.hero-intro {
    grid-column: span 2;
    max-width: 768px;
}

.hero-intro h1 {
    font-weight: var(--font-bold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-intro h1 .red-text {
    margin-left: -9px;
}

/* ==========================================================================
   AVAILABILITY BADGE & PULSE ANIMATION
   ========================================================================== */

/* Align the badge next to the H1 text smoothly */
.hero-intro h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Ensures graceful stacking on very small mobile screens */
    gap: 16px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 0px;
    transform: translateY(2px); /* Optically centers the small text with the larger H1 */
}

.availability-text {
    font-size: 0.65rem;
    font-weight: var(--font-bold);
    color: var(--red); /* Muted color so it doesn't overpower your name */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* The static core dot */
.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: var(--lightred);
    border-radius: 50%;
}

/* The animating outer ring */
.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--red);
    border-radius: 50%;
    z-index: -1;
    /* 2s duration provides a calm, breathing rhythm rather than a frantic flashing */
    animation: subtlePulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* The Animation Keyframes */
@keyframes subtlePulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.5); /* Expands to 3.5x its size */
        opacity: 0; /* Fades out completely as it expands */
    }
}

/* --- Mobile Adjustment --- */
@media (max-width: 768px) {
    .hero-intro h1 {
        gap: 12px;
    }
    .availability-badge {
        transform: translateY(0);
    }
}

.hero-intro p {
    font-weight: var(--font-light);
    font-size: 1.4rem;
    line-height: 1.225;
}

.hero-contact {
    grid-column: span 1;
    text-align: left;
}

.contact-label {
    font-weight: var(--font-bold);
    font-size: 1.4rem; /* Scaled down for better balance */
    margin-bottom: 1rem;
    line-height: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    font-size: 1.8rem;
    margin: 0 12px;
    transition: var(--transition);
}

.social-links a:hover { color: var(--red); }

/* Work Grid */
.section-title {
    font-weight: var(--font-bold);
    font-size: 1.4rem;
    letter-spacing: 0;
    margin: 60px 0 30px 0;
    color: var(--red);
    text-transform: capitalize;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    margin-bottom: 36px;
}

.case-study-card {
    display: block;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: var(--font-light);
    margin-top: 12px;
    text-transform: capitalize;
}

.project-name {
    max-width: 64%;
}

.project-name .sub-heading {
    color: var(--lightgray);
    font-size: 0.96rem;
}

.project-meta {
    color: var(--red);
    font-size: 1rem;
    margin-top: 5px;
    text-align: right;
}

.image-container {
    overflow: hidden;
    background: var(--white);
    border-radius: 2px;
    background-color: var(--gray);
}

/*.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}*/

.image-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%; /* Forces the image to fill the 300px height */
    object-fit: cover; /* Crops the image proportionally to fill the box, removing red gaps */
    display: block;
    transition: var(--transition);
}

.case-study-card:hover img {
    transform: scale(1.02);
}

.red-text { color: var(--red); }

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-intro, .hero-contact {
        grid-column: span 1;
    }

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

@media (max-width: 768px) {
    .content-wrapper { padding: 48px; }
    .header-container { padding: 0 20px; }
    
    .hero-intro h1 { font-size: 2rem; }
    .hero-intro p { font-size: 1.2rem; }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Video Embed Container */
.video-section {
    margin: 60px 0;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    height: 0;
    background: var(--black); /* Changed to black to match your dark theme */
    border-radius: 9px; /* Optional: adds your signature rounded corners */
    overflow: hidden; /* Ensures the iframe doesn't break the rounded corners */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bio & Experience Grids */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 80px 0;
}

.bio-text {
    grid-column: 2 / 4; /* Starts from second column to match wireframe */
    font-size: 1.2rem;
    line-height: 1.225;
}

.bio-text p { margin-bottom: 2rem; }

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    opacity: 0.7;
}

.brand-logos img { max-width: 120px; filter: grayscale(1); opacity: 0.75;}

/* Collaboration Items */
.collab-section .center { text-align: center; margin-bottom: 20px; }

.collab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.collab-item { text-align: center; font-size: 1.2rem; line-height: 1; padding: 10px 24px; max-width: 360px;}

.svg-placeholder {
    background: var(--red);
    height: 150px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: var(--font-bold);
}

.about-footer {
    text-align: center;
    padding: 24px 0;
    border-top: 0px solid var(--gray);
}

.footer-socials {
    justify-content: center;
    margin-top: 20px;
}

.footer-socials a {
    font-size: 2rem;
    margin: 0 12px;
}

.about-footer .contact-label {
    font-size: 2rem;
    font-weight: normal;
}

.about-footer .contact-label .email-address {
    font-size: 1.4rem;
}

/* ==========================================================================
   CORE SKILLS SECTION (Inline SVG Setup)
   ========================================================================== */

.core-skills-section {
    max-width: 1000px;
    margin: auto;
    padding: 0 40px;
}

.core-skills-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 1 200px; 
    cursor: pointer;
    transition: var(--transition);
}

/* --- Inline SVG Wrapper --- */
.skill-icon-svg {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    /* This defines the base color for the SVG */
    color: var(--white); 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

/* --- Global SVG Vector Styles --- */
.skill-icon-svg svg {
    width: 100%;
    height: 100%;
    fill: none; /* Keeps them as outline/line-art */
    stroke: currentColor; /* Inherits the color defined in the wrapper */
    stroke-width: 1.5; /* Matches the weight of your reference icons */
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skill-title {
    font-size: 1.2rem;
    font-weight: var(--font-bold);
    color: var(--white);
    line-height: 1.3;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* --- Micro-Interactions (Hover States) --- */
.skill-item:hover .skill-icon-svg {
    /*color: var(--red);*/
    transform: translateY(-4px);
}

.skill-item:hover .skill-title {
    color: var(--red);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .skills-grid {
        gap: 40px 10px;
    }
    
    .skill-item {
        flex: 0 1 140px;
    }

    .skill-icon-svg {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .skill-title {
        font-size: 1.05rem;
    }
}

/* Mobile Stacking */
@media (max-width: 768px) {
    .bio-grid, .experience-grid, .collab-grid {
        grid-template-columns: 1fr;
    }
    .bio-text { grid-column: span 1; }
}

/* 1. Global Line-Height Change */
body {
    font-family: var(--font-main);
    color: var(--white);
    background-color: var(--black);
    line-height: 1.225; /* Updated for the entire website */
    -webkit-font-smoothing: antialiased;
}

/* 2. Block A (Bio Grid) Styling */
.bio-grid {
    max-width: 900px; /* Max-width requirement */
    margin: 80px auto; /* Centered to the page */
    display: block; /* Removed grid for simpler centering of text block */
}

.bio-text {
    font-size: 1.4rem;
    /* Removed grid-column: 2 / 4; so it fills its 900px container */
}

.bio-text p { 
    margin-bottom: 2rem; 
}

/* 3. Block B & C (Experience Grid) - 50/50 Layout */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactly 50% each */
    gap: 60px;
    align-items: start;
    margin-bottom: 100px;
}

/* Block C (Image) */
.experience-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Block B (Content) */
.experience-content {
    font-size: 1.4rem; /* Matches Block A font-size */
}

.experience-content p {
    margin-bottom: 2rem;
}

.experience-content .contact-label {
    margin-top: 24px;
    font-size: 1.6rem;
}

/* Ensure brand logos look balanced in the 50% column */
.brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 columns works better in a 50% width container */
    gap: 36px;
    margin-top: 30px;
}

/* Mobile Responsiveness for 50/50 Grid */
@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr; /* Stacks vertically on smaller screens */
        gap: 40px;
    }

    .bio-text,
    .experience-content {
        font-size: 1.2rem;
    }

    .footer-socials a {
        font-size: 2.4rem;
    }
}

/* --- MOBILE RESPONSIVENESS UPDATES --- */

@media (max-width: 768px) {
    /* ... keep your other mobile styles for hero and work grid ... */

    /* REDUCED GAP FOR COLLABORATION SECTION */
    .collab-grid {
        grid-template-columns: 1fr;
        justify-items: center; 
        gap: 0; /* Reduced from 80px to 30px for tighter spacing */
    }

    .collab-item {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto; /* Removed fixed height to eliminate dead space */
        padding: 20px 24px; /* Reduced vertical padding */
        max-width: 100%;
    }

    .svg-placeholder {
        width: 100%;
        max-width: 280px; /* Slightly smaller for better mobile fit */
        height: 120px; /* Adjusted height to reduce vertical footprint */
        margin-bottom: 10px; /* Less space between image and text */
    }

    .about-footer .contact-label {
    font-size: 1.8rem;
    }

    .video-section {
    margin: 36px 0;
    }

    .bio-grid {
        margin: 36px 0;
    }
}

/* Email Copy Block Styling */
.email-copy-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid var(--black); /* Matching the black line style in your image */
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    background: transprent;
    border: var(--lightgray) 1px solid;
    border-radius: 30px;
}

.email-copy-wrapper:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--red);
}

.email-address {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.email-copy-wrapper i {
    font-size: 0.9rem;
    color: var(--lightgray);
    transition: var(--transition);
}

.email-copy-wrapper:hover i {
    color: var(--red);
}

/* Tooltip Animation */
.copy-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--lightgray);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.copy-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Arrow for tooltip */
.copy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--black) transparent transparent transparent;
}

/* DATE: July 7, 2026 */
/* Ensure the button can contain the absolute positioned tooltip */
.btn-action {
    position: relative; /* Add this line */
    display:block;
    padding: 24px 40px;
    border-radius: 50px;
    font-weight: var(--font-light);
    font-size: 1rem;
    color: var(--white);
    transition: var(--transition);
}

/* Container must be relative to contain the absolute overlay */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: var(--gray); /* Fallback per your original CSS */
    border-radius: 2px;
    min-height: 300px;
    /*max-height: 300px;*/
    /*position: relative;
    z-index: 1;*/
    width: auto;
    height: 100%; /* Forces the image to fill the 300px height */
    object-fit: cover; /* Crops the image proportionally to fill the box, removing red gaps */
    display: block;
    transition: var(--transition);
}

/* Ensure the image stays behind the grain */
.image-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
}

/* Filter Navigation Styling */
.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: var(--font-bold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 24px;
    transition: var(--transition);
    border-radius: 50px;
    color: var(--black);
}

.filter-btn:hover {
    color: var(--red);
}

.filter-btn.active {
    background: var(--black);
    color: var(--white);
}

/* Logic for Hiding/Showing Cards */
.case-study-card.hidden {
    display: none;
}

.projects .section-title {
    text-align: center;
    font-size: 2rem;
}

/* ----------- CASE STUDY PAGE TEMPLATE -------------*/

.case-study-main {
    width: calc(100vw - 36px);
    max-width: 1400px;
    margin: auto;
}

.header-option-1 { text-align: center; padding: 80px 20px; }
.cs-title-wrap h1 {
    font-weight: var(--font-bold);
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 auto;
    padding: 0;
}

.header-option-1 .cs-meta-bar { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    /*border-top: 1px solid #ddd; 
    border-bottom: 1px solid #ddd;*/
    padding: 24px 0;
    margin: 36px 0;
}
.header-option-1 .meta-col { border-right: 1px solid var(--gray); padding: 0 20px; }

.header-option-1 .meta-col:last-child { border-right: none; }

.cs-label {
    font-weight: var(--font-bold);
    font-size: 1.2rem;
    margin-bottom: 6.4px;
    color: var(--red);
}

/* --- Case Study Header Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Targetting the 728px range you mentioned */
    .header-option-1 .cs-meta-bar {
        grid-template-columns: repeat(2, 1fr); /* Creates the 2x2 Grid */
        gap: 20px 20px; /* Adds space between rows and columns */
        text-align: left; /* Aligns all text left as requested */
        padding: 18px 0px; /* Adds internal breathing room */
        margin-top: 10px;
        font-size: 1rem;
    }

    .header-option-1 .meta-col {
        border-right: none; /* Removes the desktop vertical lines */
        padding: 0; /* Resets padding for left alignment */
    }

    .header-option-1 .cs-title {
        font-size: 2rem; /* Scales title down slightly for mobile screens */
        text-align: left; /* Optional: aligns title left to match meta info */
    }
}

/* -- Text block Styles -- */

/* --- Case Study Text Blocks --- */

.text-block {
    max-width: 1400px;
    width: calc(100vw - 36px);
    padding: 20px;
}

.txt-container-narrow { max-width: 800px; margin: 0 auto; }
.cs-body-lg { font-size: 1.8rem; font-weight: 400; line-height: 1.2; margin: 36px 0; }
q, blockquote { display: block; border-left: 1px solid var(--red); padding-left: 16px; }
.cs-body-text { margin-bottom: 2rem; font-size: 1.4rem; color: var(--white); }

/* Option 2: Split */
.split-grid { display: grid; grid-template-columns: 1fr 2.5fr; gap: 80px; align-items: start; }
.cs-title { font-size: 2rem; font-weight: var(--font-bold); margin-bottom: 20px; }
.brief-meta { margin-top: 20px; max-width: 360px; font-size: 1.2rem;}
.brief-meta p {
    margin-top: 16px;
}

/* Option 3: Grid */
.two-col-details { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 20px; }
.cs-sub-title { font-size: 1.4rem; font-weight: var(--font-bold); text-transform: uppercase; margin-bottom: 20px; }

/* Option 4: Bold */
.bold-intro-wrap { /*border-bottom: 1px solid #eee;*/ padding-bottom: 20px; margin-bottom: 20px; }
.bold-details { column-count: 2; column-gap: 60px; }

/* Option 5: Sidebar */
.txt-layout-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 100px; }
.note-item { margin-bottom: 40px; }
.note-item p { font-size: 1rem; line-height: 1.2; }
.note-item .cs-label { font-weight: var(--font-bold); color: var(--red); }

/* Option 6: Triptych */
.triptych-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.meta-box { border: 1px solid var(--black); padding: 30px; margin-bottom: 20px; }
.font-800 { font-weight: var(--font-bold); display: block; margin-bottom: 10px; }

/* Option 7: Staggered */
.stagger-wrap { display: flex; flex-direction: column; gap: 80px; }
.stagger-item { max-width: 600px; }
.stagger-item.left { align-self: flex-start; }
.stagger-item.right { align-self: flex-end; }
.stagger-item.center { align-self: center; text-align: center; max-width: 900px; }

/* Option 8: Duo */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--white); }
.duo-col { padding: 60px; }
.white-text { color: var(--white); }

/* Option 9: Pillar */
.pillar-content { margin-left: auto; max-width: 700px; border-left: 2px solid var(--red); padding-left: 60px; }

/* Option 10: Spec */
.spec-grid { display: grid; grid-template-columns: 0.8fr 2fr 0.8fr; gap: 60px; }
.spec-item .cs-label { font-weight: var(--font-bold); color: var(--red); }
.spec-item { margin-bottom: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--lightgray); }

.sidebar-main .cs-title {
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin-bottom: 10px;
}

.sidebar-notes {
    margin-top: 48px;
}

/* Mobile Stacking for 2026 standards */
@media (max-width: 1024px) {
    .triptych-grid, .duo-grid, .spec-grid { grid-template-columns: 1fr; }
    .pillar-content { border-left: none; padding-left: 0; margin-left: 0; }
    .stagger-item { align-self: flex-start; text-align: left; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .split-grid, .two-col-details, .txt-layout-sidebar { grid-template-columns: 1fr; gap: 40px; }
    .bold-details { column-count: 1; }

    .cs-title {
        font-size: 1.6rem;
        margin-bottom: 6.4px;
    }

    .cs-body-text { font-size: 1.4rem; margin-bottom: 20px; line-height: 1.125; }
    .cs-body-lg { font-size: 1.4rem; margin-bottom: 20px; line-height: 1.125; }

    .spec-grid,
    .split-grid, .two-col-details, .txt-layout-sidebar {
        gap: 20px;
    }

    .sidebar-notes {
        margin-top: 0;
    }

    .bold-intro-wrap {
        margin-bottom: 0;
    }
}

/*-- IMAGE GRIDS ---*/

/* --- Master Image Grid Framework --- */
.cs-grid-section {
    max-width: 1400px;
    margin: 0 auto 20px auto; /* 20px gap between sections when stacked */
    display: grid;
    gap: 4.8px;
    margin: 100px auto;
    padding: 0 20px;
}

/* Specific Layout Definitions */
.image-grid-1 { grid-template-columns: 1fr; }
.image-grid-2 { grid-template-columns: repeat(2, 1fr); }
.image-grid-3 { grid-template-columns: repeat(3, 1fr); }
.image-grid-4 { grid-template-columns: 2fr 1fr; }
.image-grid-5 { grid-template-columns: 1fr 2fr; }
.image-grid-6 { grid-template-columns: repeat(3, 1fr); }
.image-grid-6 .img-large { grid-column: span 2; }
.image-grid-7 { grid-template-columns: repeat(4, 1fr); }
.image-grid-8 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 300px); }
.image-grid-8 .img-tall { grid-row: span 2; }
.image-grid-9 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 250px); }
.image-grid-9 .img-wide { grid-column: span 2; }
.image-grid-10 { grid-template-columns: 1.5fr 1fr 1fr; }
.image-grid-11 { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
.image-grid-11 .img-big { grid-column: span 4; grid-row: span 2; }
.image-grid-11 .img-small { grid-column: span 2; }
.image-grid-12 { grid-template-columns: 1fr 1fr; }
.image-grid-12 .img-full { grid-column: span 2; height: 500px; }
.image-grid-13 { grid-template-columns: repeat(3, 1fr); }
.image-grid-13 .img-mid { grid-column: span 2; }
.image-grid-14 { grid-template-columns: repeat(4, 1fr); }
.image-grid-14 .img-feature { grid-column: span 3; }
.image-grid-15 { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 250px; }
.image-grid-15 .img-hero { grid-column: span 3; grid-row: span 2; }
.image-grid-15 .img-side { grid-column: span 2; }

/* Global Height Helpers */
.h-400 { min-height: 400px; }
.h-600 { min-height: 600px; }

/* Responsive: Stack all grids on mobile */
@media (max-width: 768px) {
    .cs-grid-section {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        padding: 0 20px;
    }
    .image-container { /* min-height: 300px !important;*/ grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* --- Heartcore-Inspired Bento Mosaic --- */
.bento-mosaic-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column grid for maximum flexibility */
    grid-auto-rows: 240px; /* Base height for each "row" unit */
    gap: 4.8px;
    max-width: 1400px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
}

/* Individual Spans mimicking the reference image */
.bento-item-1 { grid-column: span 5; grid-row: span 1; } /* Top Left - Short/Wide */
.bento-item-2 { grid-column: span 7; grid-row: span 2; } /* Top Right - Large/Tall */
.bento-item-3 { grid-column: span 5; grid-row: span 2; } /* Mid Left - Main Square */
.bento-item-4 { grid-column: span 7; grid-row: span 1; } /* Mid Right - Standard */
.bento-item-5 { grid-column: span 4; grid-row: span 1; } /* Bottom Left - Standard */
.bento-item-6 { grid-column: span 8; grid-row: span 1; } /* Bottom Right - Wide */

/* Ensure images fill these custom-shaped containers */
.bento-mosaic-section .image-container {
    height: 100%;
    width: 100%;
    min-height: auto; /* Overriding previous Turn's min-height for this specific layout */
}

.bento-mosaic-section img {
    height: 100%;
    object-fit: cover;
}



/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .bento-mosaic-section {
        grid-template-columns: repeat(2, 1fr); /* 2-column grid on tablets */
        grid-auto-rows: 300px;
    }
    .bento-item-1, .bento-item-2, .bento-item-3, 
    .bento-item-4, .bento-item-5, .bento-item-6 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .bento-mosaic-section {
        grid-template-columns: 1fr; /* Single column on phones */
    }
}

/* --- Project Navigation Styles --- */
.project-navigation {
    max-width: 1400px;
    margin: 100px auto 40px auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1; /* Keeping your architectural typographic theme */
}

.nav-block {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-text {
    font-weight: var(--font-bold);
    font-size: 1rem;
    color: var(--lightgray);
    text-transform: uppercase;
}

.nav-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Micro Hover Interactions */
.nav-block:hover .nav-icon-wrap {
    background: var(--red);
    color: var(--white);
}

.nav-block:hover .nav-text {
    color: var(--white)
}

.prev-project:hover { transform: translateX(-5px); }
.next-project:hover { transform: translateX(5px); }

/* Center Pill Buttons */
.nav-center-actions {
    display: flex;
    gap: 20px;
}

.btn-action {
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: var(--font-light);
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-action .bold { font-weight: var(--font-bold); }

.btn-red { background-color: var(--red); }
.btn-blue { background-color: #2b67d9; } /* Professional Behance Blue */

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}

/* --- Global Footer Styles --- */
.main-footer {
    width: 100%;
    padding: 48px 0; /* Requested 48px top/bottom padding */
    text-align: center;
    border-top: 1px solid var(--gray);
}

.footer-copy {
    font-size: 1rem;
    color: var(--lightgray);
    letter-spacing: 0;
}

/* Responsive Stacking */
@media (max-width: 1024px) {
    .project-navigation {
        flex-direction: column;
        gap: 60px;
    }
    .nav-center-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-action { text-align: center; }
}

/* --- Desktop Foundation (Base Styles) --- */
.project-navigation {
    max-width: 1400px;
    margin: 100px auto 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-block {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.nav-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gray);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.btn-action {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    transition: var(--transition);
}

.mobile { display: none; /* Hides any mobile-only elements */
}

/* --- MOBILE NAVIGATION FIX (Matches Image 2) --- */
@media (max-width: 1024px) {
    .project-navigation {
        flex-direction: column !important; /* Force vertical stacking */
        gap: 50px !important; /* Visual spacing between top, middle, bottom */
        align-items: center !important;
        text-align: center;
        padding: 20px;
        margin: 40px 0;
    }

    .nav-center-actions {
        margin: auto;
        margin-bottom: 24px;
        max-width: 360px;
    }

    .project-nav-wrap {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 36px;
    }

    .nav-block {
        justify-content: center; /* Centers Previous/Next content */
    }

    .next-project {
        text-align: right; /* Right aligns the Next Project block */
    }

    .nav-center-actions {
        flex-direction: column; /* Stacks the red and blue buttons */
        width: 100%;
        gap: 12px; /* Tighter gap between buttons as per Image 2 */

    }

    .btn-action {
        width: 100%; /* Makes buttons full-width touch targets */
        display: block;
        padding: 20px 0;
    }

    .mobile {
        display: block; /* Shows any mobile-only elements */
    }

    .desktop { display: none; /* Hides any desktop-only elements */
    }
}

/* --- Global Footer Styling --- */
.main-footer {
    width: 100%;
    padding: 48px 0; /* Requested 48px top/bottom padding */
    text-align: center;
    border-top: 1px solid var(--gray);
}

.footer-copy {
    font-size: 1rem;
    color: var(--lightgray);
    letter-spacing: 0;
}

/* --- 404 Page Styles --- */
.error-main {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content {
    max-width: 800px;
    width: 100%;
}

.error-visual {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: var(--black);
}

.error-code {
    font-size: 10rem;
    font-weight: var(--font-bold);
    letter-spacing: -5px;
    color: var(--red);
    opacity: 1; /* Very subtle against the grain */
}

.error-text .cs-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.error-text .cs-body-text {
    margin-bottom: 40px;
    opacity: 0.6;
}

/* Button styling adjustment for 404 */
.error-page .btn-red {
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .error-code { font-size: 6rem; }
    .error-text .cs-title { font-size: 1.8rem; }
}

/* ==========================================================================
   TECHNICAL SPECIFICATIONS SECTION (Reference-Inspired)
   ========================================================================== */

.tech-specs-section {
    max-width: 1000px; /* Kept slightly narrower than 1400px for optimal reading length */
    margin: 80px auto;
    padding: 0 20px;
}

.specs-header {
    margin-bottom: 60px;
}

.specs-header .cs-body-text {
    color: var(--lightgray);
    margin-top: 10px;
    margin-bottom: 5px;
}

.specs-container {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gray);
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2.5fr; /* 2-column layout mirroring the reference image */
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--gray); /* Subtle horizontal separators */
    transition: var(--transition);
}

/* Optional hover effect for interactivity */
.spec-row:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 10px; 
}

.spec-category {
    font-weight: var(--font-bold);
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

.spec-details {
    display: flex;
    flex-direction: column;
}

.main-spec {
    font-size: 1.4rem;
    font-weight: var(--font-light);
    color: var(--white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.icon-brand {
    color: var(--lightgray);
    margin-right: 12px;
    font-size: 1.4rem;
}

.sub-spec {
    font-size: 1.1rem;
    color: var(--lightgray);
    line-height: 1.4;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .spec-row {
        grid-template-columns: 1fr; /* Stacks to a single column */
        gap: 15px;
        padding: 24px 0;
    }

    .spec-category {
        font-size: 1.1rem;
        color: var(--red); /* Emphasize category on mobile to separate rows visually */
    }

    .main-spec {
        font-size: 1.3rem;
    }

    .sub-spec {
        font-size: 1rem;
    }
    
    .spec-row:hover {
        padding-left: 0; /* Disable horizontal shift on touch devices */
        background: transparent;
    }
}

/* ==========================================================================
   COMPACT TECHNICAL SPECIFICATIONS SECTION 02
   ========================================================================== */

.tech-specs-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px; /* Aligns with your global content wrapper padding */
}

.specs-header {
    margin-bottom: 10px;
}

.specs-header .cs-body-text {
    color: var(--lightgray);
    margin-top: 10px;
    margin-bottom: 10px;
}

.compact-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Splits into Left and Right columns */
    gap: 80px; /* Provides breathing room between the two columns */
    border-top: 1px solid var(--gray);
    padding-top: 40px;
}

.spec-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray);
}

/* Remove bottom border and margin from the last item in each column for a clean finish */
.spec-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.spec-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    font-weight: var(--font-bold);
    display: block;
    margin-bottom: 8px;
}

.main-spec {
    font-size: 1.4rem;
    font-weight: var(--font-light);
    color: var(--white);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.sub-spec {
    font-size: 1.1rem;
    color: var(--lightgray);
    line-height: 1.4;
}

.icon-brand {
    color: var(--lightgray);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .tech-specs-section {
        padding: 0 20px;
    }
    
    .compact-specs-grid {
        grid-template-columns: 1fr; /* Stacks to a single column on mobile */
        gap: 0;
    }

    /* Restores the border on the last item of the first column so the stack flows seamlessly */
    .specs-col:first-child .spec-item:last-child {
        border-bottom: 1px solid var(--gray);
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
}

/* ==========================================================================
   TESTIMONIAL SECTIONS
   ========================================================================== */

/* Global Testimonial Typography Resets */
figure { margin: 0; padding: 0; }
blockquote { border: none; padding: 0; margin: 0 0 24px 0; font-weight: var(--font-light); }
figcaption { display: flex; flex-direction: column; gap: 4px; }

.testi-name { font-weight: var(--font-bold); font-size: 1.2rem; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.testi-role { font-weight: var(--font-light); font-size: 1rem; color: var(--lightgray); font-style: normal; }
.quote-icon { color: var(--red); font-size: 2rem; margin-bottom: 0; opacity: 0.8; }

.testimonial-block {
    padding: 40px 20px;
}

/* Option 1: Centered Editorial */
.testi-centered { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.testi-centered blockquote { font-size: 2.2rem; line-height: 1.125; }

/* Option 2: Staggered Grid */
.testi-header-center { text-align: center; margin-bottom: 60px; }
.testi-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.testi-card { padding: 40px; border: 1px solid var(--gray); border-radius: 9px; background: rgba(255,255,255,0.02); transition: var(--transition); }
.testi-card:hover { border-color: var(--red); transform: translateY(-5px); }
.testi-card blockquote { font-size: 1.4rem; line-height: 1.4; color: var(--white); }
.testi-card.staggered { margin-top: 40px; } /* Creates the masonry offset */

/* Option 3: Minimalist Split */
.testi-split-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.testi-left { position: sticky; top: 120px; }
.testi-list-item { padding: 40px 0; border-bottom: 1px solid var(--gray); }
.testi-list-item:first-child { padding-top: 0; }
.testi-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.testi-list-item blockquote { font-size: 1.8rem; line-height: 1.3; }

/* Option 4: Bento Highlight */
.testi-bento-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.testi-bento-large { padding: 60px; border-radius: 9px; background: var(--gray); display: flex; flex-direction: column; justify-content: center; }
.testi-bento-small-stack { display: flex; flex-direction: column; gap: 40px; }
.testi-bento-small { padding: 40px; border-radius: 9px; border: 1px solid var(--gray); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.testi-bento-small blockquote { font-size: 1.3rem; }

/* Option 5: Typographic Waterfall */
.testi-waterfall { position: relative; max-width: 1000px; margin: 0 auto; padding: 60px 0; }
.quote-mark-bg { position: absolute; top: -40px; left: -40px; font-size: 15rem; line-height: 1; color: var(--gray); opacity: 0.3; font-family: serif; z-index: -1; pointer-events: none; }
.massive-text { font-size: 2.4rem; font-weight: var(--font-light); line-height: 1.125; letter-spacing: -1px; }
.waterfall-author { margin-top: 40px; border-left: 2px solid var(--red); padding-left: 20px; }

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .testi-grid-3, .testi-split-grid, .testi-bento-grid { grid-template-columns: 1fr; gap: 40px; }
    .testi-card.staggered { margin-top: 0; }
    .testi-left { position: static; margin-bottom: 20px; }
    .massive-text { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .testi-centered blockquote { font-size: 1.6rem; }
    .testi-card, .testi-bento-large, .testi-bento-small { padding: 30px 20px; }
    .testi-list-item blockquote { font-size: 1.4rem; }
}

/* ==========================================================================
   ABOUT PAGE - 2x2 MASTER GRID
   ========================================================================== */

.about-master-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exact 50/50 split */
    column-gap: 80px; /* Space between left and right columns */
    row-gap: 60px; /* Space between Top Row and Bottom Row */
    max-width: 1400px;
    margin: 80px auto 64px auto;
    align-items: start; /* Ensures items align to the top of their respective rows */
}

.grid-item-intro h1 {
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin-bottom: 0px;
    line-height: 1.1;
}

.grid-item-intro .cs-body-lg {
    font-size: 1.4rem;
    line-height: 1.225;
    margin: 24px 0;
}

.grid-item-intro .cs-body-text, 
.grid-item-experience .cs-body-text {
    font-size: 1.4rem; /* Slightly smaller than hero text for better reading rhythm */
    line-height: 1.225;
    color: var(--white);
    margin-bottom: 24px;
}

/* Specific fix for the portrait to ensure it maintains the rounded corners and grain */
.grid-item-portrait.image-container {
    min-height: auto;
    max-height: none;
    height: 100%; /* Stretches to fit naturally */
    height: auto; 
    align-self: start; /* Prevents CSS Grid from stretching the box vertically */
    margin-top: 64px;
}

/* Ensure brand logos match the 50/50 layout naturally */
.grid-item-experience .brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 24px;
    opacity: 0.7;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .about-master-grid {
        grid-template-columns: 1fr; /* Stacks everything into a single column */
        row-gap: 40px;
        margin: 40px auto 80px auto;
    }

    /* On mobile, the order will naturally fall to:
       1. Intro/Bio
       2. Portrait
       3. Video
       4. Experience / Logos
       This creates a fantastic narrative flow for scrolling! */
       
    .grid-item-experience .brand-logos {
        gap: 20px;
    }
}

/* ==========================================================================
   NEW CASE STUDY BLOCK TEMPLATES (V2 Architecture)
   ========================================================================== */

/* --- 1. Bullet List Block (txt-layout-bullet-list) --- */
.txt-layout-bullet-list { 
    display: grid; 
    grid-template-columns: 1fr 2.5fr; /* Maps to the original split structure */
    gap: 80px; 
    align-items: start; 
}

.cs-bullet-list {
    list-style: none; /* Removes default browser bullets */
    padding-left: 0;
    margin-top: 16px; 
    margin-bottom: 36px;
}

.cs-bullet-list li {
    position: relative;
    padding-left: 24px; /* Space for the custom bullet */
    margin-bottom: 24px;
    font-size: 1.4rem; /* Matches your body copy scale */
    line-height: 1.225;
    color: var(--lightgray); 
    transition: var(--transition);
}

.cs-bullet-list li strong {
    color: var(--white); 
    font-weight: var(--font-bold);
}

/* Custom Geometric Red Bullet */
.cs-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px; /* Optically centers the dot with the first line of text */
    width: 6px;
    height: 6px;
    background-color: var(--red); 
    border-radius: 50%;
}

/* --- 2. Definitions / Methodology Block (txt-layout-definitions) --- */
.definition-details { 
    column-count: 2; 
    column-gap: 60px; 
}

.definition-details .cs-body-text {
    break-inside: avoid; /* Prevents text blocks from awkwardly splitting across columns */
}

/* --- 3. Sidebar with Sub-sections (txt-layout-sidebar-sections) --- */
.txt-layout-sidebar-sections { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 100px; 
}

/* Red-bordered sub-section blocks */
.sub-section {
    margin-bottom: 32px;
    border-left: 2px solid var(--red);
    padding-left: 24px;
}

.sub-section .cs-sub-title {
    font-size: 1.4rem;
    font-weight: var(--font-bold);
    color: var(--red);
    margin-bottom: 8px;
    text-transform: none; /* Overrides global caps if necessary */
}

.sub-section .cs-body-text {
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* --- Mobile Responsiveness for New Blocks --- */
@media (max-width: 1024px) {
    .txt-layout-bullet-list, 
    .txt-layout-sidebar-sections { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    .definition-details { 
        column-count: 1; 
    }
}

@media (max-width: 768px) {
    .cs-bullet-list li {
        font-size: 1.2rem;
    }
    
    .cs-bullet-list li::before {
        top: 8px; /* Adjust alignment for the scaled-down font */
    }
    
    .sub-section {
        padding-left: 16px;
    }

    .sub-section .cs-sub-title,
    .sub-section .cs-body-text {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   NEW CASE STUDY BLOCK: ASYMMETRIC CLUSTER GALLERY
   ========================================================================== */

.cluster-gallery-section {
    max-width: 1400px;
    margin: 80px auto;
}

.cluster-gallery-grid {
    display: grid;
    /* Divide the container into 3 equal columns */
    grid-template-columns: repeat(3, 1fr);
    /* Establish a fixed baseline height for each row to maintain grid integrity */
    grid-auto-rows: 640px; 
    gap: 20px; /* Airy, editorial spacing */
}

/* Force the image containers to respect the grid cell boundaries absolutely */
.cluster-gallery-grid .image-container {
    height: 100%;
    width: 100%;
    min-height: auto;
    max-height: none;
    border-radius: 8px; /* Slightly softer corners for this specific editorial block */
}

/* --- Layout Mapping --- */
/* Item 1: Top Left Wide */
.cluster-item-1 { grid-column: span 2; }
/* Item 2: Top Right Square/Portrait */
.cluster-item-2 { grid-column: span 1; }

/* Items 3, 4, 5 implicitly span 1 column each by default */

/* Item 6: Bottom Left Square/Portrait */
.cluster-item-6 { grid-column: span 1; }
/* Item 7: Bottom Right Wide */
.cluster-item-7 { grid-column: span 2; }


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .cluster-gallery-grid {
        grid-auto-rows: 300px; /* Scale down the heights for tablet viewports */
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .cluster-gallery-grid {
        /* Drop to a single column on mobile for maximum conversion visibility */
        grid-template-columns: 1fr; 
        grid-auto-rows: auto; /* Let the intrinsic image height dictate the flow */
        gap: 12px;
    }
    
    /* Reset all spans to prevent horizontal scrolling breaks on mobile */
    .cluster-item-1, .cluster-item-2, .cluster-item-3, 
    .cluster-item-4, .cluster-item-5, .cluster-item-6, 
    .cluster-item-7 {
        grid-column: span 1; 
    }

    .cluster-gallery-grid .image-container {
        /* Provide a comfortable, scannable height for mobile devices */
        height: 350px; 
    }
}

/* ==========================================================================
   TRIPTYCH PORTRAIT GALLERY (3-Column Grid) - July 4th 2026.
   ========================================================================== */

.triptych-portrait-gallery {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0;
}

.triptych-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Divides available space into 3 equal columns */
    gap: 24px; /* Crisp, uniform spacing matching your reference */
}

.triptych-grid-container .image-container {
    width: 100%;
    /* Locks the container into a tall portrait format that scales fluidly */
    aspect-ratio: 3 / 4; 
    
    /* Overrides any global max-heights to ensure the aspect ratio dictates the size */
    min-height: auto;
    max-height: none;
    height: auto;
    
    border-radius: 2px; /* Matches your established global aesthetic */
}

/* Ensure the image fills the newly shaped portrait container without distortion */
.triptych-grid-container .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- Mobile Responsiveness & CRO Adjustments --- */
@media (max-width: 1024px) {
    .triptych-grid-container {
        gap: 16px; /* Tighter gaps for tablet screens */
    }
}

@media (max-width: 768px) {
    .triptych-grid-container {
        /* Stack vertically on mobile to maximize screen real estate and image visibility */
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .triptych-grid-container .image-container {
        /* Slightly reduces the height on mobile to prevent excessive scrolling fatigue */
        aspect-ratio: 4 / 5; 
    }
}

/* ==========================================================================
   PARALLAX COLLAGE MOODBOARD (DARK MODE) | DATE: July 4, 2026
   ========================================================================== */

.collage-moodboard-section {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 20px;
}

/* The Transparent Canvas */
.collage-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Creates a widescreen canvas area */
    background-color: transparent; /* Explicitly transparent for dark mode */
    border-radius: 12px;
    overflow: hidden; /* Contains the floating elements */
    
    /* Center aligning for the middle text block */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Initialize CSS vars for JavaScript to target */
    --mouseX: 0;
    --mouseY: 0;
}

.collage-text-center {
    position: relative;
    z-index: 10; /* Ensures text stays above floating images */
    pointer-events: none; /* Prevents text from blocking hover interactions */
}

.collage-text-center .cs-sub-title {
    font-size: 1rem;
    letter-spacing: 0px;
    margin-bottom: 8px;
}

.collage-text-center p {
    color: var(--white); /* Updated to --white for dark mode visibility */
    font-weight: var(--font-bold);
    font-size: 1.4rem;
    line-height: 1.2;
}

/* Individual Scattered Elements */
.collage-item {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--w);
    margin: 0;
    
    /* The GPU-Accelerated Parallax Engine */
    /* Multiplies the JS mouse coordinates (-1 to 1) by the inline speed variable */
    transform: translate3d(
        calc(var(--mouseX) * var(--speed)), 
        calc(var(--mouseY) * var(--speed)), 
        0
    );
    
    /* The transition smooths the mathematical updates, creating 'drag/lag' */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Enhancing the image container to respect aspect ratios based on image content */
.collage-item .image-container {
    width: 72%;
    height: auto;
    min-height: 0;
    max-height: 260px;
    /* Deepened the shadow for physical depth against the dark background */
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
}

.collage-item .image-container img {
    height: auto; /* Lets the native aspect ratio of each image shine */
}

/* Editorial Captions */
.collage-item figcaption {
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    color: var(--white); /* Muted contrast color for dark mode */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Mobile Responsiveness (CRO Fallback) --- */
@media (max-width: 1024px) {
    .collage-canvas {
        aspect-ratio: 4 / 3; /* Taller canvas for tablets */
    }
}

@media (max-width: 768px) {
    /* Break the absolute positioning on mobile for scannability */
    .collage-canvas {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        overflow: visible; /* Prevents clipping when stacked */
    }

    .collage-text-center {
        margin-bottom: 40px;
    }

    .collage-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100% !important; /* Forces all items to span the screen width */
        margin-bottom: 32px;
        transform: none !important; /* Disables parallax on touch devices */
    }
}

/* ==========================================================================
   INTERWOVEN VIDEO POSTER | DATE: July 4, 2026
   ========================================================================== */

.interwoven-poster-section {
    max-width: 1400px;
    margin: 120px auto;
    padding: 0 20px;
}

.interwoven-canvas {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Ensures enough vertical space for the scatter */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Maintained transparent dark mode */
}

/* The Massive Text Configuration */
.massive-typography {
    position: relative;
    z-index: 5; /* Mid-layer: clips will weave above (10) and below (1) this */
    display: flex;
    flex-direction: column;
    /* Fluid Typography: min 4rem, scales with vw, max 12rem */
    font-size: clamp(4rem, 10vw, 12rem); 
    font-weight: var(--font-bold);
    line-height: 0.85; /* Ultra-tight leading for poster look */
    letter-spacing: -2px;
    color: var(--white);
    text-transform: uppercase;
}

.massive-typography .line {
    display: block;
        text-shadow: -12px 13px var(--black); /* Creates the interwoven shadow effect */
}

/* Manual indents to create the staggered typographic look */
.massive-typography .indent-1 { margin-left: 1.5em; }
.massive-typography .indent-2 { margin-left: 0.8em; }

/* The "GIF" Video Containers */
.floating-clip {
    position: absolute;
    top: var(--t);
    left: var(--l);
    width: var(--w);
    z-index: var(--z);
    
    /* Hardware accelerated pure CSS floating animation */
    animation: organicFloat 6s ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

.floating-clip video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Maintain dark mode aesthetics with a subtle shadow */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
}

/* The Zero-JS Floating Animation */
@keyframes organicFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(1.5deg); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .massive-typography .indent-1 { margin-left: 1em; }
    .massive-typography .indent-2 { margin-left: 0.5em; }
}

@media (max-width: 768px) {
    .interwoven-canvas {
        min-height: 60vh;
        overflow: hidden; /* Prevent floating elements from breaking x-axis */
    }
    
    .massive-typography {
        line-height: 0.9;
        letter-spacing: -1px;
    }
    
    .massive-typography .indent-1 { margin-left: 0; }
    .massive-typography .indent-2 { margin-left: 0; }
    
    /* Enlarge the clips on mobile so they remain legible */
    .floating-clip {
        width: clamp(80px, 25vw, 120px) !important;
    }
}

/* ==========================================================================
   SPLIT INFINITE SCROLL GALLERY | DATE: July 4, 2026
   ========================================================================== */

.split-loop-gallery {
    max-width: 1400px;
    margin: 120px auto;
    padding: 0 20px;
}

.split-loop-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* 40% Text / 60% Images */
    gap: 80px;
    align-items: center;
    height: 700px; /* Fixed height acts as the window for the scroll */
}

/* Left Side: Typography */
.split-loop-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-loop-content .massive-title {
    font-size: clamp(3.5rem, 5vw, 6rem);
    font-weight: var(--font-bold);
    line-height: 0.9;
    letter-spacing: -2px;
    color: var(--white);
    margin: 16px 0 40px 0;
}

/* Right Side: Scroll Tracks */
.split-loop-track-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 100%;
    overflow: hidden; /* Hides the overflowing track items */
    position: relative;
    
    /* Adds a subtle fade at the top and bottom of the container to soften the loop */
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.loop-column {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.loop-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Hardware acceleration for buttery smooth rendering */
    will-change: transform; 
}

/* Base Image Blocks */
.loop-item {
    width: 100%;
    background-color: var(--lightgray);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.loop-item {
    width: 100%;
    background-color: var(--lightgray);
    border-radius: 12px;
    overflow: hidden; /* Crucial: Prevents the image from breaking the rounded corners */
    position: relative;
}

/* Masonry Aspect Ratios */
.loop-item.img-square { aspect-ratio: 1 / 1; }
.loop-item.img-tall { aspect-ratio: 3 / 4; }

.loop-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces the image to fill the container, cropping intelligently */
    object-position: center;
    display: block; /* Removes default inline baseline spacing */
}

/* 
   THE ANIMATION ENGINE 
   These only fire when JavaScript adds the '.is-animated' class to the wrapper
*/
.is-animated .column-up .loop-track {
    animation: scrollTrackUp var(--scroll-speed, 30s) linear infinite;
}

.is-animated .column-down .loop-track {
    /* To scroll down smoothly, we must start halfway up the track */
    transform: translateY(-50%);
    animation: scrollTrackDown var(--scroll-speed, 30s) linear infinite;
}

@keyframes scrollTrackUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Translates exactly half the total height */
}

@keyframes scrollTrackDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .split-loop-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 60px;
    }
    
    .split-loop-track-wrapper {
        height: 500px; /* Redefine height for stacked layout */
    }
}

@media (max-width: 768px) {
    .split-loop-track-wrapper {
        grid-template-columns: repeat(2, 1fr); /* Drop to 2 columns on mobile */
        gap: 12px;
        height: 450px;
    }
    
    /* Hide the 3rd column on mobile to keep images large and legible */
    .loop-column:nth-child(3) {
        display: none; 
    }
}

/* ==========================================================================
   SPLIT INFINITE SCROLL GALLERY (HARD CUT) | DATE: July 4, 2026
   ========================================================================== */

.split-loop-gallery {
    max-width: 1400px;
    margin: 120px auto;
    padding: 0 20px;
}

.split-loop-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* 40% Text / 60% Images */
    gap: 80px;
    align-items: center;
    height: 700px; /* Fixed height acts as the window for the scroll */
}

/* Left Side: Typography */
.split-loop-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-loop-content .massive-title {
    font-size: clamp(3.5rem, 5vw, 6rem);
    font-weight: var(--font-bold);
    line-height: 0.9;
    letter-spacing: -2px;
    color: var(--white);
    margin: 16px 0 40px 0;
}

/* Right Side: Scroll Tracks (Hard Cut Version) */
.split-loop-track-wrapper.hard-cut-edges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 100%;
    
    /* Enforces the hard boundary, removing any fade masks */
    overflow: hidden; 
    mask-image: none;
    -webkit-mask-image: none;
}

.loop-column {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.loop-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Hardware acceleration for buttery smooth 60FPS rendering */
    will-change: transform; 
}

/* Base Image Blocks */
.loop-item {
    width: 100%;
    background-color: var(--lightgray);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

/* Masonry Aspect Ratios */
.loop-item.img-square { aspect-ratio: 1 / 1; }
.loop-item.img-tall { aspect-ratio: 3 / 4; }

/* 
   THE ANIMATION ENGINE 
   Fires only when JS adds '.is-animated' to the wrapper
*/
.is-animated .column-up .loop-track {
    animation: scrollTrackUp var(--scroll-speed, 30s) linear infinite;
}

.is-animated .column-down .loop-track {
    /* Starts halfway up the track for seamless downward scrolling */
    transform: translateY(-50%);
    animation: scrollTrackDown var(--scroll-speed, 30s) linear infinite;
}

@keyframes scrollTrackUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

@keyframes scrollTrackDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .split-loop-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 60px;
    }
    
    .split-loop-track-wrapper.hard-cut-edges {
        height: 500px; /* Redefine height for stacked layout */
    }
}

@media (max-width: 768px) {
    .split-loop-track-wrapper.hard-cut-edges {
        grid-template-columns: repeat(2, 1fr); /* Drop to 2 columns on mobile */
        gap: 12px;
        height: 450px;
    }
    
    /* Hide the 3rd column on mobile to keep images large and legible */
    .loop-column:nth-child(3) {
        display: none; 
    }
}

/* ==========================================================================
   INTERACTIVE DIORAMA CENTERPIECE (DARK MODE) | DATE: July 4, 2026
   ========================================================================== */

.interactive-diorama-section {
    max-width: 1400px;
    margin: 120px auto;
    padding: 0 20px;
}

.diorama-canvas {
    position: relative;
    width: 100%;
    min-height: 85vh; /* Creates a massive, theatrical stage */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; 
    overflow: hidden; /* Contains the parallax movement */
    border-radius: 12px;
    
    /* Initialize CSS vars for JavaScript */
    --mouseX: 0;
    --mouseY: 0;
}

/* The Central Transparent Anchor */
.diorama-anchor {
    position: relative;
    z-index: var(--z);
    max-width: 400px; /* Adjust based on your actual webp dimensions */
    width: 80%; 
    pointer-events: none; /* Allows mouse to interact with elements behind it */
}

.diorama-anchor img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); /* Cinematic depth in dark mode */
}

/* Floating Elements Base */
.diorama-element {
    position: absolute;
    top: var(--t, auto);
    left: var(--l, auto);
    right: var(--r, auto);
    bottom: var(--b, auto);
    z-index: var(--z);
    
    /* GPU-Accelerated Parallax Engine */
    transform: translate3d(
        calc(var(--mouseX) * var(--speed)), 
        calc(var(--mouseY) * var(--speed)), 
        0
    );
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--white);
    pointer-events: none;
}

/* Typography Specifics */
.massive-number {
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: var(--font-bold);
    color: var(--red); /* Deep blue from your reference, adjusted for dark mode */
    opacity: 0.8;
    line-height: 0.8;
    letter-spacing: -5px;
}

.cutout-text {
    display: flex;
    gap: 4px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--font-bold);
}

.paper-scrap {
    background-color: var(--white);
    color: var(--black);
    padding: 2px 12px;
    /* Randomly tilt the "scraps" for that ransom-note/collage feel */
    transform: rotate(calc(var(--speed) * -0.2deg)); 
}

.quote-block {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: var(--font-bold);
    line-height: 1.1;
    letter-spacing: 1px;
}

.meta-block {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.4;
    text-align: right;
}

.dark-box {
    background-color: var(--white);
    color: var(--black);
    padding: 2px 8px;
    font-weight: var(--font-bold);
}

.sub-text {
    font-size: 0.9rem;
    color: var(--lightgray);
}

.corner-text {
    font-size: 1rem;
    font-weight: var(--font-bold);
    letter-spacing: 2px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 8px;
}

/* --- Mobile Responsiveness (CRO Fallback) --- */
@media (max-width: 768px) {
    .diorama-canvas {
        min-height: 60vh;
    }
    
    .diorama-element {
        /* Disables parallax translation on mobile to prevent layout thrashing */
        transform: none !important; 
    }
    
    /* Re-flow elements to remain legible and unbroken on small screens */
    .massive-number { top: 5%; left: 10%; }
    .quote-block { top: 20%; left: 5%; }
    .meta-block { top: 60%; right: 5%; text-align: right; }
}

/* ==========================================================================
   EDITORIAL INDEX & PROCESS LOOP | DATE: July 4, 2026
   ========================================================================== */

/* Shared Layout Architecture */
.editorial-index-static,
.process-loop-interactive {
    max-width: 1400px;
    margin: 120px auto;
    padding: 0 20px;
    background-color: transparent; /* Explicitly transparent per instructions */
}

.editorial-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exact 50/50 split */
    gap: 80px;
    align-items: center;
}

/* The F-Pattern Grid */
.index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Base Item Styling (Used for both static div and interactive button) */
.index-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px;
    border-radius: 8px; /* Softens the solid block when active */
    transition: var(--transition);
    /* For buttons, reset default typography */
    font-family: inherit; 
    cursor: default;
}

/* Specifics for the Interactive Button */
button.index-item {
    cursor: pointer;
}

/* Typography & The Separator Line */
.index-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--font-bold);
    line-height: 1;
    margin-bottom: 12px;
    width: 100%;
    /* Recreating the reference line */
    border-bottom: 4px solid var(--red); 
    padding-bottom: 8px;
}

.index-text {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 0;
}

/* --- The Active State (Interactive Block Only) --- */
button.index-item:hover {
    background-color: rgba(255, 255, 255, 0.03); /* Subtle hover for UX */
}

button.index-item.is-active {
    /* Solid block identifying the current step */
    background-color: var(--gray); 
    /* Slightly scaling up provides excellent tactile feedback */
    transform: scale(1.02); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Image Container Specs */
.editorial-image-wrapper {
    width: 100%;
    height: 100%;
}

.dummy-bg {
    background-color: var(--lightgray); /* Requested placeholder color */
}

/* Smooth Cross-fade Utility for JS */
.js-process-image-target img {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.js-process-image-target.is-fading img {
    opacity: 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .editorial-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .index-grid {
        gap: 20px;
    }
    
    .index-item {
        padding: 12px;
    }
    
    .index-number {
        border-bottom: 2px solid var(--red);
    }
}

/* ==========================================================================
   SWISS EDITORIAL INDEX (DARK MODE) | DATE: July 4, 2026
   ========================================================================== */

.editorial-magazine-grid { max-width: 1400px; margin: 140px auto; padding: 0 20px; }
.mag-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.mag-column { display: flex; flex-direction: column; gap: 120px; }
.mag-header { display: flex; flex-direction: column; }

.mag-num {
    font-size: clamp(5rem, 8vw, 8rem);
    font-weight: var(--font-bold);
    color: var(--white);
    line-height: 0.8;
    letter-spacing: -4px;
    margin-bottom: 16px;
}

.mag-title { font-size: 1.1rem; font-weight: var(--font-bold); color: var(--lightgray); margin: 0; line-height: 1.3; }
.mag-media { border-radius: 4px; overflow: hidden; background-color: var(--lightgray); }

.mag-media.img-landscape { aspect-ratio: 1 / 1; }
.mag-media.img-portrait { aspect-ratio: 3 / 4; }

.mag-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(0.9);
}

.mag-module:hover .mag-media img { transform: scale(1.03); filter: brightness(1); }

/* Layout Mods */
.mag-layout-side { display: flex; flex-direction: row; gap: 40px; align-items: flex-start; }
.mag-layout-side .mag-header { flex: 0 0 120px; }
.mag-layout-side .mag-media { flex: 1; }

.mag-layout-stacked .mag-header {
    flex-direction: row; justify-content: space-between; align-items: flex-end;
    margin-bottom: 24px; border-bottom: 1px solid var(--gray); padding-bottom: 16px;
}
.mag-layout-stacked .mag-num { margin-bottom: -8px; }
.mag-layout-stacked .mag-title { text-align: right; }
.mag-layout-stacked .mag-media { width: 100%; }

.mag-layout-side-reverse { display: flex; flex-direction: row; gap: 40px; align-items: flex-start; }
.mag-layout-side-reverse .mag-media { flex: 1; }
.mag-layout-side-reverse .mag-header { flex: 0 0 120px; }

/* Mobile */
@media (max-width: 1024px) {
    .mag-grid-container { gap: 60px; }
    .mag-column { gap: 80px; }
    .mag-layout-side, .mag-layout-side-reverse { gap: 24px; }
    .mag-layout-side .mag-header, .mag-layout-side-reverse .mag-header { flex: 0 0 90px; }
}

@media (max-width: 768px) {
    .mag-grid-container { grid-template-columns: 1fr; gap: 60px; }
    .mag-column { gap: 60px; margin-top: 0 !important; }
    .mag-layout-side, .mag-layout-side-reverse { flex-direction: column; gap: 20px; }
    .mag-layout-side-reverse { flex-direction: column-reverse; }
    .mag-layout-side .mag-header, .mag-layout-side-reverse .mag-header {
        flex: auto; flex-direction: row; align-items: flex-end; justify-content: space-between;
        width: 100%; border-bottom: 1px solid var(--gray); padding-bottom: 12px;
    }
    .mag-num { font-size: 4rem; margin-bottom: -6px; }
}

.colour-palette-section {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.palette-title {
  font-family: var(--font-main);
  font-weight: normal;
  text-align: center;
  font-size: 140px;
  color: var(--gray);
  margin-bottom: 36px;
  letter-spacing: 1px;
  line-height:0.9;
}

.palette-container {
  display: flex;
  gap: 64px;
}

.colour-block {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

/* ==========================================================================
   INTRO TO SPLIT TEXT BLOCK (DARK MODE) | DATE: July 5, 2026
   ========================================================================== */

.txt-layout-intro-split {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px; 
}

/* Constrain the text block slightly for optimal reading line-length */
.intro-split-wrapper {
    max-width: 1200px; 
    margin: 0 auto;
}

.txt-layout-intro-split .cs-title {
    margin-bottom: 24px;
}

/* Lead Paragraph Spacing */
.intro-lead-content {
    margin-bottom: 48px;
}

/* CSS Grid for the split details */
.intro-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Wide, editorial gutter */
    align-items: start;
}

/* Reset margin for grid items to allow the grid 'gap' to handle spacing */
.intro-split-grid .cs-body-text {
    margin-bottom: 0; 
}

/* Ensure bold lead-ins map to your dark mode contrast */
.txt-layout-intro-split strong {
    color: var(--white);
    font-weight: var(--font-bold);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .intro-split-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .txt-layout-intro-split {
        padding: 60px 20px;
    }
    
    .intro-lead-content {
        margin-bottom: 32px;
    }

    /* Stack the columns perfectly on mobile devices for seamless scrolling */
    .intro-split-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.logo-step-process .sub-section {
    border-left: 0;
    text-align: center;
    max-width: 360px;
    margin: auto;
}






/*--------------------------------------------------
FINAL RESET (Applicable for all)
---------------------------------------------------*/

.center {
    text-align: center;
}

strong {
    letter-spacing: -1px;
}
