﻿:root {
    --bg: #080a0a;
    --panel: #0c0e0e;
    --panel-2: #101212;
    --text: #e7e3dc;
    --muted: #8b8a85;
    --muted-2: #555853;
    --line: rgba(255,255,255,.10);
    --line-soft: rgba(255,255,255,.055);
    --bronze: #a97949;
    --bronze-2: #c0925e;
    --bronze-dark: #5c3e27;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 78% 9%, rgba(169,121,73,.035), transparent 22%), radial-gradient(circle at 14% 70%, rgba(255,255,255,.012), transparent 28%), var(--bg);
    color: var(--text);
    font-family: var(--sans);
}

    body.modal-open {
        overflow: hidden;
    }

button, select, a {
    font: inherit;
}

a {
    color: inherit;
}

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

.site-header {
    height: 86px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.30);
    color: #f0ede8;
    font: 700 24px/1 Georgia, serif;
    box-shadow: inset 0 0 0 1px rgba(169,121,73,.08);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .brand-copy strong {
        font-family: var(--mono);
        font-size: 12px;
        letter-spacing: .31em;
        font-weight: 500;
    }

    .brand-copy small {
        color: #6b6c68;
        font-family: var(--mono);
        font-size: 7px;
        letter-spacing: .24em;
    }

.site-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 52px;
}

    .site-nav a {
        position: relative;
        display: inline-flex;
        height: 100%;
        align-items: center;
        color: #8f8e89;
        text-decoration: none;
        font-family: var(--mono);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .24em;
    }

        .site-nav a:hover, .site-nav a.active {
            color: #ddd8d0;
        }

            .site-nav a.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: 17px;
                height: 1px;
                background: var(--bronze-2);
                box-shadow: 0 0 10px rgba(192,146,94,.25);
            }

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 22px;
}

.sign-in {
    height: 38px;
    min-width: 108px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line);
    color: #b5b1aa;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .20em;
}

    .sign-in:hover {
        border-color: rgba(169,121,73,.40);
        color: #ded6ca;
    }

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #9b9993;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .15em;
}

    .cart-btn svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.35;
    }

.gallery-hero {
    position: relative;
    min-height: 255px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 56px 4px 30px;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #8a765e;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .22em;
}

.hero-copy h1 {
    margin: 0;
    max-width: 850px;
    color: #f0ede8;
    font-size: clamp(48px, 5.1vw, 82px);
    line-height: .90;
    letter-spacing: -.055em;
    font-weight: 760;
}

    .hero-copy h1 span {
        color: transparent;
        -webkit-text-stroke: 1px rgba(226,222,215,.42);
        text-stroke: 1px rgba(226,222,215,.42);
    }

.hero-copy p {
    margin: 20px 0 0;
    color: #7f807b;
    font-size: 13px;
    letter-spacing: .01em;
}

.hero-meta {
    position: absolute;
    right: 0;
    top: -6px;
    width: 580px;
    height: 300px;
    opacity: .58;
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    width: 330px;
    height: 330px;
    right: 55px;
    top: -40px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 50%;
}

    .hero-ring::before, .hero-ring::after {
        content: "";
        position: absolute;
        inset: 50%;
        transform: translate(-50%,-50%);
        border: 1px solid rgba(169,121,73,.06);
        border-radius: 50%;
    }

    .hero-ring::before {
        width: 90px;
        height: 90px;
    }

    .hero-ring::after {
        width: 16px;
        height: 16px;
    }

.hero-crosshair::before, .hero-crosshair::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,.035);
}

.hero-crosshair::before {
    width: 1px;
    height: 300px;
    right: 220px;
    top: 0;
}

.hero-crosshair::after {
    height: 1px;
    width: 530px;
    right: 0;
    top: 160px;
}

.hero-meta-copy {
    position: absolute;
    right: 8px;
    top: 80px;
    text-align: right;
    font-family: var(--mono);
}

    .hero-meta-copy span {
        color: #80684e;
        font-size: 7px;
        letter-spacing: .22em;
    }

    .hero-meta-copy strong {
        display: block;
        margin-top: 10px;
        color: #9a9994;
        font-size: 8px;
        line-height: 1.65;
        letter-spacing: .18em;
        font-weight: 500;
    }

