body {
    margin-bottom: 50px;
    font-family: 'vg5000_regularregular', sans-serif;
}

/* Main Layout */
/* Main Layout */
.main-content {
    max-width: 1600px;
    /* Widens global container significantly */
    margin: 0 auto;
    padding: 0 40px;
    /* Slightly more padding for very wide screens */
    position: relative;
}

#canvas-container {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto 30px auto;
    position: relative;
}

canvas {
    max-width: 100%;
    height: auto !important;
}

h1 {
    font-family: 'karrikregular';
    text-decoration: underline;
    font-size: clamp(2em, 5vw, 4.5em);
    margin: 20px 0;
    text-align: left;
}

h2 {
    font-family: 'Fungal-Grow-400-Thickness-500-Alt';
    font-size: 2.8em;
    color: #5a6769;
    text-transform: uppercase;

    /* Layout */
    max-width: 1200px;
    /* Widened */
    margin: 80px auto 40px auto;
    padding: 0 20px;
    text-align: left;
}

h3 {
    font-family: 'karrikregular';
    text-align: left;
    font-size: 1.5em;
    color: #0b1215;
    margin-bottom: 20px;
    padding-left: 0;
    position: relative;
    z-index: 2;
}

.intro {
    font-family: 'karrikregular';
    /* iOS Message Bubble Style (Skeuomorphic/Diffuse) */
    background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;

    /* Diffuse Relief Illusion */
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 #ffffff,
        inset 0 -1px 1px rgba(0, 0, 0, 0.02);

    padding: 30px;
    color: #4a4a4a;
    text-align: justify;

    margin: 60px auto;
    max-width: 1000px;
    /* Widened */
    position: relative;
    z-index: 2;
}

p {
    font-family: 'vg5000_regularregular';
    font-size: 1.15em;
    text-align: justify;
    line-height: 1.6;

    /* Center and constrain reading width */
    max-width: 1200px;
    /* Widened significantly */
    margin: 20px auto;
    padding: 0 15px;

    color: #5a6769;
}

ul {
    margin: 20px 0;
    padding-left: 40px;
}

li {
    margin-bottom: 10px;
}

/* Sections */
.signs-box {
    padding: 20px;
    margin: 50px auto;
    max-width: 800px;
    position: relative;
    /* overflow: hidden; Removed to allow images to extend beyond box */
}

.list-title {
    font-family: 'vg5000_regularregular';
    text-align: center;
    color: #5a6769;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.signs {
    font-family: 'vg5000_regularregular';
    color: #5a6769;
    /* Required because only Bold/Black weights exist */
    font-size: 1em;
    position: relative;
    z-index: 2;
}

.remember-text {
    color: #677173;
    /* Match signs box */
    font-family: 'Avara';
    font-size: 0.6em;
    /* Small and subtle */
    text-align: center;

    margin: 40px auto 10px auto;
    max-width: 800px;
    position: relative;
    z-index: 3;
    opacity: 0.8;
}

