:root {
    --bg-asphalt: #0E0F11;
    --surface-concrete: #1A1B1E;
    --surface-raised: #202125;
    --accent-hazard: #e6191e;
    --accent-caution: #ff333a;
    --ink-chalk: #f9faf9;
    --ink-smoke: #8C8F96;
    --line-cut: rgba(249,250,249,0.24);
    --line-cut-soft: rgba(249,250,249,0.08);
    --font-display: 'Big Shoulders Display', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --max-w: 1180px;
}

* {
    box-sizing: border-box;
}

    *, *::before, *::after {
        -webkit-tap-highlight-color: transparent;
    }

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg-asphalt);
    color: var(--ink-chalk);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(18px,5vw,40px);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-caution);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.01em;
    font-style: italic;
}

button {
    font-family: inherit;
}

/* ---------- registration marks (global, reused everywhere) ---------- */
.reg-mark {
    position: absolute;
    width: 18px;
    height: 18px;
    color: var(--ink-smoke);
    opacity: 0.85;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease, opacity 0.4s ease;
}

.decal-card:hover .reg-mark,
.proof-frame:hover .reg-mark {
    transform: rotate(90deg);
    color: var(--accent-caution);
    opacity: 1;
}

.reg-mark.tl {
    top: -9px;
    left: -9px;
}

.reg-mark.tr {
    top: -9px;
    right: -9px;
}

.reg-mark.bl {
    bottom: -9px;
    left: -9px;
}

.reg-mark.br {
    bottom: -9px;
    right: -9px;
}

.proof-frame {
    position: relative;
    border: 2px dashed var(--line-cut);
    border-radius: 4px;
    padding: 10px;
    background: var(--surface-concrete);
}

.frame-media {
    border-radius: 2px;
    overflow: hidden;
    background: var(--surface-concrete);
}

    .frame-media .view-solo,
    .frame-media .view-mockup {
        aspect-ratio: 1/1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px;
    }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(14,15,17,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line-cut-soft);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 3.5vw, 16px) clamp(18px,5vw,40px);
}

.wordmark {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}

    .wordmark .mark-slash {
        color: var(--accent-hazard);
        font-family: var(--font-display);
        font-size: 1.4rem;
        transform: skewX(-12deg);
    }

    .wordmark .mark-text {
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 1.25rem;
        letter-spacing: 0.03em;
    }

    .wordmark .mark-sub {
        font-family: var(--font-mono);
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        color: var(--ink-smoke);
        align-self: flex-end;
        margin-bottom: 3px;
    }

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--line-cut);
    padding: 9px 16px;
    border-radius: 2px;
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* ---------- hero ---------- */
.hero {
    padding: 48px 0 56px;
}

.hero-grid {
    display: grid;
    gap: 36px;
}

@media(min - width:880px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
    }
}

.hero h1 {
    font-size: clamp(2.5rem,7.6vw,4.3rem);
    line-height: 0.96;
    margin: 14px 0 18px;
}

    .hero h1 span {
        display: block;
    }

    .hero h1 .accent {
        color: var(--accent-hazard);
    }

.hero-sub {
    color: var(--ink-smoke);
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 0 26px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-hazard);
    color: var(--bg-asphalt);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-height: 48px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.15s ease, box-shadow 0.25s ease;
}

    .btn-primary::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
        transform: skewX(-25deg);
        pointer-events: none;
    }

    .btn-primary:hover {
        background: #ff2a31;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(230, 25, 30, 0.35);
    }

        .btn-primary:hover::after {
            left: 150%;
            transition: left 0.65s cubic-bezier(0.25, 1, 0.5, 1);
        }

    .btn-primary:active {
        transform: scale(0.97);
    }

.hero-visual-cap {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--ink-smoke);
    margin-bottom: 8px;
}

.dim-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0 4px;
}

.dim-bar {
    flex: 1;
    height: 1px;
    background: var(--line-cut);
}

.dim-tick {
    width: 1px;
    height: 10px;
    background: var(--line-cut);
}

.dim-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--ink-smoke);
    white-space: nowrap;
    padding: 0 8px;
}

/* ---------- shop section ---------- */
.shop {
    padding: 20px 0 72px;
}

