/*
 * Fonts loaded via <link> in each HTML <head>:
 * https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap
 *
 * CSS-only alternative (add as first line if not using HTML links):
 * @import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');
 */

/* --- 1. Variables & Reset --- */
:root {
    /* Color Palette */
    --color-bg-main: #FFFFFF; /* White background */
    --color-bg-secondary: #F8F9FA; /* Light gray for sections */
    --color-text-primary: #1A1A1A; /* Dark text for readability */
    --color-text-secondary: #666666; /* Medium gray for secondary text */
    --color-accent: #1B5E20; /* Dark green accent color */
    --color-header-text: #0F5132; /* Deep dark green for header text */
    
    /* Typography — Playfair Display (headings), Roboto Condensed (body), Oswald (UI) */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Roboto Condensed', system-ui, -apple-system, sans-serif;
    --font-ui: 'Oswald', system-ui, -apple-system, sans-serif;
    --font-primary: var(--font-body);
    
    /* Spacing & Layout */
    --section-spacing: 120px;
    --container-width: 1280px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

img {
    max-width: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html.lenis {
    height: auto;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* --- 2. Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.12;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.75rem, 7.5vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 0.45em;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0.5em;
}

h3 {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 0.55em;
}

h4 {
    font-size: 0.8125rem;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.6em;
}

h6 {
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.65em;
}

p {
    font-family: var(--font-body);
    color: rgb(26, 26, 26);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 65ch;
    margin-bottom: 1.5em;
}

p:last-child {
    margin-bottom: 0;
}

li,
label,
input,
textarea,
select,
button {
    font-family: var(--font-body);
}

.text-accent { color: var(--color-accent); }
.text-accent-gradient {
    background: linear-gradient(45deg, var(--color-accent), #0F5132);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.overflow-hidden { overflow: hidden; }

.container {
    width: 96%;              /* bring content closer to edges */
    max-width: 1400px;       /* slightly wider for a modern feel */
    margin: 0 auto;
}

/* --- 3. Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 600;
    font-family: var(--font-ui);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-standard);
    cursor: pointer;
}

.btn--outline {
    border: none;
    background: transparent;
    color: var(--color-header-text);
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
}

.btn--outline::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

.btn--outline:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn--outline:hover::after {
    width: 100%;
}

.btn--gold {
    background-color: var(--color-accent);
    color: var(--color-bg-main);
    border: none;
}

.btn--gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(27, 94, 32, 0.3);
}

.btn--text {
    color: var(--color-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 4. Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: max(8px, env(safe-area-inset-top)) 0 8px;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(27, 94, 32, 0.1);
}



.header__container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;   /* controlled edge spacing */
}


.logo {
    display: flex;
    align-items: center;
    height: auto;
    padding: 0;
}



.logo-img {
    height: 80px;          /* big logo directly inside header */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav__link {
    color: var(--color-header-text);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav__link:not(.btn):hover {
    color: var(--color-accent);
}

.nav__link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Contact button in nav - make it look like other nav links */
.nav__link.btn {
    padding: 8px 0;
    border: none;
    background: transparent;
}

.nav__link.btn::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

.nav__link.btn:hover::after,
.nav__link.btn.active::after {
    width: 100%;
}

.mobile-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--color-header-text);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover,
.mobile-toggle.is-active {
    color: var(--color-accent);
    background: rgba(27, 94, 32, 0.08);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- 5. Hero Section (edge-to-edge sketch stretch — no crop) --- */
.hero-slider {
    --hero-header-offset: 96px;
    position: relative;
    width: 100%;
    height: 100svh;
    height: 100dvh;
    margin-top: 0;
    min-height: 360px;
    overflow: hidden;
    background: #ebe8e3;
    isolation: isolate;
}

/* Sketch fills entire hero edge-to-edge (sits behind fixed header — no gap under nav) */
.hero-slider__track,
.hero-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Bottom scrim — “Scroll to explore” only */
.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.08) 18%,
        transparent 32%
    );
}

.hero-slider__track {
    z-index: 1;
}

.hero-slider__slide {
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), visibility 1s;
    z-index: 1;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Sketches fill hero edge-to-edge — full coverage, no gaps */
.hero-slider__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: fill;
    object-position: center center;
    display: block;
}

/* Edge zones — arrows reveal only when cursor nears left/right */
.hero-slider__nav {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    width: clamp(72px, 11vw, 140px);
    padding: 0;
    cursor: pointer;
}

.hero-slider__nav--prev {
    left: 0;
    justify-content: flex-start;
    padding-left: clamp(10px, 2vw, 22px);
}

.hero-slider__nav--next {
    right: 0;
    justify-content: flex-end;
    padding-right: clamp(10px, 2vw, 22px);
}

.hero-slider__btn {
    background: transparent;
    border: none;
    color: var(--color-accent);
    width: clamp(44px, 10vw, 56px);
    height: clamp(44px, 10vw, 56px);
    border-radius: 50%;
    font-size: clamp(22px, 5vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
    transition: opacity 0.35s ease, visibility 0.35s ease,
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.35s ease;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.hero-slider.is-edge-left .hero-slider__nav--prev .hero-slider__btn,
.hero-slider.is-edge-right .hero-slider__nav--next .hero-slider__btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-slider__nav--prev .hero-slider__btn {
    transform: translateX(-6px);
}

.hero-slider__nav--next .hero-slider__btn {
    transform: translateX(6px);
}

.hero-slider.is-edge-left .hero-slider__nav--prev .hero-slider__btn,
.hero-slider.is-edge-right .hero-slider__nav--next .hero-slider__btn {
    transform: translateX(0);
}

.hero-slider__btn:hover {
    background: transparent;
    color: var(--color-header-text);
    transform: scale(1.1);
    box-shadow: none;
}

.hero-slider.is-edge-left .hero-slider__nav--prev .hero-slider__btn:hover,
.hero-slider.is-edge-right .hero-slider__nav--next .hero-slider__btn:hover {
    transform: scale(1.1);
}

.hero-slider__btn:active {
    transform: scale(0.96);
}

.hero-slider__btn:focus-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (hover: none) {
    .hero-slider__btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Mobile hero dots — swipe affordance on touch devices */
.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: max(88px, calc(24px + env(safe-area-inset-bottom)));
    transform: translateX(-50%);
    z-index: 22;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-slider__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, width 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-slider__dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 320px;
        height: 100svh;
        height: 100dvh;
        max-height: -webkit-fill-available;
    }

    .hero-slider__slide img {
        object-fit: cover;
        object-position: center center;
    }

    .hero-slider__dots {
        display: flex;
    }

    .hero-slider .scroll-down {
        bottom: max(128px, calc(36px + env(safe-area-inset-bottom)));
        padding: 12px 20px 10px;
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 280px;
    }

    .hero-slider__nav {
        width: 56px;
    }

    .hero-slider__dots {
        bottom: max(80px, calc(20px + env(safe-area-inset-bottom)));
        gap: 6px;
    }

    .hero-slider .scroll-down {
        bottom: max(118px, calc(28px + env(safe-area-inset-bottom)));
        padding: 10px 16px 8px;
        font-size: 0.62rem;
    }
}

@media (max-width: 380px) {
    .hero-slider .scroll-down span {
        max-width: 9ch;
        text-align: center;
        line-height: 1.35;
    }
}

/* ===== Tagline ===== */
.hero-logo__tagline {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-text-primary);
    opacity: 0;
    max-width: none;
    overflow: hidden;
}

.hero-logo__tagline .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: none;
}

