/* ==========================================================
   JINKSNET — display-cabinet theme
   Dark cubbies, lit from within.
   ========================================================== */

:root {
    --bg:        #0e0f11;
    --bg-2:      #16171a;
    --panel:     #1c1d21;
    --line:      #2a2c31;
    --text:      #eceae6;
    --muted:     #9a9ca3;
    --orange:    #ff7a1a;
    --ice:       #38c4e3;
    --green:     #2fb35a;
    --grape:     #6b4fe0;
    --red:       #e4364a;
    --radius:    14px;
    --wrap:      1240px;
    --font:      'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --mono:      'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 var(--font);
    font-variation-settings: "wdth" 100;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .4em; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
p  { margin: 0 0 1em; }

.wrap   { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted  { color: var(--muted); }
.small  { font-size: .85rem; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; padding: .6rem 1rem; background: var(--orange); color: #000; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.eyebrow {
    font: 600 .78rem/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--orange);
    margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: #c9c8c4; max-width: 60ch; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14, 15, 17, .82);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-word { font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: .04em; font-size: 1.2rem; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 11px); gap: 3px; }
.brand-mark i { width: 11px; height: 11px; border-radius: 2px; display: block; }
.brand-mark i:nth-child(1) { background: var(--orange); }
.brand-mark i:nth-child(2) { background: var(--ice); }
.brand-mark i:nth-child(3) { background: var(--green); }
.brand-mark i:nth-child(4) { background: var(--red); }

.site-nav { display: flex; gap: .25rem; }
.site-nav a {
    text-decoration: none; padding: .5rem .9rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; color: var(--muted);
    transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--panel); }
.site-nav a[aria-current="page"] { color: #000; background: var(--text); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--text); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 66px; left: 0; right: 0;
        flex-direction: column; padding: .75rem 1.25rem 1.25rem;
        background: var(--bg); border-bottom: 1px solid var(--line);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .8rem 1rem; font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.4rem; border-radius: 999px;
    font-weight: 700; text-decoration: none; font-size: 1rem;
    transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #140700; box-shadow: 0 8px 30px -8px rgba(255,122,26,.7); }
.btn-ghost   { border: 1px solid #ffffff33; color: var(--text); }
.btn-ghost:hover { background: #ffffff12; }
.link-arrow { color: var(--ice); text-decoration: none; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: 60% 40%;
    transform: scale(1.04);
    animation: heroIn 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.6) 45%, rgba(14,15,17,.1) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(14,15,17,0) 40%);
}
.hero-inner { padding: 7rem 0 5rem; }
.hero h1 { max-width: 14ch; }
.hero h1 span {
    background: linear-gradient(90deg, var(--orange), #ffb36b 30%, var(--ice) 60%, #a5f0ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.04); } }

/* ---------- Stats ---------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-2); margin-top: -1.5rem; position: relative;
}
.stat { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; font-variation-settings: "wdth" 120; line-height: 1; }
.stat span { display: block; margin-top: .4rem; font: 500 .74rem/1.35 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0 1rem; }
.section.tight { padding-top: 1.5rem; }
.section-head { margin-bottom: 2rem; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.page-head { padding: 4.5rem 0 1rem; }
.page-head.narrow { max-width: 760px; }

/* ---------- Kallax-style cubes ---------- */
.cubes {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; padding: 14px;
    background: #050506; border-radius: 6px;
    box-shadow: inset 0 0 0 1px #000, 0 30px 60px -30px #000;
}
.cube {
    --accent: var(--orange);
    position: relative; aspect-ratio: 1; overflow: hidden;
    background: #111214; border-radius: 3px; text-decoration: none;
    box-shadow: inset 0 0 0 1px #1d1e22, inset 0 22px 40px -20px #000;
}
.cube img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.45) saturate(.8);
    transition: filter .5s, transform .6s cubic-bezier(.2,.7,.2,1);
}
.cube::before {  /* the LED strip */
    content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 3px; z-index: 2;
    background: var(--accent); border-radius: 0 0 3px 3px;
    box-shadow: 0 0 24px 4px color-mix(in srgb, var(--accent) 60%, transparent);
    opacity: .35; transition: opacity .4s;
}
.cube::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
    opacity: 0; transition: opacity .4s;
}
.cube:hover img, .cube:focus-visible img { filter: brightness(.95) saturate(1.05); transform: scale(1.05); }
.cube:hover::before, .cube:focus-visible::before { opacity: 1; }
.cube:hover::after,  .cube:focus-visible::after  { opacity: 1; }
.cube-all { display: flex; background: radial-gradient(90% 70% at 50% 0%, #2a2c33, #111214 70%); }
.cube-all .cube-label { background: none; }
@media (max-width: 900px) { .cubes { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; } }
.cube-label {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem;
    background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
    display: flex; flex-direction: column;
}
.cube-label strong { font-size: 1.15rem; font-weight: 800; font-variation-settings: "wdth" 110; }
.cube-label em { font: 500 .75rem/1.4 var(--mono); font-style: normal; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Masonry gallery ---------- */
.masonry { columns: 3 320px; column-gap: 18px; }
.tile {
    break-inside: avoid; margin: 0 0 18px;
    background: var(--panel); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); border-color: #3b3e45; }
.tile a { display: block; overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.03); }
.tile figcaption { padding: .9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.tile figcaption strong { font-weight: 700; }
.tile figcaption span { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chip {
    --accent: var(--text);
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .95rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg-2);
    text-decoration: none; font-weight: 600; font-size: .92rem;
    transition: border-color .2s, background .2s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip small { font: 500 .72rem var(--mono); color: var(--muted); }
.chip:hover { border-color: var(--accent); }
.chip[aria-current] { background: var(--text); color: #000; border-color: var(--text); }
.chip[aria-current] small { color: #444; }

/* ---------- Collection list ---------- */
.platform { padding: 3.5rem 0 1rem; scroll-margin-top: 80px; border-top: 1px solid var(--line); margin-top: 2.5rem; }
.platform-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.platform-head h2 { position: relative; padding-left: 1.1rem; }
.platform-head h2::before {
    content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 3px;
    background: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent);
}
.platform-head p { margin: 0; padding-left: 1.1rem; }
.count-badge {
    font: 700 1.4rem/1 var(--mono); color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    padding: .55rem .85rem; border-radius: 10px;
}
.platform-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; }
.platform-body.no-cover { grid-template-columns: 1fr; }
.platform-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; position: sticky; top: 90px; }
.platform-cover img { width: 100%; height: auto; transition: transform .6s; }
.platform-cover:hover img { transform: scale(1.03); }
.group-name { font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 1.6rem 0 .6rem; }
.group-name:first-child { margin-top: 0; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.items li {
    display: flex; align-items: center; gap: .85rem;
    padding: .75rem .9rem; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line);
}
.swatch {
    flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--c);
    box-shadow: inset 0 0 0 1px #ffffff26, inset 0 -8px 12px -6px rgba(0,0,0,.45), 0 0 14px -4px var(--c);
}
.item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.item-text strong { font-weight: 600; font-size: .97rem; }
.item-text small { color: var(--muted); font-size: .82rem; }
.qty { font: 700 .85rem var(--mono); color: var(--accent); }
.platform-more { margin-top: 1.25rem; }
@media (max-width: 820px) {
    .platform-body { grid-template-columns: 1fr; }
    .platform-cover { position: static; }
}

/* ---------- Prose ---------- */
.prose { font-size: 1.12rem; color: #d3d2ce; margin-top: 1.5rem; }
.prose p { max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 6rem; padding: 3rem 0 4rem; background: #0a0b0c; }
.foot-brand { font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: .05em; font-size: 1.1rem; }
.footer-inner p { max-width: 70ch; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(5,5,6,.95);
    display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
    animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 3rem 0 1.5rem; min-width: 0; }
.lightbox img { max-height: calc(100vh - 9rem); max-width: 100%; width: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 80px #000; }
.lightbox figcaption { margin-top: 1rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; max-width: 70ch; padding: 0 1rem; }
.lightbox .lb-caption { color: var(--muted); font-size: .95rem; }
.lightbox .lb-count { font: 500 .75rem var(--mono); color: #666; margin-top: .3rem; }
.lightbox button {
    background: none; border: 0; color: var(--text); cursor: pointer;
    font-size: 3rem; line-height: 1; height: 100%; opacity: .6; transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: .6rem; right: 1rem; height: auto !important; font-size: 2.6rem !important; z-index: 2; }
@media (max-width: 600px) {
    .lightbox { grid-template-columns: 36px 1fr 36px; }
    .lightbox button { font-size: 2rem; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
