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

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

body {
    background-color: #1C1412;
    color: #F2E6D4;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    line-height: 1.85;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #F2E6D4;
}

.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
    color: #E8A84C;
    opacity: 0.6;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.body-text {
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    max-width: 62ch;
    margin-bottom: 1.8rem;
    color: #F2E6D4;
}

/* === HUD OVERLAY === */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.hud-grid {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hud-grid line {
    stroke: #7A5C52;
    stroke-width: 0.5px;
    opacity: 0.15;
}

.hud-label {
    position: absolute;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.6rem, 0.7vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #F2E6D4;
    opacity: 0.4;
}

.hud-tl { top: 20px; left: 20px; }
.hud-tr { top: 20px; right: 20px; }
.hud-bl { bottom: 20px; left: 20px; }
.hud-br { bottom: 20px; right: 20px; }

/* === SECTIONS === */
.section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-column {
    max-width: 720px;
    width: 100%;
    padding: 6rem 2rem;
}

/* === SECTION 1: HERO === */
.section-hero {
    height: 100vh;
    min-height: 600px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #1C1412 0%, #2E2119 50%, #3A2218 100%);
    position: relative;
    overflow: hidden;
}

.hero-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(70vw, 500px);
    height: min(70vw, 500px);
    pointer-events: none;
}

.reticle-svg {
    width: 100%;
    height: 100%;
}

.reticle-outer {
    fill: none;
    stroke: #D4613A;
    stroke-width: 1;
    opacity: 0.3;
    animation: rotateReticle 30s linear infinite;
    transform-origin: 200px 200px;
}

.reticle-mid {
    fill: none;
    stroke: #D4613A;
    stroke-width: 0.75;
    opacity: 0.2;
    animation: rotateReticleReverse 20s linear infinite;
    transform-origin: 200px 200px;
}

.reticle-inner {
    fill: none;
    stroke: #D4613A;
    stroke-width: 0.5;
    opacity: 0.25;
}

.reticle-cross {
    stroke: #D4613A;
    stroke-width: 0.5;
    opacity: 0.15;
}

.reticle-center {
    stroke: #D4613A;
    stroke-width: 1.5;
    opacity: 0.4;
}

@keyframes rotateReticle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReticleReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #E8A84C;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.hero-chevron {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: pulseChevron 4s ease-in-out infinite;
}

@keyframes pulseChevron {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* === HALFTONE TEXTURE === */
.section-assessment {
    background-image: radial-gradient(circle, #7A5C52 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    background-color: #1C1412;
}

.section-assessment::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1C1412;
    opacity: 0.92;
}

.section-assessment .section-column {
    position: relative;
    z-index: 1;
}

/* === COLLAGE === */
.collage {
    float: right;
    width: 220px;
    margin: 0.5rem 0 2rem 3rem;
    position: relative;
    clip-path: polygon(2% 0%, 98% 1%, 100% 3%, 99% 97%, 97% 100%, 3% 99%, 0% 96%, 1% 2%);
    transform: rotate(2deg);
    background: #2E2119;
    padding: 12px;
    shape-outside: margin-box;
}

.collage-chart {
    width: 100%;
    display: block;
}

.collage-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.collage-hud-overlay svg {
    width: 100%;
    height: 100%;
}

.collage-label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #E8A84C;
    opacity: 0.6;
    margin-top: 8px;
    text-align: center;
}

/* === SECTION 3: FLOWCHART === */
.section-matrix {
    background-color: #1C1412;
}

.flowchart-container {
    width: 100%;
    margin: 2rem 0 3rem;
    overflow: visible;
}

.flowchart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.flow-line {
    stroke-width: 1.5;
}

.flow-active {
    stroke: #D4613A;
    animation: dashFlow 3s linear infinite;
}

.flow-inactive {
    stroke: #7A5C52;
    opacity: 0.5;
    animation: dashFlow 5s linear infinite;
}

@keyframes dashFlow {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}

.flow-node {
    fill: none;
    stroke: #D4613A;
    stroke-width: 1.5;
}

.flow-node-small {
    fill: none;
    stroke: #9C5A3C;
    stroke-width: 1;
}

.flow-crosshair {
    stroke: #D4613A;
    stroke-width: 0.5;
    opacity: 0.4;
}

.flow-label {
    fill: #E8A84C;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    text-anchor: middle;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

/* === SECTION 4: SCENARIOS === */
.section-scenarios {
    min-height: 100vh;
    justify-content: center;
    background-color: #1C1412;
}

.scenario-bands {
    margin: 2rem 0;
}

.scenario-band {
    padding: 2rem 2.5rem;
    margin-bottom: 0;
    position: relative;
}

.scenario-amber {
    background: linear-gradient(90deg, rgba(232, 168, 76, 0.12) 0%, rgba(232, 168, 76, 0.04) 100%);
    border-left: 3px solid #E8A84C;
}

.scenario-coral {
    background: linear-gradient(90deg, rgba(212, 97, 58, 0.12) 0%, rgba(212, 97, 58, 0.04) 100%);
    border-left: 3px solid #D4613A;
}

.scenario-sienna {
    background: linear-gradient(90deg, rgba(156, 90, 60, 0.15) 0%, rgba(156, 90, 60, 0.04) 100%);
    border-left: 3px solid #9C5A3C;
}

.scenario-grid-line {
    height: 1px;
    background: linear-gradient(90deg, #7A5C52 0%, transparent 100%);
    opacity: 0.3;
}

.scenario-code {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #E8A84C;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.75rem;
}

.scenario-text {
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.75;
    color: #F2E6D4;
    opacity: 0.9;
}

/* === SECTION 5: CLOSING === */
.section-closing {
    background-color: #1C1412;
}

.section-closing .section-column {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.closing-text {
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
    line-height: 1.85;
    max-width: 62ch;
    margin-bottom: 3rem;
    color: #F2E6D4;
}

.closing-rule {
    border: none;
    border-top: 1px dashed #9C5A3C;
    margin-bottom: 2rem;
}

.classification-footer {
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.5;
}

.classification-text {
    display: block;
    font-size: clamp(0.6rem, 0.75vw, 0.75rem);
    color: #F2E6D4;
    margin-bottom: 0.5rem;
}

.classification-date {
    display: block;
    font-size: clamp(0.55rem, 0.65vw, 0.65rem);
    color: #7A5C52;
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

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

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .collage {
        float: none;
        width: 100%;
        margin: 1.5rem 0;
        transform: rotate(1deg);
    }

    .hud-label {
        font-size: 0.55rem;
    }

    .section-column {
        padding: 4rem 1.5rem;
    }

    .scenario-band {
        padding: 1.5rem 1.5rem;
    }
}
