:root {
    --surface: #f8f9fa;
    --surface-low: #f3f4f5;
    --surface-high: #e7e8e9;
    --surface-strong: #dfe3e6;
    --ink: #111316;
    --muted: #5d646c;
    --accent: #b72301;
    --border: #111316;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--surface);
    color: var(--ink);
}

.editorial-grid {
    background-image: radial-gradient(rgba(17, 19, 22, 0.16) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.08;
}

.brutal-shadow {
    box-shadow: 6px 6px 0 var(--border);
}

.brutal-shadow-soft {
    box-shadow: 10px 10px 0 rgba(17, 19, 22, 0.12);
}

.soft-metal {
    background: linear-gradient(135deg, #0f1112 0%, #20252a 100%);
}

.ink-gradient {
    background: linear-gradient(135deg, #101214 0%, #2b3035 100%);
}

.button-lift {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-lift:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--border);
}

.button-lift:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--border);
}

.pixel-button {
    border: 2px solid var(--border);
    background: var(--accent);
    color: #ffffff;
    box-shadow: 6px 6px 0 var(--border);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.pixel-button:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--border);
}

.pixel-button:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--border);
}

.ghost-button {
    border: 2px solid var(--border);
    background: transparent;
    color: var(--ink);
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ghost-button:hover {
    background: var(--surface-low);
    transform: translate(-2px, -2px);
}

.eyebrow {
    letter-spacing: 0.32em;
}

.poster-heading {
    letter-spacing: -0.06em;
    line-height: 0.88;
}

.muted-copy {
    color: var(--muted);
}

.info-panel {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px);
}

.noise-panel {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(17, 19, 22, 0.08) 1px, transparent 0),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 244, 245, 0.92));
    background-size: 24px 24px, cover;
}

[data-comparison-slider] {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

[data-comparison-slider] img {
    pointer-events: none;
}

.comparison-pane {
    position: relative;
    overflow: hidden;
    background: #eceff1;
}

.hero-media-fill {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.06);
    transform-origin: center center;
}

.comparison-pane-after .hero-media-fill {
    filter: saturate(0.96) contrast(0.97);
}

.comparison-pane-before .hero-media-fill {
    filter: grayscale(1) brightness(1.03) contrast(1.02);
}

[data-slider-overlay] {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

[data-slider-overlay] img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

[data-slider-handle] {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--accent);
    z-index: 20;
    will-change: left;
}

[data-slider-handle]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: var(--accent);
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 var(--border);
    background-image: url("../assets/slider-arrow-left.svg"), url("../assets/slider-arrow-right.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: 12px center, calc(100% - 12px) center;
    background-size: 14px auto, 14px auto;
}

[data-slider-handle]::before {
    content: "";
}

[data-comparison-slider][data-slider-style="hero"] .hero-media {
    display: block;
    position: relative;
    z-index: 1;
    inset: auto;
    width: 100%;
    height: 100%;
    padding: clamp(0.5rem, 1.2vw, 0.9rem);
    object-fit: contain;
    object-position: center center;
    transform: none;
}

.hero-gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--border);
    background: #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    transition: background-color 180ms ease, transform 180ms ease;
}

.hero-gallery-button:hover {
    background: var(--accent);
}

.hero-gallery-button:active {
    transform: translateY(1px);
}

.hero-gallery-dot {
    display: inline-flex;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(17, 19, 22, 0.35);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
}

.hero-gallery-dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

.comparison-chip {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(17, 19, 22, 0.88);
    color: #ffffff;
}

.comparison-chip-light {
    border: 1px solid rgba(17, 19, 22, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.manifesto-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.9rem 2.4rem;
}

@media (max-width: 767px) {
    .hero-media-fill {
        transform: scale(1.03);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 640ms ease, transform 640ms ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.asset-row {
    transition: background-color 180ms ease, transform 180ms ease;
}

.asset-row:hover {
    background: #ffffff;
    transform: translateX(4px);
}

.nav-glass {
    background: rgba(248, 249, 250, 0.88);
    backdrop-filter: blur(18px);
}

.cart-rail {
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.98), rgba(243, 244, 245, 0.98));
}

.status-dot {
    display: inline-flex;
    width: 10px;
    height: 10px;
    background: var(--accent);
}

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

    .button-lift,
    .pixel-button,
    .ghost-button,
    .asset-row,
    .reveal-up {
        transition: none !important;
    }
}

@media (pointer: fine) {
    .has-pixel-cursor,
    .has-pixel-cursor * {
        cursor: none !important;
    }

    #custom-pixel-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 12px;
        height: 12px;
        background: var(--accent);
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        box-shadow: 1px 1px 0 var(--border);
    }
}
