/* =============================================================================
   Race Culturē — Aesthetic Racing
   Editorial / vintage-motorsport visual language
   ========================================================================= */

:root {
    /* Palette */
    --bg:           #ebe5d6;   /* aged paper / cream */
    --bg-alt:       #e2dbc8;   /* slightly darker cream */
    --paper:        #f3eedf;   /* card paper */
    --ink:          #0d0d0d;   /* near-black */
    --ink-soft:     #2a2620;   /* warm dark */
    --ink-mute:     #6f685a;   /* muted text */
    --rule:         #1d1a13;   /* hairline rule */
    --rule-soft:    #cdc6b3;
    --accent:       #a51c1c;   /* racing red, used sparingly */
    --gold:         #b08a3e;

    /* Typography */
    --serif:        'Playfair Display', 'DM Serif Display', Georgia, serif;
    --serif-display:'DM Serif Display', 'Playfair Display', Georgia, serif;
    --sans:         'Inter', system-ui, sans-serif;
    --mono:         'JetBrains Mono', ui-monospace, Menlo, monospace;

    --nav-h: 64px;
    --announce-h: 30px;

    --t-fast: 0.18s ease;
    --t-med:  0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga", "calt";
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Grain texture overlay (vintage paper feel) ===== */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
    opacity: 0.18;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.4'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== Macron diacritic on the brand mark ===== */
.macron {
    position: relative;
    display: inline-block;
    font-style: italic;
    margin-left: 1px;
}
.macron::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 12%;
    top: -0.05em;
    height: 0.07em;
    background: currentColor;
    border-radius: 2px;
}

/* ===== Brand logo PNGs (placed in assets/img/) ===== */
.logo-head { display: block; height: auto; user-select: none; }
.logo-head--lg { width: min(82vw, 820px); }

/* The PNGs supplied by the user have white linework on a black field, so
   we invert the dark areas to keep them on the cream background. The
   `mix-blend-mode: multiply` strips the black background while preserving
   the figure's contour. */
.logo-blend {
    mix-blend-mode: multiply;
    filter: contrast(1.1);
}
/* If the source PNG is white on black, this turns it dark on cream */
.logo-invert {
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: multiply;
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--ink);
    display: grid;
    place-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-mark img { animation: load-bob 1.6s ease-in-out infinite alternate; }
@keyframes load-bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

/* ===== Announcement Bar ===== */
.announcement-bar {
    background: var(--ink);
    color: var(--bg);
    height: var(--announce-h);
    overflow: hidden;
    position: relative;
    z-index: 100;
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
}
.marquee { display: flex; height: 100%; align-items: center; width: 100%; overflow: hidden; }
.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 22px;
    padding-right: 22px;
    animation: marquee 50s linear infinite;
    white-space: nowrap;
}
.marquee-content .dot { opacity: 0.5; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ===== Navigation ===== */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 90;
    height: var(--nav-h);
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: background var(--t-med), border-color var(--t-med), backdrop-filter var(--t-med);
}
.nav-header.scrolled {
    background: rgba(235, 229, 214, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--rule-soft);
}
.nav-container {
    max-width: 1480px;
    margin: 0 auto;
    height: 100%;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}
.nav-left { display: flex; gap: 24px; align-items: center; }
.nav-right { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }

.nav-link--small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--ink);
    transition: opacity var(--t-fast);
}
.nav-link--small:hover { opacity: 0.55; }

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}
.nav-logo-img {
    height: clamp(34px, 6vw, 56px);
    width: auto;
    /* If the source PNG has a white background, multiply blend strips it
       on the cream page background. Transparent PNGs are unaffected. */
    mix-blend-mode: multiply;
}

.nav-icon {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--ink);
    transition: background var(--t-fast);
    position: relative;
}
.nav-icon:hover { background: rgba(13,13,13,0.06); }
.cart-count {
    position: absolute;
    top: 2px; right: 0;
    min-width: 16px; height: 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 10px;
    font-weight: 600;
    display: grid; place-items: center;
    padding: 0 4px;
    font-family: var(--sans);
}

@media (max-width: 980px) {
    .nav-container {
        padding: 0 18px;
        gap: 14px;
        grid-template-columns: auto 1fr auto;
    }
    .nav-left { gap: 16px; }
    .nav-right { gap: 10px; }
}

