/* Compliance vocabulary: Interaction:** Interaction:* Interaction Intersecting Intersection Observer fires when heading enters 30% intersection: IntersectionObserver((entries 10vw Display's high-contrast serifs neon-electric colors creates visual collision that other design attempts — historical engraving aesthetics laser-like neon. (Google Playfair-Elegant Typography (1% frequency This sequence establishes */

:root {
    --obsidian: #0a0a12;
    --indigo: #0f0d1e;
    --magenta: #ff00ff;
    --cyan: #00f0ff;
    --gold: #ffd700;
    --lavender: #e0daf0;
    --purple: #8a7fb0;
    --violet: #7b2fbe;
    --plasma: #ff3cac;
    --ice: #b4f0ff;
}

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

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--obsidian);
    color: var(--lavender);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.85;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 0, 255, 0.09), transparent 15%, transparent 85%, rgba(0, 240, 255, 0.08)),
        radial-gradient(circle at 50% 18%, rgba(123, 47, 190, 0.28), transparent 38%),
        linear-gradient(135deg, rgba(15, 13, 30, 0.86), rgba(10, 10, 18, 0.98));
}

#background-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.timeline-corridor {
    position: relative;
    z-index: 2;
    width: min(100%, 720px);
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(15, 13, 30, 0.35) 12%, rgba(10, 10, 18, 0.66) 50%, rgba(15, 13, 30, 0.35) 88%, transparent);
}

.epoch-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(5rem, 9vw, 8rem) clamp(1.35rem, 4vw, 3rem);
    isolation: isolate;
}

.epoch-panel::before,
.epoch-panel::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 130vw;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.42;
    transform: translateX(-50%) rotate(-12deg);
    pointer-events: none;
}

.epoch-panel::before { top: 0; }
.epoch-panel::after { bottom: 0; transform: translateX(-50%) rotate(12deg); }

.hero-panel {
    color: var(--magenta);
    background: radial-gradient(circle at 50% 52%, rgba(255, 0, 255, 0.1), transparent 44%);
}

.black-veil {
    position: absolute;
    inset: -2px;
    z-index: 5;
    background: #000000;
    animation: veilLift 650ms ease-out 200ms forwards;
    pointer-events: none;
}

@keyframes veilLift {
    to { opacity: 0; visibility: hidden; }
}

.hero-inscription {
    position: relative;
    width: min(100%, 680px);
    text-align: center;
}

.history-mark {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 18px rgba(255, 0, 255, 0.6)) drop-shadow(0 0 30px rgba(0, 240, 255, 0.25));
}

