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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #0A0A0A;
    color: #E8E0D0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === GOLD FOIL TEXTURE (base64 64x64 seamless gold tile) === */
.gold-foil-text {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23C9A84C'/%3E%3Cstop offset='25%25' stop-color='%23D4AF37'/%3E%3Cstop offset='50%25' stop-color='%23B8962E'/%3E%3Cstop offset='75%25' stop-color='%23E0C068'/%3E%3Cstop offset='100%25' stop-color='%23C9A84C'/%3E%3C/linearGradient%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='64' height='64' fill='url(%23g1)'/%3E%3Crect width='64' height='64' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 64px 64px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #C9A84C;
}

/* === HALFTONE BACKGROUND PATTERN === */
.halftone-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #1A1A1A 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
    z-index: 0;
}

/* === SKELETON LOADING === */
.skeleton {
    position: relative;
    background-color: #2A2824;
}

.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #161614;
    z-index: 10;
    animation: shimmer 1.8s infinite linear;
    background-image: linear-gradient(
        45deg,
        #161614 0%,
        #161614 35%,
        rgba(201, 168, 76, 0.06) 50%,
        #161614 65%,
        #161614 100%
    );
    background-size: 200% 200%;
}

.skeleton.revealed::before {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.skeleton.revealed {
    transform: translateY(0);
    opacity: 1;
}

.skeleton:not(.revealed) > * {
    opacity: 0;
}

.skeleton.revealed > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out 0.05s, transform 0.3s ease-out 0.05s;
}

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

/* === NAVIGATION === */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

#site-nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #E8E0D0;
    text-transform: uppercase;
}

.nav-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #E8E0D0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === TERRAIN SECTIONS === */
.terrain {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* === TERRAIN 01 — THE IMPRINT === */
.terrain-imprint {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0A0A0A;
}

.imprint-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    line-height: 0.85;
}

.imprint-panel h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(100px, 15vw, 200px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    line-height: 0.9;
}

.imprint-panel--black {
    z-index: 2;
    transform: translate(-40px, -20px);
}

.imprint-panel--black h1 {
    /* gold-foil-text class handles the texture */
}

.imprint-panel--ghost {
    z-index: 1;
    transform: translate(40px, 20px);
}

.imprint-panel--ghost h1 {
    color: #0A0A0A;
    -webkit-text-stroke: 1.5px #C9A84C;
    text-stroke: 1.5px #C9A84C;
    -webkit-text-fill-color: transparent;
}

/* Drifting leaf animation */
.drifting-leaf {
    position: absolute;
    width: 80px;
    height: 120px;
    z-index: 3;
    animation: leafDrift 8s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes leafDrift {
    0% {
        transform: translate(-50vw, -10vh) rotate(-5deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translate(50vw, 10vh) rotate(15deg);
        opacity: 0;
    }
}

/* === TERRAIN 02 — THE MARKET FLOOR === */
.terrain-market {
    min-height: 120vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding: 80px 40px;
    position: relative;
}

.market-texture-photo {
    grid-column: 5 / 13;
    grid-row: 1 / 3;
    min-height: 60vh;
    background-color: #161614;
    position: relative;
    overflow: hidden;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(42, 40, 36, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 60%, rgba(42, 40, 36, 0.6) 0%, transparent 60%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(26, 26, 26, 0.3) 3px,
            rgba(26, 26, 26, 0.3) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            rgba(26, 26, 26, 0.15) 8px,
            rgba(26, 26, 26, 0.15) 9px
        );
    mix-blend-mode: multiply;
}

.market-text-panel {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
    background-color: rgba(22, 22, 20, 0.95);
    padding: 60px 50px;
    z-index: 2;
    align-self: center;
    margin-right: -80px;
}

.market-pullquote {
    grid-column: 8 / 12;
    grid-row: 1;
    z-index: 3;
    padding: 30px;
    border: 1px solid #C9A84C;
    background-color: rgba(10, 10, 10, 0.9);
    align-self: start;
    margin-top: 40px;
}

.market-pullquote blockquote {
    display: flex;
    gap: 8px;
}

.quote-mark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    color: #C9A84C;
    line-height: 0.8;
}

.quote-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: #E8E0D0;
    line-height: 1.5;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 7vw, 96px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 30px;
}

