/* =========================================
   1. CORE & VARIABLES (Gold Theme)
   ========================================= */
:root {
    --c-obsidian: #050505;
    --c-charcoal: #0a0a0a;
    --c-ash: #1a1a1a;
    --c-gold: #D4AF37;
    --c-gold-bright: #F4C430;
    --c-gold-dim: rgba(212, 175, 55, 0.3);
    --c-vapor: #e0e0e0;

    --f-serif: 'Cormorant Garamond', serif;
    --f-sans: 'Manrope', sans-serif;

    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html.lenis {
    height: auto;
}

html {
    scroll-padding-top: 90px;
    /* v17: Refined offset (Global) */
}

/* =========================================
   USER SCROLL CONTROLS (Manual Offsets)
   ========================================= */
/* Adjust these values to make specific sections land higher/lower */
#chronicle {
    scroll-margin-top: 0px;
}

/* Philosophy */
#artisan {
    scroll-margin-top: -90px;
}

/* Elias Thorne */
#legacy {
    scroll-margin-top: -20px;
}

/* The Legacy */
#methodology {
    scroll-margin-top: 0px;
}

/* Methodology */
#craft {
    scroll-margin-top: -50px;
}

/* The Craft */
#location {
    scroll-margin-top: 0px;
}

/* Contact */

/* Example: Set #artisan { scroll-margin-top: 50px; } to land 50px lower */

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--c-obsidian);
    color: var(--c-vapor);
    font-family: var(--f-sans);
    overflow-x: hidden;
    cursor: none;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    cursor: none;
}

/* =========================================
   2. ATMOSPHERE
   ========================================= */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8999;
    pointer-events: none;
    background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
}

/* =========================================
   3. CUSTOM CURSOR
   ========================================= */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--c-gold);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

body.hovering .cursor-circle {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--c-gold);
}

/* =========================================
   4. NAVIGATION (FIXED Z-INDEX)
   ========================================= */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    /* Increased to ensure visibility */
    mix-blend-mode: difference;
    transform: translateY(0);
    /* Default state */
}

.nav-brand {
    font-family: var(--f-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    text-transform: uppercase;
}

.nav-mid {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    /* USER: Change color here (e.g. #D4AF37 for Gold) */
    opacity: 0.9;
    transition: 0.3s;
}

.nav-link:hover {
    color: #fff;
    /* v18: White Hover */
}

.nav-end span {
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
}

/* Mobile Menu */
.menu-trigger {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    z-index: 10001;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    mix-blend-mode: difference;
}

.line {
    background: #fff;
    height: 1px;
    transition: 0.4s;
}

.line-1 {
    width: 30px;
}

.line-2 {
    width: 20px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-obsidian);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    clip-path: circle(0% at 95% 5%);
    transition: clip-path 0.8s var(--ease-expo);
}

.menu-overlay.open {
    clip-path: circle(150% at 95% 5%);
    pointer-events: all;
}

.menu-links a {
    font-family: var(--f-serif);
    font-size: 3rem;
    color: #fff;
    margin: 10px;
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .menu-trigger {
        display: flex;
    }
}

/* =========================================
   5. SECTIONS GENERAL
   ========================================= */
.container {
    width: 85%;
    max-width: 1600px;
    margin: 0 auto;
}

.section {
    padding: 0;
    min-height: auto;
    /* v15: Global fix for spacing */
    position: relative;
    border-bottom: none;
    /* v27: Removed per user request */
}

.header-wrapper {
    padding-top: 100px;
    margin-bottom: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-idx {
    font-size: 0.9rem;
    color: var(--c-gold);
    margin-bottom: 20px;
    display: block;
}

h2 {
    font-family: var(--f-serif);
    font-size: 4vw;
    font-weight: 300;
    text-transform: uppercase;
}

/* =========================================
   6. HERO
   ========================================= */
.prologue {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Slight dim for text readability */
    /* v18: Removed grayscale to show gold accents */
}

.prologue-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.scroll-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    z-index: 10;
    font-family: var(--f-serif);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffd500;
}

