/* Updated Base Styles & Typography */
:root {
    --primary-color: #1A252C; 
    --secondary-color: #4A5568;
    --accent-color: #3182CE;
    --bg-light: #F7FAFC;
    --text-color: #2D3748;
    
    /* The Editorial Edge Pairing */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

/* --- Global Smooth Scrolling --- */
html {
    /* scroll-behavior: smooth; */
    /* Offsets the scroll position to account for your sticky navbar */
    scroll-padding-top: 6rem; 
}

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

html, body {
    /* Prevents the page from scrolling horizontally to reveal off-screen elements */
    overflow-x: clip; 
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.padding-0 { padding: 0 !important; }

/* Navigation */
/* --- 2. Update Navbar for Smooth Sliding --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    /* Add transform transition so it slides smoothly */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* --- Navigation Links & Active State --- */
.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative; /* Required for the animated border */
    transition: color 0.3s ease;
}

/* The invisible border waiting to be triggered, explicitly excluding the button */
.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* The thin bottom border */
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color); /* Uses your primary blue accent */
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Make the text darker on hover OR when active, excluding the button */
.nav-links a:not(.btn-nav):hover,
.nav-links a:not(.btn-nav).active {
    color: var(--primary-color);
}

/* Draw the border on hover OR when active, excluding the button */
.nav-links a:not(.btn-nav):hover::after,
.nav-links a:not(.btn-nav).active::after {
    width: 100%; /* Draws the line completely across the word */
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-nav {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-primary, .btn-nav {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover, .btn-nav:hover {
    background: var(--accent-color);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Sections General */
section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400; /* DM Serif Display looks best at its default weight */
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: normal; /* Removed tight letter spacing for the serif */
}

h2 {
    font-size: 2.5rem;
}

/* Upgraded Hero Section with Soft Gradient */
.hero {
    position: relative;
    padding: 10rem 0 8rem 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 37, 44, 0.05) 0%, rgba(247, 250, 252, 1) 100%);
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem; 
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.75rem;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle SVG Noise Data URI */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    /* Fades the noise out at the bottom of the hero section */
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: 1;
}

.relative-content {
    position: relative;
    z-index: 2;
}

.sub-headline {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--secondary-color);
}

/* Philosophy Section */
.philosophy {
    text-align: center;
}

.philosophy p {
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Approach Section */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    /* border-top: 4px solid var(--primary-color); */
}