/* Images Grid */
.images-grid {
    /* display: flex; Removed for chaotic layout */
    /* flex-wrap: wrap; */
    /* justify-content: center; */
    /* align-items: center; */
    /* gap: 10px; */

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.images-grid img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.elisa {
    transform: rotate(310deg) skew(-20deg, 43deg);
    filter: drop-shadow(0 0 0.75rem black);
    max-height: 400px;
    opacity: 0.7;
    position: absolute;
    bottom: -10%;
    right: 20%;
    z-index: 4;
}

.jaryd {
    max-height: 400px;
    position: absolute;
    top: -20%;
    right: -15%;
    z-index: 1;
}

.selene {
    border: 1px solid #474747;
    opacity: 0.5;
    max-height: 250px;
    position: absolute;
    top: 13%;
    left: -15%;
    transform: rotate(-5deg);
    z-index: 3;
}

.emma {
    max-height: 400px;
    position: absolute;
    top: 85%;
    left: 100%;
    transform: rotate(10deg);
    z-index: 2;
}

.temoignage-titre {
    text-align: center;
    margin: 60px 0 30px 0;
    padding: 10px;
}

/* Chat Section */
.chat {
    font-family: 'Titillium Web', sans-serif;
    font-size: small;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    height: 1600px;
    /* Container for absolute bubbles */
    max-width: 1200px;
}

.bubble {
    background-color: #C3DDF5;
    color: #2e4a62;
    /* Dark slate blue for harmony */
    width: 400px;
    max-width: 90%;
    /* Responsive width */
    border-radius: 5px;
    border: 1px solid #bbb;
    box-shadow: 0 1px 6px #B2B2B2;
    display: block;
    padding: 10px 18px;
    margin: 1em 0;
    position: relative;
}

.bubble.left {
    margin-right: auto;
}

.bubble.right {
    margin-left: auto;
}

.tail {
    position: absolute;
    height: 18px;
    width: 18px;
    overflow: hidden;
}

.tail:before {
    border: 1px solid #bbb;
    background-color: #C3DDF5;
    box-shadow: 0 1px 6px #B2B2B2;
    content: "\00a0";
    display: block;
    position: absolute;
    top: 0px;
    height: 12px;
    width: 12px;
}

.bubble.left {
    text-align: left;
}

.bubble.left .tail {
    top: 12px;
    left: -18px;
}

.bubble.left .tail:before {
    left: 12px;
    transform: skewX(-45deg);
}

.bubble.right {
    text-align: right;
}

.bubble.right .tail {
    top: 12px;
    right: -18px;
}

.bubble.right .tail:before {
    right: 12px;
    transform: skewX(45deg);
}

/* Bubbles Positions - Normalized to container */
.t1 {
    position: absolute;
    z-index: 1;
    top: 95%;
    left: 30%;
}

.t2 {
    position: absolute;
    z-index: -2;
    top: 1%;
    left: 5%;
}

.t3 {
    position: absolute;
    z-index: -3;
    top: 94%;
    left: 5%;
}

.t4 {
    position: absolute;
    z-index: 2;
    top: 5%;
    right: 11%;
}

.t5 {
    position: absolute;
    z-index: 3;
    top: 0%;
    right: 25%;
}

.t6 {
    position: absolute;
    z-index: 2;
    top: 16%;
    left: 5%;
}

.t7 {
    position: absolute;
    z-index: -1;
    right: 41%;
    top: 42%;
}

.t8 {
    position: absolute;
    z-index: -1;
    top: 55%;
    left: 10%;
}

.t9 {
    position: absolute;
    z-index: 3;
    top: 16%;
    left: 27%;
}

.t10 {
    position: absolute;
    z-index: -2;
    top: 87%;
    right: 15%;
}

.t11 {
    position: absolute;
    z-index: -2;
    top: 22%;
    left: 5%;
}

.t12 {
    position: absolute;
    top: 33%;
    left: 25%;
}

.t13 {
    position: absolute;
    z-index: 3;
    top: 44%;
    right: 10%;
}

.t14 {
    position: absolute;
    z-index: 2;
    top: 36%;
    left: 5%;
}

.t15 {
    position: absolute;
    z-index: -2;
    top: 30%;
    right: 15%;
}

.t16 {
    position: absolute;
    z-index: -1;
    top: 78%;
    left: 40%;
}

.t17 {
    position: absolute;
    z-index: 4;
    top: 26%;
    right: 11%;
}

.t18 {
    position: absolute;
    z-index: 1;
    top: 51%;
    left: 6%;
}

.t19 {
    position: absolute;
    z-index: 3;
    top: 83%;
    left: 5%;
}

.t20 {
    position: absolute;
    z-index: -2;
    top: 60%;
    left: 5%;
}

.t21 {
    position: absolute;
    top: 62%;
    z-index: 3;
    right: 38%;
}

.t22 {
    position: absolute;
    top: 52%;
    right: 12%;
}

.t23 {
    position: absolute;
    top: 75%;
    right: 56%;
}

.recherche-box {
    border: 1px solid var(--text-color);
    width: 35%;
    margin: 50px auto;
    max-width: 800px;
    position: relative;
    /* Static flow */
}

.recherche-text {
    padding: 10px;
    font-family: 'vg5000_regularregular';
    text-align: center;
    font-size: 1.2em;
}

.rh-bottom-link {
    text-align: center;
    margin: 60px auto 40px auto;
    font-family: 'vg5000_regularregular', var(--font-vg5000, sans-serif);
    font-size: 1.4em;
}

.rh-bottom-link a:hover {
    color: #ffffff;
}

/* Particle System Tooltip */
.particle-tooltip {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.5) !important;

    color: #0b1215 !important;
    font-family: 'karrikregular', sans-serif !important;
    font-style: italic !important;
    font-size: 14px !important;
    text-align: justify !important;

    border-radius: 12px !important;
    padding: 15px !important;
    position: absolute !important;
    z-index: 100 !important;
    pointer-events: none !important;

    /* Spectral Text Effect */
    text-shadow: 0 0 1px rgba(100, 150, 255, 0.2) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bubble {
        width: 90%;
        left: 5% !important;
        right: 5% !important;
    }

    .t1,
    .t2,
    .t3,
    .t4,
    .t5,
    .t6,
    .t7,
    .t8,
    .t9,
    .t10,
    .t11,
    .t12,
    .t13,
    .t14,
    .t15,
    .t16,
    .t17,
    .t18,
    .t19,
    .t20,
    .t21,
    .t22,
    .t23 {
        left: auto !important;
        right: auto !important;
        position: relative !important;
        top: auto !important;
        margin: 10px auto;
    }

    .chat {
        height: auto;
    }

    /* Stack vertically on mobile */
}

