:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #f0f0f0;
    --muted-color: #888888;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animation Durations */
    --duration-primary: 1.2s;
    --duration-secondary: 0.8s;
    --duration-micro: 0.4s;
    --ease-out: power3.out;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Global Cursor Override */
html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    cursor: none;
    /* Replaced by custom Elite Cursor */
}

a,
button,
select,
input,
textarea,
.service-item,
.project-panel {
    cursor: none !important;
}

/* Elite Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader__content {
    position: relative;
    text-align: center;
}

.loader__progress {
    font-family: var(--font-heading);
    font-size: 15vw;
    font-weight: 900;
    line-height: 1;
    color: var(--text-color);
    letter-spacing: -0.05em;
}

.loader__bar {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: width 0.1s linear;
}

/* Custom Cursor Components */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    /* Absolute top priority */
    mix-blend-mode: difference;
    transition: transform var(--duration-micro) var(--ease-out);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    /* Absolute top priority */
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

/* Cursor Interaction States */
.cursor.active {
    transform: scale(3);
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
}

/* Noise Texture Layer */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/noise.png');
    background-repeat: repeat;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* 1200px immersion for Edge-to-Edge Mockups */
.container--hero-mockup {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* Narrative-grade centered container for text sections */
.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: 160px 0;
}

/* Global Navigation & Reset */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 70px 0 40px;
    z-index: 20000;
    background-color: rgba(10, 10, 10, 0.95);
    /* Solid grounding during scroll */
    backdrop-filter: blur(10px);
    /* Premium depth */
}

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

.nav__logo {
    display: block;
    height: 48px;
    /* Clean window for the logo text */
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.nav__logo img {
    height: 180px;
    /* Scales brand text to ~30px height */
    display: block;
    transform: translateY(-66px);
    /* Calibrated shift to lock text in center of window */
}

.nav__menu {
    display: flex;
    align-items: center;
    /* Ensures links balance perfectly against the logo center */
    gap: 40px;
}

.nav__link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    position: relative;
    /* Base for the underline */
    transition: opacity var(--duration-micro) var(--ease-out);
}

.nav__link:not(.nav__link--cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: left;
    /* Consistently grow from left */
    transition: transform var(--duration-secondary) var(--ease-out);
}

.nav__link:not(.nav__link--cta):hover {
    opacity: 1;
}

.nav__link:not(.nav__link--cta):hover::after {
    transform: scaleX(1);
}

.nav__link--cta {
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 4px;
    opacity: 1;
    /* Solid high-impact focal point */
    transition: background-color var(--duration-micro), color var(--duration-micro);
}

.nav__link--cta:hover {
    background-color: #fff;
    color: #000;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-color);
    margin-bottom: 60px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 230px;
    /* Absolute separation from header */
    padding-bottom: 80px;
    position: relative;
}

.hero__title {
    font-size: clamp(3rem, 10vw, 8rem);
    margin-bottom: 40px;
}

.split-line {
    display: inline-block;
    overflow: hidden;
}

.hero__subheading {
    font-size: 1.25rem;
    max-width: 600px;
    color: var(--muted-color);
    font-weight: 400;
    margin-bottom: 60px;
}

.hero__lighting {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 20px 48px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--duration-micro) var(--ease-out);
}

.btn--primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn--primary:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* Work Section (Horizontal Scroll) */
.work-wrapper {
    position: relative;
    overflow: hidden;
}

.work-pinned {
    height: 100vh;
}

.work-container {
    display: flex;
    width: 200vw;
    /* 2 panels */
    height: 100%;
}

.project-panel {
    width: 100vw;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.project__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.project__label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted-color);
    margin-bottom: 20px;
}

.project__title {
    font-size: 6rem;
    margin-bottom: 20px;
}

.project__statement {
    font-size: 1.5rem;
    color: var(--muted-color);
    margin-bottom: 40px;
    max-width: 400px;
}

