@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Mono:wght@400;500&family=Manrope:wght@300;400;500;600&display=swap');


/* =========================================
   GENERAL
========================================= */

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

body {
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
}

.page-shell {
    min-height: 100vh;
    padding: 34px 7vw 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}


/* =========================================
   OPENING PAGE BACKGROUND
========================================= */

.opening-page {
    color: #e9e6df;
    background:
        radial-gradient(ellipse at 72% 48%, rgba(75, 76, 91, 0.19), transparent 43%),
        radial-gradient(ellipse at 12% 90%, rgba(87, 71, 56, 0.12), transparent 35%),
        #090a0d;
}

.opening-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 70px 70px;
}


/* =========================================
   TOP AND BOTTOM LINES
========================================= */

.page-topline,
.page-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
}

.page-topline {
    color: rgba(235, 231, 222, 0.55);
}

.page-footer {
    padding-top: 18px;
    border-top: 1px solid rgba(230, 226, 215, 0.2);
    color: rgba(235, 231, 222, 0.42);
}


/* =========================================
   MAIN LAYOUT
========================================= */

.opening-layout {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 5vw;
}

.opening-copy {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.eyebrow {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #b1a58e;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
}

.eyebrow::before {
    content: "";
    width: 35px;
    height: 1px;
    background: currentColor;
}


/* =========================================
   OPENING TITLE
========================================= */

.opening-title {
    max-width: 760px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(57px, 6.2vw, 94px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -2.5px;
    color: #eeeae2;
}

.opening-title span {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: #bdb4a4;
}

.opening-subtitle {
    margin-top: 28px;
    color: #d6cdbd;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(21px, 2vw, 27px);
    font-style: italic;
    letter-spacing: 0.3px;
}

.opening-description {
    max-width: 470px;
    margin-top: 22px;
    color: rgba(224, 220, 212, 0.55);
    font-size: 13px;
    font-weight: 300;
    line-height: 2;
}


/* =========================================
   ENTER / RETURN LINK
========================================= */

.enter-link {
    width: fit-content;
    margin-top: 45px;
    padding: 0 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 35px;
    border-bottom: 1px solid rgba(226, 216, 196, 0.65);
    color: #eee8da;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    letter-spacing: 2.5px;
    transition: gap 0.35s ease, color 0.35s ease,
                border-color 0.35s ease;
}

.enter-link:hover {
    gap: 52px;
    color: #ffffff;
    border-color: #ffffff;
}

.enter-arrow {
    font-size: 22px;
    line-height: 1;
}


/* =========================================
   INSTRUMENT AREA
========================================= */

.opening-instruments {
    min-height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    position: relative;
}

.opening-instruments::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(225, 218, 204, 0.16);
}

.instrument {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   SPINNING TOP — 3D-STYLE CSS OBJECT
========================================= */

.top-display {
    width: 210px;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 700px;
}

.top-orbit {
    position: absolute;
    width: 175px;
    height: 55px;
    border: 1px solid rgba(218, 202, 173, 0.22);
    border-radius: 50%;
    transform: rotateX(72deg);
}

.top-shadow {
    position: absolute;
    width: 105px;
    height: 27px;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    filter: blur(13px);
    border-radius: 50%;
}

.spinning-top {
    width: 150px;
    height: 205px;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    animation: top-spin 3.6s linear infinite;
    filter: drop-shadow(0 12px 13px rgba(0,0,0,0.35));
}

.top-finial {
    position: absolute;
    z-index: 5;
    width: 27px;
    height: 27px;
    left: 50%;
    top: 4px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 33% 25%, #fff9df, #c6b89a 30%, #74664e 68%, #39332b);
    box-shadow:
        inset -4px -4px 7px rgba(0,0,0,0.55),
        inset 3px 3px 5px rgba(255,255,255,0.65),
        0 2px 5px rgba(0,0,0,0.5);
}

.top-stem {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 25px;
    width: 13px;
    height: 40px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        #494238,
        #e8dfc9 28%,
        #8f8269 57%,
        #332e27
    );
    border-radius: 6px 6px 2px 2px;
    box-shadow: inset 1px 0 3px rgba(255,255,255,0.4);
}

.top-body {
    position: absolute;
    z-index: 3;
    width: 150px;
    height: 140px;
    top: 52px;
    left: 0;
    clip-path: polygon(
        42% 0%, 58% 0%, 61% 10%, 74% 20%,
        91% 31%, 100% 43%, 93% 54%, 76% 64%,
        59% 72%, 54% 86%, 50% 100%,
        46% 86%, 41% 72%, 24% 64%, 7% 54%,
        0% 43%, 9% 31%, 26% 20%, 39% 10%
    );
    background:
        linear-gradient(
            90deg,
            #3f3b34 0%,
            #b8ad98 18%,
            #f0e5cc 31%,
            #96866c 47%,
            #e1d5be 61%,
            #706654 80%,
            #302c26 100%
        );
    box-shadow:
        inset 0 6px 12px rgba(255,255,255,0.55),
        inset 0 -12px 20px rgba(0,0,0,0.65);
}

.top-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 12%,
        rgba(255,255,255,0.72) 28%,
        rgba(255,255,255,0.08) 43%,
        transparent 58%
    );
}

