/* historic.quest - Kinetic Typography Hero */
/* Palette: #0a0a0a #1a1a1a #ffffff #a3a3a3 #333333 #fbbf24 #dc2626 */
/* Fonts: Montserrat 900, Cormorant 300/italic, Inter 400 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- UTILITY ---------- */

.gold {
    color: #fbbf24;
}

.red {
    color: #dc2626;
}

.arrow {
    color: #333333;
    margin-right: 0.4em;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
}

/* ---------- HERO: 0-100vh ---------- */

.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(80px, 14vw, 140px);
    line-height: 0.9;
    color: #ffffff;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.hero-subtitle {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(36px, 5vw, 48px);
    color: #a3a3a3;
    margin-top: 0.2em;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- EVENTS: 100-280vh ---------- */

.section-events {
    position: relative;
    padding: 8rem 2rem;
}

.event {
    position: relative;
    max-width: 900px;
    margin: 0 auto 12rem auto;
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.ghost-year {
    position: absolute;
    top: 50%;
    right: -0.05em;
    transform: translateY(-50%);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(150px, 25vw, 260px);
    line-height: 1;
    color: #1a1a1a;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.event-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.event-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 10vw, 100px);
    line-height: 0.9;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.event-body {
    max-width: 520px;
}

.event-text {
    font-size: 14px;
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.event-text:last-child {
    margin-bottom: 0;
}

/* Subtle divider between events */
.event + .event::before {
    content: '';
    display: block;
    position: absolute;
    top: -6rem;
    left: 0;
    width: 60px;
    height: 1px;
    background: #333333;
}

/* ---------- TURNING POINTS: 280-360vh ---------- */

.section-turning {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.turning-inner {
    position: relative;
    max-width: 700px;
    text-align: left;
    padding-left: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.turning-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.red-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #dc2626;
}

.turning-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 8vw, 80px);
    line-height: 0.95;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.turning-text {
    font-size: 14px;
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 520px;
}

.turning-text:last-child {
    margin-bottom: 0;
}

/* ---------- LEGACY: 360vh+ ---------- */

.section-legacy {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

.legacy-inner {
    text-align: center;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.legacy-inner.visible {
    opacity: 1;
    transform: scale(1);
}

.legacy-word {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(60px, 14vw, 140px);
    line-height: 0.9;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.legacy-brand {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 14px;
    color: #333333;
    display: block;
    margin-top: 1.5rem;
    letter-spacing: 0.1em;
}

/* ---------- SCROLL-DRIVEN PARALLAX HINTS ---------- */

.event-name,
.turning-title,
.legacy-word {
    will-change: transform, opacity;
}
