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

body {
    font-family: var(--font-body);
    background: url('images/Light Aurora 4.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    overflow-x: hidden; /* Only hide horizontal scrollbar */
    position: relative;
    /* Windows performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Use Avant Garde only for main titles */
.title, h1 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Use Salesforce Sans for content headings */
h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
}

/* Swoosh overlay - behind timeline but on top of aurora background */
body::before {
    content: '';
    position: fixed;
    top: var(--swoosh-y-position, 0px);
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/swoosh.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    animation: swooshMaskReveal 2.5s ease-out 0.5s forwards;
}

body.restart-swoosh::before {
    clip-path: inset(0 100% 0 0);
    animation: swooshMaskReveal 2.5s ease-out 0.5s forwards;
}

/* Einstein exit animation */
body.einstein-exit::after {
    animation: einsteinExit 0.5s ease-in forwards;
}

/* Einstein restart animation */
body.einstein-restart::after {
    opacity: 0;
    transform: translateX(-300px) translateY(300px) scale(0.3);
    animation: einsteinEntrance 2s ease-out 1s forwards, float 5s ease-in-out 3.1s infinite;
}

/* Swoosh exit animation */
body.swoosh-exit::before {
    animation: swooshMaskExit 0.5s ease-in forwards;
}

/* Swoosh restart animation */
body.swoosh-restart::before {
    clip-path: inset(0 100% 0 0);
    animation: swooshMaskReveal 2.5s ease-out 0.5s forwards;
}

/* Floating Einstein character */
body::after {
    content: "";
    position: fixed;
    bottom: calc(300px + var(--einstein-y-offset, 0px));
    right: calc(20px - var(--einstein-x-offset, 0px));
    width: calc(350px * var(--einstein-scale, 1));
    height: calc(350px * var(--einstein-scale, 1));
    background-image: url('images/Agent_Einstein_Sunglasses_FINALPOSE_BLUE_SG_v001_2K_v010.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-300px) translateY(300px) scale(0.3);
    animation: einsteinEntrance 2s ease-out 1s forwards, float 5s ease-in-out 3.1s infinite;
}

/* Debug Toggle */
.debug-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.debug-toggle-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.debug-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0D47A1;
    user-select: none;
}

.debug-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.debug-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.debug-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.debug-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.debug-switch input:checked + .debug-slider {
    background-color: #1976D2;
}

.debug-switch input:checked + .debug-slider:before {
    transform: translateX(20px);
}

/* Debug Controls */
.debug-controls {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.control-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #0D47A1;
    min-width: 70px;
}

.control-group input[type="range"] {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #1976D2;
    border-radius: 50%;
    cursor: pointer;
}

.control-group span {
    font-size: 0.8rem;
    color: #666;
    min-width: 50px;
    text-align: right;
}

.apply-btn {
    background: #1976D2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-btn:hover {
    background: #1565C0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 450px 20px;
    position: relative;
    min-height: 100vh;
    z-index: 5;
}

/* Header */
.header {
    position: fixed;
    left: 0;
    top: 40px;
    text-align: left;
    margin-bottom: 40px;
    padding-left: 60px;
}

.title {
    font-size: 3rem;
    color: #032d60;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-30px);
    animation: titleFadeIn 1s ease-out 3s forwards;
}

/* Silvio Image */
.silvio-image {
    margin-top: calc(50px + var(--silvio-y-offset, 0px));
    margin-left: var(--silvio-x-offset, 0px);
}

.silvio-image img {
    height: calc(144px * var(--silvio-scale, 1));
    width: auto;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-100px);
    animation: silvioSlideIn 1s ease-out 3s forwards;
}

/* Interaction Hint - Centered */
.interaction-hint-container {
    position: fixed;
    top: var(--hint-top, 35%);
    left: 50%;
    transform: translate(-50%, -50%) translate(var(--hint-x-offset, 0px), var(--hint-y-offset, 0px));
    z-index: 500;
    pointer-events: none;
}

