/* ============================================================
   DASH ZONE — MIDNIGHT DROP
   Industrial brutalism / tactical dark substrate
   ============================================================ */

:root {
  --bg: #0c0c0c;            /* deactivated CRT black */
  --panel: #141414;         /* matte black panel */
  --concrete: #2b2b28;      /* concrete gray */
  --concrete-lite: #8f8f88; /* dusty concrete */
  --ink: #eaeaea;           /* white phosphor */
  --dim: #9a9a94;
  --acid: #c8ff00;          /* single acid-green accent */
  --line: #2e2e2b;
  --font-display: "Anton", "Arial Narrow", "Impact", sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

::selection { background: var(--acid); color: #0c0c0c; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -100%;
  pointer-events: none; z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(8px);
  height: 52px;
}
.topbar__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.topbar__brand sup { font-size: 0.5em; color: var(--acid); margin-left: 2px; }
.topbar__meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--dim);
}
.topbar__sep { color: var(--acid); }
.cartbtn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; border-left: 1px solid var(--line);
  color: var(--ink); padding: 0 20px; cursor: pointer;
  font-size: 0.72rem; letter-spacing: 0.08em;
}
.cartbtn:hover { background: var(--acid); color: #0c0c0c; }
.cartbtn:hover .cartbtn__count { background: #0c0c0c; color: var(--acid); }
.cartbtn__count {
  background: var(--acid); color: #0c0c0c;
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.68rem;
  transition: transform 0.15s;
}
.cartbtn__count.bump { transform: scale(1.4); }

/* ---------- hero ---------- */
.hero { height: 420vh; position: relative; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  opacity: 0;
}
.hero--video .hero__video { opacity: 1; }
.hero--video .hero__frames { display: none; }
.hero__frames { position: absolute; inset: 0; }
.hero__frameimg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) contrast(1.05);
  will-change: opacity, transform;
}
.hero__frameimg:first-child { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,12,0.55) 0%, rgba(12,12,12,0.1) 35%, rgba(12,12,12,0.15) 65%, rgba(12,12,12,0.85) 100%);
}
.hero__frame { position: absolute; inset: 24px; pointer-events: none; color: var(--dim); }
.hero__crosshair { position: absolute; font-size: 1rem; color: var(--acid); }
.hero__crosshair--tl { top: 40px; left: 0; }
.hero__crosshair--tr { top: 40px; right: 0; }
.hero__crosshair--bl { bottom: 0; left: 0; }
.hero__crosshair--br { bottom: 0; right: 0; }

.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 4vw;
}
.hero__kicker { color: var(--concrete-lite); margin-bottom: 2.2vh; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.hero__line {
  display: block;
  font-size: clamp(3.4rem, 12.5vw, 12rem);
  color: var(--ink);
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}
.hero__line--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--acid);
}

.countdown {
  margin-top: 4vh;
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(12, 12, 12, 0.65);
  border: 1px solid var(--line);
  padding: 14px 22px;
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown__num {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown__num--accent { color: var(--acid); }
.countdown__label { font-size: 0.58rem; letter-spacing: 0.2em; color: var(--dim); }
.countdown__colon { font-size: clamp(1.2rem, 2.6vw, 2rem); color: var(--concrete-lite); line-height: 1.1; }
.countdown--live .countdown__num { color: var(--acid); }

.hero__foot {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  display: flex; align-items: center; gap: 18px;
  color: var(--dim); font-size: 0.66rem; letter-spacing: 0.1em;
}
.hero__progress {
  flex: 1; height: 2px; background: var(--line); position: relative;
}
.hero__progressbar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: var(--acid);
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  padding: 12px 0;
}
.marquee--accent { background: var(--acid); }
.marquee--accent .marquee__chunk { color: #0c0c0c; }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track--reverse { animation-direction: reverse; }
.marquee__chunk {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--concrete-lite);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- shop ---------- */
.shop { padding: 10vh 0 0; background: var(--bg); }
.shop__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 24px 4vh; gap: 20px; flex-wrap: wrap;
}
.shop__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.shop__sub { color: var(--dim); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--bg); display: flex; flex-direction: column; }
.card__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--concrete);
}
.card__video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.001);
  transition: transform 0.5s ease;
}
.card:hover .card__video { transform: scale(1.04); }
.card__tag {
  position: absolute; top: 12px; left: 12px;
  color: var(--ink); background: rgba(12,12,12,0.7);
  padding: 4px 8px; font-size: 0.62rem;
}
.card__hint {
  position: absolute; bottom: 12px; right: 12px;
  color: var(--acid); background: rgba(12,12,12,0.7);
  padding: 4px 8px; font-size: 0.62rem;
  opacity: 1; transition: opacity 0.3s;
}
.card:hover .card__hint { opacity: 0; }

.card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  text-transform: uppercase; line-height: 1;
}
.card__price { color: var(--acid); font-size: 1rem; font-weight: 700; }
.card__spec { color: var(--dim); font-size: 0.64rem; }

