/* ============================================
   REFORM TIMELINE - Parallax Scrolling Page
   Apple-style smooth animations and effects
   ============================================ */

/* Page specific overrides */
.timeline-page {
    overflow-x: hidden;
    --site-nav-height: 0px;
    --timeline-minimap-height: 60px;
}

.timeline-page .top-nav {
    position: static;
}

/* ============================================
   MINIMAP - Horizontal Timeline Overview
   ============================================ */
.timeline-minimap {
    position: fixed;
    top: var(--site-nav-height);
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
}

.minimap-container {
    flex: 1;
    height: 40px;
    position: relative;
    margin: 0 var(--space-lg);
}

.minimap-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-tertiary);
    transform: translateY(-50%);
    border-radius: 2px;
}

.minimap-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brit-red), var(--neon-pink));
    transform: translateY(-50%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease-out;
}

.minimap-events {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.minimap-event {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--bg-tertiary);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all 0.2s ease;
    cursor: pointer;
}

.minimap-event:hover {
    transform: translateX(-50%) scale(1.5);
    background: var(--brit-red);
    border-color: var(--brit-red);
}

.minimap-event.passed {
    background: var(--brit-red);
    border-color: var(--brit-red);
}

.minimap-event.active {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 10px var(--neon-pink);
}

/* Year labels on minimap */
.minimap-year {
    position: absolute;
    top: -2px;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

.minimap-year.year-2024 { left: 5%; }
.minimap-year.year-2025 { left: 45%; }
.minimap-year.year-2026 { left: 90%; }

/* Minimap tooltip */
.minimap-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.minimap-event:hover .minimap-tooltip {
    opacity: 1;
}

/* Start/End labels */
.minimap-label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.minimap-label-start {
    margin-right: var(--space-sm);
}

.minimap-label-end {
    margin-left: var(--space-sm);
}

/* Current position indicator */
.minimap-current {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--brit-red-bright);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.6);
    transition: left 0.15s ease-out;
}

/* Hero Section */
.timeline-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--brit-navy) 100%);
    overflow: hidden;
}

.timeline-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(200, 16, 46, 0.2);
    border: 1px solid var(--brit-red);
    border-radius: var(--radius-full);
    color: var(--brit-red-bright);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.timeline-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    color: var(--text-primary);
}

.timeline-hero .subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-3xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

/* Central Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brit-red);
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.5;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: var(--brit-red);
    filter: blur(8px);
    opacity: 0.4;
}

/* Timeline Events */
.timeline-event {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) var(--space-xl);
    min-height: 70vh;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}

.timeline-event.quote-event.artful-image {
    overflow: visible;
}

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

/* Background Text - Subtle large text behind content */
.background-text {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 2vw;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    line-height: 0.9;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    user-select: none;
}

.timeline-event:nth-child(odd) {
    flex-direction: row;
}

.timeline-event:nth-child(even) {
    flex-direction: row-reverse;
}

/* Timeline Node (the dot on the line) */
.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--brit-red);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.5);
    transition: all 0.4s ease;
}

.timeline-event.visible .timeline-node {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 30px rgba(200, 16, 46, 0.8);
}

.timeline-event.quote-event .timeline-node {
    display: none;
}

/* Event Content */
.event-content {
    width: calc(50% - 60px);
    max-width: 520px;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.4s ease;
}

.timeline-event:nth-child(odd) .event-content {
    margin-left: auto;
    margin-right: 60px;
    text-align: right;
}

.timeline-event:nth-child(odd) .event-description {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.timeline-event:nth-child(odd) .event-content p {
    margin-left: auto;
    margin-right: 0;
}

.timeline-event:nth-child(even) .event-content {
    margin-left: 60px;
    margin-right: auto;
    text-align: left;
}

.event-content:hover {
    border-color: var(--brit-red);
    box-shadow: var(--shadow-glow-red);
    transform: translateY(-5px);
}

/* Event Date */
.event-date {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--brit-red-bright);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

/* Event Title */
.event-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

/* Event Description */
.event-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-base);
}

/* Quote Sections - special styling */
.event-quote {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: rgba(200, 16, 46, 0.05);
    border-left: 3px solid var(--brit-red);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    position: relative;
}

.event-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-sm);
    font-size: 4rem;
    color: var(--brit-red);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-speaker {
    display: block;
    margin-top: var(--space-md);
    font-style: normal;
    font-weight: 600;
    color: var(--brit-red-bright);
    font-size: var(--text-sm);
}

