:root {
    --bg: #0a0a0a;
    --primary: #ffd282;
    --primary-muted: rgba(255, 210, 130, 0.05);
    --font-serif: 'Newsreader', serif;
    --font-sans: 'Manrope', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --font-timer: 'Lora', serif;
}

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

body {
    background-color: var(--bg);
    color: var(--primary);
    font-family: var(--font-sans);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 50;
    mix-blend-mode: overlay;
}

/* Hero ambient glow — mimics the warm radial light in the reference image */
.hero-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: clamp(500px, 80vw, 1100px);
    height: clamp(300px, 60vh, 700px);
    background: radial-gradient(
        ellipse at center,
        rgba(180, 110, 40, 0.55) 0%,
        rgba(140, 75, 20, 0.30) 30%,
        rgba(80, 40, 10, 0.12) 60%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    filter: blur(40px);
}

/* Interactive Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* ─── Top Navigation ─────────────────────────────────── */

.logo {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: #fff;
    z-index: 200;
    opacity: 0.4;
    white-space: nowrap;
}

.school-logo {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    width: clamp(64px, 10vw, 100px);
    height: auto;
    z-index: 200;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.school-logo:hover {
    opacity: 0.9;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    z-index: 200;
    pointer-events: auto;
}

.top-link {
    font-family: var(--font-mono);
    font-size: clamp(0.55rem, 1.8vw, 0.7rem);
    letter-spacing: clamp(0.15em, 1.5vw, 0.4em);
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.4s ease, letter-spacing 0.4s ease;
    cursor: pointer;
    text-align: center;
    /* prevent it from overflowing into logo / badge */
    max-width: calc(100% - 220px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-link:hover {
    opacity: 0.9;
    letter-spacing: clamp(0.18em, 1.8vw, 0.5em);
}

/* ─── Main Content ───────────────────────────────────── */

main {
    position: relative;
    text-align: center;
    z-index: 100;
    padding: 2rem 1rem;
    max-width: 1200px;
    pointer-events: none;
    margin-top: 4rem;
}

.header-group {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.word-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.word {
    display: inline-block;
}

.welcome {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 11vw, 9rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    opacity: 0.95;
    font-weight: 200;
    display: block;
    /* layered text-shadow for the warm glow matching the reference */
    text-shadow:
        0 0 40px rgba(200, 130, 50, 0.55),
        0 0 80px rgba(180, 100, 30, 0.35),
        0 0 140px rgba(150, 80, 20, 0.20);
    margin-bottom: 0.2rem;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 11vw, 9rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    font-weight: 200;
    /* same warm glow on EXYPNOS */
    text-shadow:
        0 0 40px rgba(200, 130, 50, 0.55),
        0 0 80px rgba(180, 100, 30, 0.35),
        0 0 140px rgba(150, 80, 20, 0.20);
}

.tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    letter-spacing: 0.6em;
    text-transform: uppercase;
    opacity: 0.4;
    font-weight: 400;
    font-style: italic;
    display: inline-block;
}

/* ─── Countdown ──────────────────────────────────────── */

.countdown {
    display: flex;
    gap: clamp(1.5rem, 5vw, 4rem);
    justify-content: center;
    pointer-events: auto;
    margin-bottom: 3rem;
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.unit:hover {
    transform: translateY(-10px);
}

.value {
    font-family: var(--font-timer);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
}

.label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.5em;
    opacity: 0.2;
    margin-top: 1.2rem;
}

/* ─── Target Info — fixed readability ───────────────── */

.target-info {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    /* was opacity 0.5 — now solid with a subtle glow so it's legible */
    opacity: 1;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 3rem;
    pointer-events: auto;
    transition: opacity 0.4s ease, letter-spacing 0.4s ease;
    cursor: default;
    text-shadow:
        0 0 12px rgba(255, 210, 130, 0.6),
        0 0 28px rgba(255, 210, 130, 0.25);
}

.live-on {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.8em;
    /* was opacity 0.4 — bumped so "WEBSITE LIVE ON" is actually readable */
    opacity: 0.75;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 210, 130, 0.4);
}

.target-info:hover {
    opacity: 1;
    letter-spacing: 0.45em;
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
    .countdown {
        gap: 1.5rem;
    }

    .tagline {
        letter-spacing: 0.2em;
    }

    /* On small screens the logo + badge share limited space.
       Shrink logo text and give the nav link more room. */
    .logo {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        top: 1.1rem;
        left: 1rem;
    }

    .school-logo {
        width: clamp(52px, 12vw, 72px);
        top: 1rem;
        right: 1rem;
    }

    .top-link {
        /* On mobile reduce max-width more to not collide with logo / badge */
        max-width: calc(100% - 180px);
        font-size: 0.5rem;
        letter-spacing: 0.12em;
    }

    .hero-glow {
        width: 90vw;
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .top-link {
        max-width: calc(100% - 150px);
        font-size: 0.45rem;
        letter-spacing: 0.08em;
    }

    .logo {
        font-size: 0.65rem;
    }
}