.scroll-hint .line {
    width: 1px;
    height: 40px;
    background: var(--c-gold);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.main-title {
    font-family: var(--f-serif);
    font-size: 7vw;
    /* v19: Reduced from 10vw */
    line-height: 0.9;
    text-transform: uppercase;
    color: #ffffff;
    /* mix-blend-mode: overlay; Removed v27 to fix visibility */
    margin-bottom: 20px;
    opacity: 0;
    /* JS Reveal to prevent flash */
}

.subtitle {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b6b6b6;
    opacity: 0;
    /* JS Reveal to prevent flash */
}

/* =========================================
   7. CHRONICLE (RESTORED)
   ========================================= */
.chronicle {
    background: var(--c-obsidian);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 130px 0 60px;
    /* USER: Adjust 130px to increase/decrease top space */
}

.divider-line {
    width: 2px;
    height: 60px;
    background: var(--c-gold);
    margin: 0 auto 20px;
    /* Reduced from 40px */
}

.static-text {
    font-family: var(--f-serif);
    font-size: 3.5vw;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    opacity: 0.9;
}

.static-text .highlight {
    color: var(--c-gold);
    font-style: italic;
}

@media (max-width: 768px) {
    .static-text {
        font-size: 2rem;
    }
}

/* =========================================
   8. ARTISAN & LEGACY (Dual Layout)
   ========================================= */
.dual-layout {
    display: flex;
    align-items: center;
    min-height: auto;
    /* v14: Removed 100vh constraint */
    padding: 80px 0 100px;
    /* v17: Balanced spacing */
    gap: 80px;
}

.dual-layout.reverse {
    flex-direction: row-reverse;
}

.dual-visual {
    flex: 1;
    height: 50vh;
    /* v15: Tighter visual height */
    position: relative;
    overflow: hidden;
}

.dual-visual img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: filter 0.5s;
}

.dual-content {
    flex: 0.8;
    padding: 40px;
}

.dual-content h2 {
    font-size: 3.5vw;
    margin-bottom: 30px;
    line-height: 1.1;
}

.role-title {
    font-family: var(--f-sans);
    color: var(--c-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    font-size: 1rem;
}

.bio-text,
.dual-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 50ch;
}

.signature {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 2rem;
    color: var(--c-gold);
}

@media (max-width: 1024px) {

    .dual-layout,
    .dual-layout.reverse {
        flex-direction: column;
        text-align: center;
    }

    .dual-visual {
        width: 100%;
        height: 50vh;
    }

    .dual-content {
        padding: 40px 0;
    }

    .dual-content h2 {
        font-size: 3rem;
    }
}

/* =========================================
   9. METHODOLOGY (New Typographic Grid)
   ========================================= */
/* Methodology Section Override */
.section.methodology {
    overflow: visible !important;
    /* Critical Fix */
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    padding-bottom: 100px;
    width: 100%;
    padding-left: 20px;
    /* v12: Breathing room for first card */
    box-sizing: border-box;
}

.method-item {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px 20px 0 20px;
    /* Added LEFT padding too */
    transition: transform 0.4s;
    overflow: visible !important;
    /* Force Visible */
}

.method-item:hover {
    transform: translateY(-10px);
}

.method-num {
    font-family: var(--f-serif);
    font-size: 2rem;
    color: var(--c-gold);
    margin-bottom: 20px;
    font-style: italic;
}

.method-item h3 {
    font-family: var(--f-sans);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    color: #fff;
}

.method-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .method-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* =========================================
   10. CRAFT, CHAMBER, CONTACT
   ========================================= */
.accordion-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-item:hover {
    background: #0f0f0f;
}

.acc-header {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    align-items: center;
}

.acc-num {
    color: var(--c-gold);
}

.acc-title {
    font-family: var(--f-serif);
    font-size: 2.5rem;
    font-weight: 300;
    flex: 1;
    margin-left: 20px;
}

.acc-content {
    height: 0;
    overflow: hidden;
    display: flex;
    gap: 40px;
    padding: 0;
}

.acc-media {
    width: 350px;
    height: 250px;
    flex-shrink: 0;
    overflow: hidden;
}

.acc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acc-desc {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
    align-self: center;
}

@media (max-width: 768px) {
    .acc-content {
        flex-direction: column;
    }

    .acc-media {
        width: calc(100% - 20px);
        /* v28: Gap from edges */
        margin: 0 auto 20px;
        /* Centered + Space below */
        height: 200px;
        border-radius: 2px;
        /* Subtle polish */
    }

    .acc-desc {
        padding: 0 10px;
        /* v28: Preventing text clip */
        box-sizing: border-box;
    }
}