/* Timeline Styles - Simplified */
.timeline-simple-container {
    width: 100%;

    margin: 60px 0;
    overflow-x: auto;
    padding-bottom: 30px;
    /* Space between content and scrollbar */
    -webkit-overflow-scrolling: touch;

    /* Firefox Scrollbar Standard */
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 220, 255, 0.3) transparent;
    /* Subtle pale blue/lilac */
}

/* Glassy Scrollbar Styling */
.timeline-simple-container::-webkit-scrollbar {
    height: 14px;
    /* Slightly taller for visibility */
    background: transparent;
}

.timeline-simple-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border-left: 25vw solid transparent;
    border-right: 25vw solid transparent;
    background-clip: padding-box;
}

.timeline-simple-container::-webkit-scrollbar-button {
    display: none;
}

.timeline-simple-container::-webkit-scrollbar-thumb {
    /* Subtle Glass / Ghost Aero Style */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(200, 220, 255, 0.1) 40%, rgba(150, 180, 255, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Faint frosty edge */

    /* Very faint reflection */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.05);
}

.timeline-simple-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(200, 220, 255, 0.2) 40%, rgba(150, 180, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 2px 8px rgba(0, 100, 255, 0.1);
    /* Slight blue glow on hover only */
}

.timeline-track {
    position: relative;
    /* Anchor for connectors */
    display: flex;
    gap: 50px;
    /* Increased gap for better spacing */
    /* Large vertical padding to allow shifts without clipping */
    padding: 200px 40px;
    width: max-content;
    align-items: center;
}

.t-event-box {
    z-index: 10;
    perspective: 400px;
    /* Enable 3D space for children */
}

/* Organic Vertical Dispersion */
.t-event-box:nth-child(odd) {
    transform: translateY(-30px);
}

/* ... existing content ... */

/* Hover Interaction Text */
.t-hover-text {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) rotateX(0deg) rotateY(0deg);
    /* Start flat */
    width: 260px;

    background: transparent;
    color: #888;
    font-style: italic;
    filter: blur(0.5px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

    padding: 0;
    font-size: 1.05em;
    /* Updated from user edit */
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 20;
    transform-style: preserve-3d;
    /* Ensure 3D rendering */
}

/* No more arrow */
.t-hover-text::after {
    display: none;
}

.t-event-box:hover .t-hover-text {
    opacity: 1;
    /* Apply 3D Tilt on Hover */
    transform: translateX(-50%) translateY(0) rotateX(4deg) rotateY(15deg);
}

.t-event-box:nth-child(even) {
    transform: translateY(30px);
}

/* More specific random-like shifts to break the pattern */
.t-event-box:nth-child(1) {
    transform: translateY(0px);
}