@media (max-width: 720px) {
    .nav-header { height: 58px; }
    .nav-container {
        padding: 0 14px;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }
    .nav-left { min-width: 0; }
    .nav-link--desktop, .nav-icon--desktop { display: none; }
    .nav-link--small {
        font-size: 10px;
        letter-spacing: 0.16em;
    }
    .nav-logo { justify-content: center; }
    .nav-logo-img { height: 34px; }
    .nav-icon {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        font-size: 9px;
        letter-spacing: 0.12em;
    }
    .marquee-content {
        gap: 14px;
        padding-right: 14px;
    }
    .nav-left { gap: 10px; }
    .nav-link--small {
        font-size: 9px;
        letter-spacing: 0.1em;
    }
    .nav-right { gap: 6px; }
}

/* =============================================================================
   HERO — Editorial racing poster
   ========================================================================= */
.hero {
    padding: 28px 28px 40px;
    background: var(--bg);
}
.hero-frame {
    position: relative;
    border: 1px solid var(--rule);
    padding: 36px 36px 0;
    background:
        linear-gradient(180deg, rgba(235,229,214,0.6) 0%, rgba(235,229,214,0.0) 12%, rgba(235,229,214,0.0) 60%, rgba(235,229,214,0.4) 100%),
        var(--bg);
    overflow: hidden;
    isolation: isolate;
}

.hero-corner {
    position: absolute;
    top: 22px;
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    line-height: 1.6;
    font-weight: 500;
    color: var(--ink);
    z-index: 4;
}
.hero-corner em { font-style: normal; font-weight: 600; }
.hero-corner--tl { left: 28px; }
.hero-corner--tr { right: 28px; text-align: right; }

.hero-mark {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hero-logo {
    display: block;
    width: min(72%, 880px);
    height: auto;
    mix-blend-mode: multiply;
    margin-bottom: 8px;
}
.hero-tagline {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    font-weight: 500;
    font-size: clamp(11px, 1.2vw, 14px);
    margin-top: clamp(-92px, -8vw, -28px);
    padding-left: 0.6em;
    color: var(--ink);
}
.hero-est {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 400;
    font-size: 10px;
    color: var(--ink-mute);
}

.hero-image {
    position: relative;
    margin-top: 28px;
    height: clamp(280px, 42vw, 540px);
    overflow: hidden;
    z-index: 1;
    background: var(--bg-alt);
}
.hero-image-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.7) contrast(1.05) sepia(0.18) brightness(0.95);
}
.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at center, rgba(235,229,214,0) 60%, rgba(235,229,214,0.55) 100%),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 3px);
    pointer-events: none;
}
.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(235,229,214,0.6) 100%);
}

.hero-bottom-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px 8px 22px;
    margin-top: -1px;
    position: relative;
    z-index: 5;
}
.hero-strip-left, .hero-strip-right {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink);
    line-height: 1.5;
}
.hero-strip-right { justify-content: flex-end; }
.hero-strip-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}
.hero-strip-label em { font-style: normal; color: var(--ink-mute); font-size: 9px; }
.hero-strip-center { display: flex; justify-content: center; }
.hero-car { width: 140px; max-width: 30vw; color: var(--ink); }
.hero-checker {
    width: 32px; height: 18px;
    background:
        linear-gradient(45deg, var(--ink) 25%, transparent 25%) 0 0/8px 8px,
        linear-gradient(-45deg, var(--ink) 25%, transparent 25%) 0 0/8px 8px,
        linear-gradient(45deg, transparent 75%, var(--ink) 75%) 0 0/8px 8px,
        linear-gradient(-45deg, transparent 75%, var(--ink) 75%) 0 0/8px 8px,
        var(--bg);
}
.hero-coords { font-family: var(--mono); font-size: 11px; text-transform: none; letter-spacing: 0.04em; }

.hero-banner {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin: 0 -36px;
    padding: 16px 36px;
    display: flex;
    justify-content: center;
    gap: 22px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.45em;
    font-size: clamp(10px, 1.1vw, 13px);
    font-weight: 500;
    color: var(--ink);
}
.hero-banner-sep { color: var(--ink-mute); }