.gallery-toolbar {
    min-height: 88px;
    display: grid;
    grid-template-columns: 70px 270px 270px;
    justify-content: end;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-bottom: 26px;
}

.toolbar-index {
    color: #686965;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .15em;
}

.toolbar-control {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

    .toolbar-control > span {
        margin-bottom: 7px;
        color: #656762;
        font-family: var(--mono);
        font-size: 7px;
        letter-spacing: .20em;
    }

    .toolbar-control select {
        width: 170px;
        border: 0;
        outline: 0;
        background: #090b0b;
        color: #d0ccc4;
        font-family: var(--mono);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .16em;
        cursor: pointer;
    }


/* ---------- gallery sections ---------- */

.official-showcase,
.community-section {
    position: relative;
}

.official-showcase {
    margin-top: 8px;
    padding: 0 0 38px;
    border-bottom: 1px solid rgba(169,121,73,.16);
}

.community-section {
    padding-top: 34px;
}

.section-heading {
    min-height: 86px;
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.4fr) auto;
    align-items: end;
    gap: 36px;
    padding: 0 4px 18px;
}

    .section-heading > div {
        min-width: 0;
    }

.section-kicker {
    display: block;
    margin-bottom: 9px;
    color: #8b704f;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .22em;
}

.section-heading h2 {
    margin: 0;
    color: #e7e3dc;
    font-family: var(--mono);
    font-size: 20px;
    line-height: 1;
    letter-spacing: .13em;
}

.section-heading p {
    max-width: 590px;
    margin: 0;
    color: #6f716c;
    font-size: 11px;
    line-height: 1.65;
}

.section-count {
    align-self: center;
    color: #705a43;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .18em;
    white-space: nowrap;
}

.official-heading {
    border-top: 1px solid rgba(169,121,73,.18);
    padding-top: 18px;
}

.official-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1px;
    padding: 1px;
    background: rgba(169,121,73,.16);
    border: 1px solid rgba(169,121,73,.16);
}

    .official-grid::before {
        content: "WICK / OFFICIAL";
        position: absolute;
        right: 18px;
        top: -28px;
        color: #66513e;
        font-family: var(--mono);
        font-size: 6px;
        letter-spacing: .23em;
    }

    .official-grid .build-card {
        border: 0;
        background: linear-gradient(180deg, rgba(169,121,73,.025), transparent 26%), #0a0c0c;
    }

        .official-grid .build-card:hover {
            border-color: transparent;
            box-shadow: inset 0 0 0 1px rgba(169,121,73,.28), 0 18px 50px rgba(0,0,0,.25);
        }

    .official-grid .card-topline span:last-child {
        color: #8b6a49;
    }

    .official-grid .build-meta-row span:first-child {
        color: #b28353;
    }

.community-heading {
    padding-bottom: 4px;
}

.community-toolbar {
    margin-top: 6px;
    margin-bottom: 22px;
}

.community-grid {
    padding-bottom: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.build-card {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.16);
    background: #0a0c0c;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .build-card:hover {
        border-color: rgba(169,121,73,.42);
        box-shadow: 0 18px 50px rgba(0,0,0,.28);
        transform: translateY(-2px);
    }

    .build-card[hidden] {
        display: none !important;
    }

.build-image-wrap {
    position: relative;
    aspect-ratio: 1.44 / 1;
    overflow: hidden;
    background: radial-gradient(circle at 48% 55%, rgba(169,121,73,.065), transparent 30%), linear-gradient(160deg,#111313,#090b0b 68%);
    border-bottom: 1px solid var(--line-soft);
}

    .build-image-wrap::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(6,7,7,.24), transparent 35%);
        pointer-events: none;
    }

    .build-image-wrap img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        filter: saturate(.72) contrast(1.05) brightness(.78);
        transition: transform .45s cubic-bezier(.2,.65,.2,1), filter .3s ease;
    }