/* ===== Divider with diamond ===== */
.hero-logo__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px auto;
    opacity: 0;
}

.hero-logo__divider-line {
    display: block;
    width: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.18);
}

.hero-logo__divider-diamond {
    display: block;
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.22);
    transform: rotate(45deg) scale(0);
    flex-shrink: 0;
}

/* ===== Location ===== */
.hero-logo__location {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 7px;
    color: var(--color-text-secondary);
    opacity: 0;
    max-width: none;
}

.scroll-down {
    position: absolute;
    bottom: max(clamp(20px, 4vh, 36px), calc(12px + env(safe-area-inset-bottom)));
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 26px 12px;
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease, transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.scroll-down i {
    font-size: 1.35em;
    animation: scrollCueBounce 2.2s ease-in-out infinite;
}

@keyframes scrollCueBounce {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-down i {
        animation: none;
    }
}

.scroll-down:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 4px;
}

.hero-slider .scroll-down:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateX(-50%) translateY(3px);
}

/* --- 6. General Layout Sections --- */
.section {
    padding: var(--section-spacing) 0;
}

/* Override data-bgcolor for light theme */
section[data-bgcolor] {
    background-color: var(--color-bg-secondary) !important;
}

.section-header {
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section-header h2 {
    margin-bottom: 0.35em;
}

.section-header h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* --- 7. Services Grid --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 32px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: var(--transition-standard);
}