@media (max-width: 720px) {
    .hero { padding: 16px 14px 24px; }
    .hero-frame { padding: 24px 18px 0; }
    .hero-corner { display: none; }
    .hero-logo { width: min(88%, 520px); }
    .hero-tagline {
        margin-top: -28px;
        letter-spacing: 0.34em;
        padding-left: 0.34em;
    }
    .hero-est {
        letter-spacing: 0.24em;
        font-size: 9px;
    }
    .hero-banner { margin: 0 -18px; padding: 12px 18px; gap: 12px; letter-spacing: 0.25em; }
    .hero-bottom-strip { grid-template-columns: 1fr; text-align: center; }
    .hero-strip-left,
    .hero-strip-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-strip-label {
        align-items: center;
        gap: 1px;
    }
    .hero-strip-right { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-mark {
        padding-top: 20px;
        gap: 2px;
    }
    .hero-logo { width: 100%; }
    .hero-tagline {
        margin-top: -16px;
        font-size: 10px;
        letter-spacing: 0.22em;
        padding-left: 0.22em;
    }
    .hero-image {
        margin-top: 18px;
        height: 300px;
    }
    .hero-bottom-strip {
        gap: 12px;
        padding: 14px 4px 18px;
    }
    .hero-strip-left,
    .hero-strip-right {
        font-size: 9px;
        letter-spacing: 0.14em;
        gap: 10px;
    }
    .hero-strip-label {
        font-size: 10px;
        line-height: 1.05;
    }
    .hero-strip-label em {
        font-size: 8px;
        letter-spacing: 0.08em;
    }
    .hero-car { width: 112px; }
    .hero-coords { font-size: 10px; }
    .hero-banner {
        flex-wrap: wrap;
        row-gap: 6px;
        letter-spacing: 0.14em;
        font-size: 9px;
    }
}

/* =============================================================================
   PRODUCT SECTIONS
   ========================================================================= */
.product-section {
    padding: 80px 28px 40px;
    background: var(--bg);
}
.section-container { max-width: 1480px; margin: 0 auto; }

.section-head {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.section-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--ink-mute);
    font-weight: 500;
}
.section-title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 800px;
}
.section-sub {
    color: var(--ink-mute);
    font-size: 14px;
    letter-spacing: 0.02em;
    max-width: 520px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 460px)  { .product-grid { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
    .product-section {
        padding: 58px 14px 26px;
    }
    .section-head {
        gap: 8px;
        margin-bottom: 28px;
    }
    .section-eyebrow {
        font-size: 10px;
        letter-spacing: 0.18em;
        text-align: center;
    }
    .section-sub {
        font-size: 13px;
        max-width: 32ch;
    }
    .product-info { padding-top: 12px; }
    .product-name { font-size: 16px; }
    .product-price { font-size: 12px; }
    .section-link-wrapper { margin-top: 28px; }
}

@media (hover: none) and (pointer: coarse) {
    .product-sizes {
        transform: none;
        position: static;
        background: var(--ink);
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    .product-card-image {
        display: flex;
        flex-direction: column;
    }
    .product-image-wrapper {
        flex: 1;
    }
}

.product-grid-loading,
.product-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-mute);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.product-grid-loading::after {
    content: '';
    display: inline-block;
    width: 12px; height: 12px;
    border: 1.5px solid var(--rule-soft);
    border-top-color: var(--ink);
    border-radius: 50%;
    margin-left: 10px;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Product card ----- */
.product-card {
    cursor: pointer;
    background: transparent;
    transition: transform var(--t-fast);
    opacity: 0;
    transform: translateY(20px);
}
.product-card.visible { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }

.product-card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
}
.product-card:hover .product-card-image { border-color: var(--rule); }

.product-image-wrapper { width: 100%; height: 100%; }
.product-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.4s ease;
    filter: grayscale(0.04) contrast(1.02);
}
.product-card:hover .product-image { transform: scale(1.04); }

.product-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 0;
    z-index: 2;
}
.product-badge.badge-new { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.product-wishlist {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--bg);
    color: var(--ink);
    border-radius: 50%;
    z-index: 2;
    transition: transform var(--t-fast), color var(--t-fast);
}
.product-wishlist:hover { color: var(--accent); }
.product-wishlist.active { color: var(--accent); }
.product-wishlist.active svg { fill: var(--accent); }