.top-body::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 30%,
        transparent 20%,
        rgba(0,0,0,0.32) 100%
    );
}

.top-band {
    position: absolute;
    z-index: 2;
    left: 5%;
    right: 5%;
    top: 47%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #544a39,
        #e9d8ad,
        #6c5d44,
        #f4e7c9,
        #514632
    );
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        0 -2px 4px rgba(255,255,255,0.15);
}

.top-tip {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 185px;
    width: 17px;
    height: 20px;
    transform: translateX(-50%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background: linear-gradient(
        90deg,
        #5c5344,
        #f0e4c9 45%,
        #524a3d
    );
}

@keyframes top-spin {
    0% {
        transform: rotateY(0deg) rotateX(9deg) translateY(0);
    }
    50% {
        transform: rotateY(180deg) rotateX(13deg) translateY(-3px);
    }
    100% {
        transform: rotateY(360deg) rotateX(9deg) translateY(0);
    }
}


/* =========================================
   ANALOG CLOCK
========================================= */

.clock-face {
    width: 180px;
    height: 180px;
    position: relative;
    border: 1px solid rgba(221, 211, 192, 0.58);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,0.09), transparent 48%),
        rgba(255,255,255,0.025);
    box-shadow:
        0 0 35px rgba(219, 207, 180, 0.07),
        inset 0 0 25px rgba(255,255,255,0.025);
}

.clock-face::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(221, 211, 192, 0.19);
    border-radius: 50%;
}

.clock-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(var(--x), var(--y));
    color: rgba(231, 224, 209, 0.84);
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 500;
}

.clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    border-radius: 5px;
}

.hour-hand {
    width: 4px;
    height: 43px;
    margin-left: -2px;
    background: #e6dece;
    animation: hand-hour 43200s linear infinite;
}

.minute-hand {
    width: 2.5px;
    height: 57px;
    margin-left: -1.25px;
    background: #c6b89e;
    animation: hand-minute 3600s linear infinite;
}

.second-hand {
    width: 1px;
    height: 66px;
    margin-left: -0.5px;
    background: #a87b59;
    animation: hand-second 60s steps(60) infinite;
}

.clock-center {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #e6dece;
    box-shadow: 0 0 5px rgba(255,255,255,0.4);
}

@keyframes hand-hour {
    from { transform: rotate(300deg); }
    to   { transform: rotate(660deg); }
}

@keyframes hand-minute {
    from { transform: rotate(60deg); }
    to   { transform: rotate(420deg); }
}

@keyframes hand-second {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* =========================================
   FLIP WORLD — INVERTED COLOR PALETTE
========================================= */

.flip-page {
    color: #171717;
    background:
        radial-gradient(ellipse at 73% 45%, rgba(80, 77, 68, 0.12), transparent 44%),
        radial-gradient(ellipse at 15% 90%, rgba(120, 115, 103, 0.10), transparent 35%),
        #e8e5dc;
}

.flip-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 70px 70px;
}

.flip-page .page-topline {
    color: rgba(20, 20, 20, 0.55);
}

.flip-page .page-footer {
    color: rgba(20, 20, 20, 0.48);
    border-top-color: rgba(20, 20, 20, 0.25);
}

.flip-page .eyebrow {
    color: #6c6254;
}

.flip-page .opening-subtitle {
    color: #514c43;
}

.flip-page .opening-description {
    color: rgba(24, 24, 24, 0.62);
}