.body-text {
    color: #E8E0D0;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.7;
}

/* Leaf cluster */
.leaf-cluster {
    position: absolute;
    z-index: 4;
}

.leaf-cluster--bottom-left {
    bottom: -40px;
    left: -20px;
    display: flex;
    gap: 0;
    align-items: flex-end;
}

.leaf-cluster--bottom-left svg {
    width: 80px;
    height: auto;
    opacity: 0.6;
}

.leaf-cluster--bottom-left svg:first-child {
    width: 120px;
    transform: rotate(-10deg);
}

.leaf-cluster--bottom-left svg:last-child {
    width: 60px;
    transform: rotate(15deg);
    margin-left: -20px;
}

/* === TERRAIN 03 — THE WEIGHT OF THINGS === */
.terrain-weight {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px;
    position: relative;
}

.gold-rule {
    height: 1px;
    background-color: #C9A84C;
    position: relative;
}

.gold-rule--left {
    width: 0;
    margin-left: 10%;
    transition: width 1.2s ease-out;
}

.gold-rule--left.animate {
    width: 70%;
}

.gold-rule--right {
    width: 0;
    margin-left: auto;
    margin-right: 10%;
    transition: width 1.2s ease-out;
}

.gold-rule--right.animate {
    width: 70%;
}

.weight-stats {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 80px;
    min-height: 300px;
    position: relative;
}

.weight-stat {
    padding: 20px 30px;
}

.weight-stat--one {
    grid-column: 2 / 5;
    align-self: start;
    margin-top: 0;
}

.weight-stat--two {
    grid-column: 5 / 8;
    align-self: center;
    margin-top: 60px;
}

.weight-stat--three {
    grid-column: 9 / 12;
    align-self: end;
    margin-top: 30px;
}

.stat-number {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: #D4AF37;
    margin-bottom: 10px;
}

.stat-caption {
    display: block;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    color: #B0A898;
    line-height: 1.5;
}

.footprint-divider {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.footprint-icon {
    width: 48px;
    height: auto;
}

/* === BREATHING GUTTER === */
.terrain + .terrain::before {
    content: '';
    display: block;
    height: 0;
}

/* Gold divider between sections */
.terrain-weight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background-color: #C9A84C;
}

/* === TERRAIN 04 — GROWTH PATTERNS === */
.terrain-growth {
    min-height: 140vh;
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 120px 40px;
    gap: 0;
}

.terrain-growth .halftone-bg {
    z-index: 0;
}

.growth-leaf-center {
    grid-column: 2 / 6;
    grid-row: 1 / 4;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.growth-leaf-center svg {
    width: 250px;
    height: auto;
    opacity: 0.5;
}

.growth-content {
    grid-column: 1 / 13;
    grid-row: 1;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px 0;
}

.growth-block {
    padding: 40px;
}

.growth-block--one {
    grid-column: 6 / 12;
    background-color: rgba(10, 10, 10, 0.95);
}

.growth-block--two {
    grid-column: 2 / 7;
    background-color: rgba(10, 10, 10, 0.85);
    margin-top: 40px;
}

.growth-block--three {
    grid-column: 7 / 12;
    background-color: rgba(10, 10, 10, 0.95);
    margin-top: -20px;
}

.growth-block--four {
    grid-column: 3 / 9;
    background-color: rgba(10, 10, 10, 0.85);
    margin-top: 20px;
}

.gold-thread {
    width: 60px;
    height: 1px;
    background-color: #C9A84C;
    margin-bottom: 25px;
}

.growth-accent-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.accent-line {
    position: absolute;
    height: 1px;
    background-color: rgba(201, 168, 76, 0.15);
}

.accent-line--one {
    top: 25%;
    left: 5%;
    width: 30%;
}

.accent-line--two {
    top: 55%;
    right: 0;
    width: 25%;
}

.accent-line--three {
    top: 80%;
    left: 15%;
    width: 40%;
}

/* === TERRAIN 05 — THE LAST STEP === */
.terrain-last {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0A0A0A;
}

.leaf-frame {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
}

.leaf-frame--left {
    left: 30px;
}

.leaf-frame--left svg {
    width: 80px;
    height: auto;
}

.leaf-frame--right {
    right: 30px;
}

.leaf-frame--right svg {
    width: 80px;
    height: auto;
}

.last-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 2;
}

