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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a url('/slide_01.jpg') center center / cover no-repeat fixed;
    color: #fff;
    overflow-x: hidden;
    min-height: 100dvh;
    position: relative;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1600px;
    height: 100dvh;
    margin: 0 auto;
    padding: 2vh 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5vh;
    overflow: hidden;
}

/* --- Title ------------------------------------------------------------ */

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, min(8vw, 8vh), 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* warm gold gradient, painted into the text, so AON reads as the one
       warm accent against the cool-blue countdowns */
    background: linear-gradient(45deg, #f5d488, #d9a441, #f5d488);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(217, 164, 65, 0.8));
    animation: gradientShift 3s ease infinite;
    transition: transform 0.05s;   /* glitch.js nudges transform */
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Milestones (each date + its countdown) --------------------------- */

.milestones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 7vh, 4rem);
    width: 100%;
    min-height: 0;
    flex-shrink: 1;
}

.milestone {
    display: flex;
    flex-direction: column-reverse;   /* date on top, countdown beneath */
    align-items: center;
    gap: 0.8vh;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* The current (next un-passed) milestone stands out; the rest recede. */
.milestone.is-current {
    transform: scale(1.15);
}

.milestone.is-passed,
.milestone.is-upcoming {
    opacity: 0.5;
}

/* A passed date gets struck through -- the countdown itself is left alone. */
.milestone.is-passed .date-display {
    text-decoration: line-through;
    text-decoration-thickness: 0.08em;
}

/* --- Countdown clock -------------------------------------------------- */

.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 3vw, 60px);
    width: 100%;
    min-height: 0;
    flex-shrink: 1;
}

/* Days-only mode: hide the hours/minutes/seconds units and separators. */
.countdown.days-only .time-separator,
.countdown.days-only .time-unit:not(.unit-days) {
    display: none;
}

.time-unit {
    text-align: center;
}

.time-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, min(5vw, 6vh), 3.5rem);
    font-weight: 900;
    color: #fff;
    display: inline-block;
    text-shadow:
        0 0 18px rgba(134, 176, 214, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.time-label {
    font-size: clamp(0.45rem, min(1.2vw, 1.6vh), 0.9rem);
    font-weight: 500;
    color: #55708c;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5vh;
    opacity: 0.9;
}

.time-separator {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, min(4vw, 5vh), 2.8rem);
    font-weight: 900;
    color: #86b0d6;
    align-self: flex-start;
    padding-top: 0.1em;
    text-shadow:
        0 0 20px rgba(134, 176, 214, 1),
        0 0 40px rgba(134, 176, 214, 0.6);
    animation: separatorFlicker 1.5s ease-in-out infinite;
}

.time-separator:nth-of-type(2) { animation-delay: 0.5s; }
.time-separator:nth-of-type(3) { animation-delay: 1.0s; }

@keyframes separatorFlicker {
    0%, 100% { opacity: 1; color: #86b0d6; }
    30% { opacity: 0.3; color: #55708c; }
    60% { opacity: 1; color: #55708c; }
    80% { opacity: 0.6; color: #86b0d6; }
}

/* --- Date line -------------------------------------------------------- */

.date-display {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.85rem, min(2.5vw, 3vh), 1.8rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.2em;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(134, 176, 214, 0.3);
}

/* --- Logo plaque ------------------------------------------------------ */

.site-logo {
    display: block;
    width: clamp(60px, 10vw, 110px);
    height: auto;
    margin: 30px auto 0;
    padding: 14px;
    background: rgba(10, 14, 22, 0.7);
    border: 1px solid rgba(134, 176, 214, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

/* --- Corner accents --------------------------------------------------- */

.corner-accent {
    position: fixed;
    width: 100px;
    height: 100px;
    border-style: solid;
    border-color: #86b0d6;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.corner-accent.top-left {
    top: 20px;
    left: 20px;
    border-width: 3px 0 0 3px;
    box-shadow: 0 0 20px rgba(134, 176, 214, 0.5);
}

.corner-accent.top-right {
    top: 20px;
    right: 20px;
    border-width: 3px 3px 0 0;
    border-color: #55708c;
    box-shadow: 0 0 20px rgba(85, 112, 140, 0.5);
}

.corner-accent.bottom-left {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 3px 3px;
    border-color: #55708c;
    box-shadow: 0 0 20px rgba(85, 112, 140, 0.5);
}

.corner-accent.bottom-right {
    bottom: 20px;
    right: 20px;
    border-width: 0 3px 3px 0;
    box-shadow: 0 0 20px rgba(134, 176, 214, 0.5);
}

@media (max-width: 768px) {
    .corner-accent {
        width: 50px;
        height: 50px;
    }
}

/* --- Accessibility ---------------------------------------------------- */

/* Honour the OS "reduce motion" preference. The page animates the title
   gradient/jitter, the pulsing digits and the flickering separators;
   neutralise all of it for visitors who ask for less motion -- layout and
   content stay fully intact, just still. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