.service-card:hover {
    background: rgba(27, 94, 32, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: block;
}

/* --- 8. Bento Grid (Projects) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 40px;
    align-items: start;
}

.bento-grid[data-projects-grid] {
    min-height: 320px;
}

.bento-grid[data-projects-grid].is-loading {
    background: linear-gradient(
        90deg,
        #eaeeeb 0%,
        #f4f7f5 50%,
        #eaeeeb 100%
    );
    background-size: 200% 100%;
    animation: bentoShimmer 1.4s ease-in-out infinite;
    border-radius: var(--border-radius-lg);
}

@keyframes bentoShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.bento-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #121212;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    aspect-ratio: var(--card-ratio, 4 / 3);
    min-height: 0;
    isolation: isolate;
}

.bento-item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.bento-item.hidden {
    display: none;
}

/* Project Filter Bar */
.project-filters {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
}

.project-filters .filter-btn {
    position: relative;
    padding-bottom: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-filters .filter-btn.active {
    color: var(--color-accent);
}

.project-filters .filter-btn:hover {
    color: var(--color-accent);
    opacity: 0.8;
}

/* Spanning Logic — height comes from each image via --card-ratio */
.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 3;
}

/* --- Modern home showcase grid --- */
.section-header__lead {
    margin-top: 1rem;
    margin-bottom: 0;
    max-width: 52ch;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* SEO: homepage intro block — uses existing lead typography */
.seo-intro.section {
    padding-top: 0;
    padding-bottom: 48px;
}

/* Accessibility: screen-reader-only labels (no visual change) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.projects-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 44px);
    margin-top: 48px;
}

.projects-showcase[data-projects-grid] {
    min-height: 200px;
}

.projects-showcase[data-projects-grid].is-loading {
    min-height: 420px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f0f2f1 0%, #fafbfb 50%, #f0f2f1 100%);
    background-size: 200% 100%;
    animation: bentoShimmer 1.4s ease-in-out infinite;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-decoration: none;
    color: var(--color-text-primary);
    outline: none;
}

.project-card__visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: #ecefee;
    isolation: isolate;
}

.project-card--hero .project-card__visual {
    aspect-ratio: 16 / 10;
}

.project-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
}

.project-card__visual img:not(.img-loaded) {
    opacity: 0;
}

.project-card__index {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 100px;
}

.project-card__body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    align-items: start;
    padding: 0 4px;
}

.project-card__tag {
    grid-column: 1;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-accent);
}

.project-card__title {
    grid-column: 1;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
    line-height: 1.25;
    margin-top: 6px;
    transition: color 0.3s ease;
}

.project-card__meta {
    grid-column: 1;
    grid-row: 3;
    margin-top: 6px;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.project-card__arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
    background: #fff;
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.project-card__arrow i {
    font-size: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-card__visual img,
.project-card:focus-visible .project-card__visual img {
    transform: scale(1.04);
}

.project-card:hover .project-card__title,
.project-card:focus-visible .project-card__title {
    color: var(--color-accent);
}

.project-card:hover .project-card__arrow,
.project-card:focus-visible .project-card__arrow {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: rotate(-45deg);
}

.project-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 6px;
    border-radius: 4px;
}

/* --- Projects archive page --- */
.projects-page-hero {
    padding-top: clamp(140px, 16vh, 200px);
    padding-bottom: clamp(32px, 5vh, 56px);
}

.projects-page-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.projects-page-hero__lead {
    margin-top: 20px;
    max-width: 56ch;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.projects-page-hero__count {
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-secondary);
}

.projects-page-hero__count [data-projects-count] {
    color: var(--color-text-primary);
}

.projects-archive {
    padding-top: 0;
    padding-bottom: var(--section-spacing);
}

.project-filters--pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(36px, 5vw, 52px);
}

.project-filters--pills .filter-btn {
    margin: 0;
    padding: 12px 22px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-filters--pills .filter-btn::after {
    display: none;
}

.project-filters--pills .filter-btn:hover {
    color: var(--color-accent);
    border-color: rgba(27, 94, 32, 0.25);
    background: #fff;
}

.project-filters--pills .filter-btn.active {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.22);
}

.projects-archive__grid {
    margin-top: 0;
}

.projects-archive__grid .project-card__visual {
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.projects-archive__grid .project-card:hover .project-card__visual,
.projects-archive__grid .project-card:focus-visible .project-card__visual {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.projects-archive__grid .project-card__index {
    display: none;
}

.projects-archive__grid .project-card__body {
    padding: 4px 6px 0;
}

.projects-archive__grid .project-card__title {
    font-weight: 600;
}

.projects-archive__grid .project-card__arrow {
    width: 48px;
    height: 48px;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
    .projects-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(24px, 3vw, 36px) clamp(18px, 2.5vw, 28px);
    }

    .projects-archive__grid {
        gap: clamp(28px, 3.5vw, 40px) clamp(20px, 2.5vw, 32px);
    }

    .project-card--hero {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .projects-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 56px;
    }

    .projects-archive__grid {
        margin-top: 0;
    }

    .project-card--hero {
        grid-column: span 2;
    }

    .project-card--hero .project-card__title {
        font-size: clamp(1.5rem, 2.2vw, 2rem);
    }
}

/* --- Archive Project Cards (Premium Redesign) --- */
.bento-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 8px; /* Sharper, more architectural corners */
    overflow: hidden;
    background: #111;
    isolation: isolate;
    cursor: pointer;
    display: block;
    transform: translateZ(0); /* Hardware acceleration */
}

/* Image fills card perfectly */
.bento-item__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bento-item__media img,
.bento-item > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center;
}

/* Hover effect */
.bento-item:hover .bento-item__media img {
    transform: scale(1.06);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    padding: 36px 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 45%, transparent 100%);
    color: #FFFFFF;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.4s ease;
}

