/* --- CSS RESET & BASE VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-headings: 'Sora', sans-serif;
    --font-body: 'Onest', sans-serif;
    --color-black: #111111;
    --color-white: #ffffff;
    --color-grey: #e0e0e0;
    --color-grey-dark: #666666;

    /* Light theme variables */
    --color-bg-light: #f5f5f5;
    /* Slightly cooler light grey */
    --color-text-dark: #0f0f0f;
    --color-text-muted: #999999;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-accent: #d4af37;
    /* Very subtle gold/warm accent if needed */
}

/* --- RESPONSIVE PICTURE FIX --- */
/* Forces the picture tag to perfectly fill its parent container without breaking the grid */
picture.responsive-pic {
    display: block;
    width: 100%;
    height: 100%;
}

picture.responsive-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html {
    scroll-behavior: smooth;
    /* Enable vertical (y) snapping and force it to snap (mandatory) */
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-black);
    overflow-x: hidden;
    /* scroll-behavior: smooth; */
}

/* Apply snapping to all major sections */
section {
    /* Snap the top of the section to the top of the viewport */
    scroll-snap-align: start;

    /* Forces the scroll to stop at this section (prevents skipping sections on a fast scroll) */
    scroll-snap-stop: always;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* --- LOADER SCREEN --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- ENTRANCE ANIMATIONS (HERO) --- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SCROLL REVEAL ANIMATIONS (GENERAL) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   STICKY NAVIGATION BAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(env(safe-area-inset-top, 0px) + 2.5rem) 4rem 2.5rem 4rem;
    width: 100%;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(-100%);
    /* Start hidden until hero loads */
}

/* Reveal navbar after loader */
.navbar.visible {
    transform: translateY(0);
}

/* Scrolled State for Navbar - Further reduced height */
.navbar.scrolled {
    padding: calc(env(safe-area-inset-top, 0px) + 0.5rem) 4rem 0.5rem 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled.transparent-override {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

/* Chaining .scrolled and .transparent-override guarantees these win */
.navbar.scrolled.transparent-override .brand {
    color: var(--color-white);
}

.navbar.scrolled.transparent-override .nav-links {
    color: var(--color-white);
}

.navbar.scrolled.transparent-override .hamburger span {
    background-color: var(--color-white);
}

.navbar.scrolled.transparent-override .nav-links a.active:not(.nav-btn-secondary)::after {
    background-color: var(--color-white);
}

.navbar.scrolled.transparent-override .nav-btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    /* Removed: the temporary blur fix from the previous step */
}

.navbar.scrolled.transparent-override .nav-btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black) !important;
}

.brand {
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    position: relative;
    z-index: 1001;
    transition: color 0.4s ease;
}

.navbar.scrolled .brand {
    color: var(--color-text-dark);
}

.brand h1 {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 0.2rem;
    transition: font-size 0.4s ease, margin-bottom 0.4s ease;
}

.navbar.scrolled .brand h1 {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.brand p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-grey);
    transition: color 0.4s ease, font-size 0.4s ease, opacity 0.4s ease;
}

/* Hide paragraph on scroll for a tighter navbar */
.navbar.scrolled .brand p {
    opacity: 0;
    font-size: 0;
    height: 0;
    overflow: hidden;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background-color: var(--color-text-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    color: var(--color-white);
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-links {
    color: var(--color-text-dark);
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-links a {
    font-size: 0.8rem;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active:not(.nav-btn-secondary)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: background-color 0.4s ease;
}

.navbar.scrolled .nav-links a.active:not(.nav-btn-secondary)::after {
    background-color: var(--color-text-dark);
}

.nav-links a.active:not(.nav-btn-secondary) {
    font-weight: 600;
    opacity: 1;
}

.nav-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-btn-secondary {
    border-color: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 1.2rem;
    /* Removed: backdrop-filter: none; */
}

.nav-btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black) !important;
    opacity: 1;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white) !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--color-black);
    overflow: hidden;
}

/* BACKGROUND LAYERS & OVERLAY */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Prevent the zoomed images from bleeding outside the hero section */
    overflow: hidden; 
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    
    /* THE FIX: Hardware acceleration for perfectly smooth, jitter-free scaling */
    will-change: transform, opacity;
    
    /* 30 seconds ensures the movement is barely perceptible but constantly active */
    animation: cinematicDrift 30s ease-in-out infinite alternate;
}

.hero-bg-layer:nth-child(even) {
    animation-duration: 35s;
    animation-direction: alternate-reverse;
}

.hero-bg-layer.active {
    opacity: 1;
    z-index: 2;
}

@keyframes cinematicDrift {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 65%);
    z-index: 5;
    pointer-events: none;
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 10;
    margin-top: auto;
    padding: 0 4rem 4rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-text {
    max-width: 800px;
}

.hero-text h2 {
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: var(--color-white);
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 550px;
    color: var(--color-grey);
    font-weight: 300;
}

/* BUTTONS & TAGS */

.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-white);
    color: var(--color-black);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    
    /* 1. Keep text small */
    font-size: 0.85rem; 
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    
    /* 2. Scaled-down proportional padding */
    /* Top: 0.6rem, Right: 0.6rem, Bottom: 0.6rem, Left: 1.6rem */
    padding: 0.6rem 0.6rem 0.6rem 1.6rem !important; 
}