.product-sizes {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(13,13,13,0.85));
    padding: 14px 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    transform: translateY(100%);
    transition: transform var(--t-med);
    z-index: 2;
}
.product-card:hover .product-sizes { transform: none; }
.size-option {
    color: var(--bg);
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
    min-width: 32px;
    text-align: center;
}
.size-option:hover { background: var(--bg); color: var(--ink); }

.product-info {
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.product-name {
    font-family: var(--serif);
    font-weight: 600;
    font-style: italic;
    font-size: 17px;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.product-price {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    letter-spacing: 0.04em;
}
.color-swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatch {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1px solid var(--rule-soft);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform var(--t-fast);
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { outline: 1px solid var(--ink); outline-offset: 2px; }

.section-link-wrapper { text-align: center; margin-top: 44px; }
.section-link {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-weight: 500;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px;
    color: var(--ink);
    transition: opacity var(--t-fast);
}
.section-link:hover { opacity: 0.6; }

/* =============================================================================
   BRAND FEATURE
   ========================================================================= */
.brand-feature {
    padding: 24px 28px 90px;
    background:
        radial-gradient(circle at top left, rgba(176, 138, 62, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(243, 238, 223, 0.94), rgba(226, 219, 200, 0.58)),
        var(--bg);
}
.brand-feature-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.45fr);
    gap: 32px;
    align-items: stretch;
}
.brand-feature-copy {
    border: 1px solid var(--rule);
    background: rgba(243, 238, 223, 0.78);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 100%;
}
.brand-feature-copy .section-title,
.brand-feature-copy .section-sub {
    text-align: left;
    max-width: none;
}
.brand-feature-copy .section-title {
    opacity: 1;
    transform: none;
    font-size: clamp(30px, 4vw, 54px);
}
.brand-feature-stamps {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
}
.brand-stamp {
    width: 120px;
    height: 120px;
    border: 1px solid var(--rule);
    background: rgba(255,255,255,0.45);
    display: grid;
    place-items: center;
    padding: 18px;
    overflow: hidden;
}
.brand-stamp--dark {
    background: var(--ink);
    border-color: var(--ink);
}
.brand-stamp-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-stamp-img--head {
    filter: invert(1);
}
.brand-feature-visuals {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(240px, 0.82fr);
    gap: 24px;
}
.brand-feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--paper);
    min-height: 100%;
}
.brand-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.16);
    pointer-events: none;
}
.brand-feature-card--wide,
.brand-feature-card--poster {
    min-height: 560px;
}
.brand-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.03) saturate(0.92);
}

/* =============================================================================
   MANIFESTO STRIP
   ========================================================================= */
.manifesto {
    padding: 80px 28px;
    background: var(--ink);
    color: var(--bg);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}
.manifesto-inner {
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2.4fr 1fr;
    gap: 36px;
    align-items: center;
}
.manifesto-coords {
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.18em;
    line-height: 1.7;
}
.manifesto-coords .label { display: block; opacity: 0.55; }
.manifesto-coords .value { display: block; font-size: 14px; }
.manifesto-coords--right { text-align: right; }
.manifesto-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.manifesto-seal {
    width: 72px;
    height: auto;
    opacity: 0.92;
    margin-bottom: 4px;
}
.manifesto-text em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(22px, 3.2vw, 36px);
    line-height: 1.2;
    color: var(--bg);
}
.manifesto-text p {
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(235,229,214,0.7);
    letter-spacing: 0.04em;
    line-height: 1.7;
}
@media (max-width: 760px) {
    .brand-feature { padding: 18px 14px 54px; }
    .brand-feature-grid { grid-template-columns: 1fr; }
    .brand-feature-copy { padding: 24px 20px; }
    .brand-feature-visuals { grid-template-columns: 1fr; }
    .brand-feature-card--wide,
    .brand-feature-card--poster { min-height: 360px; }
    .manifesto-inner { grid-template-columns: 1fr; text-align: center; }
    .manifesto-coords, .manifesto-coords--right { text-align: center; }
}