.build-card:hover img {
    transform: scale(1.018);
    filter: saturate(.86) contrast(1.04) brightness(.86);
}

.card-topline {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    top: 16px;
    display: grid;
    grid-template-columns: auto 26px 1fr;
    gap: 10px;
    align-items: center;
    color: #898985;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .20em;
}

    .card-topline .rule {
        height: 1px;
        background: rgba(255,255,255,.22);
    }

    .card-topline span:last-child {
        justify-self: end;
        color: #73685b;
    }

.build-fallback-shape {
    position: absolute;
    width: 72%;
    height: 28%;
    left: 14%;
    top: 40%;
    border-radius: 42% 12% 18% 26%;
    transform: rotate(-13deg);
    background: linear-gradient(110deg,#131616 0 44%,#27221d 45% 48%,#161818 49% 100%);
    box-shadow: 0 24px 26px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.04);
    opacity: 0;
}

    .build-fallback-shape::before {
        content: "";
        position: absolute;
        width: 24%;
        height: 100%;
        left: 19%;
        top: 72%;
        transform: rotate(24deg);
        border-radius: 15% 15% 24% 24%;
        background: #111313;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
    }

.image-fallback .build-fallback-shape {
    opacity: 1;
}

.build-fallback-shape.alt {
    transform: rotate(-8deg);
    background: linear-gradient(110deg,#171919 0 48%,#75614c 49% 53%,#151717 54%);
}

.build-fallback-shape.dark {
    transform: rotate(-18deg);
}

.build-fallback-shape.rifle {
    width: 82%;
    height: 20%;
    left: 9%;
    top: 43%;
    border-radius: 18% 8% 8% 18%;
    transform: rotate(-7deg);
}

    .build-fallback-shape.rifle::before {
        width: 13%;
        height: 150%;
        left: 51%;
        top: 40%;
    }

.build-fallback-shape.community {
    background: linear-gradient(110deg,#121414 0 46%,#7a5535 47% 50%,#141616 51%);
}

.build-card-body {
    padding: 18px;
}

.build-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

    .build-title-row h2 {
        margin: 0;
        color: #e5e1da;
        font-family: var(--mono);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .17em;
    }

.build-price {
    color: #e4ded4;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
}

.build-card-body > p {
    margin: 9px 0 10px;
    color: #60625e;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .19em;
    line-height: 1.6;
}

.build-meta-row {
    display: flex;
    gap: 18px;
    margin: 12px 0 14px;
    color: #7c6850;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .15em;
}

.view-build {
    width: 100%;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.17);
    background: transparent;
    color: #aaa8a2;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .19em;
    cursor: pointer;
}

    .view-build:hover {
        border-color: rgba(169,121,73,.46);
        background: rgba(169,121,73,.035);
        color: #d5c5b3;
    }

    .view-build span {
        color: #b18352;
    }

.empty-state {
    padding: 90px 20px;
    text-align: center;
    border: 1px solid var(--line-soft);
}

    .empty-state span, .empty-state strong {
        display: block;
        font-family: var(--mono);
        letter-spacing: .18em;
    }

    .empty-state span {
        color: #755f47;
        font-size: 8px;
    }

    .empty-state strong {
        margin-top: 10px;
        color: #d8d4cc;
        font-size: 18px;
    }

    .empty-state p {
        color: #656762;
        font-size: 12px;
    }

.site-footer {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    color: #60625d;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .20em;
}

.footer-line {
    height: 1px;
    background: var(--line);
}

.build-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s ease;
}

    .build-modal.open {
        visibility: visible;
        opacity: 1;
    }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.74);
    backdrop-filter: blur(8px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 48px));
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    border: 1px solid rgba(169,121,73,.22);
    background: #0a0c0c;
    box-shadow: 0 30px 90px rgba(0,0,0,.58);
}

