/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --olive: #5E7A50;
    --olive-light: #7A9B68;
    --olive-pale: #EEF2EB;
    --charcoal: #1A1A1A;
    --gray-900: #2D2D2D;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #C4C4C4;
    --gray-100: #F5F5F3;
    --white: #FAFAF8;
    --pure-white: #FFFFFF;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ========== NAV ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Dark nav variant for dark hero pages */
nav.nav-dark { color: var(--pure-white); }
nav.nav-dark .nav-logo { color: var(--pure-white); }
nav.nav-dark .nav-links a { color: rgba(255,255,255,0.7); }
nav.nav-dark .nav-links a:hover { color: var(--pure-white); }
nav.nav-dark .nav-cta { background: var(--pure-white); color: var(--charcoal) !important; }
nav.nav-dark .nav-cta:hover { background: var(--olive-light) !important; color: var(--pure-white) !important; }
nav.nav-dark .menu-toggle span { background: var(--pure-white); }
nav.nav-dark.scrolled { background: rgba(250, 250, 248, 0.92); color: var(--charcoal); }
nav.nav-dark.scrolled .nav-logo { color: var(--charcoal); }
nav.nav-dark.scrolled .nav-links a { color: var(--gray-700); }
nav.nav-dark.scrolled .nav-links a:hover { color: var(--charcoal); }
nav.nav-dark.scrolled .nav-cta { background: var(--charcoal); color: var(--pure-white) !important; }
nav.nav-dark.scrolled .nav-cta:hover { background: var(--olive) !important; }
nav.nav-dark.scrolled .menu-toggle span { background: var(--charcoal); }

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-logo span { color: var(--olive); }

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--gray-700);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--olive);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    background: var(--charcoal);
    color: var(--pure-white) !important;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--olive) !important; color: var(--pure-white) !important; transform: translateY(-1px); }

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    padding: 10px 6px;
}

.menu-toggle span {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--charcoal);
    position: absolute;
    left: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle span:nth-child(1) { top: 10px; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 10px; }

.menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ========== SHARED SECTION STYLES ========== */
.section-divider {
    height: 1px;
    background: var(--gray-300);
    opacity: 0.5;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 650px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--charcoal);
    color: var(--pure-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover { background: var(--olive); transform: translateY(-2px); }

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.3s ease;
}

.btn-secondary:hover { color: var(--charcoal); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1.5px solid var(--gray-300);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover { border-color: var(--charcoal); transform: translateY(-2px); }

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--pure-white);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-light:hover { background: var(--olive-light); color: var(--pure-white); transform: translateY(-2px); }

.btn-light svg, .btn-outline svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-light:hover svg, .btn-outline:hover svg { transform: translateX(4px); }

/* ========== SUB-PAGE HERO (Default — left-aligned, light bg) ========== */
.sub-hero {
    padding: clamp(8rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
}

.sub-hero .section-label { margin-bottom: 1.5rem; }

.sub-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.sub-hero h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--olive);
}

.sub-hero p {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--gray-700);
    max-width: 600px;
    line-height: 1.7;
}

.sub-hero .hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

/* --- Hero variant: centered --- */
.sub-hero.hero-centered {
    text-align: center;
}

.sub-hero.hero-centered h1,
.sub-hero.hero-centered p {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.sub-hero.hero-centered .hero-buttons {
    justify-content: center;
}

/* --- Hero variant: dark background --- */
.sub-hero.hero-dark {
    background: var(--charcoal);
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.sub-hero.hero-dark::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--olive) 0%, transparent 70%);
    opacity: 0.08;
}

.sub-hero.hero-dark h1 em { color: var(--olive-light); }
.sub-hero.hero-dark p { color: rgba(255,255,255,0.65); }
.sub-hero.hero-dark .section-label { color: var(--olive-light); }

/* --- Hero variant: with side detail --- */
.sub-hero.hero-split .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sub-hero.hero-split .hero-detail {
    position: relative;
}

.sub-hero.hero-split .hero-detail-block {
    aspect-ratio: 1;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ========== STRATEGY PAGE — Numbered list features ========== */
.features-list {
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.features-list .section-header {
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.feature-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    align-items: start;
}

.feature-row:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.feature-row .feature-num {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--olive);
    opacity: 0.2;
    font-family: var(--font-serif);
}

.feature-row-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-row-content p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
    max-width: 600px;
}