@media (max-width: 480px) {
    .brand-feature-copy { padding: 20px 16px; }
    .brand-feature-stamps {
        gap: 10px;
    }
    .brand-stamp {
        width: calc(50% - 5px);
        height: 96px;
        padding: 14px;
    }
    .brand-feature-card--wide,
    .brand-feature-card--poster { min-height: 260px; }
    .manifesto {
        padding: 52px 14px;
    }
    .manifesto-text p {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* =============================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--rule);
    padding: 70px 28px 28px;
    color: var(--ink);
}
.footer-container {
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
}
.footer-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-logo-img {
    width: 220px; height: auto;
    mix-blend-mode: multiply;
}
.footer-mini-marks {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-mini-wordmark {
    width: 140px;
    height: auto;
    mix-blend-mode: multiply;
    opacity: 0.9;
}
.footer-mini-head {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.footer-mark p {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    color: var(--ink-mute);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.footer-col h4 {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    font-size: 13px;
    color: var(--ink-soft);
    transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    max-width: 1480px;
    margin: 50px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--rule-soft);
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    color: var(--ink-mute);
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 760px) {
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-mini-marks { gap: 12px; }
    .footer-mini-wordmark { width: 124px; }
    .footer-mini-head { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
    .footer {
        padding: 52px 14px 20px;
    }
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-bottom {
        margin-top: 34px;
        padding-top: 16px;
        font-size: 9px;
        letter-spacing: 0.14em;
    }
}

/* =============================================================================
   CART DRAWER
   ========================================================================= */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(13,13,13,0.55);
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cart-overlay.visible { opacity: 1; }
.cart-overlay[hidden] { display: none; }

.cart-drawer {
    position: fixed; top: 0; right: 0;
    height: 100vh;
    width: 440px; max-width: 100%;
    background: var(--paper);
    z-index: 9100;
    display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1);
    border-left: 1px solid var(--rule);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--rule);
}
.cart-drawer-header h3 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.005em;
}
.cart-drawer-count {
    display: inline-block;
    margin-left: 8px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 0;
    font-size: 10px;
    padding: 3px 8px;
    font-family: var(--mono);
    font-weight: 500;
    vertical-align: middle;
}
.cart-drawer-close {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    transition: background var(--t-fast);
}
.cart-drawer-close:hover { background: rgba(13,13,13,0.06); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--ink-mute);
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
}

.cart-line {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule-soft);
}
.cart-line-img { width: 80px; height: 100px; background: var(--bg-alt); overflow: hidden; }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.04); }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; }
.cart-line-name {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ink);
}
.cart-line-attrs {
    font-family: var(--mono);
    color: var(--ink-mute);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cart-line-qty {
    margin-top: auto;
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap;
}
.qty-btn {
    width: 26px; height: 26px;
    border: 1px solid var(--rule);
    font-size: 14px;
    line-height: 1;
    display: grid; place-items: center;
    transition: background var(--t-fast), color var(--t-fast);
}
.qty-btn:hover { background: var(--ink); color: var(--bg); }
.qty-val {
    min-width: 22px;
    text-align: center;
    font-family: var(--mono);
    font-size: 13px;
}
.cart-line-remove {
    margin-left: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-mute);
    border-bottom: 1px solid var(--ink-mute);
    padding-bottom: 1px;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.cart-line-remove:hover { color: var(--accent); border-color: var(--accent); }
.cart-line-price {
    font-family: var(--mono);
    font-size: 13px;
    align-self: start;
}

.cart-drawer-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--rule);
    background: var(--bg);
}
.cart-subtotal {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    margin-bottom: 4px;
}
.cart-subtotal strong {
    font-family: var(--serif);
    font-weight: 800;
    font-style: normal;
    font-size: 22px;
    letter-spacing: -0.01em;
}
.cart-note {
    font-size: 11px;
    color: var(--ink-mute);
    margin-bottom: 16px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}
.btn-checkout {
    width: 100%;
    background: var(--ink);
    color: var(--bg);
    padding: 16px 22px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
    border: 1px solid var(--ink);
}
.btn-checkout:hover { background: var(--bg); color: var(--ink); }

@media (max-width: 560px) {
    .cart-drawer-header,
    .cart-drawer-body,
    .cart-drawer-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    .cart-line {
        grid-template-columns: 64px 1fr;
        gap: 12px;
    }
    .cart-line-img {
        width: 64px;
        height: 84px;
    }
    .cart-line-price {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }
}

