/* ==========================================================================
   01 — DESIGN TOKENS
   ========================================================================== */
:root {
    --black: #050505;
    --obsidian: #070707;
    --obsidian-light: #101010;
    --charcoal: #151515;

    --ivory: #F4F0E7;
    --gold: #C6A15B;
    --gold-muted: rgba(198, 161, 91, 0.45);

    --gray-text: #99958D;
    --line: rgba(255, 255, 255, 0.08);

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    --section-padding: clamp(5rem, 8vw, 9rem) 0;
}

/* ==========================================================================
   02 — RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--obsidian);
    color: var(--ivory);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lenis Compatibility */
html { scroll-behavior: auto; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   03 — CONTAINERS
   ========================================================================== */
.container {
    width: min(1200px, 100% - 4rem);
    margin-inline: auto;
}

.container-narrow, .body-narrow {
    width: min(720px, 100% - 4rem);
    margin-inline: auto;
}

/* ==========================================================================
   04 — TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

a { text-decoration: none; color: inherit; }

.body-large {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.6;
    color: var(--ivory);
}

.eyebrow, .eyebrow-small {
    font-family: var(--font-body);
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
}

.massive-text {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    text-transform: uppercase;
    line-height: 0.9;
    margin: 2rem 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 4rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* ==========================================================================
   05 — ACCESSIBILITY
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border-width: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 4px;
}

/* ==========================================================================
   06 — HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9), rgba(5,5,5,0));
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivory);
}

.logo .logo-city {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    font-family: var(--font-body);
}

.primary-nav a {
    color: var(--ivory);
    margin: 0 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.primary-nav a:hover { color: var(--gold); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-body);
}

/* ==========================================================================
   07 — BUTTONS
   ========================================================================== */
.btn-outline, .btn-solid, .btn-solid-dark {
    display: inline-block;
    padding: 1rem 2.4rem;
    min-height: 48px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.2, 0.65, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-outline {
    border: 1px solid var(--gold-muted);
    color: var(--ivory);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.btn-solid { background: var(--gold); color: var(--black); }
.btn-solid:hover { background-color: var(--ivory); }

.btn-solid-dark {
    background-color: var(--ivory);
    color: var(--black);
    width: 100%;
    min-height: 54px;
}
.btn-solid-dark:hover { background-color: var(--gold); }
.btn-solid-dark.is-loading { opacity: 0.7; pointer-events: none; }

/* ==========================================================================
   08 — HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh; 
    overflow: hidden;
    background-color: var(--black);
    /* Add Flexbox to the parent to force perfect centering */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-layer-sky, .hero-layer-architecture, .hero-layer-light, .hero-layer-grain {
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 110%;
}

.hero-layer-sky { z-index: 1; background-color: #050505; }
.hero-layer-architecture { z-index: 2; }
.hero-layer-light {
    z-index: 3;
    background: radial-gradient(circle at 50% 110%, rgba(198, 161, 91, 0.15), transparent 60%);
    pointer-events: none;
}
.hero-layer-grain {
    z-index: 4;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.95) 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-layer-foreground {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 0 2rem; /* Added 6rem top padding to clear the header */
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem); /* Reduced max size from 8rem to 7rem */
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ==========================================================================
   09 — EDITORIAL SECTIONS
   ========================================================================== */
.editorial-section {
    padding-block: var(--section-padding);
    position: relative;
    z-index: 10;
    background-color: var(--obsidian);
}

.dark-panel { background-color: var(--charcoal); }
.gray-panel {
    background-color: var(--obsidian-light);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.editorial-section.has-grid-line::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    pointer-events: none;
}

.split-layout .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.cinematic-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

.image-mask {
    overflow: hidden;
}

/* ==========================================================================
   10 — COLLECTION & CARDS
   ========================================================================== */
.constellation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    border: 1px solid var(--line);
    background-color: var(--charcoal);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

/* Moved padding and flex properties to the anchor tag to make the whole card clickable */
.project-card a {
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    width: 100%;
    height: 100%;
}

.project-card:hover { 
    border-color: var(--gold-muted); 
}

.card-number {
    font-family: var(--font-body);
    color: var(--gold-muted);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.8rem;
    color: var(--ivory);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.status-tag {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-top: auto;
}

.status-launched { background-color: var(--ivory); color: var(--black); }
.status-upcoming { background-color: var(--gold); color: var(--black); }
.status-watch { background-color: transparent; border: 1px solid var(--gold-muted); color: var(--gold); }

/* ==========================================================================
   11 — EDUCATIONAL GRID & AEO TABLES
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem 0 0 0;
    border-top: 1px solid var(--line);
}

.feature-card span {
    font-family: var(--font-body);
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 1rem;
}

.luxury-checklist { list-style: none; margin-top: 2.5rem; }
.luxury-checklist li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--gray-text);
    font-size: 0.95rem;
}
.luxury-checklist li:last-child { border-bottom: none; }

/* AEO Table Horizontal Scroll Fix */
.aeo-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.aeo-table { min-width: 500px; }
.aeo-table th { font-weight: 400; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.aeo-table td { color: var(--ivory); font-size: 1rem; }

/* ==========================================================================
   12 — FORMS
   ========================================================================== */
.full-width-cta {
    padding-block: var(--section-padding);
    background-color: var(--black);
}

.luxury-form { margin-top: 3rem; text-align: left; }
.form-group { margin-bottom: 1rem; position: relative; }

.luxury-form input, .luxury-form select {
    width: 100%;
    min-height: 54px;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ivory);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
}

/* Custom CSS Chevron for Select elements */
.luxury-form select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23C6A15B" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Increased opacity from 0.4 to 0.55 for better readability */
.luxury-form input::placeholder { 
    color: rgba(244, 240, 231, 0.55); 
}

/* Force the <select> fields to match the placeholder color when unselected */
.luxury-form select.is-placeholder,
.luxury-form select:invalid {
    color: rgba(244, 240, 231, 0.55);
}

/* Ensure the actual dropdown list items remain readable */
/* Force the dropdown menu list to use the dark theme with light text */
.luxury-form select option {
    background-color: var(--obsidian); /* Forces a dark background */
    color: var(--ivory);               /* Forces light text */
}
.luxury-form input:focus, .luxury-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* ==========================================================================
   13 — FAQ
   ========================================================================== */
.faq-list { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0;
    padding: 2rem 0;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item p {
    display: none; 
    padding-bottom: 2rem;
}

/* ==========================================================================
   14 — FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--black);
    padding: 6rem 0 2rem 0;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-col a, .footer-col p {
    display: block; /* Forces each link onto its own line */
    color: var(--gray-text);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--ivory); }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    color: var(--ivory);
    letter-spacing: -0.02em;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--gray-text);
}

.operator-note {
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   15 — MOTION CLASSES
   ========================================================================== */
.reveal-mask { display: block; overflow: hidden; }
.reveal-text { transform: none; }
.js-enabled .reveal-text { transform: translateY(100%); }
.reveal-fade { opacity: 1; }
.js-enabled .reveal-fade { opacity: 0; }

/* ==========================================================================
   16 — RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .constellation-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .site-header { padding: 1.5rem 2rem; }
    
    /* Mobile Drawer Navigation */
    .primary-nav {
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100svh;
        background: rgba(5,5,5,0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 99;
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav a { margin: 1.5rem 0; font-size: 1.2rem; }
    
    .nav-cta { display: none; }
    .mobile-menu-btn { display: block; z-index: 101; position: relative; }
    
    .split-layout .container { grid-template-columns: 1fr; gap: 3rem; }
    .editorial-section.has-grid-line::before { display: none; }
}

@media (max-width: 768px) {
    .constellation-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .site-header { padding: 1rem 1.5rem; }
}

/* ==========================================================================
   17 — REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .project-card img { transition: transform 1.2s cubic-bezier(0.2, 0.65, 0.2, 1); }
    .project-card:hover img { transform: scale(1.04); }
}

/* ==========================================================================
   18 — PRINT (Restored for Offline Reader / PDF exports)
   ========================================================================== */
@media print {
    .site-header, .full-width-cta, .site-footer {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
    .editorial-section {
        background: #fff;
        color: #000;
        page-break-inside: avoid;
    }
    h1, h2, h3, h4, p {
        color: #000;
    }
    .gray-panel, .dark-panel {
        background-color: transparent !important;
        border: 1px solid #ccc;
    }
}