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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background:
        radial-gradient(circle at 50% 42%, rgba(80, 100, 120, 0.12), transparent 35%),
        #07090b;
    color: #f1f1ed;
    font-family: Georgia, "Times New Roman", serif;
    overflow: hidden;
}

.page {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 30px;
}

.logo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.4vw, 20px);
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(241, 241, 237, 0.55);
    margin-bottom: 65px;
}

.title {
    font-size: clamp(42px, 7vw, 105px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 0.95;
}

.title span {
    display: block;
}

.title .past {
    color: rgba(241, 241, 237, 0.45);
}

.title .present {
    color: #f1f1ed;
}

.title .future {
    color: rgba(241, 241, 237, 0.65);
}

.subtitle {
    margin-top: 42px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.35em;
    color: rgba(241, 241, 237, 0.35);
    text-transform: uppercase;
}

.enter {
    margin-top: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 62px;
    padding: 0 35px;
    border: 1px solid rgba(241, 241, 237, 0.28);
    background: rgba(255, 255, 255, 0.025);
    color: #f1f1ed;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.35em;
    cursor: pointer;
    transition:
        background 0.5s ease,
        border-color 0.5s ease,
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.enter:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(241, 241, 237, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

.enter:active {
    transform: translateY(0);
}

.footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    color: rgba(241, 241, 237, 0.18);
    text-transform: uppercase;
}

.grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 35%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

@media (max-width: 600px) {
    .logo {
        margin-bottom: 45px;
        letter-spacing: 0.3em;
    }

    .title {
        font-size: clamp(34px, 11vw, 58px);
        letter-spacing: 0.04em;
    }

    .subtitle {
        margin-top: 30px;
        letter-spacing: 0.2em;
    }

    .enter {
        margin-top: 42px;
        min-width: 205px;
    }

    .footer {
        bottom: 20px;
        font-size: 8px;
    }
}

.page {
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.page.leaving {
    opacity: 0;
    transform: scale(1.03);
}

.world {
    width: 100%;
    height: 100vh;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            ellipse at center,
            #25333a 0%,
            #10181c 45%,
            #050709 100%
        );

    overflow: hidden;
}

.world-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.75)
        );
}

.world-content {
    position: relative;
    z-index: 2;

    text-align: center;

    max-width: 800px;
    padding: 30px;

    animation: worldIn 2s ease forwards;
}

.world-location {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.45em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
}

.world-date {
    font-size: clamp(28px, 5vw, 60px);
    letter-spacing: 0.08em;
}

.world-time {
    margin-top: 15px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 200;

    letter-spacing: 0.05em;
}

.world-weather {
    margin-top: 25px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;

    letter-spacing: 0.35em;

    color: rgba(255,255,255,0.45);
}

.world-story {
    margin: 80px auto 0;

    max-width: 520px;

    font-size: 20px;
    line-height: 1.7;

    color: rgba(255,255,255,0.75);

    font-style: italic;
}

@keyframes worldIn {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ===== ERA NAVIGATION ===== */

.title .era {
    display: block;

    color: inherit;
    text-decoration: none;

    cursor: pointer;

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        letter-spacing 0.6s ease;
}

.title .era:hover {
    opacity: 1;
    transform: translateX(8px);
    letter-spacing: 0.12em;
}

.title .past:hover {
    color: rgba(241, 241, 237, 0.9);
}

.title .present:hover {
    color: #ffffff;
}

.title .future:hover {
    color: rgba(241, 241, 237, 0.95);
}

.title:hover .era:not(:hover) {
    opacity: 0.28;
}

/* =========================================================
   SIR TIMER — ERA VISUALS
   ========================================================= */

/* ---------- COMMON ---------- */

.world {
    isolation: isolate;
}

.world-content {
    transition:
        opacity 1s ease,
        transform 1s ease,
        filter 1s ease;
}

/* ---------- PAST ---------- */

.world-past {
    background:
        radial-gradient(
            ellipse at 50% 40%,
            #3b403f 0%,
            #1c2020 48%,
            #070808 100%
        );
}

.world-past::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    opacity: 0.13;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.7'/%3E%3C/svg%3E");

    mix-blend-mode: screen;
}

.world-past .world-content {
    filter: sepia(0.08);
}

.world-past .world-era {
    color: rgba(220, 210, 185, 0.55);
}

/* ---------- PRESENT ---------- */

.world-present {
    background:
        radial-gradient(
            ellipse at 50% 40%,
            #34434a 0%,
            #182329 48%,
            #070a0c 100%
        );
}

.world-present .world-content {
    filter: none;
}

.world-present .world-era {
    color: rgba(180, 215, 225, 0.65);
}

/* ---------- FUTURE ---------- */

.world-future {
    background:
        radial-gradient(
            ellipse at 50% 38%,
            #172e3a 0%,
            #09151c 45%,
            #020507 100%
        );
}

.world-future::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 3px,
            rgba(130, 210, 235, 0.025) 4px
        );

    opacity: 0.7;
}

.world-future .world-content {
    text-shadow:
        0 0 20px rgba(120, 210, 240, 0.12),
        0 0 60px rgba(120, 210, 240, 0.06);
}

.world-future .world-time {
    text-shadow:
        0 0 15px rgba(120, 210, 240, 0.18),
        0 0 40px rgba(120, 210, 240, 0.10);
}

.world-future .world-era {
    color: rgba(120, 210, 240, 0.75);
}

/* ---------- ERA LABEL ---------- */

.world-era {
    margin-bottom: 18px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 0.5em;
    text-transform: uppercase;

    transition:
        color 0.6s ease,
        opacity 0.6s ease;
}

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .world-era {
        font-size: 8px;
        letter-spacing: 0.35em;
        margin-bottom: 14px;
    }

    .world-story {
        margin-top: 55px;
        font-size: 18px;
    }

}

/* ===== WORLD SCENE IMAGE ===== */

.world {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