.project__btn {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 40px;
    position: relative;
    padding-bottom: 8px;
}

.project__btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-secondary) var(--ease-out);
}

.project__btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.project__visuals {
    position: relative;
    height: 500px;
}

.mockup {
    position: absolute;
    width: 100%;
    transition: transform var(--duration-secondary) var(--ease-out);
}

.mockup img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.mockup--2 {
    transform: translate(20%, 20%);
    z-index: 2;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 120px 80px;
}

.service-item {
    padding: 60px 40px;
    border-top: 1px solid var(--border-color);
    transition: transform var(--duration-secondary) var(--ease-out), border-color var(--duration-secondary) var(--ease-out), background-color var(--duration-secondary) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-20px);
    border-top-color: #fff;
    background-color: rgba(255, 255, 255, 0.03);
}

.service-item::after {
    content: '→';
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 24px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--duration-secondary) var(--ease-out);
}

.service-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.service__num {
    display: block;
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 20px;
}

.service__name {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service__desc {
    color: var(--muted-color);
    max-width: 400px;
}

/* About */
.about__text {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.about__subtext {
    font-size: 1.2rem;
    color: var(--muted-color);
}

/* Process */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 300px 1fr;
    gap: 40px;
    align-items: baseline;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

.step__num {
    font-size: 14px;
    color: var(--muted-color);
    text-transform: uppercase;
}

.step__title {
    font-size: 1.5rem;
}

.step__desc {
    color: var(--muted-color);
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: #111;
    padding: 60px;
    border-radius: 4px;
}

.testimonial__quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 40px;
}

.testimonial__author {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-color);
}

/* Exclusivity Section */
.exclusive-title {
    font-size: 4rem;
    margin-bottom: 40px;
}

.exclusive__text {
    font-size: 1.5rem;
    color: var(--muted-color);
    margin-bottom: 40px;
}

.exclusive__tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-color);
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.25rem;
    outline: none;
    transition: border-color var(--duration-micro) var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text-color);
}

.budget-group select {
    color: var(--text-color);
    cursor: pointer;
}

.budget-group select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.budget-notice {
    font-size: 12px;
    color: #e0e0e0;
    margin-top: 8px;
}

/* Footer */
.footer {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--muted-color);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .project__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project__title {
        font-size: 4rem;
    }
}

/* Project Detail Elite Utilities - Global Scope */
:root {
    --project-accent: var(--accent-color);
}

.project-detail-body main {
    padding-top: 140px;
    /* Mandatory clearance for fixed nav across all sections */
}

.project-detail-body .container {
    max-width: 1200px;
    /* Standardize project content width */
}

.project-hero {
    padding-top: 40px;
    padding-bottom: 80px;
}

.project-hero .gallery-item {
    width: 100%;
}

.project-hero .gallery-item img {
    width: 100%;
    height: 75vh;
    /* Calibrated for immersive horizontal volume */
    object-fit: cover;
    /* Surgical fill to eliminate side gutters */
    display: block;
    transform: scale(1.05);
    /* Zoom to clear baked-in asset letterboxing */
}

.project-hero__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-color);
    margin-bottom: 20px;
    display: block;
}

.project-hero__title {
    font-size: 6vw;
    margin-bottom: 40px;
}

.project-hero__meta {
    display: flex;
    gap: 80px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.meta-item__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-color);
    margin-bottom: 15px;
    display: block;
}

.meta-item__value {
    font-size: 18px;
    font-weight: 500;
}

/* Narrative Sections */
.project-narrative {
    padding: 120px 0;
}

.narrative-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 120px;
}

.narrative-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.narrative-text {
    font-size: 20px;
    color: var(--muted-color);
    line-height: 1.6;
}

/* Gallery - Masonry */
.project-gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    max-width: 1200px;
    /* Constrain jumbo images */
    margin: 0 auto;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    /* Force containment */
    height: auto;
    display: block;
    transition: transform var(--duration-secondary) var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Metric Cards */