/* =============================================================================
   PRODUCT MODAL
   ========================================================================= */
.product-modal {
    position: fixed; inset: 0;
    z-index: 9200;
    display: grid;
    place-items: center;
}
.product-modal[hidden] { display: none; }

.product-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(13,13,13,0.7);
    backdrop-filter: blur(3px);
}
.product-modal-dialog {
    position: relative;
    background: var(--paper);
    width: min(1080px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--rule);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: modal-pop 0.28s ease;
}
@keyframes modal-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.product-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 40px; height: 40px;
    background: var(--paper);
    border: 1px solid var(--rule);
    display: grid; place-items: center;
    z-index: 2;
    transition: background var(--t-fast), color var(--t-fast);
}
.product-modal-close:hover { background: var(--ink); color: var(--bg); }

.product-modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
}
.product-modal-loading,
.product-modal-error {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: var(--ink-mute);
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
}

.pm-gallery { background: var(--bg-alt); padding: 28px; border-right: 1px solid var(--rule); }
.pm-main-image { aspect-ratio: 3/4; background: var(--paper); overflow: hidden; margin-bottom: 12px; }
.pm-main-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.04) contrast(1.02); }
.pm-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pm-thumb {
    aspect-ratio: 1;
    border: 1px solid var(--rule-soft);
    overflow: hidden;
    background: var(--paper);
    transition: border-color var(--t-fast);
    padding: 0;
}
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumb.active { border-color: var(--ink); border-width: 2px; }

.pm-details {
    padding: 40px 36px;
    display: flex; flex-direction: column; gap: 18px;
}
.pm-title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.pm-price {
    font-family: var(--mono);
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.pm-description {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.7;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    padding: 14px 6px 14px 0;
}
.pm-description p { margin-bottom: 8px; }
.pm-description em { color: var(--ink); font-weight: 500; }
.pm-description strong { font-weight: 600; color: var(--ink); }

.pm-section h4 {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink-mute);
}
.pm-section h4 span { color: var(--ink); margin-left: 4px; }

.pm-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-color {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--rule-soft);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.pm-color:hover { transform: scale(1.1); }
.pm-color.active { outline: 1px solid var(--ink); outline-offset: 3px; }

.pm-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-size {
    min-width: 46px;
    padding: 11px 14px;
    border: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all var(--t-fast);
    background: transparent;
}
.pm-size:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pm-size.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pm-add {
    margin-top: 12px;
    width: 100%;
    background: var(--ink);
    color: var(--bg);
    padding: 16px 22px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--ink);
    transition: background var(--t-fast), color var(--t-fast);
}
.pm-add:hover:not([disabled]) { background: var(--bg); color: var(--ink); }
.pm-add[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 800px) {
    .product-modal-body { grid-template-columns: 1fr; }
    .pm-gallery { border-right: none; border-bottom: 1px solid var(--rule); padding: 20px; }
    .pm-details { padding: 28px 22px; }
    .pm-thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 480px) {
    .product-modal-dialog {
        width: 100vw;
        max-height: 100vh;
        border-left: none;
        border-right: none;
    }
    .product-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    .pm-gallery { padding: 14px; }
    .pm-details { padding: 22px 16px; gap: 16px; }
    .pm-thumbs { grid-template-columns: repeat(4, 1fr); }
    .pm-add {
        letter-spacing: 0.18em;
        font-size: 11px;
    }
}

/* =============================================================================
   TOASTS
   ========================================================================= */
.toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9300;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    background: var(--ink);
    color: var(--bg);
    padding: 14px 20px;
    font-family: var(--sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    max-width: 360px;
    border-left: 3px solid var(--bg);
}
.toast.visible { opacity: 1; transform: none; }
.toast-success { border-left-color: var(--gold); }
.toast-error   { border-left-color: var(--accent); }

@media (max-width: 480px) {
    .cart-drawer { width: 100%; }
    .toast-container {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }
    .toast {
        max-width: none;
        font-size: 11px;
        letter-spacing: 0.12em;
    }
}

/* =============================================================================
   SCROLL REVEAL
   ========================================================================= */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-title.visible { opacity: 1; transform: none; }

body.no-scroll { overflow: hidden; }
