:root {
    --paper: #ffffff;
    --paper-warm: #f4f1ed;
    --ink: #2b2b2b;
    --ink-soft: #55514c;
    --line-soft: rgba(43, 43, 43, 0.18);
    --line-faint: rgba(43, 43, 43, 0.08);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(244, 241, 237, 0.82)),
        linear-gradient(180deg, #ffffff 0%, #f8f6f3 100%);
    color: var(--ink);
    font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

.page-shell {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    isolation: isolate;
    perspective: 1600px;
    perspective-origin: 18% 28%;
}

.scene-frame {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #ffffff;
    z-index: 0;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.page-shell::before {
    opacity: 0.34;
    background-image:
        linear-gradient(to right, transparent 0%, transparent calc(50% - 0.5px), rgba(43, 43, 43, 0.08) 50%, transparent calc(50% + 0.5px), transparent 100%),
        repeating-linear-gradient(to right, transparent 0 79px, rgba(43, 43, 43, 0.05) 79px 80px),
        repeating-linear-gradient(to bottom, transparent 0 79px, rgba(43, 43, 43, 0.04) 79px 80px);
    transition: opacity 900ms ease;
}

.page-shell::after {
    background:
        radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18) 48%, rgba(43, 43, 43, 0.12) 120%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

body.is-unlocked .page-shell::before {
    opacity: 0.12;
}

.scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #ffffff;
    filter: blur(12px) grayscale(1) contrast(1.05) brightness(1.08);
    transition: filter 1100ms ease, transform 1500ms cubic-bezier(0.19, 1, 0.22, 1), opacity 900ms ease;
    z-index: 0;
}

body.is-unlocked .scene {
    filter: blur(0) grayscale(1) contrast(1.08) brightness(1.04);
}

.scene-video {
    object-fit: cover;
    object-position: 50% 56%;
    mix-blend-mode: multiply;
    opacity: 0.94;
    transform-origin: 50% 58%;
    transform: scale(1.04);
}

body.is-unlocked .scene-video.is-playing {
    animation: paris-approach 7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes paris-approach {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.22) translate3d(0, 10px, 0);
    }
}

.lock-shell {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 3;
    transition: opacity 700ms ease, visibility 700ms ease;
}

body.is-unlocked .lock-shell {
    opacity: 0;
    visibility: hidden;
}

.lock-panel {
    width: min(560px, calc(100vw - 32px));
    padding: clamp(24px, 4vw, 42px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(43, 43, 43, 0.14);
    box-shadow:
        0 30px 80px rgba(43, 43, 43, 0.09),
        inset 0 0 0 1px rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px);
    transition: transform 800ms cubic-bezier(0.19, 1, 0.22, 1), opacity 700ms ease;
}

body.is-unlocked .lock-panel {
    transform: translateY(-28px) scale(0.98);
    opacity: 0;
}

.lock-panel.is-shaking {
    animation: panel-shake 420ms ease;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(43, 43, 43, 0.72);
}

h1 {
    margin: 0;
    max-width: 12ch;
    font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.intro {
    margin: 18px 0 26px;
    max-width: 40ch;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.65;
}

.unlock-form {
    display: grid;
    gap: 12px;
}

.unlock-form label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(43, 43, 43, 0.72);
}