.btn-primary:hover {
    background-color: var(--color-grey);
    transform: translateY(-2px);
}

.btn-primary .arrow {
    /* 3. Proportionally smaller circle */
    width: 26px;
    height: 26px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Tighter gap to match the smaller button scale */
    margin-left: 12px;
    padding: 0;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.hero-tags {
    display: flex;
    gap: 1rem;
}

.tag {
    position: relative;
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 9999px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag .text {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.tag .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.25);
    z-index: 0;
}

.tag:hover,
.tag.manual-selected {
    background-color: var(--color-white);
    color: var(--color-black);
    transition: all 0.3s ease;
}

.tag:hover .progress-bar,
.tag.manual-selected .progress-bar {
    display: none;
}

/* --- SCROLL INDICATOR (REFINED) --- */
.scroll-indicator {
    position: absolute;
    bottom: 15px; /* Tucked closer to the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none; /* Prevents blocking clicks */
}

/* 1. Hide entirely on mobile and small tablets */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }
}

/* 2. Smaller, more subtle track for laptops */
.scroll-line {
    width: 1px;
    height: 20px; /* Reduced from 50px for a quieter presence */
    background: rgba(255, 255, 255, 0.0); /* Barely visible background track */
    position: relative;
    overflow: hidden;
}

/* 3. Intuitive "falling bead" animation */
.scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.5); /* Bright white falling element */
    animation: dropAnim 1.8s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* The animation fades in at the top and fades out at the bottom, pulling the eye down */
@keyframes dropAnim {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

/* Class added by JS to hide it when the user starts scrolling */
.scroll-indicator.fade-out {
    opacity: 0;
    transform: translate(-50%, 15px);
}


/* =========================================
   WHAT WE DO SECTION (Redesigned)
   ========================================= */
.what-we-do {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    /* 100vh height ensures it fills the screen perfectly */
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.full-height {
    height: 100%;
    width: 100%;
    display: flex;
    /* We keep center alignment but use a smaller top padding to move the header up */
    align-items: center;
    padding-top: 1.5rem;
}

.services-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
    width: 100%;
    height: 85%;
    /* Slightly taller to accommodate content */
}

/* Left Column: Interactive List */
.services-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 500px;
}

.services-header {
    /* Tightened margin to pull the list higher */
    margin-bottom: 1rem;
}

.section-number {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.section-title {
    /* Scaled down for laptop height constraints */
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 500;
}

.services-list {
    list-style: none;
    /* border-top: 1px solid var(--color-border); */
}


.service-item {
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
    position: relative;
    /* Increased to 115px: Provides massive breathing room for 2-3 lines of text */
    height: 94px;
    /*  */
    display: flex;
    align-items: center;
}

.service-item:last-child {
    border-bottom: none;
    /* Removes the line at the very bottom of the list */
}


.service-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2rem;
    width: 2px;
    height: 0%;
    background-color: var(--color-text-dark);
    transition: all 0.4s ease;
    transform: translateY(-50%);
}

.service-content {
    display: flex;
    flex-direction: column;
    color: var(--color-text-muted);
    transition: all 0.4s ease;
    width: 100%;
}



.service-header-row {
    display: flex;
    align-items: baseline;
    /* This gap ensures the title starts at a consistent spot */
    gap: 0;
}


.service-num {
    font-family: var(--font-body);
    /* color: var(--color-grey-dark); */
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 4px;
}

.service-name {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.3px;
    margin: 0;
    transition: transform 0.4s ease;
}


.service-desc {
    font-size: 0.85rem;
    color: var(--color-grey-dark);
    line-height: 1.4;
    opacity: 0;
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    /* Ensures it tries to fill the container */
    z-index: 10;
    pointer-events: none;
    visibility: hidden;
    padding-left: 0;
    padding-right: 0;
    /* Removed padding to allow full span */
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
    max-width: 100%;
    /* Changed from 90% to 100% to prevent premature wrapping */
}

.service-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    /* Slightly thicker than the border for visibility */
    width: 0%;
    background-color: var(--color-text-muted);
    z-index: 5;
    /* Smooth width transition for the frame-based updates */
    transition: width 0.15s linear;
    opacity: 0.25;
}

.service-item:not(.active) .service-progress-bar {
    width: 0% !important;
}

/* Hover & Active States */
.service-item:hover .service-content {
    color: rgba(15, 15, 15, 0.7);
}

.service-item.active .service-content {
    color: var(--color-text-dark);
    /* Moves the Title/Num block up more aggressively to open up the bottom half */
    transform: translateY(-20px);
}

.service-item.active::before {
    height: 60px;
}

.service-item.active .service-name {
    font-weight: 500;
}


.service-item.active .service-desc {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease, visibility 0s linear 0s;
}


/* Right Column: Dynamic Graphic Area */
.services-graphic {
    flex: 1.2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.graphic-container {
    position: relative;
    width: 100%;
    height: 70vh;
    background-color: #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    
    /* ADDED: This will temporarily hold the "old" image during the wipe */
    background-size: cover;
    background-position: center;
}

.graphic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transform: scale(1.01);
    /* clip-path and its transition removed entirely */
}

