:root {
    --espresso: #2c2418;
    --espresso-deep: #1a150e;
    --linen: #ede4d4;
    --gold: #c9a84c;
    --bronze: #8b6914;
    --rose: #b76e79;
    --gold-light: #e8d48b;
    --cream: #f5efe0;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--espresso);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Gradient mesh background */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 70%, rgba(183, 110, 121, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139, 105, 20, 0.05) 0%, transparent 50%);
    animation: mesh-shift 30s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    100% {
        background-position: 30% 20%, 70% 80%, 40% 60%;
    }
}

/* Metallic crosshatch */
.crosshatch {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 5px,
            rgba(201, 168, 76, 0.04) 5px,
            rgba(201, 168, 76, 0.04) 6px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 5px,
            rgba(201, 168, 76, 0.04) 5px,
            rgba(201, 168, 76, 0.04) 6px
        );
}

.hud {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

/* Hero */
.section-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(3rem, 12vw, 7rem);
    color: var(--gold);
    letter-spacing: 0.06em;
    line-height: 1;
    opacity: 0;
    animation: shimmer-in 2s ease 0.5s forwards;
}

.hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--rose);
    letter-spacing: 0.04em;
    opacity: 0;
    animation: shimmer-in 1.5s ease 1.5s forwards;
}

@keyframes shimmer-in {
    0% {
        opacity: 0;
        filter: brightness(0.5);
    }
    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

/* Sections */
.section {
    padding: 20px 0;
}

/* Glass panels */
.glass-panel {
    position: relative;
    background: rgba(44, 36, 24, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 32px 28px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.glass-panel.in-view {
    opacity: 1;
    transform: translateY(0);
}

.panel-wide {
    max-width: 100%;
}

/* Top-edge highlight */
.panel-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.4;
}

/* Panel label */
.panel-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
    opacity: 0.7;
}

/* Section headings */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold-light);
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

/* Body text */
.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    color: var(--linen);
    margin-bottom: 12px;
}

/* Spec grid */
.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.spec-item {
    display: flex;
    justify-content: space-between;
}

.spec-key {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spec-val {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: var(--gold);
}

/* Thread connectors */
.thread-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
    opacity: 0.3;
}

/* Botanical SVG */
.botanical-svg {
    margin-top: 20px;
    text-align: center;
    opacity: 0.6;
}

/* End panel */
.panel-end {
    text-align: center;
    background: rgba(44, 36, 24, 0.4);
}

.end-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--linen);
    margin-bottom: 16px;
}

.end-domain {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.06em;
    color: var(--gold);
}

/* Mobile */
@media (max-width: 600px) {
    .glass-panel {
        padding: 24px 20px;
    }
}
