:root {
    --bg: #f6f6f3;
    --panel: #ffffff;
    --panel-soft: #f0f0ec;
    --border: #d5d3cb;
    --border-dark: #bcb8ad;
    --text: #121212;
    --muted: #666258;
    --nav: #000000;
    --nav-text: #ffffff;
    --button: #000000;
    --button-text: #ffffff;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    --mono: "Courier New", Courier, monospace;
    --hero-overlay: rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--nav);
    color: var(--nav-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header-inner,
.footer-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brandmark {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    color: var(--nav-text);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.18);
}

main {
    min-height: calc(100vh - 128px);
}

.page-section {
    padding: 22px 0 44px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-heading h1,
.section-heading h2,
.detail-header h1,
.hero h1,
.empty-hero h1 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p,
.detail-copy,
.hero-copy,
.empty-copy,
.empty-hero p,
.footer-inner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 700;
}

.text-link {
    color: var(--text);
}

.hero {
    position: relative;
    min-height: min(74vh, 860px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, var(--hero-overlay) 58%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding: 42px 0 11vh;
}

.hero-content .eyebrow,
.hero-content .hero-copy {
    color: rgba(255, 255, 255, 0.86);
}

.hero-content h1 {
    max-width: 1080px;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.hero-copy {
    max-width: 720px;
    margin-top: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--button);
    background: var(--button);
    color: var(--button-text);
    font-family: var(--mono);
    font-size: 0.92rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.button-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.74);
    color: #ffffff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.94);
}

.empty-hero,
.detail-panel,
.collection-card,
.product-card,
.status-banner {
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.empty-hero {
    padding: 54px 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.collection-card {
    display: flex;
    flex-direction: column;
}

.collection-card-image,
.product-image-link {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--panel-soft);
    border-bottom: 1px solid var(--border);
}

.collection-card-image img,
.product-image-link img {
    height: 100%;
    object-fit: cover;
}

.collection-card-body,
.product-body {
    padding: 14px;
}

.collection-card h2,
.product-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.collection-card p,
.product-card p {
    margin: 0;
    color: var(--muted);
}

.detail-panel {
    padding: 20px;
}

.detail-hero-band {
    width: 100%;
    aspect-ratio: 4 / 1;
    min-height: 180px;
    max-height: 320px;
    border: 1px solid var(--border);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.detail-stage {
    margin-top: 22px;
}

.detail-copy-panel {
    min-width: 0;
}

.detail-header {
    margin-bottom: 18px;
}

.detail-header h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.detail-copy {
    max-width: 900px;
    margin-top: 12px;
}

.reveal-gallery-shell {
    margin-top: 20px;
}

.reveal-gallery {
    position: relative;
    display: none;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel-soft);
}

.reveal-pane {
    --reveal-slice: 25%;
    position: absolute;
    top: 0;
    left: calc(var(--pane-index) * var(--reveal-slice));
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: -12px 0 18px rgba(0, 0, 0, 0.14);
    transition: transform 0.42s ease, box-shadow 0.2s ease;
    z-index: var(--pane-z);
    outline: none;
    cursor: pointer;
}

.reveal-pane:hover,
.reveal-pane:focus-visible {
    transform: translateX(calc(-1 * (100% - var(--reveal-slice))));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.mobile-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mobile-gallery-tile {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--panel-soft);
}

.products-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.product-price {
    margin: 10px 0 14px;
    color: var(--text);
    font-weight: 700;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.search-form input {
    flex: 1 1 360px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-dark);
    background: #ffffff;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.95rem;
}

.status-banner {
    margin-top: 16px;
    padding: 12px 14px;
    color: var(--text);
}

.site-footer {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--nav);
    color: var(--nav-text);
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.86);
}

.image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0ec, #dfddd4);
}

@media (min-width: 981px) and (hover: hover) {
    .detail-stage {
        display: grid;
        grid-template-columns: minmax(260px, 0.88fr) minmax(360px, 1.12fr);
        gap: 0;
        align-items: start;
        overflow: hidden;
    }

    .detail-copy-panel {
        padding: 14px 28px 0 0;
    }

    .detail-gallery-column {
        min-width: 0;
    }

    .reveal-gallery-shell {
        margin-top: 0;
    }

    .reveal-gallery {
        display: block;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .mobile-detail-gallery {
        display: none;
    }
}

@media (max-width: 980px) {
    .site-shell {
        width: min(1500px, calc(100% - 32px));
    }

    .detail-hero-band {
        aspect-ratio: 16 / 6;
    }

    .section-heading h1,
    .section-heading h2,
    .detail-header h1,
    .empty-hero h1 {
        font-size: 1.9rem;
    }

    .hero {
        min-height: 68vh;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(1500px, calc(100% - 24px));
    }

    .site-header-inner,
    .footer-inner {
        min-height: 56px;
    }

    .page-section {
        padding: 18px 0 32px;
    }

    .detail-panel {
        padding: 14px;
    }

    .detail-hero-band {
        min-height: 140px;
    }

    .mobile-detail-gallery,
    .collection-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        padding: 10px;
    }

    .search-form input {
        flex-basis: 100%;
    }
}