.graphic-container::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    
    /* The color of the wiping block. You can change this to var(--color-white) or #ebebeb for a lighter look */
    background-color: var(--color-bg-light); 
    z-index: 2;
    
    /* Default State (Idle): Shrunk to 0 width on the right edge */
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
}

/* Active State (During the 400ms JS delay): Expands from the left edge */
.graphic-container.changing::after {
    transform-origin: left;
    transform: scaleX(1);
}



.graphic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(245, 245, 245, 0.4) 0%, transparent 30%);
    pointer-events: none;
}

.graphic-caption {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.graphic-caption::before {
    content: '';
    width: 30px;
    height: 1px;
    background-color: var(--color-text-muted);
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .navbar {
        padding: calc(env(safe-area-inset-top, 0px) + 2rem) 2rem 2rem 2rem;
    }

    .navbar.scrolled {
        padding: calc(env(safe-area-inset-top, 0px) + 1rem) 2rem 1rem 2rem;
    }

    /* Hero adjustments */
    .hero-text h2 {
        font-size: 2.4rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 0 2rem 4rem 2rem;
    }

    .hero-tags {
        flex-wrap: wrap;
    }

    /* Services adjustments */
    .what-we-do {
        height: auto;
        min-height: 100vh;
        padding: 8rem 0 4rem 0;
    }

    .services-wrapper {
        flex-direction: column-reverse;
        gap: 4rem;
        height: auto;
    }

    .services-list-container {
        max-width: 100%;
        width: 100%;
    }

    .graphic-container {
        height: 40vh;
    }
}


/* =========================================
   REFINED MOBILE SERVICES (768px and below)
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) 1.5rem 1.5rem 1.5rem;
    }

    .navbar.scrolled {
        padding: calc(env(safe-area-inset-top, 0px) + 0.8rem) 1.5rem 0.8rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Menu styling */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        color: var(--color-white) !important;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle .line2 {
        opacity: 0;
    }

    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links a {
        font-size: 1.2rem !important;
    }

    .nav-links a.active::after {
        background-color: var(--color-white) !important;
    }

    .nav-btn-secondary {
        font-size: 1rem !important;
        padding: 0.8rem 2rem;
        color: var(--color-white) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    /* Hero mobile */
    .hero-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
    }

    .hero-content {
        padding: 0 1.5rem 3.5rem 1.5rem;
        gap: 2.5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* --- Hero Tags Mobile Animation --- */
    .hero-tags {
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    /* Inactive State: Shrinks to a perfect circle */
    .tag {
        flex-grow: 0;
        padding: 0;
        width: auto;
        min-width: 36px;
        max-width: 36px;
        height: 36px;
        border-radius: 36px;
        transition: max-width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s,
            padding 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s,
            background-color 0.3s ease;
    }

    /* Hide text smoothly when inactive */
    .tag .text {
        display: inline-block;
        opacity: 0;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: opacity 0.1s ease 0s,
            max-width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
    }

    /* Active State: Expands into a pill */
    .tag.active {
        max-width: 250px;
        padding: 0 1.2rem;
        transition: max-width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0s,
            padding 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0s,
            background-color 0.3s ease;
    }

    /* Reveal text smoothly when active */
    .tag.active .text {
        opacity: 1;
        max-width: 150px;
        transition: max-width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0s,
            opacity 0.4s ease 0.4s;
    }

    .tag:not(.active) .text {
        opacity: 0;
    }

    .tag.active.fading-out .text {
        opacity: 0 !important;
        transition: opacity 0.25s ease !important;
    }

    /* Service List Mobile Optimizations */
    .what-we-do {
        padding: 4rem 0 3rem 0;
        /* Reduced top padding */
        height: auto;
        min-height: 100vh;
    }

    .services-wrapper {
        flex-direction: column-reverse;
        gap: 2.5rem;
        /* Reduced gap between image and text */
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-header {
        margin-bottom: 0.8rem;
    }

    .services-graphic {
        width: 100%;
        margin-bottom: 1rem;
    }

    .graphic-container {
        height: 32vh;
        /* Reduced height to fit everything better */
        margin-bottom: 0;
    }

    .graphic-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        /* Dark gradient overlay ensures caption text is readable */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
        padding: 2rem 1rem 1rem 1.5rem;
        margin-top: 0;
        z-index: 5;
        pointer-events: none;
    }

    .graphic-caption p {
        color: var(--color-white);
        /* Contrast against the image */
        font-size: 0.7rem;
        max-width: 85%;
    }

    .graphic-caption::before {
        background-color: var(--color-white);
        width: 20px;
    }

    .service-item {
        height: auto;
        min-height: 80px;
        padding: 1.5rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .service-name {
        font-size: 1.1rem;
    }

    .service-content {
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .service-num {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .service-name {
        font-size: 1.15rem;
    }

    .service-desc {
        position: relative;
        top: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        margin-top: 0.2rem;
        padding-right: 1rem;
        padding-left: 0;
        font-size: 0.8rem;
        line-height: 1.4;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
    }

    /* Active State for Mobile */
    .service-item.active .service-content {
        transform: translateY(-8px);
    }

    .service-item.active .service-desc {
        opacity: 1;
        visibility: visible;
        max-height: 20px;
        transform: translateY(0);
        margin-top: 0.4rem;
        padding-bottom: 0.5rem;
    }

    .service-item::before {
        display: none;
    }

    /* Kept clean without side bar on mobile */
    html {
        /* Changes to 'proximity' on mobile so it only snaps if the user is close to the edge, 
           allowing them to scroll freely within tall sections. */
        scroll-snap-type: y proximity;
    }
}

/* =========================================
   PROJECTS SHOWCASE (Immersive Gallery)
   ========================================= */
.projects-showcase {
    height: 100vh;
    width: 100vw;
    position: relative;
    background-color: var(--color-black);
    /* Ties into our master snap-scrolling */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

/* The Horizontal Track */
.projects-track {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbars for a clean look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.projects-track::-webkit-scrollbar {
    display: none;
}

/* Individual Project Slide */
.project-slide {
    flex: 0 0 100vw;
    height: 100%;
    position: relative;
    scroll-snap-align: center;
    overflow: hidden;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    
    /* THE FIX: Apply the exact same cinematic drift hardware acceleration */
    will-change: transform;
    animation: cinematicDrift 30s ease-in-out infinite alternate;
}

.project-slide:nth-child(even) .project-bg {
    animation-duration: 35s;
    animation-direction: alternate-reverse;
}

/* Cinematic Gradient Overlay */
.project-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed the left-to-right gradient entirely */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 35%);
    z-index: 1;
    pointer-events: none;
}

/* Project Information Text */
.project-info {
    position: absolute;
    /* THE FIX: Ensures it never drops too low into the observer dead zone */
    bottom: 8%; 
    left: 4rem;
    z-index: 10;
    color: var(--color-white);
    max-width: 500px;
    pointer-events: auto; 
    
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-info::before {
    content: '';
    position: absolute;
    /* Create a massive invisible zone around the text block */
    top: -20px;
    bottom: -100px; /* Extends deep below the button to catch the mouse */
    left: -20px;
    right: -20px;
    z-index: -1; /* Keeps it behind the text so it doesn't block clicks */
}

.project-info:hover {
    transform: translateY(0);
}

.project-num {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
}

/* You can remove the .project-title block entirely */

.project-subtitle {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 500;
    /* opacity: 1; */
    /* Margin removed completely to close the non-hover gap */
    margin-bottom: 0; 
    letter-spacing: -0.5px;
    /* transform: translateZ(0);  */
}

.project-desc {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 450px;
    
    /* Hidden State - Zero height, zero margins */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    margin-top: 0; 
    margin-bottom: 0;
    transform: translateY(10px);
    
    /* Slower collapse transitions */
    transition: max-height 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.5s ease 0s,
                transform 0.6s ease 0s,
                margin-top 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                margin-bottom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0s linear 0.8s;
}

/* Hover State: Reveal the description */
.project-info:hover .project-desc {
    max-height: 150px; 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* These margins push the subtitle up and button down during hover */
    margin-top: 0.8rem; 
    margin-bottom: 0.8rem; 
    
    /* Slower expansion with a slight delay on the fade-in (0.15s) */
    transition: max-height 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.6s ease 0.15s,
                transform 0.6s ease 0.15s,
                margin-top 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                margin-bottom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0s linear 0s;
}

/* Adjust button spacing to connect with the title or the text */
.btn-discover {
    /* ... keep your existing btn-discover styles ... */
    /* Extremely tight gap in the non-hover state */
    margin-top: 0.2rem; 
}

/* Floating Navigation Pill - Desktop */
.project-nav-pill {
    position: absolute;
    top: auto; /* Removes the top positioning */
    bottom: 8%; /* Perfectly aligns horizontally with the .project-info block on the left */
    right: 4rem;
    z-index: 50;
    display: flex;
    align-items: center;
    background: rgba(17, 17, 17, 0.1); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    padding: 0.3rem;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.2rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* =========================================
   INTERACTIVE HOTSPOTS
   ========================================= */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 20;
}

.hotspot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.hotspot-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 2.5s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hotspot-tooltip {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.hotspot:hover .hotspot-core {
    transform: translate(-50%, -50%) scale(1.5);
}

.hotspot:hover .hotspot-ring {
    animation-play-state: paused;
    background: rgba(255, 255, 255, 0.1);
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* =========================================
   PROJECTS MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .project-info {
        left: 1.5rem;
        /* THE FIX: Replaces 5% with a hard limit to clear the dead zone */
        bottom: 5%; 
        max-width: calc(100% - 3rem);
        transform: translateY(0);
    }

    .project-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .project-subtitle {
        font-size: 0.85rem;
    }

    .project-desc {
        max-height: 200px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        /* Permanently enforce the gaps on mobile */
        margin-top: 0.6rem;
        margin-bottom: 0.8rem; 
    }

    .project-nav-pill {
        /* Move from bottom to top, sitting neatly below the transparent navbar */
        top: calc(env(safe-area-inset-top, 0px) + 4.5rem);
        bottom: auto;
        /* Overrides the previous bottom positioning */
        right: 1.5rem;
        padding: 0.2rem;
    }

    .project-overlay-gradient {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 80%);
    }

    /* Hide tooltips on mobile, let the dots remain for aesthetic intrigue */
    .hotspot-tooltip {
        display: block;
        /* Removes the previous display: none */

        /* Mobile text wrapping to prevent bleeding off-screen */
        white-space: normal;
        width: max-content;
        max-width: 220px;
        text-align: center;

        /* Tighter typography for small screens */
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        line-height: 1.4;
    }
}

/* =========================================
   PROJECT DISCOVER BUTTON
   ========================================= */
.btn-discover {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    cursor: pointer;
    position: relative;
    padding-bottom: 0.3rem;
    pointer-events: auto;
    /* Ensures it is clickable over the image */
}

.btn-discover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
    
    /* THE FIX: Makes the line ignore all mouse interactions */
    pointer-events: none; 
}

.btn-discover:hover::after {
    width: 100%;
}

.btn-discover svg {
    transition: transform 0.3s ease;
}

.btn-discover:hover svg {
    transform: translateX(4px);
}

/* =========================================
   THE SPATIAL DRAWER
   ========================================= */
.project-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    pointer-events: none;
    /* Let clicks pass through when closed */
}

.project-drawer.is-open {
    pointer-events: auto;
}

/* The Dark Glass Overlay */
.drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M18 6L6 18M6 6l12 12"/></svg>') 12 12, auto;
    /* Custom close cursor */
}

.project-drawer.is-open .drawer-backdrop {
    opacity: 1;
}

/* The Sliding Panel */
.drawer-content-panel {
    position: absolute;
    top: 0; right: 0;
    width: 45vw;
    min-width: 400px;
    height: 100%;
    background-color: #0f0f0f;
    color: var(--color-white);
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    
    /* FIX: Remove the permanent shadow to prevent it bleeding onto the screen */
    box-shadow: none; 
    
    /* Animate both the slide AND the shadow */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-drawer.is-open .drawer-content-panel { 
    transform: translateX(0); 
    box-shadow: -15px 0 40px rgba(0,0,0,0.6); 
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(env(safe-area-inset-top, 0px) + 2.5rem) 4rem 2rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 500;
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close-drawer:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Scrollable Inner Content */
.drawer-scroll-area {
    padding: 3rem 4rem 4rem 4rem;
    overflow-y: auto;
    flex-grow: 1;
    /* Hide scrollbar for extreme minimal look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.drawer-scroll-area::-webkit-scrollbar {
    display: none;
}

/* Meta Data Grid (The Blueprint aesthetic) */
.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.meta-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.meta-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Extended Description & Gallery */
.drawer-extended-desc p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
}

.drawer-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.drawer-gallery img {
    width: 100%;
    border-radius: 2px;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .drawer-content-panel {
        width: 100vw;
        min-width: 100vw;
    }

    .drawer-header {
        padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) 1.5rem 1.5rem 1.5rem;
    }

    .drawer-scroll-area {
        padding: 2rem 1.5rem 4rem 1.5rem;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =========================================
   FULLSCREEN IMAGE LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    z-index: 3000; /* Highest priority, above the drawer */
    display: flex; justify-content: center; align-items: center;
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.is-open { 
    pointer-events: auto; 
    opacity: 1; 
}

.lightbox-backdrop {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    /* Very dark background for maximum image contrast */
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative; 
    z-index: 3001;
    width: 90vw; height: 90vh; /* Limits image to 90% of viewport */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: scale(0.98); /* Starts slightly scaled down */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.is-open .lightbox-content { 
    transform: scale(1); /* Smoothly pops into full scale */
}

#lightbox-img {
    max-width: 100%; max-height: 100%; 
    object-fit: contain; /* Prevents image distortion */
    border-radius: 4px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: opacity 0.25s ease; /* For smooth transitions between Next/Prev */
}

/* UI Controls */
.lightbox-btn {
    position: absolute; 
    z-index: 3002;
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-white); 
    width: 50px; height: 50px; 
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center; 
    cursor: pointer;
    backdrop-filter: blur(4px); 
    transition: all 0.3s ease;
}

.lightbox-btn:hover { 
    background: var(--color-white); 
    color: var(--color-black); 
    transform: scale(1.1); 
}

.lightbox-close { top: 2rem; right: 2.5rem; }
.lightbox-prev { left: 2.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-prev:hover, .lightbox-next:hover { 
    transform: translateY(-50%) scale(1.1); 
}

.lightbox-counter {
    position: absolute; 
    /* Moved up into the frame */
    bottom: 1.5rem; 
    left: 50%;
    transform: translateX(-50%);
    
    /* Low opacity to avoid distraction */
    color: rgba(255, 255, 255, 0.4); 
    font-family: var(--font-body); 
    font-size: 0.75rem; 
    letter-spacing: 3px;
    z-index: 3005;
    
    /* Ensures the text is still readable if the image background is pure white */
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    
    /* Prevents the text from interfering if the user tries to click/drag the image */
    pointer-events: none; 
}

/* Give the drawer thumbnails a hover effect so users know they can click */
.drawer-gallery img { 
    cursor: zoom-in; 
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease; 
}
.drawer-gallery img:hover { 
    transform: scale(1.02); 
    filter: brightness(1.1); 
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-btn { width: 40px; height: 40px; }
    .lightbox-close { top: 1.5rem; right: 1.5rem; }
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
    .lightbox-content { width: 95vw; height: 85vh; }
}

/* =========================================
   CONTACT & TERMINUS SECTION
   ========================================= */
.contact-section {
    background-color: var(--color-black);
    color: var(--color-white);
    /* Strictly locks it to the viewport height for a perfect snap end-screen */
    height: 100vh; 
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: calc(env(safe-area-inset-top, 0px) + 6rem) 0 2rem 0;
    overflow: hidden;
}

.contact-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* TOP HALF: Ethos & CTA */
.contact-top {
    display: flex;
    justify-content: space-between;
    /* Vertically centers the text and button in the massive empty space */
    align-items: center; 
    flex-grow: 1; 
    padding-top: 1rem;
    
    /* THE FIX: Guarantees the button will never touch the line below it */
    padding-bottom: 4.8rem; 
}

.contact-ethos {
    flex: 0 0 25%;
    max-width: 320px;
}

.contact-ethos p {
    font-size: 0.8rem; /* Scaled down for elegance */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
}

.contact-ethos strong {
    color: var(--color-white);
    font-weight: 500;
}

.contact-cta {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-heading {
    font-family: var(--font-headings);
    font-size: 3.2rem; /* Reduced from 4.5rem to fit the single screen */
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
}

.btn-inverted {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 0.8rem 2.2rem; 
    font-size: 0.85rem;
    
    /* THE FIX: Restores the hand icon for the button */
    cursor: pointer; 
}

.btn-inverted:hover {
    background-color: var(--color-grey);
    transform: translateY(-2px);
}

.btn-inverted .arrow {
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    padding: 0.3rem;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.btn-inverted:hover .arrow {
    transform: translateX(4px);
}

/* BOTTOM HALF: Merged Info Grid */
.contact-bottom {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Pushed slightly lower into the available space */
    padding-top: 2.5rem; 
    
    /* Reduced margin to bring the legal text up tighter to the links */
    margin-bottom: 1rem; 
}

.bottom-title {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.bottom-text {
    font-size: 0.75rem; /* Ultra-minimalist sizing */
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.bottom-contact-link {
    color: rgba(255, 255, 255, 0.5); /* Matches the address text */
    text-decoration: none;
    transition: color 0.3s ease;
    /* Optional: Add a subtle underline to denote clickability if you prefer */
    /* border-bottom: 1px solid transparent; */ 
}

.bottom-contact-link:hover {
    color: var(--color-white);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.3); */
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    display: flex; justify-content: center; align-items: center;
    width: 34px; height: 34px; /* Shrunk the social bubbles */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a svg { width: 14px; height: 14px; }
.social-links a:hover { background: var(--color-white); color: var(--color-black); }

.bottom-links { list-style: none; }
.bottom-links li { margin-bottom: 0.5rem; }
.bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.bottom-links a:hover { color: var(--color-white); }


.bottom-links a.page-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bottom-links a.page-link svg {
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-links a.page-link:hover svg {
    opacity: 1;
    transform: translate(3px, -3px); /* Smooth diagonal slide */
}

/* LEGAL BAR */
.contact-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem; /* "Fine print" sizing */
    color: rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-links { display: flex; gap: 1.5rem; }
.legal-links a { color: rgba(255, 255, 255, 0.3); text-decoration: none; transition: color 0.3s ease; }
.legal-links a:hover { color: var(--color-white); }

/* =========================================
   CONTACT MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .cta-heading { font-size: 3.2rem; }
    .contact-top { flex-direction: column; gap: 3rem; }
    .contact-ethos { max-width: 100%; flex: auto; }
}

@media (max-width: 768px) {
    .contact-section { 
        height: auto; /* Allows stacking on small screens */
        min-height: 100vh;
        padding: calc(env(safe-area-inset-top, 0px) + 5rem) 0 2rem 0; 
    }
    .contact-container { padding: 0 1.5rem; }
    
    .cta-heading { font-size: 2.6rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
    .contact-top { margin-bottom: 3rem; }
    
    .contact-bottom {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
    }
    
    .contact-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* =========================================
   CONTACT MODAL OVERLAY
   ========================================= */
.contact-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 4000; /* Above everything */
    display: flex; justify-content: center; align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-modal-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
}

.contact-modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Custom 'close' cursor just like the drawer */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M18 6L6 18M6 6l12 12"/></svg>') 12 12, auto;
}

.contact-modal-content {
    position: relative;
    z-index: 4001;
    width: 100%; 
    max-width: 600px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    
    /* Tighter padding to save vertical space */
    padding: 3rem; 
    
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    cursor: default; 
    
    /* THE FIX: Prevents top/bottom overflow on small laptop screens */
    max-height: 90vh; 
    overflow-y: auto;
    
    /* Hide scrollbar for a clean, minimalist look */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.contact-modal-content::-webkit-scrollbar { 
    display: none; 
}

.contact-modal-overlay.is-open .contact-modal-content {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 2rem; right: 2rem;
    background: transparent; border: none; color: var(--color-white);
    cursor: pointer; opacity: 0.5; transition: opacity 0.3s ease;
}
.btn-close-modal:hover { opacity: 1; transform: scale(1.1); }

.modal-title {
    font-family: var(--font-headings);
    font-size: 1.5rem; font-weight: 500;
    margin-bottom: 0.5rem; letter-spacing: -0.5px;
    color: var(--color-text-muted);
}

.modal-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
    /* Reduced margin below the subtitle */
    margin-bottom: 2rem; 
    line-height: 1.6;
}

/* Form Layout */
.contact-form { 
    display: flex; 
    flex-direction: column; 
    /* Reduced from 2.5rem to 1.8rem */
    gap: 1.8rem; 
}
.form-group { position: relative; width: 100%; }
.half-width { display: flex; gap: 2rem; }
.half-width .input-wrap { position: relative; flex: 1; }

/* Form Inputs (Minimalist Lines) */
.contact-form input, .contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-family: var(--font-body); 
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: border-color 0.3s ease;
    outline: none;
    resize: none; /* Prevents textarea drag breaking layout */
}

.contact-form input:focus, .contact-form textarea:focus {
    border-bottom-color: var(--color-white);
}

/* The Floating Labels Magic */
.contact-form label {
    position: absolute;
    top: 0.5rem; left: 0;
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When input is focused, OR when input has text (not showing placeholder) -> Float it up */
.contact-form input:focus ~ label, 
.contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label, 
.contact-form textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Submit Button Override */
.btn-submit {
    margin-top: 1rem; 
    align-self: flex-start;
    background: var(--color-white); 
    color: var(--color-black); 
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}
.btn-submit:hover { background: var(--color-grey); }

/* Mobile Adaptations */
@media (max-width: 768px) {
    .contact-modal-content { 
        padding: 3rem 2rem; 
        height: 100vh; 
        border-radius: 0; 
        display: flex; flex-direction: column; justify-content: center; 
    }
    .half-width { flex-direction: column; gap: 2.5rem; }
}

/* --- CONTACT BUTTON REFINEMENTS --- */

/* Fixes the half-stroke issue and structural alignment */
#btn-open-contact {
    font-size: 1rem;
    border: 1px solid var(--text-color, #111) !important; /* Forces a solid stroke instead of an outline */
    outline: none !important; /* Removes buggy browser outlines */
    overflow: visible !important; /* Prevents the stroke from clipping */
    /* padding-right: 6px !important; Reduces right padding to push the arrow outward */
    padding: 0.8rem 0.8rem 0.8rem 2.2rem !important; 
}

/* Fixes the optical alignment of the black arrow circle */
/* #btn-open-contact .arrow {
    margin-left: 20px; 
    transform: translateX(2px); 
} */

/* Ensures the border color inverts correctly on hover if you have a hover state */
#btn-open-contact:hover {
    border-color: transparent !important; 
}

/* --- CONTACT BUTTON: PERFECT GEOMETRIC ALIGNMENT --- */

#btn-open-contact .arrow {
    /* Force the arrow container to be a mathematically perfect circle */
    width: 32px;
    height: 32px;
    padding: 0; /* Remove your old 0.3rem padding so width/height take strict control */
    
    /* Center the SVG icon perfectly inside the new 32px circle */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Reset any previous manual nudges that were throwing off the alignment */
    transform: none !important; 
    margin-left: 16px; /* Provides breathing room between the text and the circle */
}

/* Restore the subtle hover animation */
#btn-open-contact:hover .arrow {
    transform: translateX(4px) !important; 
}

/* --- FIX SLUGGISH BUTTON HOVER --- */
/* Overrides the 1.2s scroll-reveal timeline once the button is on screen */
#btn-open-contact.in-view,
.btn-inverted.in-view {
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease, color 0.3s ease !important;
}

/* --- DYNAMIC HERO NAVBAR THEMES --- */
/* Applied via JS when the active hero image is bright */

/* Removed .brand so the logo stays white, only links turn black */
.navbar.hero-theme-dark:not(.scrolled) .nav-links {
    color: var(--color-black);
}

.navbar.hero-theme-dark:not(.scrolled) .hamburger span {
    background-color: var(--color-black);
}

.navbar.hero-theme-dark:not(.scrolled) .nav-links a.active:not(.nav-btn-secondary)::after {
    background-color: var(--color-black);
}

.navbar.hero-theme-dark:not(.scrolled) .nav-btn-secondary {
    border-color: rgba(0, 0, 0, 0.4);
    color: var(--color-black);
}

.navbar.hero-theme-dark:not(.scrolled) .nav-btn-secondary:hover {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
}


/* =========================================
   PROJECTS ARCHIVE PAGE
   ========================================= */
.projects-archive {
    background-color: var(--color-black);
    color: var(--color-white);
    min-height: 100vh;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10rem);
    padding-bottom: 6rem;
}

.archive-header {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem 3rem 4rem;
}

.archive-title {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.archive-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-grey-dark);
}

.archive-filters {
    display: flex;
    gap: 1rem;
    max-width: 1440px;
    margin: 0 auto 3rem auto;
    padding: 0 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.4rem;
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.grid-item {
    position: relative;
    aspect-ratio: 4/5; /* Architectural portrait ratio */
    overflow: hidden;
    cursor: pointer;
    background-color: #1a1a1a;
    
    /* Smooth Filtering Transitions */
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.grid-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    /* Removes the item from the grid layout entirely when hidden */
    display: none; 
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.grid-item:hover img {
    transform: scale(1.04);
}

.grid-item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.grid-item:hover .grid-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* --- ARCHIVE GRID ENTRANCE FIX --- */
/* Forces the grid items to hide and use the slow cinematic transition on load */
.grid-item.reveal-item {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Pushes them smoothly into their final visible state */
.grid-item.reveal-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.grid-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

.grid-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 500;
}

/* --- THE ARCHIVE GRID SCOPE REVEAL --- */
.grid-scope {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5); /* Slightly muted to keep hierarchy focused on the title */
    
    /* Hidden State */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    transform: translateY(10px);
    
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Active Hover State */
.grid-item:hover .grid-scope {
    max-height: 20px; /* Only needs enough room for a single line now */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 0.4rem; /* Tighter gap to group it cleanly with the title */
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .projects-archive { padding-top: calc(env(safe-area-inset-top, 0px) + 7rem); }
    .archive-grid { grid-template-columns: 1fr; padding: 0 1.5rem; gap: 1.5rem; }
    .archive-header { padding: 0 1.5rem 2rem 1.5rem; }
    .archive-title { font-size: 2.4rem; }
    
    /* Scrollable pill menu on mobile */
    .archive-filters { 
        padding: 0 1.5rem; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -ms-overflow-style: none; 
        scrollbar-width: none; 
    }
    .archive-filters::-webkit-scrollbar { display: none; }
    .filter-btn { white-space: nowrap; }
    
    /* Keep overlay permanently visible on mobile */
    .grid-item-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    }
}

/* =========================================
   ABOUT PAGE (Light Theme Editorial)
   ========================================= */
.about-page {
    background-color: var(--color-white, #ffffff);
    color: var(--color-black, #000000);
    padding-bottom: 0;
}

.about-text-hero {
    /* Massive top padding pushes the text down into the center of the screen */
    padding: calc(env(safe-area-inset-top, 0px) + 14rem) 4rem 4rem 4rem;
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--color-white, #ffffff);
}

.text-hero-content {
    max-width: 1000px;
}

.text-hero-content h1 {
    font-family: var(--font-headings);
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 2.5rem;
    color: var(--color-black, #000000);
}

.text-hero-content p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
    max-width: 600px;
}

/* --- ABOUT PAGE OVERRIDES --- */

/* Disables the forced homepage snap-scrolling */
html.no-snap {
    scroll-snap-type: none !important;
}
html.no-snap section {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* Overrides the 100vh homepage footer rule to eliminate the massive gap */
.about-footer {
    height: auto !important;
    min-height: auto !important;
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}

/* Hero Section (Keep Dark for Image Impact) */
.about-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 6rem 4rem;
    overflow: hidden;
    color: var(--color-white, #ffffff); /* Force hero text to stay white */
}

.about-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.drift-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    animation: cinematicDrift 30s ease-in-out infinite alternate;
}

/* Add a gradient overlay to ensure the white text pops against any stock image */
.about-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.about-hero-content h1 {
    font-family: var(--font-headings);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.about-hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

/* Biography Grid */
.about-bio {
    max-width: 1440px;
    margin: 0 auto;
    padding: 8rem 4rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.bio-image-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #e5e5e5;
}

.bio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 1s ease;
}

.bio-image-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.bio-name {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 500;
    margin: 1rem 0 0.5rem 0;
    color: var(--color-black, #000000);
}

.bio-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.5); /* Inverted for light theme */
    margin-bottom: 2.5rem;
}

.bio-desc p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8); /* Inverted for light theme */
    margin-bottom: 1.5rem;
}

/* Forces the signature image to turn black on the white background */
.bio-signature {
    filter: invert(0) !important; 
}

/* Philosophy Section */
.about-philosophy {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem 8rem 4rem;
}

.philosophy-header h2 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Dark divider line */
    padding-bottom: 1.5rem;
    color: var(--color-black, #000000);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.philosophy-item {
    border-left: 1px solid rgba(0, 0, 0, 0.1); /* Dark divider line */
    padding-left: 2rem;
}

.phil-num {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.3); /* Dark theme grey */
    margin-bottom: 1rem;
}

.philosophy-item h3 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-black, #000000);
}

.philosophy-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6); /* Dark theme grey */
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .bio-grid { gap: 3rem; }
    .philosophy-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .about-hero { padding: 4rem 1.5rem; }
    .about-hero-content h1 { font-size: 2.8rem; }
    .about-bio, .about-philosophy { padding: 4rem 1.5rem; }
    
    .bio-grid { grid-template-columns: 1fr; }
    .bio-image-wrapper { aspect-ratio: 1/1; max-width: 400px; margin: 0 auto; }
    .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }

    .about-text-hero {
        padding: calc(env(safe-area-inset-top, 0px) + 8rem) 1.5rem 2rem 1.5rem;
    }
    
    .text-hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .text-hero-content p {
        font-size: 1.1rem;
    }
}

/* --- DARK SCROLL INDICATOR --- */
.scroll-indicator.dark-theme .scroll-line {
    background: rgba(0, 0, 0, 0.05); /* Subtle dark track */
}

.scroll-indicator.dark-theme .scroll-line::after {
    background: rgba(0, 0, 0, 0.5); /* Dark falling bead */
}

/* --- ABOUT FOOTER OVERRIDES --- */
/* Removes the unnecessary grey line and padding when transitioning from white to black */
.about-footer .contact-bottom {
    border-top: none;
    padding-top: 0;
}