.flip-title {
    max-width: 680px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(70px, 8vw, 115px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -3px;
    color: #171717;
}

.flip-title span {
    display: block;
    font-style: italic;
    color: #716b60;
}

.flip-page .enter-link {
    color: #191919;
    border-bottom-color: rgba(25, 25, 25, 0.65);
}

.flip-page .enter-link:hover {
    color: #777064;
    border-color: #777064;
}


/* =========================================
   FLIP WORLD SPINNING TOP
========================================= */

.flip-page .top-orbit {
    border-color: rgba(30, 30, 30, 0.2);
}

.flip-page .top-shadow {
    background: rgba(40, 40, 40, 0.28);
}

.flip-page .top-finial {
    background:
        radial-gradient(circle at 33% 25%, #ffffff, #8f8b83 35%, #4b4944 70%, #202020);
}

.flip-page .top-stem {
    background: linear-gradient(
        90deg,
        #252525,
        #d8d6d0 28%,
        #77746e 57%,
        #1e1e1e
    );
}

.flip-page .top-body {
    background: linear-gradient(
        90deg,
        #171717 0%,
        #77736b 18%,
        #dedbd2 31%,
        #6e6b64 47%,
        #c3c0b7 61%,
        #4b4944 80%,
        #171717 100%
    );
}

.flip-page .top-band {
    background: linear-gradient(
        90deg,
        #252525,
        #f1eee5,
        #4a4843,
        #e4e1d7,
        #202020
    );
}

.flip-page .top-tip {
    background: linear-gradient(
        90deg,
        #242424,
        #e7e4dc 45%,
        #282828
    );
}


/* =========================================
   GHOST CLOCK — NO NUMBERS, NO CLEAR TIME
========================================= */

.ghost-clock-instrument {
    min-height: 240px;
}

.ghost-clock {
    width: 190px;
    height: 190px;
    position: relative;
    opacity: 0.52;
    filter: blur(5px);
    transform: rotate(-13deg);
}

.ghost-clock-ring {
    position: absolute;
    inset: 12px;
    border: 3px solid rgba(40, 38, 32, 0.22);
    border-radius: 50%;
    filter: blur(5px);
    box-shadow:
        0 0 24px 8px rgba(40, 38, 32, 0.08),
        inset 0 0 22px rgba(40, 38, 32, 0.08);
}

.ghost-hour {
    position: absolute;
    width: 5px;
    height: 52px;
    top: 43px;
    left: 91px;
    transform: rotate(42deg);
    transform-origin: 50% 100%;
    background: rgba(40, 38, 32, 0.3);
    border-radius: 50%;
    filter: blur(5px);
}

.ghost-minute {
    position: absolute;
    width: 4px;
    height: 70px;
    top: 25px;
    left: 91px;
    transform: rotate(135deg);
    transform-origin: 50% 100%;
    background: rgba(40, 38, 32, 0.24);
    border-radius: 50%;
    filter: blur(6px);
}

.ghost-center {
    position: absolute;
    width: 17px;
    height: 17px;
    top: 87px;
    left: 87px;
    border-radius: 50%;
    background: rgba(40, 38, 32, 0.18);
    filter: blur(7px);
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .page-shell {
        padding: 25px 6vw 22px;
    }

    .opening-layout {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 65px 0;
    }

    .opening-copy {
        max-width: 720px;
    }

    .opening-instruments {
        width: min(100%, 460px);
        margin: 0 auto;
    }

    .opening-title {
        font-size: clamp(55px, 9vw, 82px);
    }

    .flip-title {
        font-size: clamp(70px, 11vw, 100px);
    }
}

@media (max-width: 520px) {

    .page-topline,
    .page-footer {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .opening-layout {
        padding: 55px 0;
    }

    .opening-title {
        font-size: 55px;
        letter-spacing: -1.5px;
    }

    .flip-title {
        font-size: 72px;
        letter-spacing: -2px;
    }

    .opening-instruments {
        transform: scale(0.88);
        transform-origin: center top;
        margin-bottom: -30px;
    }

    .enter-link {
        font-size: 11px;
        gap: 22px;
    }

    .opening-description {
        font-size: 12px;
    }
}

/* Make the opening page clock follow real time */
.opening-page .clock-hand {
    animation: none !important;
    transition: none !important;
    transform-origin: 50% 100%;
}