.shop-head {
    margin-bottom: 28px;
}

    .shop-head h2 {
        font-size: clamp(1.8rem,5vw,2.6rem);
        margin-top: 10px;
    }

    .shop-head p {
        color: var(--ink-smoke);
        max-width: 520px;
        margin: 10px 0 0;
    }

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media(min-width:560px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width:920px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.decal-card {
    background: var(--surface-concrete);
    border: 1px solid var(--line-cut-soft);
    border-radius: 6px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

    .decal-card:hover {
        border-color: var(--line-cut);
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(230, 25, 30, 0.08);
    }

    .decal-card .frame-media img {
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .decal-card:hover .frame-media img {
        transform: scale(1.04);
    }

    .decal-card:focus-visible {
        outline: 2px solid var(--accent-caution);
        outline-offset: 3px;
    }

    .decal-card .proof-frame {
        padding: 8px;
    }

    .decal-card .frame-media .view-solo,
    .decal-card .frame-media .view-mockup {
        padding: 10px;
    }

    .decal-card[data-view="mockup"] .view-solo {
        display: none;
    }

    .decal-card[data-view="mat"] .view-mockup {
        display: none;
    }

.view-toggle {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.toggle-btn {
    flex: 1;
    background: none;
    border: 1px solid var(--line-cut);
    color: var(--ink-smoke);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    padding: 7px 0;
    border-radius: 2px;
    cursor: pointer;
    min-height: 34px;
    transition: background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.1s ease;
}

    .toggle-btn:hover {
        border-color: var(--ink-smoke);
        color: var(--ink-chalk);
    }

    .toggle-btn.active {
        color: var(--bg-asphalt);
        background: var(--accent-caution);
        border-color: var(--accent-caution);
    }

    .toggle-btn:active {
        transform: scale(0.96);
    }

.card-info {
    padding: 14px 4px 2px;
}

.decal-name {
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.decal-spec {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--ink-smoke);
    margin: 6px 0 0;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.decal-price {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-chalk);
}

    .decal-price.custom {
        color: var(--ink-smoke);
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }

.view-details {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--ink-chalk);
    opacity: 0.75;
}

/* ---------- modal / bottom sheet ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5,5,6,0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.18s ease;
}

    .modal-backdrop[hidden] {
        display: none;
    }

    .modal-backdrop.open {
        opacity: 1;
    }

@media(min - width:760px) {
    .modal-backdrop {
        align-items: center;
        padding: 24px;
    }
}

.modal-sheet {
    background: var(--surface-raised);
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    padding: 10px 20px 28px;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.18s ease;
}

.modal-backdrop.open .modal-sheet {
    transform: translateY(0);
}

@media(min - width:760px) {
    .modal-sheet {
        border-radius: 10px;
        padding: 28px 32px 32px;
    }
}

.sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--line-cut);
    margin: 6px auto 14px;
}

@media(min - width:760px) {
    .sheet-handle {
        display: none;
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-cut);
    background: var(--surface-concrete);
    color: var(--ink-chalk);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
}

.modal-body {
    display: block;
}

@media(min - width:760px) {
    .modal-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }
}

.modal-frame .view-solo,
.modal-frame .view-mockup {
    padding: 20px;
}

.modal-frame[data-view="mockup"] .view-solo {
    display: none;
}

.modal-frame[data-view="mat"] .view-mockup {
    display: none;
}

.modal-toggle {
    margin-top: 12px;
}

    .modal-toggle .toggle-btn {
        font-size: 0.7rem;
        padding: 10px 0;
    }

.modal-info {
    margin-top: 22px;
}

@media(min - width:760px) {
    .modal-info {
        margin-top: 6px;
    }
}

.modal-info .decal-name {
    font-size: clamp(1.8rem,4vw,2.3rem);
}

.modal-info .decal-spec {
    margin-top: 8px;
}

.decal-desc {
    margin: 16px 0 0;
    color: var(--ink-chalk);
    opacity: 0.92;
    max-width: 46ch;
}

.modal-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line-cut-soft);
}

.decal-price.big {
    font-size: 1.5rem;
}

.buy-btn {
    background: var(--accent-hazard);
    color: var(--bg-asphalt);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 4px;
    min-height: 48px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.15s ease, box-shadow 0.25s ease;
}

    .buy-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
        transform: skewX(-25deg);
        pointer-events: none;
    }

    .buy-btn:hover {
        background: #ff2a31;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(230, 25, 30, 0.35);
    }

        .buy-btn:hover::after {
            left: 150%;
            transition: left 0.65s cubic-bezier(0.25, 1, 0.5, 1);
        }

    .buy-btn:active {
        transform: scale(0.97);
    }

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--line-cut-soft);
    padding: 34px 0 40px;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media(min - width:640px) {
    .footer-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-tag {
    color: var(--ink-smoke);
    font-size: 0.85rem;
    margin: 0;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-smoke);
    letter-spacing: 0.04em;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

body.modal-open {
    overflow: hidden;
}

.frame-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- variants section ---------- */
.decal-variants-section {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line-cut-soft);
}

.variants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.variant-btn {
    background: var(--surface-concrete);
    border: 1px solid var(--line-cut-soft);
    color: var(--ink-chalk);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.1s ease;
}

    .variant-btn:hover {
        border-color: var(--line-cut);
        background: var(--surface-raised);
        transform: translateY(-1px);
    }

    .variant-btn:active {
        transform: scale(0.96);
    }

    .variant-btn.active {
        color: var(--bg-asphalt);
        background: var(--accent-caution);
        border-color: var(--accent-caution);
        font-weight: 600;
    }

/* ---------- detail page ---------- */
.decal-detail-page {
    padding: 32px 0 64px;
}

.back-nav {
    margin-bottom: 24px;
}

.back-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-smoke);
    transition: color 0.15s ease;
}

    .back-link:hover {
        color: var(--ink-chalk);
    }

.detail-body {
    display: block;
}

@media(min-width:760px) {
    .detail-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

.detail-info {
    margin-top: 22px;
}

@media(min-width:760px) {
    .detail-info {
        margin-top: 0;
    }
}

.detail-info .decal-name {
    font-size: clamp(2rem, 5vw, 3rem);
}

.detail-info .decal-spec {
    margin-top: 8px;
}

/* ---------- logo styling ---------- */
.logo-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

/* ---------- captions ---------- */
.view-caption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-smoke);
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ---------- detail gallery ---------- */
.decal-gallery-section {
    margin-top: 24px;
}

.detail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-cut) transparent;
}

    .detail-gallery::-webkit-scrollbar {
        height: 4px;
    }

    .detail-gallery::-webkit-scrollbar-thumb {
        background: var(--line-cut);
        border-radius: 2px;
    }

.gallery-thumb {
    flex: 0 0 72px;
    height: 72px;
    background: var(--surface-concrete);
    border: 2px solid var(--line-cut-soft);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 3px;
    }

    .gallery-thumb:hover {
        border-color: var(--line-cut);
        transform: scale(1.03);
    }

    .gallery-thumb.active {
        border-color: var(--accent-caution);
        transform: scale(1.05);
    }

.thumb-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(14, 15, 17, 0.75);
    color: var(--ink-chalk);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    padding: 1px 3px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    pointer-events: none;
}
