/* martiallaw.quest — Memorial Corridor Design */

:root {
    --void-black: #09090b;
    --corridor-dark: #2a2828;
    --shadow-gray: #404040;
    --warm-gray: #484440;
    --stone: #6b6560;
    --parchment: #b8b0a0;
    --memorial-gold: #d4a04a;
    --light-gold: #e0c87a;
    --dark-overlay: #111114;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void-black);
    color: var(--parchment);
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ====================== THRESHOLD (HERO) ====================== */
.threshold {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--void-black);
}

.threshold-content {
    text-align: center;
    max-width: 680px;
    padding: 0 20px;
}

.domain-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    color: var(--memorial-gold);
    min-height: 1.2em;
    overflow: hidden;
}

.threshold-line {
    width: 0;
    height: 1px;
    background: var(--shadow-gray);
    margin: 30px auto;
    transition: width 2s ease;
}

.threshold-line.expanded {
    width: 100%;
}

.threshold-date {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--stone);
    letter-spacing: 0.3em;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.threshold-date.visible {
    opacity: 1;
}

/* ====================== SILENCE GAP ====================== */
.silence-gap {
    height: 40vh;
    background: var(--void-black);
}

/* ====================== MEMORIAL PANELS ====================== */
.memorial-panel {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.memorial-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-inner {
    padding: 60px 0;
}

.panel-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--shadow-gray);
    letter-spacing: 0.3em;
    margin-bottom: 24px;
}

.panel-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.12em;
    color: var(--memorial-gold);
    margin-bottom: 16px;
}

.panel-line {
    width: 60px;
    height: 1px;
    background: var(--shadow-gray);
    margin-bottom: 30px;
}

.panel-text {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 2;
    color: var(--parchment);
}

/* ====================== MECHANISMS ====================== */
.mechanism-list {
    list-style: none;
    padding: 0;
}

.mechanism-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid rgba(64, 64, 64, 0.3);
}

.mechanism-item:last-child {
    border-bottom: none;
}

.mechanism-label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--memorial-gold);
    margin-bottom: 8px;
}

.mechanism-desc {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: var(--stone);
    line-height: 1.8;
}

/* ====================== TIMELINE ====================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-entry {
    display: flex;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(64, 64, 64, 0.3);
}

.timeline-entry:last-child {
    border-bottom: none;
}

.timeline-year {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--memorial-gold);
    letter-spacing: 0.08em;
    flex-shrink: 0;
    width: 70px;
}

.timeline-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--parchment);
    margin-bottom: 8px;
}

.timeline-body p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: var(--stone);
    line-height: 1.9;
}

/* ====================== COST SECTION ====================== */
.cost-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cost-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--memorial-gold);
    letter-spacing: 0.05em;
}

.cost-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: var(--stone);
    line-height: 1.6;
}

/* ====================== FOOTER ====================== */
.memorial-footer {
    padding: 80px 20px 60px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.flame-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.flame {
    width: 16px;
    height: 32px;
    background: radial-gradient(ellipse at center bottom, var(--light-gold) 0%, var(--memorial-gold) 40%, transparent 70%);
    clip-path: polygon(50% 0%, 15% 80%, 30% 100%, 70% 100%, 85% 80%);
    animation: flame-flicker-x 0.8s ease-in-out infinite alternate,
               flame-flicker-y 1.1s ease-in-out infinite alternate,
               flame-opacity 1.4s ease-in-out infinite alternate;
}

@keyframes flame-flicker-x {
    0% { transform: scaleX(0.95); }
    100% { transform: scaleX(1.05); }
}

@keyframes flame-flicker-y {
    0% { transform: scaleY(0.97); }
    100% { transform: scaleY(1.03); }
}

@keyframes flame-opacity {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.footer-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-line {
    width: 40px;
    height: 1px;
    background: var(--shadow-gray);
    margin: 0 auto 20px;
}

.footer-domain {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--shadow-gray);
    letter-spacing: 0.2em;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 600px) {
    .silence-gap {
        height: 25vh;
    }

    .timeline-entry {
        flex-direction: column;
        gap: 8px;
    }

    .panel-inner {
        padding: 40px 0;
    }
}
