:root {
  --ink: #060404;
  --ink-2: #0e0908;
  --bone: #f1e9e3;
  --muted: #b9aaa3;
  --red: #df0500;          /* brand crimson — fills, marks, large type */
  --red-text: #ff3b2f;     /* small red text on ink (passes 4.5:1) */
  --line: rgba(241, 233, 227, 0.12);
  --gutter: clamp(16px, 5vw, 64px);
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink) url("assets/grain.png") repeat;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
em { font-style: italic; color: var(--red); }

.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }
.sec-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.sec-title em { font-weight: 900; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ff1a10; }
.btn-ghost { border-color: rgba(241,233,227,.35); color: var(--bone); background: rgba(6,4,4,.35); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: #000; }

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  background: rgba(6,4,4,.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-logo { display: flex; align-items: center; min-height: 44px; }
.bar-logo img { width: 104px; }
.bar-nav { display: none; }
.bar-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}

/* hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 96px var(--gutter) clamp(40px, 8vh, 80px);
  overflow: hidden; isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--ink) 4%, rgba(6,4,4,.55) 45%, rgba(6,4,4,.1) 75%);
}
.hero-inner { width: 100%; max-width: 1100px; }
.hero-mark { margin: 14px 0 0; }
.hero-mark img { width: 100%; }
.hero-line {
  margin: 18px 0 0; max-width: 18ch;
  font-family: var(--display); font-weight: 500; font-size: clamp(26px, 7vw, 54px); line-height: 1.05;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 150px; }

/* ticker */
.ticker { overflow: hidden; background: var(--red); color: #fff; padding: 12px 0; }
.ticker-track {
  display: flex; gap: 22px; width: max-content;
  font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  animation: tick 28s linear infinite;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* intro */
.intro { padding: clamp(56px, 12vw, 140px) var(--gutter); }
.intro p {
  margin: 0; max-width: 22ch;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 8.4vw, 76px); line-height: 1.04; letter-spacing: -0.01em;
}

/* work gallery */
.work { padding: 0 var(--gutter) clamp(64px, 12vw, 140px); }
.sec-head { margin-bottom: clamp(24px, 5vw, 48px); }
.gallery {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 8px;
}
.gallery li { break-inside: avoid; margin-bottom: 8px; }
.g-item {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden;
}
.g-item img { width: 100%; height: auto; transition: transform .5s ease; }
.g-item span {
  position: absolute; left: 8px; bottom: 8px;
  padding: 4px 8px; background: rgba(6,4,4,.8); color: var(--bone);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}
@media (hover: hover) { .g-item:hover img { transform: scale(1.04); } }

/* garment */
.garment {
  display: grid; gap: 28px;
  padding: clamp(56px, 10vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
}
.garment-art { margin: 0; background: #000; border: 1px solid var(--line); }
.garment-copy > p:not(.label) { margin: 18px 0 0; max-width: 42ch; font-size: 15px; }
.garment-copy .btn { margin-top: 26px; }

/* magazine */
.mag {
  display: grid; gap: 28px; justify-items: start;
  padding: clamp(56px, 10vw, 120px) var(--gutter);
  background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mag-cover { width: min(78vw, 420px); box-shadow: 0 30px 80px rgba(223, 5, 0, .18); transform: rotate(-2deg); }
.mag-copy p:not(.label) { margin: 14px 0 0; color: var(--muted); }

/* sound */
.sound { padding: clamp(56px, 10vw, 120px) var(--gutter); }
.sound > p:not(.label) { margin: 16px 0 0; color: var(--muted); }
.sound-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sound-links .btn { flex: 1 1 200px; }

/* waitlist */
.list { background: var(--red); padding: clamp(48px, 10vw, 120px) var(--gutter); }
.list-card { max-width: 720px; color: #fff; }
.list .label { color: rgba(255,255,255,.8); }
.list-title {
  margin: 10px 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 14vw, 120px); line-height: .9; letter-spacing: -0.03em;
}
.list-title em { color: var(--ink); }
.list-card > p:not(.label):not(.join-status) { margin: 18px 0 0; max-width: 40ch; }
.join { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.join input {
  width: 100%; min-height: 56px; padding: 0 20px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff;
  font-family: var(--mono); font-size: 16px;
}
.join input::placeholder { color: rgba(255,255,255,.7); }
.join input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.14); }
.join .btn { min-height: 56px; }
.join .btn:disabled { opacity: .6; cursor: progress; }
.join-status { min-height: 1.6em; margin: 14px 0 0; font-weight: 700; }
.join-status.ok { color: #fff; }
.join-status.err { color: var(--ink); }

/* footer */
.foot { padding: 56px var(--gutter) max(32px, env(safe-area-inset-bottom)); display: grid; gap: 22px; }
.foot-mark { width: 100%; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.foot-links a:hover { color: var(--red-text); }

/* artwork viewer */
.viewer {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; background: rgba(6,4,4,.96);
}
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer::backdrop { background: rgba(0,0,0,.8); }
.viewer img { max-width: 94vw; max-height: 86dvh; object-fit: contain; }
.viewer-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px;
  width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ≥ 700px */
@media (min-width: 700px) {
  body { font-size: 16px; }
  .gallery { columns: 3; column-gap: 12px; }
  .gallery li { margin-bottom: 12px; }
  .join { flex-direction: row; }
  .join .btn { flex: 0 0 auto; padding: 0 34px; }
  .hero-actions .btn, .sound-links .btn { flex: 0 0 auto; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  .bar-logo img { width: 130px; }
  .bar-nav { display: flex; gap: 34px; margin-left: auto; }
  .bar-nav a {
    display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  }
  .bar-nav a:hover { color: var(--red-text); }
  .hero { align-items: center; }
  .hero-art { object-position: 70% 40%; }
  .hero::after { background: linear-gradient(to right, var(--ink) 10%, rgba(6,4,4,.6) 50%, rgba(6,4,4,.15)); }
  .hero-inner { max-width: 760px; }
  .garment { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
  .mag { grid-template-columns: auto 1fr; align-items: center; gap: clamp(40px, 7vw, 120px); }
  .mag-cover { width: min(34vw, 460px); }
  .foot { grid-template-columns: 1fr auto; align-items: end; }
  .foot-mark { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .g-item img { transition: none; }
}
