:root {
    --bg: #000;
    --text: #f5f5f5;
    --muted: rgba(255, 255, 255, 0.58);
    --hairline: rgba(255, 255, 255, 0.18);
    --blur: 0px;
    --image-scale: 1;
    --image-opacity: 1;
    --intro-opacity: 1;
    --intro-y: 0px;
    --price-opacity: 0;
    --price-y: 24px;
    --contact-opacity: 0;
    --contact-y: 24px;
    --ps-opacity: 0;
    --ps-y: 24px;
    --cue-opacity: 1;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 280px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

/* Landing page ---------------------------------------------------------- */

.landing-page {
    min-height: 100%;
    overflow-x: hidden;
}

.story {
    position: relative;
    height: 400svh;
    min-height: 1800px;
}

.stage {
    position: fixed;
    inset: 0;
    height: 100svh;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: #000;
}

.artwork {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 48px);
    z-index: 0;
}

.artwork::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 46%, transparent 38%, rgba(0, 0, 0, 0.18) 64%, #000 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent 35%, rgba(0, 0, 0, 0.18));
}

.artwork img {
    display: block;
    width: min(94vw, 1180px);
    max-height: 94svh;
    object-fit: contain;
    opacity: var(--image-opacity);
    filter: blur(var(--blur));
    transform: scale(var(--image-scale));
    transform-origin: center center;
    will-change: filter, transform, opacity;
    user-select: none;
    -webkit-user-drag: none;
}

.shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.03) 48%,
        rgba(0, 0, 0, 0.30) 72%,
        rgba(0, 0, 0, 0.68) 100%
    );
}

.story-panel {
    position: absolute;
    left: 50%;
    z-index: 3;
    width: min(92vw, 720px);
    text-align: center;
    pointer-events: none;
}

.intro-panel {
    top: 70%;
    opacity: var(--intro-opacity);
    transform: translate(-50%, var(--intro-y));
    will-change: opacity, transform;
}

.intro-line {
    margin: 0;
    font-size: clamp(1.35rem, 3.1vw, 2.45rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 8px 36px rgba(0, 0, 0, 0.34);
}

.price-panel {
    top: 70%;
    opacity: var(--price-opacity);
    transform: translate(-50%, var(--price-y));
    will-change: opacity, transform;
}

.eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.56);
    font-size: clamp(0.68rem, 1vw, 0.8rem);
    font-weight: 650;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.price {
    margin: 0;
    font-size: clamp(3.4rem, 8vw, 7rem);
    font-weight: 560;
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-shadow: 0 8px 50px rgba(0, 0, 0, 0.36);
}

.price sup {
    position: relative;
    top: -0.22em;
    margin-left: 0.08em;
    font-size: 0.38em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.price-note {
    width: min(90vw, 600px);
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: clamp(0.72rem, 1.15vw, 0.86rem);
    font-weight: 450;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.contact-panel {
    top: 68%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: var(--contact-opacity);
    transform: translate(-50%, var(--contact-y));
    will-change: opacity, transform;
}

.ps-panel {
    top: 70%;
    opacity: var(--ps-opacity);
    transform: translate(-50%, var(--ps-y));
    will-change: opacity, transform;
}

.ps-line {
    margin: 0;
    font-size: clamp(1.25rem, 2.7vw, 2.2rem);
    font-weight: 450;
    line-height: 1.28;
    letter-spacing: -0.018em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 8px 36px rgba(0, 0, 0, 0.34);
}

.ps-line span {
    color: rgba(255, 255, 255, 0.56);
    font-weight: 650;
    letter-spacing: 0.04em;
}

.contact-title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 540;
    letter-spacing: -0.04em;
}

.contact-button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0.8rem 1.15rem 0.82rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.42);
    color: #fff;
    font-size: clamp(0.96rem, 1.7vw, 1.08rem);
    font-weight: 560;
    text-decoration: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-button:hover {
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-2px);
}