.bento-item:hover .bento-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.bento-overlay h3 { 
    margin-bottom: 8px; 
    color: #FFFFFF;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 500;
    line-height: 1.2;
    transform: translateY(12px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-overlay span { 
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
}

.bento-item:hover .bento-overlay h3,
.bento-item:hover .bento-overlay span {
    transform: translateY(0);
}

.bento-item:hover .bento-overlay span {
    opacity: 1;
}

/* --- 9. Footer (Reference Image Style) --- */
.footer {
    background: var(--color-bg-secondary); /* Light gray background */
    padding-top: 0;
    color: #1B4332; /* Dark green with majestic wine shade */
}

/* Top Section - Tagline and Newsletter */
.footer__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
}

.footer__tagline h2 {
    color: #1B4332; /* Dark green with majestic wine shade */
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.footer__newsletter {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align perfectly to the right grid line */
}

.footer__newsletter h3 {
    color: #1B4332; /* Dark green with majestic wine shade */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: var(--color-text-secondary);
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.btn--newsletter {
    padding: 14px 32px;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--newsletter:hover {
    background: #0F5132;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.4);
}

/* Divider */
.footer__divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Content Section - 4 Columns */
.footer__content {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px;
}

.footer__col h4 { 
    color: #1B4332; /* Dark green with majestic wine shade */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px; 
}

.footer__col ul { 
    list-style: none; 
    padding: 0;
    margin: 0;
}

.footer__col li { 
    margin-bottom: 12px; 
}

.footer__col a {
    color: #1B4332; /* Dark green with majestic wine shade */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer__col a:hover { 
    color: var(--color-accent);
}

/* Contact Information with Icons */
.footer__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer__contact i {
    color: var(--color-accent);
    font-size: 1.2rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SOCIAL ICONS - Modern Redesign */
.social-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.social-link i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: block;
    line-height: 1;
    font-size: 24px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
}

.social-link:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover i {
    color: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Platform-specific hover colors */
.social-link[aria-label="Instagram"]:hover {
    border-color: #E4405F;
    box-shadow: 0 8px 24px rgba(228, 64, 95, 0.25);
}

.social-link[aria-label="Instagram"]:hover::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link[aria-label="LinkedIn"]:hover {
    border-color: #0077B5;
    box-shadow: 0 8px 24px rgba(0, 119, 181, 0.25);
}

.social-link[aria-label="LinkedIn"]:hover::before {
    background: #0077B5;
}

.social-link[aria-label="Facebook"]:hover {
    border-color: #1877F2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.25);
}

.social-link[aria-label="Facebook"]:hover::before {
    background: #1877F2;
}

.footer__bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #1B4332; /* Dark green with majestic wine shade */
    flex-wrap: wrap;
    gap: 20px;
}

.footer__bottom p {
    margin: 0;
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__legal a {
    color: #1B4332; /* Dark green with majestic wine shade */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: var(--color-accent);
}

.footer__legal span {
    color: #1B4332; /* Dark green with majestic wine shade */
    opacity: 0.6;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    padding: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.scroll-to-top-btn:hover::before {
    width: 100%;
    height: 100%;
}

.scroll-to-top-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.4);
    background: #0F5132;
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

/* --- 10. Animation Classes (GSAP) --- */
.anim-text-reveal {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}

.anim-fade-up,
.anim-stagger-up,
.anim-scale-in,
.anim-reveal-left,
.anim-reveal-right,
.anim-blur-in {
    opacity: 0;
}

.anim-reveal-mask {
    clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 10001;
    background: linear-gradient(90deg, var(--color-accent), #2e7d32, #0F5132);
    transform-origin: left center;
    pointer-events: none;
}

/* Custom cursor (desktop) */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(27, 94, 32, 0.45);
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                height 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s ease,
                background 0.3s ease;
}

body.cursor-hover .cursor-ring {
    width: 64px;
    height: 64px;
    background: rgba(27, 94, 32, 0.08);
    border-color: var(--color-accent);
}

/* Hero cinematic overlay — only for project-hero pages */
.project-hero .hero__bg-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero__bg-img {
    will-change: transform;
}

.project-hero .hero__content {
    opacity: 0;
}

.scroll-down {
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-down i {
    font-size: 1.25rem;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Section title accent line */
.section-header h4,
.project-hero__content span {
    position: relative;
}

.anim-line-wrap {
    overflow: hidden;
}

.anim-line {
    display: block;
    transform: translateX(-100%);
}

/* Service cards — premium hover */
.service-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 94, 32, 0.06), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.service-card:hover::before {
    left: 120%;
}

.service-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) translateY(-4px);
}

/* Bento — cinematic hover */
.bento-item {
    transform-style: preserve-3d;
    will-change: transform;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 45%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item .bento-overlay {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.45s ease;
}

.bento-item:hover .bento-overlay {
    transform: translateY(0);
    opacity: 1;
}

.bento-item:hover {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35);
}

.bento-item:hover .bento-item__media {
    transform: scale(1.015);
}

.bento-item:active .bento-item__media {
    transform: scale(1.008);
}

/* Filter pills */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-btn.active::after {
    transform: scaleX(1);
}

/* Gallery image hover */
.gallery-item {
    overflow: hidden;
}

/* Header entrance — animated via GSAP (desktop); visible immediately on touch */
.header {
    opacity: 1;
    will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) {
    .header {
        opacity: 0;
    }
}

/* Magnetic btn subtle */
.btn--text i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn--text:hover i {
    transform: translateX(6px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .scroll-down {
        animation: none;
    }

    .anim-text-reveal,
    .anim-fade-up,
    .anim-stagger-up,
    .anim-scale-in,
    .hero__content,
    .hero-logo__content,
    .hero-logo__tagline,
    .hero-logo__tagline .char,
    .hero-logo__location,
    .hero-logo__waves,
    .hero-logo__divider,
    .hero-logo__frame-corner {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    .header {
        transform: none;
        opacity: 1;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (hover: none) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* =========================================
   11. RESPONSIVE / MOBILE POLISH
   ========================================= */

@media (max-width: 1024px) {
    /* Tablet Tweaks */
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .bento-wide {
        grid-column: span 2;
    }

    .project-card--hero {
        grid-column: span 2;
    }

    .footer__content { 
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer__newsletter {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 64px;
    }

    /* --- A. TYPOGRAPHY FIXES --- */
    h1 { font-size: clamp(2rem, 9vw, 3rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    p { font-size: 1rem; }

    .hero--logo {
        min-height: 100svh;
        height: 100svh;
    }

    .hero-logo__mark {
        width: 500px;
        height: 500px;
        margin-bottom: 32px;
    }

    .hero-logo__img {
        height: 420px;
    }

    .hero-logo__aurora {
        inset: 0;
    }

    .hero-logo__mark::after {
        width: 260px;
        height: 260px;
    }

    .hero-logo__frame {
        inset: 5% 4%;
    }

    .hero-logo__frame-corner {
        width: 36px;
        height: 36px;
    }

    .hero-logo__tagline {
        font-size: 0.72rem;
        letter-spacing: 3px;
        padding: 0 16px;
    }

    .hero-logo__location {
        font-size: 0.68rem;
        letter-spacing: 4px;
    }

    .hero-logo__grid {
        background-size: 24px 24px;
    }

    /* Disable parallax on touch */
    [data-parallax] {
        transform: none !important;
        transition: none !important;
    }

    .scroll-down {
        bottom: 24px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .header__container {
        padding: 0 12px;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px;
    }

    .scroll-to-top {
        right: 16px;
        bottom: 16px;
    }

    .scroll-to-top-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Social Icons Responsive */
    .social-icons {
        gap: 16px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 10px;
    }
    
    .social-link i {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    
    /* --- B. LAYOUT & SPACING FIXES --- */
    .section { padding: 60px 0; } /* Reduce padding by half */
    .hero__bg-wrap { height: 100%; } /* Fix parallax jitter on mobile */
    .container { width: 90%; }
    
    .header-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
    
    /* Footer Responsive */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .btn--newsletter {
        width: 100%;
    }
    
    /* Project Filters - Mobile */
    .project-filters {
        flex-wrap: wrap;
        row-gap: 12px;
        column-gap: 16px;
    }

    .project-filters .filter-btn {
        font-size: 0.85rem;
    }

    /* Grids to Single Column */
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px; }
    .bento-item,
    .bento-large,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 0;
    }

    .projects-showcase {
        margin-top: 32px;
        gap: 28px;
    }

    .project-card--hero {
        grid-column: span 1;
    }

    .project-card--hero .project-card__visual {
        aspect-ratio: 4 / 3;
    }

    .project-card__body {
        padding: 0 2px;
    }

    .project-card__arrow {
        width: 40px;
        height: 40px;
    }
    
    .info-grid, .about-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-img { height: 250px; min-height: auto; }
    .featured-content { padding: 24px; }
    
    /* Mobile menu — see end of file (.nav--mobile portal styles) */
    .mobile-toggle {
        display: flex;
        z-index: 200;
        position: relative;
    }
}

@media (max-width: 480px) {
    .container { width: 92%; }

    .gallery-item.full-width {
        max-height: none;
    }

    .gallery-grid .gallery-item {
        min-height: 0;
    }

    .footer__tagline h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-hours-grid {
        grid-template-columns: 1fr;
    }
}
/* --- PROJECT DETAIL PAGES --- */

/* Project Hero */
.project-hero {
    position: relative;
    height: 70vh; /* Not full height, to tease content below */
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero__bg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #1a1a1a;
}

.hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

.project-hero__content {
    position: relative;
    z-index: 2;
    color: #FFFFFF; /* White text on dark project hero images */
}

.project-hero__content h1 {
    color: #FFFFFF;
}

.project-hero__content span {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9); /* Light white for category */
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.info-desc h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.data-list {
    list-style: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.data-list li {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.data-list span { color: var(--color-text-secondary); }
.data-list strong { color: var(--color-text-primary); text-align: right;}

/* Gallery */
.gallery {
    padding-bottom: var(--section-spacing);
}

.gallery-item {
    margin-bottom: 30px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: #eef2ef;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.gallery-item.full-width {
    aspect-ratio: var(--card-ratio, 16 / 9);
    min-height: 0;
    max-height: none;
}

.gallery-item.full-width img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.gallery-grid .gallery-item {
    position: relative;
    aspect-ratio: var(--card-ratio, 4 / 3);
    min-height: 0;
    margin-bottom: 0;
}

.gallery-grid .gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.gallery-item img.img-fit--wide {
    object-position: center 40%;
}

.gallery-item img.img-fit--tall {
    object-position: center top;
}

.gallery-item.full-width img.img-fit--render,
.gallery-item img.img-fit--render {
    object-fit: cover;
    object-position: center center;
    padding: 0;
    background: transparent;
}

.gallery-item:hover img {
    transform: none;
}

.gallery-item.full-width:hover img.img-fit--render {
    transform: none;
}

/* Project hero imagery */
.project-hero .hero__bg-wrap {
    background: #1a1a1a;
}

.project-hero .hero__bg-img {
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.65);
}

.project-hero .hero__bg-img.img-fit--wide {
    object-position: center 38%;
}

.project-hero .hero__bg-img.img-fit--render {
    object-fit: cover;
    object-position: center center;
}

/* Next Project Navigator */
.next-project {
    padding: 160px 0;
}

.next-project-link {
    text-decoration: none;
    color: var(--color-text-primary);
    display: inline-block;
    transition: var(--transition-standard);
    margin-top: 20px;
}

.next-project-link h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 0;
    line-height: 1;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.next-project-link:hover h2 {
    color: var(--color-accent);
}

.next-project-link i {
    font-size: 3rem;
    vertical-align: middle;
    margin-left: 20px;
    transition: transform 0.4s ease;
}

.next-project-link:hover i {
    transform: translateX(15px);
    color: var(--color-accent);
}

/* Responsive Project Page */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .project-hero {
        height: clamp(280px, 58vh, 60vh);
        padding-bottom: clamp(40px, 8vw, 80px);
    }

    .projects-page-hero {
        padding-top: clamp(110px, 20vw, 140px);
        padding-bottom: clamp(24px, 5vw, 40px);
    }

    .contact-page-hero {
        padding-top: clamp(100px, 18vw, 130px);
    }

    .footer__bottom,
    .scroll-to-top {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* --- ABOUT PAGE STYLES --- */

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.about-page-intro {
    padding-top: clamp(120px, 22vw, 200px);
    padding-bottom: clamp(48px, 10vw, 100px);
}

.about-page-intro__title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1.1;
    max-width: 25ch;
}

.about-page-intro__grid {
    margin-top: clamp(32px, 8vw, 60px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: clamp(24px, 5vw, 40px);
}

.about-page-intro__grid p.lead {
    margin-bottom: 24px;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--color-text-primary);
}

.about-page-showcase {
    height: clamp(220px, 55vw, 70vh);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.about-page-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .about-page-intro__grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
    }
}

/* Process Grid (Steps) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-item {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-standard);
}

.process-item:hover {
    border-top-color: var(--color-accent);
}

.process-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.process-item:hover .process-number {
    color: var(--color-accent);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* About page — founders (desktop: two columns) */
.team-grid--founders {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.team-card {
    text-align: left;
}

.team-card--founder .team-card__info h3 {
    margin-top: 24px;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.team-card__role {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
}

.team-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team-img--founder {
    position: relative;
    height: auto;
    filter: none;
    background: #ecefee;
}

/* Desktop: uniform portrait frames, images fill card edge-to-edge */
@media (min-width: 769px) {
    .team-img--founder {
        aspect-ratio: 4 / 5;
        margin-bottom: 24px;
    }

    .team-img--founder img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .team-img--founder-kailash img {
        object-position: center 22%;
    }

    .team-img--founder-hitesh img {
        object-position: center top;
    }
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-card--founder:hover .team-img--founder {
    filter: none;
}

.team-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Responsive About */
@media (max-width: 768px) {
    .about-hero-grid { grid-template-columns: 1fr; }

    /* Founders — mobile card layout (portrait + info, no tall crop) */
    .team-grid--founders {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-card--founder {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 18px;
        padding: 16px;
        background: var(--color-bg-secondary);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;
        box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.12);
    }

    .team-card--founder .team-img--founder {
        flex: 0 0 38%;
        width: 38%;
        max-width: 140px;
        height: auto;
        aspect-ratio: 3 / 4;
        margin-bottom: 0;
        border-radius: 12px;
        transform: none !important;
        box-shadow: none;
    }

    .team-card--founder .team-img--founder img {
        object-position: top center;
    }

    .team-card--founder .team-card__info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .team-card--founder .team-card__info h3 {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .team-card--founder .team-card__role {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .team-card--founder {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .team-card--founder .team-img--founder {
        flex: none;
        width: min(72vw, 260px);
        max-width: none;
        aspect-ratio: 4 / 5;
    }

    .team-card--founder .team-card__info h3 {
        font-size: 1.2rem;
    }
}

/* --- CONTACT PAGE STYLES --- */

.contact-page-hero {
    padding-top: 140px;
    padding-bottom: 32px;
}

.contact-page-hero h1 {
    max-width: 14ch;
}

.contact-page-hero p {
    margin-top: 16px;
    font-size: 1.1rem;
}

.contact-section {
    padding-top: 0;
    padding-bottom: var(--section-spacing);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.contact-info-card {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.contact-info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.15rem;
    color: var(--color-text-primary);
}

.contact-info-card h3 i {
    color: var(--color-accent);
    font-size: 1.35rem;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.contact-info-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-info-card a:hover {
    color: var(--color-accent);
}

.contact-info-card .contact-phone {
    display: block;
    margin-bottom: 8px;
}

.info-block {
    margin-bottom: 48px;
}

.info-block h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.info-block p {
    margin-bottom: 12px;
}

.contact-form-wrap h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-form-wrap > p {
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* Form Styles */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-standard);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--color-bg-main); /* Fix for dropdown background */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

/* Map */
.map-container {
    width: 100%;
    overflow: hidden;
}

.contact-hours {
    padding: var(--section-spacing) 0;
}

.contact-hours__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.contact-hours__header h2 {
    margin-bottom: 12px;
}

.contact-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.contact-hours-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-hours-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(27, 94, 32, 0.1);
}

.contact-hours-card i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
}

.contact-hours-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.contact-hours-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: none;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-page-hero {
        padding-top: 110px;
        padding-bottom: 24px;
    }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-form { padding: 28px; }
    .contact-info-card { padding: 22px; }
}

/* --- NEWS — COMING SOON --- */
.coming-soon {
    position: relative;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 100px;
    overflow: hidden;
    background: linear-gradient(165deg, #f8faf9 0%, #ffffff 45%, #f0f5f1 100%);
}

.coming-soon__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.coming-soon__grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(27, 94, 32, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 94, 32, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: rotate(-8deg);
    animation: comingSoonGridDrift 24s linear infinite;
}

.coming-soon__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}

.coming-soon__orb--1 {
    width: 320px;
    height: 320px;
    background: rgba(27, 94, 32, 0.2);
    top: 10%;
    left: -8%;
}

.coming-soon__orb--2 {
    width: 260px;
    height: 260px;
    background: rgba(15, 81, 50, 0.15);
    bottom: 15%;
    right: -5%;
}

.coming-soon__orb--3 {
    width: 180px;
    height: 180px;
    background: rgba(27, 94, 32, 0.12);
    top: 45%;
    right: 20%;
}

.coming-soon__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.coming-soon__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 28px;
    opacity: 0;
}

.coming-soon__eyebrow i {
    font-size: 1.1rem;
}

.coming-soon__title {
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 1;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2em 0.35em;
}

.coming-soon__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
}

.coming-soon__word--accent {
    color: var(--color-accent);
}

.coming-soon__desc {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-text-secondary);
    max-width: 48ch;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
}

.coming-soon__progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
}

.coming-soon__ring {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(27, 94, 32, 0.15);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    position: relative;
    animation: comingSoonSpin 1.2s linear infinite;
    opacity: 0;
}

.coming-soon__ring-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    background: var(--color-accent);
    border-radius: 50%;
}

.coming-soon__bar {
    width: min(280px, 70vw);
    height: 3px;
    background: rgba(27, 94, 32, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.coming-soon__bar span {
    display: block;
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--color-accent), #2e7d32);
    border-radius: 4px;
    animation: comingSoonBar 2.2s ease-in-out infinite;
}

.coming-soon__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.coming-soon__tag {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-header-text);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(27, 94, 32, 0.12);
    border-radius: 100px;
    opacity: 0;
    transform: translateY(16px);
}

.coming-soon__cta {
    opacity: 0;
    transform: translateY(20px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.coming-soon__cta i {
    transition: transform 0.35s ease;
}

.coming-soon__cta:hover i {
    transform: translateX(4px);
}

@keyframes comingSoonSpin {
    to { transform: rotate(360deg); }
}

@keyframes comingSoonBar {
    0%, 100% { transform: translateX(-120%); width: 35%; }
    50% { transform: translateX(80%); width: 55%; }
}

@keyframes comingSoonGridDrift {
    0% { transform: rotate(-8deg) translateY(0); }
    100% { transform: rotate(-8deg) translateY(48px); }
}

@media (max-width: 768px) {
    .coming-soon {
        padding: 120px 0 80px;
        min-height: calc(100dvh - 64px);
    }

    .coming-soon__title {
        flex-direction: column;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coming-soon__grid,
    .coming-soon__ring,
    .coming-soon__bar span,
    .coming-soon__orb {
        animation: none;
    }

    .coming-soon__eyebrow,
    .coming-soon__word,
    .coming-soon__desc,
    .coming-soon__tag,
    .coming-soon__cta,
    .coming-soon__ring {
        opacity: 1;
        transform: none;
    }
}

/* --- NEWS PAGE STYLES (archive) --- */

/* Featured Article (Top) */
.featured-article {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: var(--transition-standard);
}

.featured-article:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.featured-img {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}

.featured-article:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--color-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-standard);
    border: 1px solid transparent;
}

.news-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(27, 94, 32, 0.05);
}

.news-img {
    height: 240px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-body {
    padding: 24px;
}

.news-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 12px;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.read-more {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* Newsletter Section */
.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 16px;
    border-radius: 4px;
    color: var(--color-text-primary);
}

/* Responsive News */
@media (max-width: 900px) {
    .featured-article { grid-template-columns: 1fr; }
    .featured-img { min-height: 250px; height: 250px; }
    .newsletter-form { flex-direction: column; }
}

/* --- DECODE TEXT EFFECT (Step 1) --- */
.dud {
    color: var(--color-accent); /* The random characters will be Dark Green */
    opacity: 0.7;
    font-family: 'Courier New', monospace; /* tech-style font for the glitch */
}

/* --- PROFESSIONAL 3D TILT EFFECT --- */
.team-card {
    perspective: 1000px; /* Creates the 3D space */
    cursor: none; /* We will hide cursor for a cleaner look later, or keep 'pointer' */
    cursor: pointer;
}

.team-img {
    transition: transform 0.1s ease; /* Fast response to mouse movement */
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Optional: Add a glossy sheen reflection */
.team-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, transparent 0%, rgba(255,255,255,0.1) 40%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.team-card:hover .team-img::before {
    opacity: 1;
}

/* ============================= */
/* LOGO VISIBILITY PATCH (DESKTOP) */
/* ============================= */

@media (min-width: 769px) {
    .logo {
        height: 64px;
        display: flex;
        align-items: center;
    }

    .logo-img {
        height: 100%;
        width: auto;
        object-fit: contain;
        transform: scale(3.50);
        transform-origin: left center;
    }
}

/* ============================= */
/* MOBILE HEADER + MENU FIXES    */
/* ============================= */

.mobile-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    pointer-events: none;
}

.mobile-toggle__bars span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
    transform-origin: center;
}

.mobile-toggle.is-active .mobile-toggle__bars span:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
}

.mobile-toggle.is-active .mobile-toggle__bars span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ---- Close button inside mobile nav drawer ---- */
.nav-close-btn {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .nav.nav--mobile .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: max(20px, env(safe-area-inset-top, 20px));
        right: 20px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1.5px solid rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.85);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        color: #1a1a1a;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 10;
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .nav.nav--mobile .nav-close-btn:hover {
        background: var(--color-accent, #1B5E20);
        border-color: var(--color-accent, #1B5E20);
        color: #fff;
        transform: rotate(90deg);
        box-shadow: 0 4px 20px rgba(27, 94, 32, 0.25);
    }

    .nav.nav--mobile .nav-close-btn:active {
        transform: rotate(90deg) scale(0.92);
    }

    .nav.nav--mobile .nav-close-btn i {
        line-height: 1;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .header {
        will-change: auto;
        padding-bottom: 6px;
    }

    .header__container {
        position: relative;
        z-index: 10001;
        gap: 8px;
        min-height: 56px;
    }

    /* Hide inline nav until JS portals the mobile drawer */
    .header__container > .nav {
        display: none !important;
    }

    /* Compact logo — frees hero space on small screens */
    .header .logo {
        flex: 1;
        min-width: 0;
        height: 56px;
        max-width: calc(100% - 52px);
        overflow: visible;
        display: flex;
        align-items: center;
        z-index: 1;
    }

    .header .logo-img {
        height: 68px !important;
        width: auto !important;
        transform: scale(2.8) !important;
        transform-origin: left center;
        object-fit: contain;
        object-position: left center;
        display: block;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        z-index: 10002;
        position: relative;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

    .nav-backdrop {
        z-index: 10003;
    }

    /* Portaled nav — fixed to viewport (not trapped in header transform) */
    .nav.nav--mobile {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        height: 100dvh;
        z-index: 10004;
        padding: max(80px, calc(68px + env(safe-area-inset-top))) 24px max(40px, env(safe-area-inset-bottom));
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
        background: #fff;
        box-shadow: none;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        visibility: visible;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.nav--mobile.active {
        transform: translateX(0);
    }

    .nav.nav--mobile .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding-top: 8px;
    }

    .nav.nav--mobile .nav__item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav.nav--mobile .nav__item:last-child {
        border-bottom: none;
        margin-top: 24px;
    }

    .nav.nav--mobile .nav__link {
        display: flex;
        align-items: center;
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 20px 16px;
        opacity: 1;
        transform: none;
        color: var(--color-header-text);
        border-radius: 12px;
        transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
        position: relative;
    }

    .nav.nav--mobile .nav__link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%) scaleY(0);
        width: 3px;
        height: 60%;
        border-radius: 2px;
        background: var(--color-accent, #1B5E20);
        transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .nav.nav--mobile .nav__link:hover,
    .nav.nav--mobile .nav__link:focus-visible {
        background: rgba(27, 94, 32, 0.06);
        color: var(--color-accent, #1B5E20);
        padding-left: 24px;
    }

    .nav.nav--mobile .nav__link:hover::before,
    .nav.nav--mobile .nav__link:focus-visible::before {
        transform: translateY(-50%) scaleY(1);
    }

    .nav.nav--mobile .nav__link.active {
        color: var(--color-accent, #1B5E20);
        font-weight: 700;
    }

    .nav.nav--mobile .nav__link.active::before {
        transform: translateY(-50%) scaleY(1);
    }

    /* Underline override — no need inside the drawer */
    .nav.nav--mobile .nav__link::after {
        display: none;
    }

    .nav.nav--mobile .nav__link.btn {
        text-align: center;
        justify-content: center;
        background: var(--color-accent);
        color: #fff !important;
        border-radius: 12px;
        padding: 18px 24px;
        margin-top: 8px;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        box-shadow: 0 4px 16px rgba(27, 94, 32, 0.2);
        transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    }

    .nav.nav--mobile .nav__link.btn:hover {
        background: #174d1b;
        padding-left: 24px;
        box-shadow: 0 6px 24px rgba(27, 94, 32, 0.3);
        transform: translateY(-1px);
    }

    .nav.nav--mobile .nav__link.btn::before {
        display: none;
    }

    .nav.nav--mobile .nav__link.btn::after {
        display: none;
    }

    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
        overscroll-behavior: none;
    }
}

@media (max-width: 480px) {
    .header .logo {
        height: 52px;
    }

    .header .logo-img {
        height: 60px !important;
    }

    .footer__tagline h2 {
        font-size: clamp(1.25rem, 5.5vw, 1.5rem);
        line-height: 1.3;
    }

    .section-header h2 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .seo-intro .section-header__lead {
        font-size: 0.95rem;
    }

    .project-filters .filter-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .hero-logo__mark {
        width: 360px;
        height: 360px;
        margin-bottom: 24px;
    }

    .hero-logo__img {
        height: 300px;
    }

    .hero-logo__aurora {
        display: none;
    }

    .hero-logo__grid {
        display: none;
    }

    .hero-logo__frame-corner {
        width: 28px;
        height: 28px;
    }
}

/* Very small phones (iPhone SE, narrow Android) */
@media (max-width: 380px) {
    :root {
        --section-spacing: 52px;
    }

    .header__container {
        padding: 0 10px;
    }

    .container {
        width: 94%;
    }

    .service-card {
        padding: 20px;
    }

    .project-card__title {
        font-size: 1.05rem;
    }

    .nav.nav--mobile .nav__link {
        font-size: 1rem;
        padding: 16px 4px;
    }
}

/* --- Mobile Bottom Navigation Bar --- */
@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        background: #ffffff;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
        z-index: 20000;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0));
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        will-change: transform;
    }

    .bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--color-text-secondary);
        padding: 8px;
        position: relative;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        flex: 1;
    }
    .bottom-nav__icon {
        font-size: 1.15rem;
        margin-bottom: 4px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .bottom-nav__label {
        font-family: var(--font-ui);
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }
    .bottom-nav__item.active {
        color: var(--color-accent);
        transform: scale(1.08);
    }
    .bottom-nav__item.active .bottom-nav__icon {
        filter: drop-shadow(0 4px 6px rgba(27, 94, 32, 0.3));
    }
    .bottom-nav__item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scale(0);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: var(--color-accent);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .bottom-nav__item.active::after {
        transform: translateX(-50%) scale(1);
    }
    /* Adjust footer padding so it's not hidden by nav */
    .footer {
        padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    }
    /* Move scroll-to-top button up */
    .scroll-to-top {
        bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    }
}