.sizes { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); width: max-content; }
.size {
  font-family: var(--font-mono);
  background: var(--bg); color: var(--ink);
  border: none; width: 44px; height: 38px;
  font-size: 0.72rem; letter-spacing: 0.05em;
  cursor: pointer;
}
.size:hover { background: var(--concrete); }
.size.is-active { background: var(--acid); color: #0c0c0c; font-weight: 700; }
.size--out { color: #4c4c48; text-decoration: line-through; cursor: pointer; position: relative; }
.size--out:hover { background: var(--panel); color: var(--acid); text-decoration: line-through; }

.addbtn {
  margin-top: auto;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  height: 48px; cursor: pointer;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.addbtn:disabled { border-color: var(--line); color: #4c4c48; cursor: not-allowed; }
.addbtn:not(:disabled):hover { background: var(--acid); color: #0c0c0c; border-color: var(--acid); font-weight: 700; }
.addbtn.added { background: var(--acid); color: #0c0c0c; border-color: var(--acid); font-weight: 700; }

/* ---------- macro / manifesto ---------- */
.macro { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.macro__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08);
}
.macro__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.65) 45%, rgba(12,12,12,0.15) 100%);
}
.macro__content {
  position: relative; z-index: 2;
  max-width: 640px; padding: 14vh 24px;
}
.macro__kicker { color: var(--acid); margin-bottom: 18px; }
.macro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.9; text-transform: uppercase;
  margin-bottom: 26px;
}
.macro__title--accent { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.macro__body {
  font-family: var(--font-mono);
  font-size: 0.85rem; line-height: 1.7;
  color: var(--concrete-lite);
  max-width: 480px; margin-bottom: 34px;
}
.macro__specs { border-top: 1px solid var(--line); max-width: 480px; }
.macro__specrow {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 0.7rem; letter-spacing: 0.1em;
}
.macro__specrow dt { color: var(--dim); }
.macro__specrow dd { color: var(--ink); }

/* ---------- lookbook ---------- */
.lookbook { background: var(--bg); padding-top: 10vh; }
.lookbook__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 24px 4vh; gap: 20px; flex-wrap: wrap;
}
.lookbook__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.9; text-transform: uppercase;
}
.lookbook__sub { color: var(--dim); }
.lookbook__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) { .lookbook__grid { grid-template-columns: repeat(2, 1fr); } }
.lookbook__item { background: var(--bg); margin: 0; position: relative; overflow: hidden; }
.lookbook__item img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.6s ease;
}
.lookbook__item:hover img { transform: scale(1.05); }
.lookbook__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(12,12,12,0.7); color: var(--ink);
  padding: 4px 8px; font-size: 0.62rem;
}

/* ---------- notify ---------- */
.notify {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 14vh 24px;
  text-align: center;
}
.notify__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: 0.92; text-transform: uppercase;
  margin-bottom: 14px;
}
.notify__sub { color: var(--dim); margin-bottom: 40px; }
.notify__form, .modal__form {
  display: flex; gap: 1px; max-width: 520px; margin: 0 auto;
  background: var(--line); border: 1px solid var(--line);
}
.notify__input {
  flex: 1; min-width: 0;
  background: var(--bg); border: none; outline: none;
  color: var(--ink); padding: 0 18px; height: 54px;
  font-size: 0.74rem; letter-spacing: 0.1em;
}
.notify__input::placeholder { color: #4c4c48; }
.notify__input:focus { box-shadow: inset 0 0 0 1px var(--acid); }
.notify__btn {
  background: var(--acid); color: #0c0c0c; border: none;
  padding: 0 26px; height: 54px; cursor: pointer;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.notify__btn:hover { background: var(--ink); }
.notify__done { color: var(--acid); margin-top: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 19.5vw, 22rem);
  line-height: 0.78;
  text-transform: uppercase;
  text-align: center;
  color: var(--concrete);
  transform: translateY(0.12em);
  user-select: none;
}
.footer__row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  color: var(--dim); font-size: 0.62rem;
  background: var(--bg); position: relative;
}

/* ---------- cart drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, 0.6);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(420px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; }
.drawer__close { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 0.74rem; }
.drawer__close:hover { color: var(--acid); }
.drawer__list { list-style: none; flex: 1; overflow-y: auto; }
.drawer__item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: 0.7rem; letter-spacing: 0.08em;
}
.drawer__iteminfo { display: flex; flex-direction: column; gap: 4px; }
.drawer__itemname { color: var(--ink); }
.drawer__itemmeta { color: var(--dim); font-size: 0.62rem; }
.drawer__itemprice { color: var(--acid); }
.drawer__remove { background: none; border: none; color: #4c4c48; cursor: pointer; font-size: 0.62rem; }
.drawer__remove:hover { color: var(--acid); }
.drawer__empty { padding: 30px 20px; color: var(--dim); }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.drawer__total {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; margin-bottom: 14px; color: var(--ink);
}
.drawer__total span:last-child { color: var(--acid); font-weight: 700; }
.drawer__checkout {
  width: 100%; height: 50px; border: none;
  background: var(--acid); color: #0c0c0c;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
}
.drawer__checkout:disabled { background: var(--concrete); color: #4c4c48; cursor: not-allowed; }
.drawer__checkout:not(:disabled):hover { background: var(--ink); }
.drawer__note { margin-top: 12px; color: var(--acid); font-size: 0.64rem; }

/* ---------- sold-out modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 170;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
}
.modal__box {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  padding: 40px 34px; max-width: 460px; width: 100%;
}
.modal__close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--dim); cursor: pointer; font-size: 0.72rem; }
.modal__close:hover { color: var(--acid); }
.modal__kicker { color: var(--acid); margin-bottom: 10px; }
.modal__title { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; text-transform: uppercase; line-height: 0.95; margin-bottom: 8px; }
.modal__sub { color: var(--dim); margin-bottom: 24px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}