.t-event-box:nth-child(2) {
    transform: translate(25px, 90px);
}

.t-event-box:nth-child(3) {
    transform: translate(35px, 10px);
}

.t-event-box:nth-child(4) {
    /* Subprime - Lowered to match roughly Occupy Wall Street level */
    transform: translate(10px, 110px);
}

.t-event-box:nth-child(5) {
    transform: translate(20px, 120px)
}

.t-event-box:nth-child(6) {
    transform: translate(25px, 95px)
}

.t-event-box:nth-child(7) {
    transform: translateY(15px);
}

.t-event-box:nth-child(8) {
    transform: translate(20px, 10px)
}

/* Organic Diffuse Glow (Breathing Shadow) */
.t-event-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Large, diffuse shape */
    width: 140%;
    height: 180%;

    /* Spectral Blue/White Gradient */
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(176, 208, 255, 0.3) 40%,
            transparent 70%);

    /* Very soft blur */
    filter: blur(25px);

    /* Behind everything */
    z-index: -5;

    /* Breathing Animation */
    animation: diffuseBreath 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes diffuseBreath {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.95);
    }

    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.t-event-box {
    perspective: 156px;
    position: relative;
    background: #fff;
    border: 1px solid #787878;
    border-right: none;
    height: 60px;
    min-width: 200px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'karrikregular';
    font-size: 0.85em;
    color: #4d4d4d;
    z-index: 2;
    /* Ensure on top of arrow */
}

/* The Arrow Tip */
.t-event-box::after {
    content: '';
    position: absolute;
    right: -21.2px;
    /* Exact center on edge (42.43/2) */
    top: 50%;
    width: 42.43px;
    /* 60 / sqrt(2) for exact 60px height match */
    height: 42.43px;
    background: #fff;
    border-top: 1px solid #787878;
    border-right: 1px solid #787878;
    transform: translateY(-50%) rotate(45deg);
    z-index: -1;
    /* Place behind text content */
}

/* Hover Interaction Text */
.t-hover-text {
    position: absolute;
    bottom: 110%;
    /* Slightly closer */
    left: 50%;
    transform: translateX(-50%) translateY(10px) rotateX(0deg) rotateY(0deg);
    width: 460px;
    /* Slightly wider for text */

    /* Font Style */
    font-style: italic;

    /* Filters: Animated Shader-like Noise */
    filter: url(#shader-noise);

    /* Filters: Animated Shader-like Noise */
    filter: url(#shader-noise);

    /* Layout */
    padding: 0;
    font-size: 1.2em;
    font-family: 'Avara';
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 20;
    transform-style: preserve-3d;
}

/* Apply Spectral Float Animation to the inner Span */
.t-hover-text span {
    display: inline-block;
    animation: spectral-float 6s ease-in-out infinite alternate;

    /* Ensure gradient applies to the text */
    background: radial-gradient(circle, #bbbbbb, #6c6c6c, #424242, #1b1b1b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Constant blur for "dreamy" look - never changes */
    filter: blur(1px);
}

/* Spectral Float Animation (Slow, wavy, no glitch) */
@keyframes spectral-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2px, 1px) rotate(0.5deg);
    }

    50% {
        transform: translate(0, 3px) rotate(-0.5deg);
    }

    75% {
        transform: translate(-2px, 1px) rotate(0.2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* No more arrow */
.t-hover-text::after {
    display: none;
}

.t-event-box:hover .t-hover-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotateX(4deg) rotateY(15deg);
}

/* Date Connector Group */
.t-date-group {
    position: absolute;
    top: 50%;
    left: 115%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
    /* Ensure on top */
}

.t-dot-connector {
    width: 8px;
    height: 8px;
    background: #b0d0ff;
    /* Spectral Blue */
    box-shadow: 0 0 8px rgba(176, 208, 255, 0.8);
    /* Glow */
    border-radius: 50%;
    flex-shrink: 0;
}

.t-line-connector {
    display: none;
    /* Replaced by SVG Lines */
}



/* Container for Dot + Date - The Anchor Point */
.t-date-group {
    /* Anchored relative to the EVENT BOX (Arrow) */
    position: absolute;
    top: 50%;
    right: -50px;
    /* Place it slightly in front of the arrow tip */
    left: auto;
    transform: translateY(-50%);
    /* Center vertically relative to arrow */

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    z-index: 150;
    /* High Z-Index to float above .t-hover-text (20) */
}

/* Floating "Balloon" Box - Visual Style */
/* Floating "Balloon" Box - Visual Style */
.t-year-box {
    position: absolute;
    top: 50%;
    left: 50%;

    /* Round Glassy Blue Style */
    width: 55px;
    height: 55px;
    border-radius: 50%;

    background: rgba(200, 225, 255, 0.15);
    /* Pale liquid blue */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    /* Inner glow for 3D effect */

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;

    font-size: 0.9em;
    /* Adjust for circle fit */
    font-family: 'karrikregular';
    white-space: nowrap;
    z-index: 100;
    color: #333;
    /* Dark text for contrast */

    /* Blurry text to match hover style */
    filter: blur(0.8px);

    /* Interaction: Ignore hover events so parent text doesn't trigger */
    pointer-events: none;

    will-change: transform;
}

.t-year-box::after {
    display: none;
}

#event-y2k .t-year-box {
    margin-top: 90px;
    margin-left: -60px;
}

/* 9/11: Low and forward */
#event-911 .t-year-box {
    margin-top: 70px;
    margin-left: 40px;
}