.interaction-hint {
    font-family: var(--font-body);
    font-size: calc(1.5rem * var(--hint-scale, 1));
    color: #032d60;
    margin: 0;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    animation: hintFadeIn 1s ease-out 4s forwards, shimmer 6s ease-in-out 5s infinite;
    padding: calc(12px * var(--hint-scale, 1)) calc(24px * var(--hint-scale, 1));
    border: calc(2px * var(--hint-scale, 1)) solid rgba(3, 45, 96, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: linear-gradient(
        90deg,
        #032d60 0%,
        #1976D2 25%,
        #64B5F6 50%,
        #1976D2 75%,
        #032d60 100%
    ), rgba(255, 255, 255, 0.1);
    background-size: 200% 100%, 100% 100%;
    -webkit-background-clip: text, padding-box;
    background-clip: text, padding-box;
    -webkit-text-fill-color: transparent;
}

@keyframes silvioSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pillsSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(var(--stats-scale, 1));
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(var(--stats-scale, 1));
    }
}

@keyframes swooshMaskReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hintFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulseGrow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseGrowWithOffset {
    0% {
        transform: var(--original-transform, translateY(0)) scale(1);
    }
    50% {
        transform: var(--original-transform, translateY(0)) scale(1.2);
    }
    100% {
        transform: var(--original-transform, translateY(0)) scale(1);
    }
}

/* Salesforce Logo */
.salesforce-logo {
    position: fixed;
    top: 40px;
    right: 60px;
    z-index: 1000;
}

.salesforce-logo img {
    height: 60px;
    width: auto;
}

/* Stats Pills */
.stats-pills {
    position: fixed;
    bottom: calc(120px + var(--stats-y-offset, 0px));
    right: calc(60px + var(--stats-x-offset, 0px));
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.stats-pill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 17px 29px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 17px;
    border: 1px solid rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
    width: 240px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(100px) scale(var(--stats-scale, 1));
    animation: pillsSlideIn 1s ease-out 3s forwards;
    transform-origin: bottom right;
}

.stats-pill:nth-child(1) {
    margin-top: -20px;
    animation-delay: 3s;
}

.stats-pill:nth-child(2) {
    margin-left: -70px;
    animation-delay: 3.2s;
}

.stats-pill:hover {
    transform: translateY(-2px) scale(var(--stats-scale, 1));
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-family: var(--font-heading);
    font-size: calc(2.53rem);
    font-weight: 700;
    color: #032d60;
    line-height: 1;
    flex-shrink: 0;
}

.stats-label {
    font-family: var(--font-body);
    font-size: calc(1.035rem);
    color: #032d60;
    font-weight: 500;
    line-height: 1.2;
}







/* Timeline */
.timeline-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    overflow: visible;
    z-index: 10;
    pointer-events: none;
}

.timeline-container > * {
    pointer-events: all;
}



.year-markers {
    position: absolute;
    bottom: 20px;
    left: 50px;
    right: 50px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.year-marker {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: default;
    text-align: left;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 30px;
}

/* Timeline Events */
.timeline-events {
    position: absolute;
    left: 50px;
    right: 50px;
    bottom: 64px;
    height: 300px;
}

.event {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    /* default offsets */
    --label-offset: 40px;   /* distance from dot to label */
    --stem-height: 40px;    /* distance from timeline to dot */
    z-index: 1; /* Create stacking context for child elements */
}

/* Hover effects handled by JavaScript - no CSS hover transform */

.event-dot {
    width: 12px;
    height: 12px;
    background: #1976D2;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    /* Position relative to a fixed point, not dependent on text height */
    top: calc(var(--connector-height, 200px) - 6px);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.5);
    z-index: 3;
}



.event-content {
    background: transparent;
    padding: 2px 4px;
    border-radius: 4px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    width: var(--text-max-width, 200px);
    text-align: left;
    position: absolute;
    bottom: 0; /* Bottom-align text within the event container */
    /* transform: translateX(-50%); -- TEMPORARILY REMOVED */
    /* left: 50%; -- TEMPORARILY REMOVED */
    left: -5px; /* Moved 5px to the left */
    transition: transform 0.3s ease;
    word-wrap: break-word;
    white-space: normal;
    z-index: 10 !important;
}



.event-content h4 {
    color: #0D47A1;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: normal;

}

.event-content h3 {
    color: #0D47A1;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.event-content p {
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
    line-height: 1.3;

}