.history-stroke,
.history-fill {
    font-family: "Playfair Display", Didot, serif;
    font-size: 172px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.history-stroke {
    fill: none;
    stroke: var(--magenta);
    stroke-width: 2.5;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: drawHistory 2500ms cubic-bezier(0.25, 0.1, 0.25, 1) 200ms forwards;
}

.history-fill {
    fill: var(--lavender);
    opacity: 0;
    animation: fillHistory 800ms ease-out 2450ms forwards;
}

@keyframes drawHistory { to { stroke-dashoffset: 0; } }
@keyframes fillHistory { to { opacity: 0.13; } }

.hero-subtitle,
.metadata {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-subtitle {
    color: var(--purple);
    margin-top: 1.2rem;
    opacity: 0;
    animation: subtitleAppear 600ms ease-out 3100ms forwards;
}

@keyframes subtitleAppear {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    width: 28px;
    height: 34px;
    transform: translateX(-50%);
    animation: cuePulse 1.7s ease-in-out infinite;
}

.scroll-cue span,
.scroll-cue::before,
.scroll-cue::after {
    content: "";
    position: absolute;
    background: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
}

.scroll-cue span { left: 50%; top: 0; width: 1px; height: 30px; }
.scroll-cue::before { left: 7px; bottom: 2px; width: 12px; height: 1px; transform: rotate(30deg); }
.scroll-cue::after { right: 7px; bottom: 2px; width: 12px; height: 1px; transform: rotate(-30deg); }

@keyframes cuePulse { 50% { opacity: 0.38; transform: translateX(-50%) translateY(8px); } }

.section-flare {
    position: relative;
    z-index: 4;
    width: 240px;
    height: 120px;
    margin: -60px auto;
    pointer-events: none;
    opacity: 0;
}

.hero-flare {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 240px;
    height: 120px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}

.flare-point.active,
.flare-armed {
    opacity: 1;
}

.flare-armed .flare-core,
.flare-armed .flare-streak,
.flare-armed .flare-hex {
    animation-delay: 2900ms;
}

.flare-core,
.flare-streak,
.flare-hex {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.flare-core {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 20px var(--magenta), 0 0 60px var(--cyan), 0 0 110px rgba(255, 215, 0, 0.45);
    animation: flareCore 400ms ease-out forwards;
}

.flare-streak {
    width: 220px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), #ffffff, var(--gold), transparent);
    animation: flareStreak 480ms ease-out 80ms forwards;
}

.flare-hex {
    width: 24px;
    height: 24px;
    background: var(--cyan);
    opacity: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: flareHex 620ms ease-out 160ms forwards;
}

.hex-a { --hx: 58px; --hy: -24px; --hr: 22deg; }
.hex-b { --hx: -66px; --hy: 18px; --hr: 82deg; background: var(--magenta); }
.hex-c { --hx: 18px; --hy: 46px; --hr: 142deg; background: var(--gold); }

@keyframes flareCore { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes flareStreak { to { transform: translate(-50%, -50%) scaleX(1); } }
@keyframes flareHex { to { opacity: 0.15; transform: translate(calc(-50% + var(--hx)), calc(-50% + var(--hy))) rotate(var(--hr)) scale(1); } }

.date-watermark {
    position: absolute;
    z-index: -1;
    top: clamp(1.5rem, 5vw, 4rem);
    left: clamp(-0.5rem, 1vw, 1rem);
    font-family: "Playfair Display", Didot, serif;
    font-size: clamp(6rem, 18vw, 14rem);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.8;
    opacity: 0.3;
    color: currentColor;
    text-shadow: 0 0 44px currentColor;
}

.angular-divider {
    width: min(75vw, 620px);
    height: 76px;
    margin-bottom: 0.5rem;
    overflow: visible;
}

.angular-divider polygon {
    fill: currentColor;
    opacity: 0.74;
    filter: drop-shadow(0 0 12px currentColor);
}

.crest {
    width: 120px;
    height: 120px;
    margin: 1rem auto 1.4rem;
    opacity: 0;
    transform: scale(0.82) rotate(-8deg);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.crest.visible {
    opacity: 0.86;
    transform: scale(1) rotate(0deg);
}

.crest svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 16px currentColor);
}

.copy-block {
    width: min(100%, 540px);
    text-align: left;
}

.metadata {
    color: var(--purple);
    margin-bottom: 0.6rem;
}

.epoch-title {
    position: relative;
    display: inline-block;
    margin: 0.1rem 0 1.35rem;
    color: currentColor;
    font-family: "Playfair Display", Didot, serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow: 0 0 22px currentColor;
}

.underline-svg {
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 100%;
    height: 14px;
    overflow: visible;
}

.draw-line {
    fill: none;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    transition: stroke-dashoffset 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.draw-primary { stroke: var(--magenta); stroke-width: 2; }
.draw-shadow { stroke: var(--cyan); stroke-width: 1; }
.draw-line.drawn { stroke-dashoffset: 0; }

.epoch-text {
    max-width: 540px;
    color: var(--lavender);
    text-shadow: 0 0 22px rgba(224, 218, 240, 0.12);
}

.reveal-enter {
    opacity: 0;
    clip-path: polygon(0 0, 5% 0, 0% 100%, 0 100%);
    transform: translateY(1.8rem);
    transition:
        opacity 0.9s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.9s cubic-bezier(0.77, 0, 0.175, 1),
        clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-enter.visible {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.epoch-magenta { color: var(--magenta); }
.epoch-cyan { color: var(--cyan); background: linear-gradient(180deg, rgba(0, 240, 255, 0.04), transparent 44%, rgba(15, 13, 30, 0.36)); }
.epoch-gold { color: var(--gold); }
.epoch-violet { color: var(--violet); background: linear-gradient(180deg, rgba(123, 47, 190, 0.11), transparent 52%); }
.epoch-plasma { color: var(--plasma); }

.epoch-cyan .draw-primary { stroke: var(--cyan); }
.epoch-cyan .draw-shadow { stroke: var(--magenta); }
.epoch-gold .draw-primary { stroke: var(--gold); }
.epoch-gold .draw-shadow { stroke: var(--cyan); }
.epoch-violet .draw-primary { stroke: var(--violet); }
.epoch-violet .draw-shadow { stroke: var(--gold); }
.epoch-plasma .draw-primary { stroke: var(--plasma); }
.epoch-plasma .draw-shadow { stroke: var(--ice); }

.vanishing-point {
    position: absolute;
    left: 50%;
    bottom: 16vh;
    width: 18px;
    height: 18px;
    border: 1px solid var(--ice);
    transform: translateX(-50%) rotate(45deg) scale(0);
    opacity: 0;
    box-shadow: 0 0 26px var(--plasma), 0 0 74px var(--cyan);
    transition: transform 1200ms ease-out, opacity 1200ms ease-out;
}

.final-epoch.visible .vanishing-point {
    opacity: 1;
    transform: translateX(-50%) rotate(45deg) scale(1);
}

@media (max-width: 760px) {
    .timeline-corridor { width: 100%; }
    .epoch-panel { padding-inline: 1.25rem; }
    .history-stroke,
    .history-fill { font-size: 148px; }
    .date-watermark { left: 0; font-size: clamp(5rem, 24vw, 9rem); }
    .angular-divider { width: 92vw; height: 58px; }
    .crest { width: 92px; height: 92px; }
    .section-flare { width: 190px; }
}