/* Person Images - Parallax sliding */
.event-image {
    width: calc(50% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
    align-self: center;
}

.timeline-event:nth-child(odd) .event-image {
    margin-left: auto;
    padding-left: 100px;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.timeline-event:nth-child(even) .event-image {
    margin-right: auto;
    padding-right: 100px;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

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

.person-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    object-fit: cover;
}

.person-image:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* Stacked Images Layout */
.stacked-images {
    position: relative;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stacked-images .stacked-image-1 {
    position: absolute;
    top: 0;
    left: 50%;
    max-width: 280px;
    z-index: 2;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(-70%) rotate(-3deg);
}

.stacked-images .stacked-image-2 {
    position: absolute;
    top: 40px;
    left: 50%;
    max-width: 280px;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(-30%) rotate(2deg);
}

.stacked-images .stacked-image-1:hover,
.stacked-images .stacked-image-2:hover {
    z-index: 3;
    transform: translateX(-50%) scale(1.05) rotate(0deg);
}

.stacked-images .image-caption {
    bottom: -20px;
}

.image-caption {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Full Width Quote Events */
.timeline-event.quote-event {
    min-height: 100vh;
    background: linear-gradient(180deg, 
        var(--bg-primary) 0%,
        rgba(200, 16, 46, 0.05) 50%,
        var(--bg-primary) 100%
    );
}

.quote-event .event-content {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: transparent;
    border: none;
}

.timeline-event.quote-event .event-content {
    margin: 0 auto;
}

.quote-event .big-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: var(--space-xl);
    position: relative;
    padding: var(--space-2xl) 0;
}

.quote-event .big-quote::before,
.quote-event .big-quote::after {
    content: '"';
    font-size: 6rem;
    color: var(--brit-red);
    opacity: 0.2;
    position: absolute;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-event .big-quote::before {
    top: -20px;
    left: -30px;
}

.quote-event .big-quote::after {
    content: '"';
    bottom: -40px;
    right: -30px;
}

.quote-attribution {
    font-size: var(--text-xl);
    color: var(--brit-red-bright);
    font-weight: 600;
}

.quote-context {
    font-size: var(--text-base);
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}

.quote-image {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.quote-image .person-image {
    max-width: 520px;
    border-radius: 0;
    width: 100%;
    filter: grayscale(10%);
}

.quote-image .image-caption {
    position: static;
    transform: none;
    background: rgba(0, 0, 0, 0.6);
}

/* Artful image placement for center quote events */
.quote-event.artful-image {
    --image-right: -6%;
    --image-left: auto;
    --image-top: auto;
    --image-bottom: -10%;
    --image-rotate: -6deg;
    --image-max-width: 720px;
    --image-scale: 1.08;
    --image-opacity: 0.9;
    --image-translate-x: 0px;
    --image-translate-y: 0px;
    --caption-right: 8%;
    --caption-left: auto;
    --caption-top: auto;
    --caption-bottom: 8%;
    --caption-rotate: -4deg;
}

.quote-event.artful-image .event-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.82) 0%, rgba(10, 10, 15, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.quote-event.artful-image .quote-image {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    z-index: 0;
}

.quote-event.artful-image .quote-image .person-image {
    position: absolute;
    right: var(--image-right);
    left: var(--image-left);
    top: var(--image-top);
    bottom: var(--image-bottom);
    max-width: var(--image-max-width);
    width: min(70vw, var(--image-max-width));
    transform: translate(var(--image-translate-x), var(--image-translate-y)) rotate(var(--image-rotate)) scale(var(--image-scale));
    opacity: var(--image-opacity);
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.25));
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.quote-event.artful-image .quote-image .image-caption {
    position: absolute;
    right: var(--caption-right);
    left: var(--caption-left);
    top: var(--caption-top);
    bottom: var(--caption-bottom);
    transform: rotate(var(--caption-rotate));
    background: rgba(0, 0, 0, 0.5);
}

.quote-event.artful-image-edginton {
    --image-left: 20rem;
    --image-right: auto;
    --image-top: -16rem;
    --image-bottom: auto;
    --image-rotate: 6deg;
    --image-scale: 1;
    --image-translate-x: 0px;
    --caption-left: 43rem;
    --caption-right: auto;
    --caption-top: 8rem;
    --caption-bottom: auto;
    --caption-rotate: 4deg;
}

.quote-event.artful-image-tice {
    --image-left: 25rem;
    --image-right: auto;
    --image-top: -10rem;
    --image-bottom: auto;
    --image-rotate: 6deg;
    --image-scale: 0.8;
    --image-translate-x: 0px;
    --caption-left: 42rem;
    --caption-right: auto;
    --caption-top: -10rem;
    --caption-bottom: auto;
    --caption-rotate: 6deg;
}

.quote-event.artful-image-marshall {
    --image-left: -14rem;
    --image-right: auto;
    --image-bottom: -12rem;
    --image-rotate: 7deg;
    --image-scale: 1;
    --image-translate-y: 0px;
    --caption-left: -5rem;
    --caption-right: auto;
    --caption-bottom: -5rem;
    --caption-rotate: 5deg;
}

.quote-event.artful-image-pochin {
    --image-left: 40rem;
    --image-right: auto;
    --image-bottom: -8rem;
    --image-rotate: 7deg;
    --image-scale: 0.8;
    --image-translate-x: 0px;
    --caption-left: 45rem;
    --caption-right: auto;
    --caption-bottom: 9rem;
    --caption-rotate: 5deg;
}

.quote-event.artful-image-edginton-2 {
    --image-left: -11rem;
    --image-right: auto;
    --image-top: -14rem;
    --image-bottom: auto;
    --image-rotate: -4deg;
    --image-scale: 0.8;
    --image-translate-x: 0px;
    --caption-left: 10rem;
    --caption-right: auto;
    --caption-top: 16rem;
    --caption-bottom: auto;
    --caption-rotate: -2deg;
}

@media (max-width: 1200px) {
    .quote-event.artful-image {
        --image-max-width: 560px;
        --image-scale: 1.02;
        --image-opacity: 0.85;
    }

    .quote-event.artful-image-edginton,
    .quote-event.artful-image-marshall,
    .quote-event.artful-image-pochin {
        --image-left: auto;
        --image-right: -12%;
        --caption-left: auto;
        --caption-right: 12%;
        --caption-top: auto;
        --caption-bottom: 12%;
    }

    .quote-event.artful-image-tice,
    .quote-event.artful-image-edginton-2 {
        --image-left: -10%;
        --image-right: auto;
        --caption-left: 12%;
        --caption-right: auto;
        --caption-top: auto;
        --caption-bottom: 12%;
    }
}

/* Parallax Background Elements */
.parallax-bg {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.parallax-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.1) 0%, transparent 70%);
}

.parallax-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brit-red), transparent);
    opacity: 0.3;
}