.project-metrics {
    padding: 120px 0;
    background-color: rgba(255, 255, 255, 0.02);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.metric-card {
    padding: 60px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.metric-card__value {
    font-size: 48px;
    font-family: var(--font-heading);
    color: var(--project-accent);
    margin-bottom: 20px;
    display: block;
}

.metric-card__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-color);
}

/* Navigation Overrides (Back to index anchors) */
.nav__link[href^="index.html#"] {
    position: relative;
    z-index: 10001;
}

/* Navigation Toggle (Desktop Hidden) */
.nav-toggle {
    display: none;
}

/* Base Responsive Overrides (Elite Mobile Experience) */
@media (max-width: 768px) {
    /* Layout Foundation */
    .container, .container--narrow, .container--hero-mockup {
        padding: 0 40px !important;
        width: 100% !important;
        margin: 0 auto;
        box-sizing: border-box !important;
    }

    .section {
        padding: 80px 0 !important;
    }

    /* Zero-Overflow Typography */
    h1, .hero__title, .project-hero__title {
        font-size: 2.8rem !important;
        line-height: 1.1;
    }

    h2, .section-title, .exclusive-title {
        font-size: 1.8rem !important;
    }

    .about__text, .narrative-text {
        font-size: 1.1rem !important;
    }

    /* Grid Stacking */
    .services-grid, 
    .process-list, 
    .gallery-grid, 
    .narrative-grid,
    .testimonials-grid,
    .process-step,
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .metric-card {
        padding: 40px 24px !important;
    }

    /* Navigation - Hamburger System */
    .nav {
        padding: 20px 0 !important;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        display: flex; /* Overridden by .active logic but base flex remains */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: right 1.2s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 10000;
        visibility: hidden; /* Prevent interaction when closed */
    }

    .nav__menu.active {
        right: 0;
        visibility: visible;
    }

    .nav__link:not(.nav__logo) {
        font-size: 1.5rem;
        display: block;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 10001; /* Above drawer */
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 1px;
        background: var(--text-color);
        transition: transform 0.3s ease;
    }

    /* Animation: Hamburger to X */
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Project Hero Mockup Overrides */
    .project-hero .gallery-item img {
        height: auto !important;
        max-height: 50vh !important;
        object-fit: contain !important;
        transform: scale(1) !important;
    }

    .project-hero__meta {
        flex-direction: column;
        gap: 16px;
    }

    .meta-item {
        margin-bottom: 8px;
    }

    /* Specific Content Overrides */
    #hero {
        padding-top: 140px !important; /* Push title below sticky nav */
    }

    .hero__subheading {
        font-size: 1rem !important;
        margin-top: 24px;
    }

    .project-hero__title br {
        display: none; /* Let titles wrap naturally on mobile */
    }

    /* Narrative Polish (Elite Focus) */
    .narrative-grid {
        padding: 60px 60px !important; /* Expansive horizontal air */
    }

    .footer .nav__link {
        font-size: 0.9rem !important; /* Proportional phone size */
        margin-top: 20px;
        display: inline-block !important;
    }

    .narrative-title {
        font-size: 2.2rem !important;
        margin-bottom: 24px !important;
        line-height: 1.1;
    }

    .narrative-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        opacity: 0.9;
    }

    /* Fix for "trapped" narrative feel */
    .project-narrative {
        padding: 100px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Fix for "cutted" hero title word-breaking */
    .project-hero__title {
        font-size: 2.2rem !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    #application-form {
        padding: 32px 20px;
    }

    .footer__grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 32px;
    }

    .footer__logo {
        margin: 0 auto;
    }

    /* Horizontal Scroll Prevention (Ensuring all panels are visible) */
    #work, .work-pinned, .work-wrapper, .work-container {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        overflow: visible !important;
    }

    .project-panel {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 80px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}

/* Elite Number Input Polish */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: none;
}