.contact-button:focus-visible,
.scroll-cue:focus-visible,
.site-footer a:focus-visible,
.legal-page a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.contact-button span {
    font-size: 1.05em;
    opacity: 0.7;
}

.contact-note {
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.76rem;
    letter-spacing: 0.025em;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: max(52px, calc(env(safe-area-inset-bottom) + 50px));
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: var(--cue-opacity);
    transform: translateX(-50%);
    transition: color 180ms ease;
}

.scroll-cue:hover {
    color: #fff;
}

.chevron {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    animation: cue-bob 1.6s ease-in-out infinite;
}

@keyframes cue-bob {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(5px) rotate(45deg); }
}

.site-footer {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.69rem;
    letter-spacing: 0.025em;
    transform: translateX(-50%);
    white-space: nowrap;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.82);
}

.noscript-note {
    position: fixed;
    left: 50%;
    bottom: 54px;
    z-index: 20;
    width: min(90vw, 560px);
    padding: 12px 16px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.86);
    color: #ddd;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
    transform: translateX(-50%);
}

/* Legal pages ----------------------------------------------------------- */

.legal-page {
    min-height: 100svh;
    padding: clamp(36px, 7vw, 76px) 20px 64px;
    background:
        radial-gradient(circle at 50% -20%, #1a1a1a 0%, #090909 34%, #000 72%),
        #000;
}

.legal-shell {
    width: min(100%, 760px);
    margin: 0 auto;
}

.legal-kicker {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.legal-page h1 {
    margin: 0 0 clamp(34px, 6vw, 56px);
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    font-weight: 540;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.legal-page h2 {
    margin: 2.4rem 0 0.72rem;
    color: #fff;
    font-size: clamp(1.03rem, 2vw, 1.22rem);
    font-weight: 620;
    letter-spacing: -0.015em;
}

.legal-page p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.69);
    font-size: clamp(0.95rem, 1.6vw, 1.02rem);
    line-height: 1.72;
}

.legal-page a {
    color: rgba(255, 255, 255, 0.86);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.mail-placeholder {
    display: inline-block;
    min-width: 8ch;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.4rem;
    color: rgba(255, 255, 255, 0.52) !important;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.back-link:hover {
    color: #fff !important;
}

/* Responsive adjustments ------------------------------------------------ */

@media (max-width: 700px) {
    .story {
        height: 390svh;
        min-height: 1900px;
    }

    .stage {
        position: sticky;
        top: 0;
        height: 100svh;
        min-height: 0;
    }

    .artwork {
        padding: 10px;
    }

    .artwork img {
        width: 100vw;
        max-height: 84svh;
    }

    .intro-panel,
    .price-panel,
    .ps-panel {
        top: 68%;
    }

    .contact-panel {
        top: 66%;
    }

    .site-footer {
        font-size: 0.66rem;
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .intro-panel,
    .price-panel,
    .contact-panel,
    .ps-panel {
        top: 58%;
    }

    .artwork img {
        max-height: 92svh;
        width: min(78vw, 980px);
    }

    .contact-title {
        margin-bottom: 12px;
    }

    .contact-note {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .chevron {
        animation: none;
    }

    .contact-button,
    .scroll-cue,
    .site-footer a {
        transition: none;
    }

    body.reduced-motion .story {
        height: 100svh;
        min-height: 620px;
    }

    body.reduced-motion .artwork img {
        filter: blur(2px);
        transform: scale(1.01);
        opacity: 0.72;
    }

    body.reduced-motion .intro-panel {
        display: none;
    }

    body.reduced-motion .price-panel {
        top: 61%;
        opacity: 1;
        transform: translate(-50%, 0);
    }

    body.reduced-motion .contact-panel {
        top: 76%;
        opacity: 1;
        transform: translate(-50%, 0);
    }

    body.reduced-motion .ps-panel {
        display: none;
    }

    body.reduced-motion .scroll-cue {
        display: none;
    }
}