.final-footprint {
    width: 120px;
    height: auto;
}

.last-step-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: #B0A898;
    text-align: center;
}

.terrain-last .gold-rule--right {
    position: absolute;
    bottom: 120px;
    right: 10%;
    left: auto;
}

/* === CURSOR TRAIL === */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-footprint {
    position: absolute;
    width: 20px;
    height: 32px;
    opacity: 0.15;
    animation: footprintFade 1s ease-out forwards;
    pointer-events: none;
}

@keyframes footprintFade {
    0% { opacity: 0.15; }
    100% { opacity: 0; }
}

/* === ACCENT TEXT === */
.accent-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9A8A4A;
}

/* === LEAF SVG STROKES (inline SVGs use #8B7D3C) === */
.leaf-cluster svg path,
.growth-leaf-center svg path,
.leaf-frame svg path,
.drifting-leaf path {
    stroke: #8B7D3C;
}

/* === INTERACTIVE HOVER STATES === */
.market-pullquote:hover {
    border-color: #B87333;
}

.nav-hamburger:hover span {
    background-color: #B87333;
}

/* === DEPTH & ACCENT COLORS === */
.growth-block {
    border-left: 2px solid transparent;
}

.growth-block:hover {
    border-left-color: #2D3A2A;
}

/* === METADATA / TERTIARY === */
.accent-text-secondary {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A8478;
}


/* === ERROR / VALIDATION (unused but defined) === */
.error-state {
    color: #8B3A3A;
    border-color: #8B3A3A;
}

/* === RESPONSIVE — MOBILE < 768px === */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    #site-nav {
        padding: 15px 20px;
    }

    .nav-logo {
        font-size: 16px;
    }

    /* Terrain 01 */
    .imprint-panel h1 {
        font-size: clamp(60px, 18vw, 120px);
    }

    .imprint-panel--black {
        transform: translate(-16px, -10px);
    }

    .imprint-panel--ghost {
        transform: translate(16px, 10px);
    }

    .drifting-leaf {
        width: 48px;
        height: 72px;
    }

    /* Terrain 02 */
    .terrain-market {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 60px 20px;
    }

    .market-texture-photo {
        min-height: 30vh;
        margin-left: 16px;
    }

    .market-text-panel {
        margin-right: 0;
        margin-left: -16px;
        padding: 30px 25px;
    }

    .market-pullquote {
        margin-top: 0;
        margin-right: -16px;
    }

    .quote-mark {
        font-size: 40px;
    }

    .quote-text {
        font-size: 18px;
    }

    .section-title {
        font-size: clamp(36px, 10vw, 64px);
    }

    .leaf-cluster--bottom-left svg {
        width: 48px;
    }

    .leaf-cluster--bottom-left svg:first-child {
        width: 72px;
    }

    /* Terrain 03 */
    .terrain-weight {
        padding: 80px 20px;
    }

    .weight-stats {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .weight-stat--two {
        margin-top: 0;
        margin-left: 40px;
    }

    .weight-stat--three {
        margin-top: 0;
        margin-left: 80px;
    }

    /* Terrain 04 */
    .terrain-growth {
        display: flex;
        flex-direction: column;
        padding: 80px 20px;
        gap: 30px;
    }

    .growth-leaf-center {
        order: -1;
    }

    .growth-leaf-center svg {
        width: 150px;
    }

    .growth-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .growth-block {
        padding: 25px;
    }

    .growth-block--three {
        margin-top: 0;
        margin-left: 16px;
    }

    .growth-block--four {
        margin-top: 0;
        margin-right: 16px;
    }

    /* Terrain 05 */
    .leaf-frame--left svg,
    .leaf-frame--right svg {
        width: 48px;
    }

    .final-footprint {
        width: 80px;
    }

    .last-step-text {
        font-size: 18px;
        padding: 0 20px;
    }
}