.modal-close {
    position: absolute;
    z-index: 3;
    right: 14px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: rgba(7,8,8,.78);
    color: #b3afa8;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.modal-image {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 48%, rgba(169,121,73,.09), transparent 30%), linear-gradient(145deg,#121414,#090b0b);
}

    .modal-image img {
        width: 100%;
        height: 100%;
        min-height: 560px;
        object-fit: cover;
        filter: saturate(.78) brightness(.82);
    }

.modal-image-mark {
    display: none;
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%,-50%);
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(169,121,73,.28);
    color: #7b5b3d;
    font: 700 38px/1 Georgia,serif;
}

.modal-image.image-fallback .modal-image-mark {
    display: grid;
}

.modal-content {
    padding: 46px 42px 34px;
}

    .modal-content h2 {
        margin: 0;
        font-size: 34px;
        letter-spacing: -.03em;
    }

.modal-description {
    margin: 16px 0 22px;
    color: #85857f;
    line-height: 1.75;
    font-size: 12px;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

    .modal-specs > div {
        padding: 15px 12px 15px 0;
    }

    .modal-specs span, .parts-preview > span, .review-pending > span {
        display: block;
        margin-bottom: 7px;
        color: #5e615c;
        font-family: var(--mono);
        font-size: 7px;
        letter-spacing: .16em;
    }

    .modal-specs strong {
        color: #cbc6bd;
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: .09em;
    }

    .modal-specs .pending {
        color: #8f704f;
    }

.parts-preview {
    margin-top: 22px;
}

    .parts-preview ul {
        margin: 10px 0 0;
        padding: 0;
        list-style: none;
    }

    .parts-preview li {
        padding: 9px 0;
        border-bottom: 1px solid rgba(255,255,255,.04);
        color: #9b9993;
        font-size: 11px;
    }

        .parts-preview li::before {
            content: "�";
            margin-right: 10px;
            color: #795a3c;
        }

.review-pending {
    margin-top: 20px;
    padding: 14px 15px;
    border: 1px solid rgba(169,121,73,.12);
    background: rgba(169,121,73,.025);
}

    .review-pending strong {
        display: block;
        color: #9e7b55;
        font-family: var(--mono);
        font-size: 8px;
        letter-spacing: .12em;
    }

    .review-pending p {
        margin: 7px 0 0;
        color: #62645f;
        font-size: 10px;
    }

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

    .modal-actions a, .modal-actions button {
        min-height: 42px;
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
        font-family: var(--mono);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .13em;
        cursor: pointer;
    }

.secondary-action {
    border: 1px solid var(--line);
    background: transparent;
    color: #96938d;
}

.primary-action {
    border: 1px solid rgba(169,121,73,.52);
    background: linear-gradient(180deg,#67472d,#4e351f);
    color: #ead9c5;
}


@media (max-width: 1050px) {
    .section-heading {
        grid-template-columns: 1fr auto;
        gap: 14px 24px;
    }

        .section-heading p {
            grid-column: 1 / -1;
            max-width: 720px;
        }

    .official-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 700px) {
    .official-showcase {
        padding-bottom: 28px;
    }

    .community-section {
        padding-top: 26px;
    }

    .section-heading {
        min-height: 0;
        grid-template-columns: 1fr auto;
        gap: 10px 14px;
        padding: 15px 2px 15px;
    }

        .section-heading h2 {
            font-size: 16px;
        }

        .section-heading p {
            font-size: 10px;
        }

    .official-grid {
        grid-template-columns: 1fr;
    }

        .official-grid::before {
            display: none;
        }
}

@media (max-width: 1050px) {
    .page-shell {
        width: min(100% - 36px, 1540px);
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .gallery-toolbar {
        grid-template-columns: 56px 1fr 1fr;
    }

    .hero-meta {
        opacity: .30;
        right: -160px;
    }

    .modal-panel {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 330px;
    }

        .modal-image img {
            min-height: 330px;
        }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 24px, 1540px);
    }

    .site-header {
        height: 74px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-copy strong {
        font-size: 10px;
    }

    .brand-copy small {
        font-size: 6px;
    }

    .header-actions .sign-in {
        min-width: 86px;
        height: 36px;
        padding: 0 10px;
    }

    .cart-btn {
        display: none;
    }

    .gallery-hero {
        min-height: 250px;
        padding-top: 44px;
    }

    .hero-copy h1 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .hero-copy p {
        max-width: 430px;
        line-height: 1.6;
    }

    .hero-meta {
        display: none;
    }

    .gallery-toolbar {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .toolbar-index {
        display: none;
    }

    .toolbar-control {
        padding-left: 14px;
    }

        .toolbar-control:first-of-type {
            border-left: 0;
        }

        .toolbar-control select {
            width: 100%;
            font-size: 7px;
        }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 24px 0;
        text-align: center;
    }

    .footer-line {
        width: 100%;
    }

    .modal-panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .modal-content {
        padding: 32px 20px 22px;
    }

    .modal-specs {
        grid-template-columns: 1fr;
    }

        .modal-specs > div {
            border-bottom: 1px solid rgba(255,255,255,.04);
        }

    .modal-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}


/* ---------- build type / prebuilt checkout ---------- */

.modal-purchase-type {
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.012);
}

    .modal-purchase-type > span {
        display: block;
        margin-bottom: 7px;
        color: #5e615c;
        font-family: var(--mono);
        font-size: 7px;
        letter-spacing: .16em;
    }

    .modal-purchase-type > strong {
        color: #9b9993;
        font-family: var(--mono);
        font-size: 8px;
        letter-spacing: .14em;
    }

        .modal-purchase-type > strong.is-prebuilt {
            color: #c0925e;
        }

.primary-action {
    position: relative;
    overflow: hidden;
}

    .primary-action:hover {
        border-color: rgba(192,146,94,.74);
        background: linear-gradient(180deg,#704d30,#583a24);
    }


/* ==========================================================
   INDEX-MATCHED GALLERY NAVIGATION
   Mirrors the homepage navigation + Wick mark while preserving
   the gallery's existing page width and content below it.
   ========================================================== */

.site-header {
    height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid rgba(255,255,255,.035);
}

    .site-header .brand {
        justify-self: start;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        width: max-content;
        color: #ecebe7;
        text-decoration: none;
    }

    .site-header .brand-mark {
        width: 35px;
        height: 35px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(185,139,88,.65);
        color: #d7b17d;
        background: linear-gradient(145deg, rgba(185,139,88,.07), rgba(255,255,255,.01));
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 0 22px rgba(185,139,88,.025);
        font: 700 16px/1 Georgia, 'Times New Roman', serif;
        letter-spacing: .02em;
    }

    .site-header .brand-copy {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

        .site-header .brand-copy strong {
            color: #e1ddd6;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .22em;
        }

        .site-header .brand-copy small {
            color: #89745c;
            font: 500 7px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
            letter-spacing: .18em;
        }

    .site-header .site-nav {
        justify-self: center;
        height: auto;
        display: flex;
        align-items: center;
        gap: clamp(20px, 3vw, 48px);
    }

        .site-header .site-nav a {
            position: relative;
            display: inline-flex;
            height: auto;
            align-items: center;
            color: #a5a39d;
            text-decoration: none;
            font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
            letter-spacing: .2em;
            transition: color .16s ease;
        }

            .site-header .site-nav a:hover,
            .site-header .site-nav a.active {
                color: #e5c697;
            }

                .site-header .site-nav a.active::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    right: .2em;
                    bottom: -11px;
                    height: 1px;
                    background: linear-gradient(90deg, #d7b17d, rgba(185,139,88,.18));
                    box-shadow: 0 0 10px rgba(185,139,88,.13);
                }

    .site-header .nav-end {
        justify-self: end;
        display: inline-flex;
        align-items: center;
        gap: 18px;
    }

    .site-header .nav-motto {
        padding-right: 18px;
        border-right: 1px solid rgba(185,139,88,.38);
        color: #8f6b47;
        text-align: center;
        font: 700 6.5px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
        letter-spacing: .22em;
    }

    .site-header .sign-in {
        justify-self: auto;
        height: auto;
        min-width: 0;
        padding: 12px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 1px solid rgba(154,111,67,.30);
        background: rgba(185,139,88,.015);
        color: #a5a39d;
        text-decoration: none;
        font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
        letter-spacing: .2em;
        transition: border-color .16s ease, background .16s ease, color .16s ease;
    }

        .site-header .sign-in:hover {
            color: #e5c697;
            border-color: rgba(185,139,88,.48);
            background: rgba(185,139,88,.04);
        }

        .site-header .sign-in span {
            color: #a77a4b;
        }

@media (max-width: 1050px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

        .site-header .site-nav {
            display: none;
        }
}

@media (max-width: 700px) {
    .site-header {
        height: 64px;
    }

        .site-header .brand-mark {
            width: 34px;
            height: 34px;
        }

        .site-header .brand-copy strong {
            font-size: 10px;
        }

        .site-header .brand-copy small {
            display: none;
        }

        .site-header .nav-motto {
            display: none;
        }

        .site-header .nav-end {
            gap: 0;
        }

        .site-header .sign-in {
            min-width: 0;
            height: auto;
            padding: 10px;
        }

            .site-header .sign-in span {
                display: none;
            }
}


/* JSON-driven gallery loading state */
.official-grid:empty,
.community-grid:empty {
    min-height: 1px;
}


/* =====================================================================
   WICK TYPOGRAPHY NORMALIZATION — GALLERY
   Fixed hierarchy with tightly bounded viewport influence.
   ===================================================================== */
:root {
    --wick-type-micro: clamp(.46875rem, calc(.455rem + .04vw), .53125rem);
    --wick-type-xs: clamp(.53125rem, calc(.515rem + .05vw), .59375rem);
    --wick-type-sm: clamp(.65625rem, calc(.63rem + .07vw), .71875rem);
    --wick-type-body-sm: clamp(.75rem, calc(.72rem + .08vw), .8125rem);
    --wick-type-body: clamp(.8125rem, calc(.78rem + .09vw), .875rem);
    --wick-type-card: clamp(.875rem, calc(.83rem + .12vw), 1rem);
    --wick-type-gallery-display: clamp(3rem, calc(2.62rem + 1.15vw), 4.75rem);
}

.site-header .brand-copy strong {
    font-size: var(--wick-type-sm);
}

.site-header .brand-copy small,
.site-header .nav-motto,
.hero-meta-copy span,
.section-kicker,
.section-count,
.official-grid::before,
.card-topline,
.build-card-body > p,
.build-meta-row,
.modal-specs span,
.parts-preview > span,
.review-pending > span,
.modal-purchase-type > span,
.site-footer {
    font-size: var(--wick-type-micro);
}

.site-header .site-nav a,
.site-header .sign-in,
.eyebrow,
.toolbar-index,
.toolbar-control select,
.view-build,
.modal-actions a,
.modal-actions button,
.review-pending strong,
.modal-purchase-type > strong {
    font-size: var(--wick-type-xs);
}

.hero-copy h1 {
    font-size: var(--wick-type-gallery-display);
}

.hero-copy p,
.section-heading p,
.modal-description {
    font-size: var(--wick-type-body-sm);
}

.section-heading h2 {
    font-size: clamp(1.125rem, calc(1.02rem + .30vw), 1.375rem);
}

.build-title-row h2 {
    font-size: var(--wick-type-card);
}

.build-price {
    font-size: var(--wick-type-body);
}

.modal-content h2 {
    font-size: clamp(1.75rem, calc(1.58rem + .5vw), 2.125rem);
}

.parts-preview li {
    font-size: var(--wick-type-sm);
}

.review-pending p {
    font-size: var(--wick-type-sm);
}

@media (max-width: 700px) {
    .hero-copy h1 {
        font-size: clamp(2.7rem, 11vw, 4rem);
    }
}

@media (min-width: 2200px) {
    :root {
        --wick-type-gallery-display: 4.75rem;
    }
}
