/* martial.quest - Brutalist Documentary Archive */

:root {
    --ink-black: #1a1a1a;
    --dark-gray: #2a2a2a;
    --medium-gray: #3a3a3a;
    --authority-red: #c4281c;
    --caution-yellow: #e8b830;
    --parchment: #f0ebe4;
    --parchment-white: #e8e0d4;
    --faded-stamp: #d0c8bc;
    --aged-text: #7a7268;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Source Serif 4', serif;
    --font-mono: 'Courier Prime', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--parchment);
    color: var(--ink-black);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ===================== DOSSIER SECTIONS ===================== */
.dossier-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

/* Fracture progression */
.fracture-1 {
    background: var(--parchment-white);
}

.fracture-2 {
    background: var(--parchment);
}

.fracture-3 {
    background: var(--ink-black);
    color: var(--parchment-white);
}

/* ===================== SPLIT HERO ===================== */
.split-hero {
    display: grid;
    grid-template-columns: 60% 40%;
    width: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.split-left {
    background: var(--ink-black);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem;
}

.split-right {
    background: var(--authority-red);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 4rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--parchment-white);
    letter-spacing: 0.02em;
    line-height: 0.95;
    opacity: 0;
    animation: slideIn 0.8s ease 0.3s forwards;
}

.hero-tld {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--faded-stamp);
    letter-spacing: 0.1em;
    margin-top: 1rem;
    opacity: 0;
    animation: slideIn 0.8s ease 0.6s forwards;
}

.hero-date {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--parchment-white);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: slideIn 0.8s ease 0.5s forwards;
}

.hero-hangul {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--parchment);
    margin-top: 1rem;
    opacity: 0;
    animation: slideIn 0.8s ease 0.8s forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== STAMP MARKS ===================== */
.stamp-mark {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--authority-red);
    border: 2px solid var(--authority-red);
    padding: 0.5rem 1.25rem;
    opacity: 0;
    transform: rotate(-8deg) scale(1.1);
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.stamp-mark.visible {
    opacity: 0.4;
    transform: rotate(var(--stamp-rotation, -8deg)) scale(1);
}

/* ===================== DOSSIER CONTENT ===================== */
.dossier-content {
    max-width: 800px;
    width: 100%;
}

.dossier-content.centered {
    text-align: center;
}

.dossier-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dossier-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.final-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--caution-yellow);
}

.dossier-body {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.dossier-body.visible {
    opacity: 1;
    transform: translateY(0);
}

.dossier-body p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* ===================== REDACTION ===================== */
.redacted {
    background: var(--ink-black);
    color: var(--ink-black);
    padding: 0.1em 0.3em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

.redacted:hover,
.redacted.revealed {
    background: rgba(196, 40, 28, 0.1);
    color: var(--authority-red);
}

.reveal-hint {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--aged-text);
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ===================== MECHANISM GRID ===================== */
.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mechanism-item {
    padding: 1.5rem;
    border-left: 3px solid var(--authority-red);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mechanism-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.mech-num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--authority-red);
    display: block;
    margin-bottom: 0.5rem;
}

.mechanism-item h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.mechanism-item p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--medium-gray);
}

/* ===================== TIMELINE ===================== */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--authority-red);
}

.timeline-entry {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    width: 10px;
    height: 10px;
    background: var(--authority-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-time {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--authority-red);
    flex-shrink: 0;
    width: 60px;
}

.timeline-event h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}

.timeline-event p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--medium-gray);
}

/* ===================== THE QUEST (CLOSING) ===================== */
.quest-question {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    line-height: 1.8;
    color: var(--faded-stamp);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.quest-question.visible {
    opacity: 1;
}

.quest-domain {
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.quest-domain.visible {
    opacity: 1;
}

.domain-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--caution-yellow);
    letter-spacing: 0.04em;
    display: block;
}

.domain-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--faded-stamp);
    letter-spacing: 0.1em;
    display: block;
    margin-top: 0.5rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .split-hero {
        grid-template-columns: 1fr;
    }

    .split-left, .split-right {
        padding: 3rem 2rem;
        align-items: center;
        text-align: center;
    }

    .split-right {
        align-items: center;
    }

    .mechanism-grid {
        grid-template-columns: 1fr;
    }

    .stamp-mark {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 0.7rem;
    }
}