/* Progress Indicator */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--brit-red), var(--neon-pink));
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Year Markers */
.year-marker {
    position: relative;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.year-marker h2 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 10rem);
    color: var(--bg-tertiary);
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.year-marker h2::after {
    content: attr(data-year);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 8vw, 5rem);
    color: var(--brit-red);
    opacity: 0.5;
}

/* Category Tags */
.event-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.tag-defection {
    background: rgba(0, 245, 255, 0.2);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.tag-controversy {
    background: rgba(255, 23, 68, 0.2);
    color: var(--brit-red-bright);
    border: 1px solid var(--brit-red-bright);
}

.tag-leadership {
    background: rgba(228, 255, 26, 0.2);
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
}

.tag-election {
    background: rgba(1, 33, 105, 0.4);
    color: var(--brit-white);
    border: 1px solid var(--brit-blue-light);
}

.tag-media {
    background: rgba(255, 45, 146, 0.2);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
}

.tag-legal {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .timeline-minimap {
        height: 50px;
        padding: 0 var(--space-md);
    }
    
    .minimap-container {
        height: 30px;
        margin: 0 var(--space-sm);
    }
    
    .minimap-label {
        font-size: 9px;
    }
    
    .minimap-year {
        font-size: 9px;
        top: 0;
    }
    
    .minimap-event {
        width: 6px;
        height: 6px;
    }
    
    .minimap-current {
        width: 12px;
        height: 12px;
    }
    
    .minimap-tooltip {
        display: none;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-event,
    .timeline-event:nth-child(odd),
    .timeline-event:nth-child(even) {
        flex-direction: column;
        padding-left: 70px;
        padding-right: var(--space-lg);
    }
    
    .timeline-node {
        left: 30px;
        top: var(--space-3xl);
        transform: translate(-50%, 0);
    }
    
    .timeline-event.visible .timeline-node {
        transform: translate(-50%, 0) scale(1.2);
    }
    
    .event-content,
    .timeline-event:nth-child(odd) .event-content,
    .timeline-event:nth-child(even) .event-content {
        width: 100%;
        text-align: left;
        margin: 0;
    }
    
    .event-image,
    .timeline-event:nth-child(odd) .event-image,
    .timeline-event:nth-child(even) .event-image {
        width: 100%;
        padding: var(--space-lg) 0;
        margin: 0;
        transform: translateY(30px);
    }
    
    .timeline-event.visible .event-image {
        transform: translateY(0);
    }
    
    .person-image {
        max-width: 100%;
    }
    
    .quote-event .event-content {
        width: 100%;
        padding: var(--space-lg);
    }
    
    .quote-event .big-quote {
        font-size: 1.3rem;
    }
    
    .quote-event .big-quote::before,
    .quote-event .big-quote::after {
        font-size: 3rem;
    }

    .quote-event.artful-image .quote-image {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        margin-top: var(--space-xl);
    }

    .quote-event.artful-image .quote-image .person-image {
        position: static;
        width: 100%;
        max-width: 320px;
        transform: rotate(0deg);
    }

    .quote-event.artful-image .quote-image .image-caption {
        position: static;
        transform: none;
    }
}

/* Animated text reveal */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

.reveal-text:nth-child(2) { transition-delay: 0.1s; }
.reveal-text:nth-child(3) { transition-delay: 0.2s; }
.reveal-text:nth-child(4) { transition-delay: 0.3s; }
.reveal-text:nth-child(5) { transition-delay: 0.4s; }

/* Dialogue Styling */
.dialogue {
    margin: var(--space-lg) 0;
}

.dialogue-line {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.timeline-event.visible .dialogue-line {
    opacity: 1;
    transform: translateX(0);
}

.dialogue-line:nth-child(1) { transition-delay: 0.1s; }
.dialogue-line:nth-child(2) { transition-delay: 0.2s; }
.dialogue-line:nth-child(3) { transition-delay: 0.3s; }
.dialogue-line:nth-child(4) { transition-delay: 0.4s; }
.dialogue-line:nth-child(5) { transition-delay: 0.5s; }
.dialogue-line:nth-child(6) { transition-delay: 0.6s; }
.dialogue-line:nth-child(7) { transition-delay: 0.7s; }
.dialogue-line:nth-child(8) { transition-delay: 0.8s; }
.dialogue-line:nth-child(9) { transition-delay: 0.9s; }
.dialogue-line:nth-child(10) { transition-delay: 1.0s; }

.dialogue-speaker {
    font-weight: 700;
    color: var(--brit-red-bright);
    margin-right: var(--space-sm);
}

.dialogue-text {
    color: var(--text-secondary);
    font-style: italic;
}

/* Summary Section */
.timeline-summary {
    padding: var(--space-4xl) var(--space-xl);
    background: radial-gradient(circle at top, rgba(200, 16, 46, 0.12) 0%, rgba(10, 10, 15, 0.95) 55%, var(--bg-primary) 100%);
    border-top: 1px solid var(--glass-border);
}

.summary-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.summary-eyebrow {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: rgba(200, 16, 46, 0.18);
    border: 1px solid rgba(200, 16, 46, 0.5);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brit-red-bright);
    margin-bottom: var(--space-lg);
}

.timeline-summary h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.summary-lede {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
}

.summary-card {
    position: relative;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(18, 18, 24, 0.9) 0%, rgba(18, 18, 24, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.summary-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.5), rgba(255, 153, 0, 0.2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.4;
}

.summary-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 23, 68, 0.5);
    box-shadow: 0 26px 60px rgba(255, 23, 68, 0.2);
}

.summary-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(200, 16, 46, 0.2);
    border: 1px solid rgba(200, 16, 46, 0.5);
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    box-shadow: 0 12px 24px rgba(200, 16, 46, 0.2);
}

.summary-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.summary-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
}

@media (max-width: 1100px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .timeline-summary {
        padding: var(--space-3xl) var(--space-lg);
    }

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

    .summary-card {
        text-align: left;
    }
}

/* Footer */
.timeline-footer {
    padding: var(--space-3xl);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--brit-navy) 100%);
}

.timeline-footer p {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--brit-red);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brit-red-bright);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-red);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Image placeholders when no actual image */
.image-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: var(--text-4xl);
    border: 2px dashed var(--glass-border);
}

.image-placeholder span {
    font-size: var(--text-sm);
    margin-top: var(--space-md);
}

/* Navigation Header */
.timeline-nav {
    position: fixed;
    top: calc(var(--site-nav-height) + var(--timeline-minimap-height));
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-xl);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(0);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--brit-red);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brit-red-bright);
}

@media (max-width: 768px) {
    .timeline-page {
        --site-nav-height: 0px;
    }

    .timeline-minimap {
        padding: 0 var(--space-md);
    }
}