.chamber {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cham-intro {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    mix-blend-mode: difference;
}

.cham-scroll-track {
    display: flex;
    height: 100%;
}

.cham-item {
    width: 60vw;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.5);
}

.cham-item img {
    height: 100%;
    filter: brightness(0.5);
}

.contact {
    background: #080808;
    padding: 100px 0;
}

.contact-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
}

.contact-title {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--c-gold);
}

.contact-subtitle {
    margin-bottom: 50px;
    opacity: 0.6;
}

.stunning-form .form-group {
    margin-bottom: 40px;
}

.stunning-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: var(--c-gold);
}

.stunning-form input,
.stunning-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: #fff;
    font-family: var(--f-serif);
    font-size: 1.5rem;
}

.submit-btn {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    transition: 0.3s;
    width: 100%;
    margin-top: 20px;
}

/* =========================================
   11. FOOTER MAP & DETAILS
   ========================================= */
.footer-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-block h4 {
    font-family: var(--f-serif);
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.detail-block p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.phone-link {
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 1px solid var(--c-gold);
    padding-bottom: 2px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.map-container {
    width: 100%;
    height: 200px;
    background: #111;
    margin-top: 20px;
    filter: grayscale(100%) invert(90%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   12. PRELOADER (Restored)
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-obsidian);
    z-index: 99999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 40px;
}

.loader-counter {
    font-size: 10vw;
    color: var(--c-gold);
    font-weight: 200;
    font-family: var(--f-sans);
}

/* =========================================
   11. MOBILE OPTIMIZATIONS (v23)
   ========================================= */
.mobile-brand {
    display: none;
    position: fixed;
    top: 30px;
    left: 30px;
    font-family: var(--f-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    z-index: 10000;
    mix-blend-mode: difference;
    letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
    .mobile-brand {
        display: block;
    }

    .cursor-dot,
    .cursor-circle {
        display: none;
        /* v23: No ghost cursor on touch */
    }
}

@media (max-width: 768px) {

    /* v23: Mobile Hero Type */
    .main-title {
        font-size: 12vw;
    }

    /* v23: Spacing Fix */
    .chronicle {
        padding: 80px 0 60px;
    }

    /* v26: Chamber Fix (Horizontal Slider) */
    .chamber {
        height: auto;
        flex-direction: column;
        /* Intro on top, Slider below */
        padding-bottom: 50px;
        align-items: flex-start;
        overflow: hidden;
        /* Clear floats/margins */
    }

    .cham-scroll-track {
        display: flex;
        flex-direction: row;
        /* Back to horizontal */
        width: 100%;
        height: 50vh;
        /* Fixed visual height */
        overflow-x: auto;
        /* Enable swipe */
        -webkit-overflow-scrolling: touch;
        gap: 0;
        scroll-snap-type: x mandatory;
        /* Nice snap feel */
    }

    .cham-item {
        width: 85vw;
        /* Almost full width */
        min-width: 85vw;
        /* PREVENT SQUASHING */
        height: 100%;
        flex-shrink: 0;
        /* Critical */
        border-right: 1px solid rgba(0, 0, 0, 0.5);
        border-bottom: none;
        scroll-snap-align: center;
    }

    .cham-intro {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 40px 20px;
        text-align: left;
        width: 100%;
        mix-blend-mode: normal;
    }

    .scroll-instruction {
        display: block;
        /* Show hint again */
        position: relative;
        margin-top: 10px;
        text-align: center;
        opacity: 0.5;
        font-size: 0.8rem;
    }
}

/* =========================================
   12. v24 UX POLISH (Menu & Layout)
   ========================================= */
.menu-links {
    display: flex;
    flex-direction: column !important;
    /* v24: No side-by-side clutter */
    align-items: center;
    gap: 10px;
}

@media (max-width: 1024px) {

    /* v24: Layout - Text First, Image Second */
    .dual-layout,
    .dual-layout.reverse {
        flex-direction: column-reverse !important;
    }

    /* v29: Footer Stack */
    .contact-split {
        grid-template-columns: 1fr !important;
        gap: 60px;
        /* Space between form and details */
    }

    .dual-content {
        padding-bottom: 0;
        margin-bottom: 20px;
        /* Space between text and image */
    }

    /* v24: Bigger Section Titles (Tuned v25) */
    h2 {
        font-size: 7vw !important;
        /* Balanced impact */
    }
}