/* FB: High and forward */
#event-fb .t-year-box {
    margin-top: -150px;
    margin-left: 70px;
}

/* Subprime: Low and straight down */
#event-subprime .t-year-box {
    margin-top: 85px;
    margin-left: 30px;
}

/* Occupy: High and back */
#event-occupy .t-year-box {
    margin-top: -195px;
    margin-left: -110px;
}

/* Spiders: Low and back */
#event-spiders .t-year-box {
    margin-top: -160px;
    margin-left: -40px;
}

/* Clowns: Very high up */
#event-clowns .t-year-box {
    margin-top: -100px;
    margin-left: 20px;
}

/* CERN: Low and forward */
#event-cern .t-year-box {
    margin-top: 70px;
    margin-left: 50px;
}


@keyframes balloonSway {
    0% {
        transform: translate(-50%, -50%) rotate(-3deg) translateY(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(3deg) translateY(-5px);
    }

    /* Note: translate(-50%, -50%) is needed to keep it centered on its coordinate before margin */
}

/* Organic "Breathing" Glow */
.t-event-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.35) 0%, rgba(255, 255, 255, 0) 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    animation: breathingGlow 6s ease-in-out infinite alternate;
}

@keyframes breathingGlow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


#event-occupy .t-year-box::after {
    height: 68px;
    top: 100%;
    left: 20%;
    transform: rotate(35deg);
    transform-origin: top center;
}

/* Spiders: Down (45px), Left (-10px) */
#event-spiders .t-year-box {
    top: 45px;
    left: -10px;
    transform-origin: 10px -45px;
}

#event-spiders .t-year-box::after {
    height: 46px;
    bottom: 100%;
    right: 40%;
    transform: rotate(-12deg);
    transform-origin: bottom center;
}

/* Clowns: Up (-65px), Right (20px) */
#event-clowns .t-year-box {
    top: -65px;
    left: 20px;
    transform-origin: -20px 65px;
}

#event-clowns .t-year-box::after {
    height: 68px;
    top: 100%;
    left: 40%;
    transform: rotate(17deg);
    transform-origin: top center;
}

/* CERN: Down (50px), Center (0) */
#event-cern .t-year-box {
    top: 50px;
    left: 0px;
    transform-origin: 50% -50px;
}

#event-cern .t-year-box::after {
    height: 50px;
    bottom: 100%;
    left: 50%;
    transform: rotate(0deg);
    transform-origin: bottom center;
}


@keyframes balloonSway {
    0% {
        transform: rotate(-4deg);
    }

    100% {
        transform: rotate(4deg);
    }
}

/* Organic "Breathing" Glow */
.t-event-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Anchor center */
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    animation: breathingGlow 6s ease-in-out infinite alternate;
}

@keyframes breathingGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* Offsets updated to margins */
#event-y2k .t-year-box {
    margin-top: -45px;
    margin-left: 5px;
}