.unlock-form input {
    width: 100%;
    border: 1px solid rgba(43, 43, 43, 0.18);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    padding: 15px 16px;
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.unlock-form input:focus {
    border-color: rgba(43, 43, 43, 0.4);
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
}

.unlock-form button {
    appearance: none;
    border: 0;
    border-radius: 0;
    padding: 16px 18px;
    background: linear-gradient(180deg, #2f2f2f, #232323);
    color: #ffffff;
    font: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.unlock-form button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(43, 43, 43, 0.18);
}

.unlock-form button:disabled,
.unlock-form input:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-message {
    min-height: 1.5em;
    margin: 14px 0 0;
    color: rgba(43, 43, 43, 0.72);
    font-size: 0.95rem;
}

.form-message.is-error {
    color: #7a2323;
}

.corner-note {
    position: absolute;
    left: clamp(28px, 4vw, 54px);
    top: clamp(92px, 14vh, 150px);
    display: grid;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(-18px, 36px, -260px) rotateX(15deg) scale(0.78);
    transform-origin: 0 50%;
    transition: opacity 1150ms cubic-bezier(0.19, 1, 0.22, 1) 520ms, transform 1300ms cubic-bezier(0.19, 1, 0.22, 1) 520ms, filter 1050ms ease 520ms;
    will-change: transform, opacity, filter;
}

body.is-unlocked .corner-note {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotateX(0) scale(1);
}

.corner-note span {
    font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1;
    color: rgba(43, 43, 43, 0.9);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.corner-note small {
    font-size: clamp(0.92rem, 1.2vw, 1.08rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(43, 43, 43, 0.66);
}

.year-note {
    position: absolute;
    right: clamp(30px, 4.5vw, 62px);
    top: clamp(92px, 13vh, 142px);
    z-index: 2;
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(26px, 30px, -260px) rotateY(-12deg) rotateX(10deg) scale(0.8);
    transform-origin: 100% 50%;
    transition: opacity 1150ms cubic-bezier(0.19, 1, 0.22, 1) 640ms, transform 1300ms cubic-bezier(0.19, 1, 0.22, 1) 640ms, filter 1050ms ease 640ms;
    will-change: transform, opacity, filter;
}

body.is-unlocked .year-note {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotateY(0) rotateX(0) scale(1);
}

.year-note span {
    display: block;
    font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: 0.08em;
    color: rgba(43, 43, 43, 0.76);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.countdown-note {
    position: absolute;
    right: clamp(24px, 4vw, 54px);
    bottom: clamp(56px, 9vh, 84px);
    z-index: 2;
    width: min(480px, calc(100vw - 42px));
    padding: clamp(18px, 3vw, 24px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
    border: 1px solid rgba(43, 43, 43, 0.12);
    box-shadow:
        0 20px 56px rgba(43, 43, 43, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.54);
    backdrop-filter: blur(12px);
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(28px, 34px, -260px) rotateY(-11deg) rotateX(8deg) scale(0.86);
    transform-origin: 100% 100%;
    transition: opacity 1150ms cubic-bezier(0.19, 1, 0.22, 1) 760ms, transform 1300ms cubic-bezier(0.19, 1, 0.22, 1) 760ms, filter 1050ms ease 760ms;
    will-change: transform, opacity, filter;
}

body.is-unlocked .countdown-note {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotateY(0) rotateX(0) scale(1);
}

.countdown-kicker {
    display: block;
    margin-bottom: 16px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(43, 43, 43, 0.66);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.countdown-segment {
    padding-top: 12px;
    border-top: 1px solid rgba(43, 43, 43, 0.12);
}

.countdown-segment span {
    display: block;
    font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    color: rgba(43, 43, 43, 0.88);
    font-variant-numeric: tabular-nums;
}

.countdown-segment small {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(43, 43, 43, 0.58);
}

.countdown-message {
    margin: 16px 0 0;
    color: rgba(43, 43, 43, 0.72);
    font-size: 0.96rem;
    line-height: 1.5;
}

.noscript-banner {
    position: absolute;
    inset-inline: 18px;
    bottom: 18px;
    z-index: 5;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(43, 43, 43, 0.18);
}

@keyframes panel-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-3px);
    }
}

@media (max-width: 700px) {
    .page-shell::before {
        background-image:
            linear-gradient(to right, transparent 0%, transparent calc(50% - 0.5px), rgba(43, 43, 43, 0.08) 50%, transparent calc(50% + 0.5px), transparent 100%),
            repeating-linear-gradient(to right, transparent 0 47px, rgba(43, 43, 43, 0.04) 47px 48px),
            repeating-linear-gradient(to bottom, transparent 0 47px, rgba(43, 43, 43, 0.04) 47px 48px);
    }

    .lock-panel {
        width: min(100%, 520px);
    }

    .intro {
        max-width: none;
    }

    .countdown-note {
        left: 18px;
        right: 18px;
        bottom: 54px;
        width: auto;
        padding: 16px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
    }
}
