:root {
    --bg: #0b0b0c;
    --panel: #151517;
    --panel-soft: #1c1c1f;
    --text: #f7f3e8;
    --muted: #b9b4aa;
    --gold: #d9ab45;
    --gold-light: #f3d687;
    --red: #b42318;
    --line: rgba(255, 255, 255, 0.11);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -20%, rgba(217, 171, 69, 0.18), transparent 36rem),
        linear-gradient(180deg, #111113 0%, var(--bg) 65%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(54px, 9vw, 110px) 0 clamp(32px, 5vw, 60px);
    text-align: center;
}

.eyebrow,
.statement-kicker {
    margin: 0 0 14px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 8vw, 6.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.92;
    text-wrap: balance;
}

.intro {
    max-width: 650px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.gallery {
    max-width: 960px;
    margin: 0 auto;
}

.stage {
    position: relative;
    display: grid;
    min-height: min(78vh, 930px);
    overflow: hidden;
    border: 1px solid rgba(217, 171, 69, 0.4);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 40%),
        var(--panel);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 35%, rgba(217, 171, 69, 0.11), transparent 58%);
}

.slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: clamp(14px, 3vw, 28px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px) scale(0.99);
    transition: opacity 360ms ease, transform 360ms ease, visibility 360ms;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 790px;
    object-fit: contain;
    border-radius: 16px;
}

.slide figcaption {
    display: flex;
    gap: 8px 18px;
    align-items: baseline;
    justify-content: space-between;
    padding: 22px 4px 2px;
    border-top: 1px solid var(--line);
}

.slide figcaption strong {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2.3vw, 1.7rem);
}

.slide figcaption span {
    color: var(--muted);
    text-align: right;
    line-height: 1.5;
}

.nav-button {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(10, 10, 11, 0.76);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
    border-color: var(--gold-light);
    background: rgba(180, 35, 24, 0.9);
    outline: none;
    transform: translateY(-50%) scale(1.06);
}

.nav-previous {
    left: 18px;
}

.nav-next {
    right: 18px;
}

.gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8px 0;
}

.counter {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #525257;
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.dot.is-active {
    width: 34px;
    background: var(--gold);
}

.dot:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.statement {
    max-width: 760px;
    margin: clamp(80px, 12vw, 150px) auto;
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: 0 22px 22px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.statement h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.statement p:last-child {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 38px;
    border-top: 1px solid var(--line);
    color: #858187;
    font-size: 0.9rem;
}

.no-script-gallery {
    display: grid;
    gap: 32px;
    max-width: 900px;
    margin: 50px auto;
}

.no-script-gallery img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        padding-top: 48px;
    }

    .stage {
        min-height: 72vh;
        border-radius: 20px;
    }

    .slide {
        padding: 10px;
    }

    .slide img {
        border-radius: 12px;
    }

    .slide figcaption {
        display: block;
        padding: 16px 4px 4px;
    }

    .slide figcaption span {
        display: block;
        margin-top: 7px;
        text-align: left;
        font-size: 0.92rem;
    }

    .nav-button {
        top: auto;
        bottom: 82px;
        width: 42px;
        height: 42px;
    }

    .nav-previous {
        left: 20px;
    }

    .nav-next {
        right: 20px;
    }

    footer {
        display: block;
        text-align: center;
    }

    footer span {
        display: block;
        margin: 6px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