#event-911 .t-year-box {
    margin-top: 70px;
    margin-left: 30px;
}

#event-fb .t-year-box {
    margin-top: -80px;
    margin-left: -20px;
}

#event-subprime .t-year-box {
    margin-top: 60px;
    margin-left: 10px;
}

#event-occupy .t-year-box {
    margin-top: -110px;
    margin-left: -60px;
}

#event-spiders .t-year-box {
    margin-top: 45px;
    margin-left: -10px;
}

#event-clowns .t-year-box {
    margin-top: -65px;
    margin-left: 20px;
}

#event-cern .t-year-box {
    margin-top: 50px;
    margin-left: 0px;
}


/* Adjust connector lines to follow the box */
#event-y2k .t-line-connector {
    transform: rotate(-25deg);
    width: 25px;
    transform-origin: left center;
}

#event-911 .t-line-connector {
    transform: rotate(35deg);
    width: 25px;
    transform-origin: left center;
}

#event-fb .t-line-connector {
    transform: rotate(-10deg);
    width: 22px;
    transform-origin: left center;
}

#event-subprime .t-line-connector {
    transform: rotate(45deg);
    width: 30px;
    transform-origin: left center;
}

#event-occupy .t-line-connector {
    transform: rotate(-35deg);
    width: 28px;
    transform-origin: left center;
}

#event-spiders .t-line-connector {
    transform: rotate(25deg);
    width: 25px;
    transform-origin: left center;
}

#event-clowns .t-line-connector {
    transform: rotate(-45deg);
    width: 30px;
    transform-origin: left center;
}

#event-cern .t-line-connector {
    transform: rotate(10deg);
    width: 22px;
    transform-origin: left center;
}

/* --- ANIMATED CONNECTORS (Spectral Flow) --- */
.event-connector-line {
    stroke: #9a95ac;
    /* Pale Lilac */
    stroke-width: 1.5px;
    /* stroke-dasharray removed to respect inline JS styles */

    /* Flow animation + Filter Glow */
    animation: flow 30s linear infinite;
    filter: url(#line-grain-glow);

    opacity: 0.9;
    transition: stroke 0.3s ease, opacity 0.3s ease;
}

/* Make them glow more on hover (if possible, but paths capture mouse poorly)
   Instead, we can just have them pulse or flow constantly. */
@keyframes flow {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Pulse removed in favor of constant grainy glow */

/* --- ORGANIC PERSPECTIVE VARIATIONS --- */

/* 9/11: Deep angle */
#event-911 {
    perspective: 250px;
}

#event-911:hover .t-hover-text {
    transform: translateX(-50%) translateY(0) rotateX(-8deg) rotateY(20deg);
}

/* FB: Flatter, twisted left */
#event-fb {
    perspective: 600px;
}

#event-fb:hover .t-hover-text {
    transform: translateX(-50%) translateY(0) rotateX(10deg) rotateY(-15deg);
}

/* Subprime: Intense distortion (Crisis) */
#event-subprime {
    perspective: 120px;
}

#event-subprime:hover .t-hover-text {
    transform: translateX(-50%) translateY(0) rotateX(15deg) rotateY(10deg);
}

/* Occupy: Looking up */
#event-occupy {
    perspective: 300px;
}

#event-occupy:hover .t-hover-text {
    transform: translateX(-50%) translateY(0) rotateX(-12deg) rotateY(-10deg);
}

/* Spiders: Weird side angle */
#event-spiders {
    perspective: 180px;
}

#event-spiders:hover .t-hover-text {
    transform: translateX(-50%) translateY(0) rotateX(5deg) rotateY(25deg);
}

/* Clowns: Unstable */
#event-clowns {
    perspective: 350px;
}

#event-clowns:hover .t-hover-text {
    transform: translateX(-50%) translateY(0) rotateX(-5deg) rotateY(5deg);
}

/* CERN: Portal opening (Extreme perspective) */
#event-cern {
    perspective: 140px;
}

#event-cern:hover .t-hover-text {
    transform: translateX(-50%) translateY(0) rotateX(20deg) rotateY(-5deg);
}