.feature-row-content .feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    list-style: none;
}

.feature-row-content .feature-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background: var(--olive-pale);
    border-radius: 100px;
    color: var(--olive);
}

/* ========== AI PAGE — Alternating full-width blocks ========== */
.features-alternating {
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.features-alternating .section-header {
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.alt-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(3rem, 5vw, 4rem) 0;
}

.alt-block:nth-child(even) .alt-block-visual { order: -1; }

.alt-block-content .section-label {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
}

.alt-block-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.alt-block-content p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.75;
}

.alt-block-visual {
    aspect-ratio: 4/3;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alt-block-visual .visual-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.alt-block-visual .visual-icon svg {
    width: 40px;
    height: 40px;
}

.alt-block-visual .visual-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

/* ========== LABS PAGE — Dark panel tech layout ========== */
.features-panels {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--charcoal);
    color: var(--pure-white);
}

.features-panels .section-header { margin-bottom: clamp(3rem, 6vw, 4rem); }
.features-panels .section-label { color: var(--olive-light); }

.panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.panel-card {
    padding: clamp(2rem, 3vw, 2.5rem);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--olive-light), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.panel-card:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
}

.panel-card:hover::before { opacity: 1; }

.panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(122, 155, 104, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.panel-icon svg {
    width: 24px;
    height: 24px;
    color: var(--olive-light);
}

.panel-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--pure-white);
}

.panel-card p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}

/* Labs process — horizontal timeline */
.process-timeline {
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.process-timeline .section-header { margin-bottom: clamp(3rem, 6vw, 4rem); }

.timeline-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--gray-300);
}

.timeline-item {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--olive);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--white);
}

.timeline-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ========== PROCESS SECTION (Strategy + AI) ========== */
.process {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--gray-100);
}

.process .section-header { margin-bottom: clamp(3rem, 6vw, 4rem); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    padding: 2rem;
}

.process-step .step-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--olive);
    opacity: 0.12;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.65;
}

/* ========== CTA BLOCK ========== */
.cta {
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.cta-block {
    background: var(--charcoal);
    border-radius: 24px;
    padding: clamp(3rem, 6vw, 5rem);
    text-align: center;
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('nyc-bridge.jpg') center/cover no-repeat;
    opacity: 0.12;
}

.cta-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(94,122,80,0.3) 100%);
}

.cta-block h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-block h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--olive-light);
}

.cta-block p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--pure-white);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.btn-cta:hover { background: var(--olive-light); color: var(--pure-white); transform: translateY(-2px); }

.btn-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-cta:hover svg { transform: translateX(4px); }

/* ========== FOOTER ========== */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

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

.footer-left p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-logo span { color: var(--olive); }

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--charcoal); }

/* Footer alternate structure (contact page) */
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-section h4 span { color: var(--olive); }

.footer-section h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.footer-section p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li { margin-bottom: 0.3rem; }

.footer-section ul a {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.footer-section ul a:hover { color: var(--charcoal); }

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
}

.footer-contact {
    text-align: right;
}

.footer-contact a {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* ========== ANIMATIONS ========== */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.95); }

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .panels-grid { grid-template-columns: 1fr; }
    .alt-block { grid-template-columns: 1fr; }
    .alt-block:nth-child(even) .alt-block-visual { order: 0; }
    .sub-hero.hero-split .container { grid-template-columns: 1fr; }
    .sub-hero.hero-split .hero-detail { display: none; }
    .timeline-track { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .timeline-track::before { display: none; }
    .feature-row { grid-template-columns: 60px 1fr; gap: 1.5rem; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active a { font-size: 1.5rem; color: var(--charcoal) !important; }
    .nav-links.active .nav-cta {
        color: var(--pure-white) !important;
        background: var(--charcoal);
        padding: 0.75rem 2rem;
        margin-top: 0.5rem;
    }

    /* Ensure hamburger X is visible on dark nav pages when menu is open */
    nav.nav-dark .menu-toggle.active span { background: var(--charcoal); }

    .sub-hero .hero-buttons { flex-wrap: wrap; }

    .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-section ul { list-style: none; padding: 0; }
    .footer-contact { text-align: center; }
    .timeline-track { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .process-steps { grid-template-columns: 1fr; }
}
