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

:root {
    --deep-plum: #2D2832;
    --warm-crimson: #C4516E;
    --espresso: #2A1F14;
    --near-black: #1A1412;
    --amber: #E8A945;
    --teal: #3CBBB1;
    --parchment: #F0E6D3;
    --terracotta: #B87356;
    --warm-gray: #9A9189;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--near-black);
    color: var(--parchment);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* === GRAIN CANVAS === */
#grain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
}

/* === CANDLE FLAME === */
.candle-flame {
    animation: flame-wobble 3s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(232, 169, 69, 0.5));
}

@keyframes flame-wobble {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(2px) scale(1.03); }
    50% { transform: translateX(-1px) scale(0.97); }
    75% { transform: translateX(1px) scale(1.01); }
}

/* === THE THRESHOLD === */
.section-threshold {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at 50% 60%, var(--deep-plum) 0%, var(--near-black) 70%);
}

.candle-container {
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    letter-spacing: 0.04em;
    color: var(--parchment);
    text-align: center;
    position: relative;
}

.hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--teal);
    margin: 1rem auto 0;
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-top: 1.2rem;
}

.scroll-cue {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--warm-gray), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* === BAR TOP - TOPIC CLUSTERS === */
.section-bar-top {
    position: relative;
    padding: 10rem 5vw 8rem;
    min-height: 100vh;
}

.topic-cluster {
    max-width: 480px;
    padding: 2.5rem 2rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(45, 40, 50, 0.6), rgba(26, 20, 18, 0.4));
    border-left: 3px solid var(--teal);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.topic-cluster:hover {
    box-shadow: 0 8px 40px rgba(232, 169, 69, 0.08);
}

.topic-1 { margin-left: 8vw; }
.topic-2 { margin-left: 35vw; }
.topic-3 { margin-left: 12vw; }
.topic-4 { margin-left: 45vw; }
.topic-5 { margin-left: 20vw; }

.topic-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    display: block;
    margin-bottom: 0.6rem;
}

.topic-cluster h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--parchment);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.topic-cluster p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* === THE BOOTH === */
.section-booth {
    padding: 8rem 5vw;
    display: flex;
    justify-content: center;
    position: relative;
}

.booth-inner {
    max-width: 640px;
    text-align: center;
    position: relative;
    padding: 4rem 2rem;
}

.candle-booth {
    margin-bottom: 2rem;
}

.pull-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-style: italic;
    color: var(--parchment);
    line-height: 1.5;
    border: none;
    position: relative;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.6em;
    left: -0.4em;
    font-size: 4rem;
    color: var(--warm-crimson);
    opacity: 0.4;
    font-style: normal;
}

.quote-attr {
    display: block;
    margin-top: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    font-style: normal;
}

/* === BACK ROOM === */
.section-back-room {
    padding: 8rem 5vw 10rem;
    position: relative;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--parchment);
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--warm-crimson);
    margin: 1rem auto 0;
}

.position-paper {
    max-width: 420px;
    padding: 2.5rem 2rem;
    margin-bottom: 4rem;
    position: relative;
    background: rgba(42, 31, 20, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.position-paper:hover {
    box-shadow: 0 8px 40px rgba(196, 81, 110, 0.08);
}

.paper-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--warm-crimson);
}

.paper-1 { margin-left: 15vw; }
.paper-2 { margin-left: 40vw; }
.paper-3 { margin-left: 22vw; }

.position-paper h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--amber);
    margin-bottom: 0.6rem;
}

.position-paper p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* === LAST CALL === */
.section-last-call {
    padding: 8rem 5vw 6rem;
    text-align: center;
    position: relative;
}

.section-last-call h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--parchment);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.last-call-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.teal-rule {
    width: 60px;
    height: 2px;
    background: var(--teal);
    margin: 0 auto 2rem;
}

.footer-mark {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-gray);
    opacity: 0.5;
}

/* === SCROLL REVEAL === */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .topic-1, .topic-2, .topic-3, .topic-4, .topic-5,
    .paper-1, .paper-2, .paper-3 {
        margin-left: 5vw;
        margin-right: 5vw;
        max-width: none;
    }
}