/* --- Chaos to Order (Staggered Cards) --- */
.stagger-card {
    /* Initial 'Chaotic' State: slightly offset, rotated, and invisible */
    opacity: 0;
    transform: translateY(50px) rotate(3deg);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The 'Ordered' State (triggered by JavaScript) */
.stagger-card.is-aligned {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* --- Forward Progress (Button Hover) --- */
.btn-arrow {
    position: relative;
    display: inline-block;
    transition: padding-right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-container {
    text-align: center;
}

/* Expertise Section */
.split-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.split-content {
    flex: 1;
}

.split-content p {
    margin-bottom: 1.5rem;
}

.split-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expertise-block h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* --- Parallax Effect with Contrasting Gradient --- */
.parallax-section {
    position: relative;
    
    /* Ensure no stray background-color properties are here */
    
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(135deg, var(--primary-color) 0%, #3A2E2A 100%);
    
    background-size: 30px 30px, 100% 100%;
    background-attachment: fixed, fixed; 
    background-position: center, center;
    background-repeat: repeat, no-repeat; 
    padding: 0; 
}

.parallax-overlay {
    /* Lowered opacity from 0.85 to 0.4 to let the copper shine through */
    background-color: rgba(26, 37, 44, 0.4); 
    padding: 8rem 0;
    text-align: center;
}

.text-light {
    color: #ffffff !important;
}
.text-align-left { text-align: left !important; }
.text-align-center { text-align: center !important; }

.parallax-section p {
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    color: #E2E8F0; /* Soft off-white for readability */
}

.btn-arrow::after {
    content: '—>'; /* Minimalist elongated arrow */
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: var(--font-body);
    font-weight: 500;
}

.btn-arrow:hover {
    padding-right: 3.5rem; /* Shifts text to the left by expanding right padding */
}

.btn-arrow:hover::after {
    opacity: 1;
    transform: translateX(0);
    right: 1.5rem;
}

/* --- Deep Alignment Section & SVG Animation --- */
:root {
    /* Adding a warm copper accent for the deepest layer */
    --copper-accent: #C47958; 
}

.align-section {
    padding: 8rem 0;
    overflow: hidden;
}

.text-copper {
    color: var(--copper-accent) !important;
}

/* SVG Base Styles */
.iceberg-svg {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.svg-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Set up for the drawing animation */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.svg-line.tip {
    stroke: rgba(26, 37, 44, 0.3);
}

.core-pulse {
    fill: var(--copper-accent);
    opacity: 0;
    transform-origin: 200px 400px; /* Center of the circle */
}

/* Story Text Base Styles */
.story-step {
    opacity: 0;
    transform: translateX(30px);
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(26, 37, 44, 0.3);
}

.story-step h4 {
    margin-bottom: 0.25rem;
    font-family: var(--font-body); /* Keep it modern and clean */
    font-weight: 700;
}

/* --- Animation Classes (Triggered by JS) --- */

/* 1. Draw the Waterline */
.is-animating .waterline {
    animation: drawLine 2s cubic-bezier(0.25, 1, 0.5, 1) forwards 1s;
}

/* 2. Draw the Tip & Fade in Step 1 */
.is-animating .tip {
    /* Removed the rogue 0.8s */
    animation: drawLine 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 2.5s;
}
.is-animating .step-1 {
    animation: fadeSlideIn 1.2s ease forwards 2.5s;
    border-left-color: rgba(26, 37, 44, 0.3);
}

/* 3. Draw the Descent & Fade in Step 2 */
.is-animating .descent {
    /* Removed the rogue 1.5s */
    animation: drawLine 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 4s;
}
.is-animating .step-2 {
    animation: fadeSlideIn 1.2s ease forwards 4.5s;
    border-left-color: var(--primary-color);
}

/* 4. Pulse the Core & Fade in Step 3 */
.is-animating .core-pulse {
    animation: corePulse 3s infinite ease-in-out 7.5s, fadeSlideIn 1s forwards 7.5s;
}
.is-animating .step-3 {
    animation: fadeSlideIn 1.2s ease forwards 7.5s;
    border-left-color: var(--copper-accent);
}

/* Keyframes */
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes corePulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

/* --- Phase Layouts & Labels --- */
.animate-on-scroll {
    padding: 6rem 0; /* Creates breathing room between phases */
    border-bottom: 1px solid rgba(26, 37, 44, 0.05);
}

.animate-on-scroll:last-child {
    border-bottom: none;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.phase-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* --- Phase 2: Double Diamond Animations --- */
.diamond-svg, .impact-svg {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.impact-svg { overflow: visible; }
    
.center-axis { opacity: 0; transition: opacity 1s ease; }
.is-animating .center-axis { 
    opacity: 0.3; 
    transition: opacity 1.5s ease 1s; 
}

.is-animating .diamond-path {
    animation: drawLine 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 1.5s;
}

.svg-line.diamond-left {
    stroke: rgba(26, 37, 44, 0.3);
}

.is-animating .delay-path {
    animation-delay: 3.5s; /* Right diamond draws after left */
}

/* --- Phase 3: Theory of Change Animations --- */
.svg-node {
    fill: var(--bg-light);
    stroke: var(--primary-color);
    stroke-width: 3;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
}

.final-impact {
    fill: var(--accent-color);
    stroke: var(--accent-color);
    transform-origin: 350px 50px;
}

.is-animating .trend-line {
    animation: drawLine 4s linear forwards 1s;
}

.is-animating .node-1 { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.2s; }
.is-animating .node-2 { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2s; }
.is-animating .node-3 { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.8s; }
.is-animating .node-4 { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 3.6s; }
.is-animating .node-5 { animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 4.4s, corePulse 3s infinite ease-in-out 5.5s; }

@keyframes popIn {
    to { opacity: 1; transform: scale(1); }
}

/* --- Our Services Section --- */
.services-section {
    padding: 8rem 0;
    /* Adding a subtle top border to separate it from the light expertise section */
    border-top: 1px solid rgba(26, 37, 44, 0.05);
}

.align-start {
    align-items: flex-start;
}

.sticky-sidebar {
    position: sticky;
    top: 10rem; /* Keeps it pinned slightly below the navbar */
}

.service-scroll {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-block {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(26, 37, 44, 0.05);
    transition: transform 0.3s ease;
}

.service-block:hover {
    transform: translateY(-5px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 37, 44, 0.1);
    padding-bottom: 1rem;
}

.service-header h3 {
    margin-bottom: 0;
    font-size: 2rem;
}

.service-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--secondary-color);
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    align-self: flex-start;
}

.service-list {
    margin-top: 1.5rem;
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* --- Option 1: The Deep Slate Anchor (Contact Section) --- */
.contact-section {
    padding: 8rem 0;
    /* Flip the background to Deep Slate */
    background-color: var(--primary-color); 
    color: #E2E8F0; /* Soft off-white for the paragraph text */
}

/* Ensure headings pop against the dark background */
.contact-section h2 {
    color: #ffffff;
}

/* Use the copper accent for the label to tie the design together */
.contact-section .phase-label {
    color: var(--copper-accent);
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-info strong {
    font-family: var(--font-body);
    color: #ffffff;
}

/* The Form Container: Semi-transparent slate with a copper border */
.custom-form {
    background: rgba(255, 255, 255, 0.03); 
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(196, 121, 88, 0.3); /* Subtle copper border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: #E2E8F0; /* Light gray for labels */
    margin-bottom: 0.5rem;
}

/* Premium Dark Mode Input Styling */
.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    /* Dark semi-transparent inputs with light borders */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Elegant Focus States using the Copper Accent */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper-accent);
    box-shadow: 0 0 0 3px rgba(196, 121, 88, 0.15);
}

/* Override the Submit Button to stand out against the slate */
.custom-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    background-color: var(--copper-accent);
    color: #ffffff;
}

.custom-form .btn-primary:hover {
    background-color: #A36449; /* Slightly darker copper on hover */
}

/* Responsive adjustments for the form row */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    /* Class applied by JavaScript when scrolling down on mobile */
    .navbar.nav-hidden {
        transform: translateY(-100%);
    }
}

/* --- Formspree Status Messages --- */
.form-status-message {
    display: none; /* Hidden by default, Formspree SDK will show it */
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    animation: fadeSlideIn 0.5s ease forwards;
}

.success-message {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
}

.success-message h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.success-message p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.error-message {
    background-color: #FFF5F5;
    border-left: 4px solid #E53E3E;
    color: #C53030;
    font-weight: 500;
}

.field-error {
    color: #E53E3E;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Formspree automatically hides the form when success is shown */
form[data-fs-form-success] {
    display: none;
}

/* --- Footer Styles --- */
.site-footer {
    /* A shade darker than the primary slate to ground the bottom of the page */
    background-color: #121A1F; 
    color: #A0AAB2; /* Muted gray so it doesn't compete with the form */
    padding: 2rem 0;
    font-size: 0.9rem;
    font-family: var(--font-body);
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle separator */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    margin: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #A0AAB2;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* A final touch of the warm copper on hover */
.footer-links a:hover {
    color: var(--copper-accent); 
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Legal Pages (Privacy Policy, Terms) --- */

/* A slightly shorter hero section so the text is immediately visible */
.legal-hero {
    padding: 8rem 0 6rem 0; 
}

/* Constrains reading width for long paragraphs to prevent eye fatigue */
.legal-container {
    max-width: 800px; 
    margin: 0 auto;
}

.legal-block h3 {
    font-family: var(--font-heading);
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.legal-block p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* --- Logo Updates --- */
.nav-logo {
    height: 40px; /* Adjust this value to scale your logo appropriately */
    width: auto;
    display: block;
}

/* --- Morphing Mobile Hamburger Menu (Bulletproof Absolute Method) --- */
.mobile-toggle {
    display: none; /* Displayed via your existing @media query */
    cursor: pointer;
    position: relative;
    
    /* Explicitly lock the width and height of the 3 bars + gaps (3+6+3+6+3 = 21) */
    width: 25px;
    height: 21px; 
    
    z-index: 1003; 
    padding: 0; 
    margin: 0;
    flex-shrink: 0;
}

.mobile-toggle .bar {
    /* Remove from flex flow to absolutely prevent browser squishing */
    position: absolute; 
    left: 0;
    
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Forces the rotation to happen exactly in the middle of the bar */
    transform-origin: center; 
}

/* Mathematically place each line exactly 9 pixels apart */
.mobile-toggle .bar:nth-child(1) { top: 0; }
.mobile-toggle .bar:nth-child(2) { top: 9px; }
.mobile-toggle .bar:nth-child(3) { top: 18px; }

/* --- The 'Active' Morphing State --- */
.mobile-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Mobile Responsiveness (Phones & Small Tablets) --- */
@media (max-width: 768px) {
    /* 1. Header & Navigation Drawer */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen to the right */
        width: 80%; /* Drawer width */
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1002;
        align-items: flex-start;
    }

    /* Class added by JS to slide the drawer in */
    .nav-links.nav-open {
        right: 0;
    }

    /* --- Mobile Drawer Close Button (Custom 'X') --- */
    .mobile-close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        width: 26px;  /* The overall clickable width of the 'X' */
        height: 26px; /* The overall clickable height of the 'X' */
        cursor: pointer;
        z-index: 1003; /* Ensures it stays above the drawer background */
    }

    .mobile-close .close-line {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        
        /* THIS IS YOUR WEIGHT CONTROL */
        /* Change this to 1px for a delicate look, or 3px for a bolder look */
        height: 2px; 
        
        background-color: var(--primary-color);
        border-radius: 2px;
        display: block;
    }

    /* Rotate the first line clockwise */
    .mobile-close .close-line:nth-child(1) {
        transform: translateY(-50%) rotate(45deg);
    }

    /* Rotate the second line counter-clockwise */
    .mobile-close .close-line:nth-child(2) {
        transform: translateY(-50%) rotate(-45deg);
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .nav-links .btn-nav {
        text-align: center;
        width: 100%;
        margin-top: 1rem;
    }

    .hero, .parallax-overlay, .services-section, .contact-section { padding: 5rem 0 6rem; }
    .parallax-overlay h2, .approach h2, .split-content h2 { line-height: 3.5rem; }

    /* 2. Reposition 2-Column Sections (Right floating under Left) */
    .split-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center; /* Centers text nicely on mobile */
        padding: 0rem 1.5rem;
    }

    .split-content.sticky-sidebar {
        position: static; /* Removes sticky behavior */
        top: auto;        /* Resets the top offset */
    }

    /* 2. Draw the Tip & Fade in Step 1 */
    .is-animating .tip {
        animation: drawLine 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards .5s;
    }
    .is-animating .step-1 {
        animation: fadeSlideIn 1.2s ease forwards .5s;
    }
    .is-animating .descent {
        animation: drawLine 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 2s;
    }
    .is-animating .step-2 {
        animation: fadeSlideIn 1.2s ease forwards 2.5s;
        border-left-color: var(--primary-color);
    }
    .is-animating .core-pulse {
        animation: corePulse 3s infinite ease-in-out 7.5s, fadeSlideIn 1s forwards 4.5s;
    }
    .is-animating .step-3 {
        animation: fadeSlideIn 1.2s ease forwards 4.5s;
        border-left-color: var(--copper-accent);
    }

    .center-axis { opacity: 0; transition: opacity .5s ease; }
    .is-animating .center-axis { 
        opacity: 0.3; 
        transition: opacity 1s ease 0s; 
    }

    .is-animating .diamond-path {
        animation: drawLine 2s cubic-bezier(0.25, 1, 0.5, 1) forwards 1s;
    }

    .is-animating .delay-path {
        animation-delay: 2.5s; /* Right diamond draws after left */
    }

    .service-header { justify-content: center; }
    .service-header h3 { line-height: 2.2rem; } /* Prevents the title from looking too tall on mobile */

    .service-tag { display: none; }

    .service-list li::before { display: none;}
    .service-list li { font-style: italic; }

    /* Reverses the normal stack so the visual stays on top matching desktop */
    .reverse-layout {
        flex-direction: column-reverse;
    }

    /* 3. Scale Down Illustrations */
    .iceberg-svg, .diamond-svg, .impact-svg {
        max-width: 240px; 
    }
    
    /* Center the story steps for mobile */
    .story-step {
        text-align: left; /* Keep the actual steps left-aligned for readability */
    }
}