.einstein-logo, .atlas-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Connector lines as separate elements */
.connector-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    border-left: 2px dotted rgba(13, 71, 161, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Clean slate - single test event */



/* Modal */


/* Highlighted event for keyboard navigation */
.event.highlighted {
    transform: translateY(-10px) scale(1.1) !important;
    z-index: 10;
}

.event.highlighted .event-dot {
    background: #FF6B35;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

@keyframes einsteinEntrance {
    0% { 
        opacity: 0; 
        transform: translateX(-300px) translateY(300px) scale(0.3);
    }
    100% { 
        opacity: 1; 
        transform: translateX(0px) translateY(0px) scale(1);
    }
}

@keyframes einsteinExit {
    0% {
        opacity: 1;
        transform: translateX(0px) translateY(0px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(300px) translateY(-300px) scale(0.3);
    }
}

@keyframes swooshMaskExit {
    0% {
        clip-path: inset(0 0% 0 0);
    }
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

/* Hover effects for text content only */
.event:hover .event-content {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

/* Bring hovered event to front */
.event:hover {
    z-index: 1000 !important;
}

/* Smooth transitions for all interactive elements - optimized for Windows */
.event, .event-content, .event-dot {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform;
}

/* Loading animation for timeline events */
.event {
    opacity: 0;
    transform: translateY(20px);
}

/* Debug Mode Styles - Removed visual changes, debug mode only shows/hides control panel */

/* Add subtle glow effect to timeline line */
.timeline-line {
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.3), 0 0 20px rgba(25, 118, 210, 0.1);
}

/* Windows-specific performance optimizations */
.windows-optimized .event-content {
    backdrop-filter: blur(4px); /* Reduced blur on Windows */
}

.windows-optimized .stats-pill {
    backdrop-filter: blur(6px); /* Reduced blur on Windows */
}

.windows-optimized .interaction-hint {
    backdrop-filter: blur(6px); /* Reduced blur on Windows */
}

/* Force hardware acceleration on Windows */
.windows-optimized .event,
.windows-optimized .event-content {
    transform: translateZ(0);
    will-change: transform;
}

/* Einstein gets separate optimization to avoid animation conflicts */
.windows-optimized body::after {
    transform: translateZ(0);
    /* Removed will-change to prevent animation skipping */
}

/* Windows-only scrollbar removal */
.windows-optimized {
    overflow: hidden; /* Hide all scrollbars on Windows only */
}

.windows-optimized html {
    overflow: hidden; /* Ensure html element doesn't scroll on Windows */
}

/* Alternative: Windows scrollbar styling (in case overflow hidden causes issues) */
.windows-optimized::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* Make scrollbar invisible */
}

.windows-optimized::-webkit-scrollbar-thumb {
    background: transparent;
}

/* For Firefox on Windows */
.windows-optimized {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px 350px 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .header {
        left: 0;
        top: 20px;
    }
    
    .silvio-image img {
        height: calc(96px * var(--silvio-scale, 1));
    }
    
    .interaction-hint {
        font-size: 1.2rem;
        padding: 10px 20px;
        border-width: 1.5px;
    }
    

    
    .timeline-container {
        height: 300px;
        bottom: 0;
    }
    
    .timeline-line {
        left: 20px;
        right: 20px;
    }
    
    .year-markers {
        left: 20px;
        right: 20px;
        padding: 0 10px;
    }
    
    .year-marker {
        font-size: 0.8rem;
    }
    
    .timeline-events {
        left: 20px;
        right: 20px;
    }
    
    .event-content {
        max-width: 500px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .event-content h4 {
        font-size: 0.8rem;
    }
    
    .salesforce-logo {
        top: 20px;
        right: 20px;
    }
    
    .salesforce-logo img {
        height: 40px;
    }
    
    .stats-pills {
        bottom: calc(80px + var(--stats-y-offset, 0px));
        right: calc(20px + var(--stats-x-offset, 0px));
        gap: 10px;
    }
    
    .stats-pill {
        padding: 14px 23px;
        gap: 14px;
        width: 200px;
    }
    
    .stats-pill:nth-child(1) {
        margin-top: -15px;
    }
    
    .stats-pill:nth-child(2) {
        margin-left: -50px;
    }
    
    .stats-number {
        font-size: 2.07rem;
    }
    
    .stats-label {
        font-size: 0.92rem;
    }

}

/* Welcome Overlay Styles */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: welcomeSlideIn 0.5s ease-out;
}

@keyframes welcomeSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.welcome-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #0176d3;
    margin-bottom: 30px;
    font-weight: 600;
}

.welcome-instructions {
    margin-bottom: 30px;
}

.welcome-instructions p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.5;
}

.welcome-instructions kbd {
    background: #f4f6f9;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #16325c;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #444;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d8dde6;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #0176d3;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #0176d3;
    border-color: #0176d3;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.welcome-ok-btn {
    background: linear-gradient(135deg, #0176d3 0%, #005fb2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(1, 118, 211, 0.3);
}

.welcome-ok-btn:hover {
    background: linear-gradient(135deg, #005fb2 0%, #004a8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 118, 211, 0.4);
}

.welcome-ok-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(1, 118, 211, 0.3);
}

/* Mobile responsive for welcome overlay */
@media (max-width: 768px) {
    .welcome-content {
        margin: 20px;
        padding: 30px;
        max-width: calc(100% - 40px);
    }
    
    .welcome-content h2 {
        font-size: 1.8rem;
    }
    
    .welcome-instructions p {
        font-size: 1rem;
    }
}

/* High-resolution (Desktop/4K) enhancements */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding: 60px 40px 520px 40px;
    }

    .title {
        font-size: clamp(3rem, 2.5rem + 1.5vw, 4.5rem);
    }

    .header {
        top: 60px;
        padding-left: 80px;
    }

    .silvio-image img {
        height: calc(200px * var(--silvio-scale, 1));
    }

    .interaction-hint {
        font-size: calc(clamp(1.5rem, 1.2rem + 0.6vw, 2.2rem) * var(--hint-scale, 1));
        padding: calc(16px * var(--hint-scale, 1)) calc(28px * var(--hint-scale, 1));
    }
    
    /* Default hint position for large displays (overridable via debug slider) */
    :root {
        --hint-top: 42%;
    }

    .salesforce-logo {
        top: 60px;
        right: 80px;
    }

    .salesforce-logo img {
        height: 84px;
    }

    .stats-pills {
        bottom: calc(160px + var(--stats-y-offset, 0px));
        right: calc(80px + var(--stats-x-offset, 0px));
        gap: 18px;
    }

    .stats-pill {
        padding: 20px 34px;
        gap: 18px;
        width: 300px;
    }

    .stats-number {
        font-size: clamp(2.5rem, 2rem + 1.4vw, 3.4rem);
    }

    .stats-label {
        font-size: clamp(1rem, 0.9rem + 0.4vw, 1.3rem);
    }

    .timeline-container {
        height: 520px;
    }

    .year-markers {
        height: 56px;
        left: 80px;
        right: 80px;
    }

    .year-marker {
        font-size: 1.2rem;
        padding-left: 40px;
    }

    .timeline-events {
        left: 80px;
        right: 80px;
        bottom: 80px;
        height: 380px;
    }

    .event-content {
        width: var(--text-max-width, 260px);
    }

    .event-content h3 {
        font-size: 1.5rem;
    }

    .event-content h4 {
        font-size: 1.05rem;
    }

    .event-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 2200px;
        padding: 80px 60px 600px 60px;
    }

    .title {
        font-size: clamp(3.5rem, 2.5rem + 2vw, 5.5rem);
    }

    .silvio-image img {
        height: calc(240px * var(--silvio-scale, 1));
    }

    .interaction-hint {
        font-size: calc(clamp(1.8rem, 1.2rem + 1vw, 2.6rem) * var(--hint-scale, 1));
        padding: calc(18px * var(--hint-scale, 1)) calc(34px * var(--hint-scale, 1));
    }
    
    /* Default hint position for 4K (overridable via debug slider) */
    :root {
        --hint-top: 46%;
    }

    .salesforce-logo img {
        height: 96px;
    }

    .stats-pill {
        width: 340px;
        padding: 22px 36px;
    }

    .stats-number {
        font-size: clamp(3rem, 2rem + 2vw, 4rem);
    }

    .stats-label {
        font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.4rem);
    }

    .timeline-container {
        height: 600px;
    }

    .year-markers {
        height: 64px;
        left: 100px;
        right: 100px;
    }

    .year-marker {
        font-size: 1.3rem;
        padding-left: 48px;
    }

    .timeline-events {
        left: 100px;
        right: 100px;
        bottom: 96px;
        height: 440px;
    }

    .event-dot {
        width: 14px;
        height: 14px;
        border-width: 4px;
    }

    .event-content {
        width: var(--text-max-width, 300px);
    }

    .event-content h3 {
        font-size: 1.7rem;
    }

    .event-content h4 {
        font-size: 1.15rem;
    }

    .event-content p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    body::after {
        width: 420px;
        height: 420px;
        bottom: calc(360px + var(--einstein-y-offset, 0px));
        right: calc(40px - var(--einstein-x-offset, 0px));
    }
    
    body::after {
        width: calc(420px * var(--einstein-scale, 1));
        height: calc(420px * var(--einstein-scale, 1));
    }
}
