:root {
  --bg: #0b0a0f;
  --bg-2: #15131c;
  --line: #2a2733;
  --text: #f3f0ea;
  --muted: #a39fae;
  --accent: #ff3d6e;
  --accent-2: #5b46e8;
  --radius: 14px;
  --max: 1240px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(11 10 15 / .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -.01em; }
.brand { flex-shrink: 0; }
.brand img { width: 30px; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav a { padding: 8px 9px; font-size: 14px; }
}

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40ch; }
.eyebrow { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: clamp(56px, 9vw, 110px) 0; }
section + section { border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 16px var(--body); text-decoration: none; cursor: pointer;
  background: var(--bg-2); color: var(--text);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #1d1a26; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff5a84; }
.btn-dust { background: linear-gradient(135deg, var(--accent-2), #ff7ab6); border: 0; color: #fff; }
.btn-dust:hover { background: linear-gradient(135deg, #6a56ff, #ff8fc3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 span { color: var(--accent); }

/* Gallery */
.gallery { columns: 3 300px; column-gap: 16px; }
.piece {
  break-inside: avoid; margin: 0 0 16px; position: relative;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  cursor: zoom-in;
}
.piece button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.piece img { width: 100%; height: auto; transition: transform .4s ease; }
.piece:hover img { transform: scale(1.03); }
.piece figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / .75));
  font: 600 15px var(--display); opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.piece:hover figcaption, .piece:focus-within figcaption { opacity: 1; }
@media (hover: none) { .piece figcaption { opacity: 1; } }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; color: var(--text);
}
.lightbox::backdrop { background: rgb(5 4 8 / .94); }
.lightbox-inner { height: 100%; display: grid; place-items: center; padding: 56px 16px 72px; }
.lightbox img { max-height: calc(100vh - 140px); max-width: min(1400px, 100%); width: auto; border-radius: 8px; }
.lightbox-caption { position: fixed; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 0 16px; font: 600 17px var(--display); }
.lb-buy { font: 600 14px var(--body); text-decoration: none; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 999px; }
.lb-buy:hover { background: #ff5a84; }
.support .btn-row { flex-wrap: wrap; }
.lb-btn {
  position: fixed; background: rgb(255 255 255 / .08); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer;
}
.lb-btn:hover { background: rgb(255 255 255 / .18); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }

/* Cards / grids */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }

/* Dust */
.dust-hero { position: relative; overflow: hidden; }
.dust-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw;
  background: radial-gradient(closest-side, rgb(91 70 232 / .35), transparent);
  pointer-events: none;
}
.dust-icon { width: min(360px, 70vw); margin-inline: auto; filter: drop-shadow(0 30px 60px rgb(91 70 232 / .35)) drop-shadow(0 0 1px rgb(255 255 255 / .2)); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
kbd { font: 600 13px var(--body); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* Support band */
.support { background: linear-gradient(135deg, #1a1024, #0b0a0f 60%); }
.support .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.support h2 { margin-bottom: .25em; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; font: 16px var(--body); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-2); outline-offset: 0; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
}
.choices input { accent-color: var(--accent); }
.choices label:has(input:checked) { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.ok { color: #6be3a4; }
.form-status.err { color: #ff8a8a; }

/* Prose pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Video art */
.va-heading { font-size: clamp(24px, 3vw, 34px); margin-bottom: 24px; }
.va-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 32px 20px; }
.va-loops { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.va-item h3 { margin: 14px 0 2px; font-size: 19px; }
.va-item p { margin: 0; color: var(--muted); font-size: 14px; }
.va-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.va-loops .va-media { aspect-ratio: 1; }
.va-media > img, .va-media video { width: 100%; height: 100%; object-fit: cover; }
.va-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.va-play { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.va-play span { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .2s ease; box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.va-play span::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.va-play:hover span { transform: scale(1.08); }
.va-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.va-teaser a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.va-teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.va-teaser a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .va-teaser { grid-template-columns: 1fr 1fr; } .va-teaser a:nth-child(3) { display: none; } }

/* Shop (originals) */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 20px; }
.shop-item { scroll-margin-top: 90px; }
.shop-img { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); aspect-ratio: 1; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shop-img:hover img { transform: scale(1.03); }
.shop-info h3 { margin: 16px 0 4px; font-size: 21px; }
.shop-info p { margin: 0 0 14px; }
.shop-buy .btn { padding: 11px 20px; font-size: 15px; }
.shop-status { display: inline-block; font-weight: 600; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.shop-item.is-sold .shop-img img { filter: grayscale(.6) brightness(.7); }
.shop-item:target .shop-img { outline: 2px solid var(--accent); outline-offset: 4px; }
.shop-empty { max-width: 560px; }
.shop-shipping { margin-top: 40px; max-width: 70ch; }
