/* ================================================================
   LEIGHT — the house of chance
   Palette: black, beige, white. One blue, reserved for the
   die's triangular window and nothing else.
   ================================================================ */

:root {
  --fog: #d9cfbc;      /* beige — the room */
  --fog-2: #e2d9c9;    /* beige, lighter */
  --fog-3: #cbbfa6;    /* beige, deeper */
  --ink: #131210;      /* black */
  --graphite: #5b5344; /* warm graphite for secondary text */
  --paper: #f7f3ea;    /* white */
  --die: #2438b8;
  --die-deep: #1a2a8f;
  --alarm: #9c3a22;    /* errors only */

  --font-display: "Fraunces", serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "Spline Sans Mono", monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease-ball: cubic-bezier(0.65, 0, 0.15, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- type roles ---------- */

.display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-weight: 480;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: normal;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--fog) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 14%, transparent);
}

.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-weight: 560;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.wordmark img {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  transition: transform 0.6s var(--ease-ball);
}

.wordmark:hover img { transform: rotate(200deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.site-nav a, .site-nav button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 0.2rem 0;
  white-space: nowrap;
}

.site-nav a::after, .site-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.site-nav a:hover::after, .site-nav button:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.bag-count {
  display: inline-block;
  min-width: 1.35em;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.1em 0.35em;
  margin-left: 0.35em;
  font-size: 0.9em;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.bag-count.bump { transform: scale(1.45); background: var(--graphite); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero video, .hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  /* graphite vignette so type sits on the footage */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(22, 21, 19, 0.28) 100%),
    linear-gradient(to top, rgba(22, 21, 19, 0.35), transparent 35%);
}

.hero-inner {
  text-align: center;
  padding: 0 var(--gutter);
  color: var(--paper);
}

.hero-inner .eyebrow {
  color: var(--paper);
  opacity: 0.9;
  text-shadow: 0 1px 14px rgba(22, 21, 19, 0.8), 0 0 3px rgba(22, 21, 19, 0.6);
}

.hero-sub { text-shadow: 0 1px 14px rgba(22, 21, 19, 0.8); }

.hero-title {
  font-size: clamp(4.2rem, 17vw, 15rem);
  color: var(--paper);
  margin: 0.5rem 0 1.2rem;
  text-shadow: 0 2px 40px rgba(22, 21, 19, 0.35);
}

.hero-title .ei { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1; }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  opacity: 0.92;
}

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  opacity: 0.75;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: drift 2.6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* staged hero entrance */
.hero [data-stage] {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero [data-stage="1"] { animation-delay: 0.15s; }
.hero [data-stage="2"] { animation-delay: 0.35s; }
.hero [data-stage="3"] { animation-delay: 0.6s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- chapters ---------- */

.chapter {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: clamp(2rem, 5vh, 3.6rem);
}

.chapter-head .rule {
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
}

.chapter-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.chapter-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}

.prose {
  max-width: 58ch;
  color: var(--graphite);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose + .prose { margin-top: 1.2em; }

/* the shake — story split */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.story-media img {
  width: 100%;
  border-radius: 4px;
  filter: contrast(1.02);
}

.story-media figcaption {
  margin-top: 0.8rem;
}

/* the odds */
.odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.odds > div {
  background: var(--fog);
  padding: clamp(1.6rem, 3vw, 2.8rem) clamp(1rem, 2vw, 2rem);
  text-align: center;
}

.odds .n {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  display: block;
}

.odds .n.yes { color: var(--ink); }
.odds .n.hazy { color: var(--graphite); }
.odds .n.no {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.odds .lbl { margin-top: 0.6rem; display: block; }

.odds-note {
  margin-top: 1.4rem;
  text-align: center;
  color: var(--graphite);
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40, "SOFT" 70, "WONK" 1;
  font-size: 1.15rem;
}

/* ---------- product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2.2rem) clamp(0.8rem, 2vw, 1.6rem);
}

.product-card {
  position: relative;
  display: block;
}

.product-card .frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--fog-2);
  aspect-ratio: 3 / 4;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}

.product-card:hover img {
  transform: scale(1.045) rotate(-0.6deg);
}

/* the stamped verdict on hover */
.product-card .stamp {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(22, 21, 19, 0.82), transparent);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 70, "WONK" 1;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.product-card:hover .stamp {
  opacity: 1;
  transform: none;
}

.product-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.7rem;
}

.product-card .name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 520;
  font-size: 1.12rem;
  line-height: 1.15;
}

.product-card .garment {
  color: var(--graphite);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.product-card .price { white-space: nowrap; }

/* ---------- product page ---------- */

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: calc(4.5rem + 4vh) var(--gutter) 6rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

.pdp-media {
  position: sticky;
  top: 5.5rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--fog-2);
}

.pdp-info .sku { color: var(--graphite); }

.pdp-info h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin: 0.6rem 0 0.2rem;
}

.pdp-info .garment {
  color: var(--graphite);
  font-size: 1.1rem;
}

.pdp-info .price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  margin: 1.4rem 0;
}

.pdp-info .description {
  color: var(--graphite);
  max-width: 52ch;
}

.pdp-details {
  margin: 1.8rem 0 2.2rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.pdp-details li {
  list-style: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  font-size: 0.92rem;
  color: var(--graphite);
  display: flex;
  gap: 0.8rem;
}

.pdp-details li::before {
  content: "—";
  color: var(--ink);
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1.6rem;
}

.size-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: 999px;
  transition: all 0.25s var(--ease-out);
}

.size-btn:hover { border-color: var(--ink); }

.size-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 2.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
}

.btn:hover { transform: translateY(-2px); background: var(--paper); color: var(--ink); border-color: var(--ink); }

.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--wide { width: 100%; }

/* ask-the-ball verdict on pdp */
.pdp-oracle {
  margin-top: 1rem;
  min-height: 2.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 70, "WONK" 1;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  padding: 0.85rem 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: ticker 38s linear infinite;
}

.ticker span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  padding: 0 2.2rem;
}

.ticker b { color: var(--ink); font-weight: 500; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) 2.2rem;
  margin-top: clamp(4rem, 10vh, 8rem);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-ask h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-weight: 460;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

.footer-ask h2 em { font-style: italic; }

.newsletter {
  display: flex;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 45%, transparent);
  max-width: 26rem;
}

.newsletter input {
  flex: 1;
  background: none;
  border: none;
  color: var(--paper);
  font: inherit;
  padding: 0.7rem 0;
}

.newsletter input::placeholder { color: color-mix(in srgb, var(--paper) 55%, transparent); }

.newsletter input:focus { outline: none; }

.newsletter button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0 0.4rem;
  transition: color 0.3s;
}

.newsletter button:hover { color: var(--fog-3); }

.newsletter-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin-bottom: 1.1rem;
  font-weight: 400;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--fog); }

.footer-legal {
  max-width: 1280px;
  margin: 3.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---------- legal / document pages ---------- */

.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(5rem + 6vh) var(--gutter) 5rem;
}

.doc h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin: 0.5rem 0 0.8rem;
}

.doc .doc-updated { color: var(--graphite); }

.doc h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 520;
  font-size: 1.45rem;
  margin: 2.6rem 0 0.8rem;
}

.doc p, .doc li {
  color: var(--graphite);
  margin-bottom: 0.9em;
}

.doc ul, .doc ol { padding-left: 1.2rem; }

.doc a { text-decoration: underline; text-underline-offset: 3px; }

.doc a:hover { color: var(--graphite); }

.doc .placeholder {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 3px;
  padding: 0 0.3em;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ---------- the oracle (docked ball) ---------- */

.oracle {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(22, 21, 19, 0.35));
  transition: transform 0.4s var(--ease-out);
}

.oracle:hover { transform: scale(1.07) rotate(-6deg); }

.oracle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.oracle.is-shaking { animation: shake 0.75s var(--ease-ball); }

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-7px) rotate(-9deg); }
  30% { transform: translateX(6px) rotate(8deg); }
  45% { transform: translateX(-5px) rotate(-6deg); }
  60% { transform: translateX(4px) rotate(5deg); }
  75% { transform: translateX(-2px) rotate(-2deg); }
}

.oracle-bubble {
  position: absolute;
  right: calc(100% + 0.9rem);
  bottom: 50%;
  transform: translateY(50%) scale(0.6);
  transform-origin: right center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 70, "WONK" 1;
  font-size: 1.02rem;
  line-height: 1.25;
  padding: 0.8rem 1.2rem;
  border-radius: 4px 14px 4px 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}

.oracle-bubble::after {
  /* the die's triangular window */
  content: "";
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid var(--ink);
}

.oracle-bubble.is-visible {
  opacity: 1;
  transform: translateY(50%) scale(1);
}

.oracle-label {
  position: absolute;
  inset: auto 50% -1.4rem auto;
  transform: translateX(50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
}

/* ---------- ball page transition ---------- */

.ball-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.ball-veil .disc {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
}

.ball-veil .fate {
  position: relative;
  z-index: 2;
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  font-size: clamp(1.6rem, 4vw, 3rem);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.ball-veil .fate .tri {
  width: 0;
  height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 44px solid var(--die);
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--die) 60%, transparent));
}

.ball-veil.is-entering { pointer-events: all; }

.ball-veil.is-entering .disc {
  animation: ball-swallow 0.65s var(--ease-ball) forwards;
}

.ball-veil.is-entering .fate {
  animation: fate-flash 0.5s 0.45s var(--ease-out) forwards;
}

@keyframes ball-swallow {
  to { transform: scale(160); }
}

@keyframes fate-flash {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* on page load: the veil starts covering, then rolls away */
.ball-veil.is-leaving .disc {
  transform: scale(160);
  animation: ball-release 0.7s 0.15s var(--ease-ball) forwards;
}

@keyframes ball-release {
  to { transform: scale(0); }
}

/* ---------- scroll reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px) rotate(0.4deg);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- cart drawer ---------- */

.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(22, 21, 19, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.cart-scrim.is-open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(28rem, 100vw);
  background: var(--paper);
  transform: translateX(105%);
  transition: transform 0.55s var(--ease-ball);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(22, 21, 19, 0.25);
}

.cart-drawer.is-open { transform: none; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}

.cart-head h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 520;
  font-size: 1.4rem;
}

.cart-close { font-size: 1.5rem; line-height: 1; padding: 0.2rem 0.5rem; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.6rem;
}

.cart-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--graphite);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 70, "WONK" 1;
  font-size: 1.2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  align-items: center;
}

.cart-item img {
  width: 4.2rem;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
}

.cart-item .ci-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 520;
  font-size: 1rem;
  line-height: 1.2;
}

.cart-item .ci-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--graphite);
  margin-top: 0.25rem;
}

.ci-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.ci-qty button {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: all 0.2s;
}

.ci-qty button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ci-right { text-align: right; }

.ci-remove {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--graphite);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 0.5rem;
}

.ci-remove:hover { color: var(--alarm); }

.cart-foot {
  padding: 1.4rem 1.6rem 1.8rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.cart-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--graphite);
  text-align: center;
}

.cart-error {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--alarm);
  text-align: center;
  display: none;
}

.cart-error.is-visible { display: block; }

/* ---------- cookie notice ---------- */

.cookie-bar {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 75;
  max-width: 21rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 14px 40px rgba(22, 21, 19, 0.35);
  transform: translateY(150%);
  transition: transform 0.6s var(--ease-ball);
}

.cookie-bar.is-visible { transform: none; }

.cookie-bar a { text-decoration: underline; text-underline-offset: 2px; }

.cookie-bar .btn {
  margin-top: 0.8rem;
  padding: 0.55rem 1.3rem;
  font-size: 0.68rem;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cookie-bar .btn:hover { background: var(--fog); color: var(--ink); border-color: var(--fog); }

/* ---------- shop page head ---------- */

.page-head {
  padding: calc(5rem + 8vh) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.page-head h1 {
  font-size: clamp(3rem, 9vw, 7rem);
}

.page-head .prose { margin-top: 1rem; }

/* ---------- status pages (success / cancel) ---------- */

.status-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--gutter);
}

.status-page .tri {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid var(--die);
  margin: 0 auto 1.6rem;
}

.status-page h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}

.status-page p {
  color: var(--graphite);
  max-width: 44ch;
  margin: 1.2rem auto 2.2rem;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .odds { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 0.9rem; }
  .site-nav .nav-home { display: none; }
  .site-nav a, .site-nav button { font-size: 0.68rem; letter-spacing: 0.12em; }
  .wordmark { font-size: 1.15rem; gap: 0.4rem; }
  .wordmark img { width: 1.5rem; height: 1.5rem; }
  .oracle { width: 3.6rem; height: 3.6rem; }
  .oracle-bubble { white-space: normal; min-width: 11rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero [data-stage] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ================================================================
   Y2K LAYER — the street side of the house
   Grain, marquees, stickers, barcodes, the rack, the gate.
   ================================================================ */

/* ---------- film grain over everything ---------- */

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  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)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.2%, 0.8%); }
  50% { transform: translate(0.9%, -0.6%); }
  75% { transform: translate(-0.5%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- big marquee dividers ---------- */

.mq {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding: 0.55rem 0;
  user-select: none;
}

.mq-track {
  display: inline-block;
  animation: ticker var(--mq-speed, 26s) linear infinite;
  will-change: transform;
}

.mq span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.1;
  padding: 0 1.6rem;
  letter-spacing: -0.01em;
}

.mq .hollow {
  color: transparent;
  -webkit-text-stroke: 1.3px var(--ink);
}

.mq .ball-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: baseline;
  position: relative;
}

.mq .ball-dot::after {
  content: "";
  position: absolute;
  top: 22%;
  left: 30%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: var(--paper);
}

.mq--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.mq--dark .hollow { -webkit-text-stroke-color: var(--paper); }
.mq--dark .ball-dot { background: var(--paper); }
.mq--dark .ball-dot::after { background: var(--ink); }

.mq--slow { --mq-speed: 40s; }
.mq--fast { --mq-speed: 16s; }

/* ---------- outlined display type ---------- */

.hollow-display {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}

/* ---------- stickers & the seal ---------- */

.sticker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(var(--tilt, -3deg));
  box-shadow: 2px 3px 0 color-mix(in srgb, var(--ink) 85%, transparent);
  white-space: nowrap;
}

.sticker--ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 2px 3px 0 color-mix(in srgb, var(--ink) 30%, transparent);
}

/* rotating star seal, y2k hologram-sticker energy */
.seal {
  position: relative;
  width: clamp(6.5rem, 10vw, 9rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--paper);
}

.seal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  clip-path: polygon(50% 0%, 59% 12%, 72% 5%, 75% 19%, 89% 17%, 86% 31%, 100% 35%, 91% 46%, 100% 58%, 88% 65%, 93% 79%, 79% 79%, 78% 94%, 65% 88%, 57% 100%, 50% 88%, 43% 100%, 35% 88%, 22% 94%, 21% 79%, 7% 79%, 12% 65%, 0% 58%, 9% 46%, 0% 35%, 14% 31%, 11% 17%, 25% 19%, 28% 5%, 41% 12%);
  animation: seal-spin 24s linear infinite;
  z-index: -1;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

/* ---------- barcode strip ---------- */

.barcode {
  display: inline-block;
}

.barcode .bars {
  height: 2rem;
  width: 9rem;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 4px,
      var(--ink) 4px 7px, transparent 7px 9px,
      var(--ink) 9px 10px, transparent 10px 14px,
      var(--ink) 14px 16px, transparent 16px 17px,
      var(--ink) 17px 21px, transparent 21px 24px);
}

.barcode .code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  margin-top: 0.3rem;
  color: var(--graphite);
}

/* ---------- the rack — editorial shop grid ---------- */

.rack {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2.5rem, 6vh, 5rem) clamp(0.8rem, 2vw, 1.6rem);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
}

.rack-item {
  position: relative;
  display: block;
}

.rack-item:nth-child(4n + 1) { grid-column: 1 / span 6; }
.rack-item:nth-child(4n + 2) { grid-column: 8 / span 5; margin-top: clamp(3rem, 10vh, 7rem); }
.rack-item:nth-child(4n + 3) { grid-column: 2 / span 5; margin-top: -2rem; }
.rack-item:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: clamp(2rem, 7vh, 5rem); }

.rack-item .idx {
  position: absolute;
  top: -0.55em;
  left: -0.06em;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
  pointer-events: none;
}

.rack-item .frame {
  position: relative;
  overflow: hidden;
  background: var(--fog-2);
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--ink);
  transform: rotate(var(--lean, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  box-shadow: 0 0 0 0 var(--ink);
}

.rack-item:nth-child(odd) { --lean: -0.8deg; }
.rack-item:nth-child(even) { --lean: 0.7deg; }

.rack-item:hover .frame {
  transform: rotate(0deg) translate(-4px, -4px);
  box-shadow: 7px 7px 0 var(--ink);
}

.rack-item .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
}

.rack-item:hover .frame img {
  transform: scale(1.05);
  filter: contrast(1.05);
}

.rack-item .verdict-stamp {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  opacity: 0;
  transform: rotate(6deg) scale(0.7);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-ball);
}

.rack-item:hover .verdict-stamp {
  opacity: 1;
  transform: rotate(-4deg) scale(1);
}

.rack-item .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1.5px solid var(--ink);
}

.rack-item .name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 540;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.05;
}

.rack-item .garment {
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.rack-item .price {
  font-family: var(--font-mono);
  font-size: 1rem;
  white-space: nowrap;
}

/* ---------- black manifest band (shop) ---------- */

.manifest {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
}

.manifest-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.manifest h2 {
  font-family: var(--font-display);
  font-weight: 480;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.manifest h2 em { font-style: italic; }

.manifest .rules {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.manifest .rules li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
}

.manifest .rules li:first-child {
  border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
}

.manifest .rules .k { color: color-mix(in srgb, var(--paper) 60%, transparent); }

.manifest video {
  width: 100%;
  border: 1.5px solid color-mix(in srgb, var(--paper) 35%, transparent);
}

/* ---------- shop page header, y2k cut ---------- */

.shop-head {
  padding: calc(4.5rem + 4vh) var(--gutter) 0;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.shop-head .kicker-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.shop-head h1 {
  font-size: clamp(3.4rem, 11vw, 9rem);
  margin: 0.6rem 0 0;
  line-height: 0.92;
}

.shop-head h1 .hollow-display { display: inline-block; transform: translateY(0.02em) rotate(-1.2deg); }

.shop-head .shop-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.shop-head .prose { max-width: 44ch; }

.shop-film {
  max-width: 1280px;
  margin: clamp(2rem, 5vh, 3.5rem) auto 0;
  padding: 0 var(--gutter);
}

.shop-film video {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  filter: contrast(1.03);
}

.shop-film figcaption {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--graphite);
}

/* ---------- product page v2 ---------- */

.pdp { position: relative; }

.pdp-ghost {
  position: absolute;
  top: 3.2rem;
  left: 0;
  right: 0;
  z-index: -1;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 0.9;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.3px color-mix(in srgb, var(--ink) 22%, transparent);
  pointer-events: none;
  user-select: none;
}

.pdp-media {
  border: 1.5px solid var(--ink);
  border-radius: 0;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.pdp-media .media-sticker {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.pdp-media .media-band {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-top: 1.5px solid var(--ink);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pdp-info .price {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 0.35rem 0.9rem;
  transform: rotate(-1.5deg);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.size-btn { border-radius: 2px; min-width: 3rem; text-align: center; }

.size-btn.is-active { box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 35%, transparent); }

.edition-meter {
  margin: 1.6rem 0 0.4rem;
}

.edition-meter .track {
  height: 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.edition-meter .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--left, 62%);
  background: repeating-linear-gradient(-45deg, var(--ink) 0 5px, transparent 5px 10px);
}

.edition-meter .lbl {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 0.4rem;
}

.pdp-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---------- countdown gate ---------- */

.gate {
  min-height: 100svh;
  background: #0a0908;
  color: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.gate-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Two stacked copies of the 8-ball are crossfaded by script (see
     countdown.html) so the clip loops with no visible seam. Opacity is
     driven per-frame; this is just the resting value before JS starts. */
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}

/* Never show the native iOS/Safari play-button overlay on the background
   video — if autoplay is blocked the script hides the video anyway. */
.gate-bg::-webkit-media-controls,
.gate-bg::-webkit-media-controls-start-playback-button,
.gate-bg::-webkit-media-controls-play-button,
.gate-bg::-webkit-media-controls-panel,
.gate-bg::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
}

.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10, 9, 8, 0.82) 100%),
    linear-gradient(to bottom, rgba(10, 9, 8, 0.5), transparent 30%, transparent 70%, rgba(10, 9, 8, 0.75));
}

.gate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}

.gate-main {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem var(--gutter);
}

.gate-wordmark {
  font-family: var(--font-display);
  font-weight: 480;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.95;
  margin-bottom: 0.4rem;
}

.gate-wordmark .ei { font-style: italic; }

.gate-ask {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 70, "WONK" 1;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  margin-bottom: clamp(2rem, 6vh, 3.4rem);
}

.gate-clock {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 1.8rem);
  font-variant-numeric: tabular-nums;
}

.gate-cell { text-align: center; }

.gate-cell .num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.8rem, 11vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
  min-width: 2ch;
}

.gate-cell .unit {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.gate-colon {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 8vw, 5.5rem);
  line-height: 1;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  animation: blink 2s steps(2) infinite;
  transform: translateY(-0.25em);
}

@keyframes blink { 50% { opacity: 0.15; } }

.gate-date {
  margin-top: clamp(1.8rem, 5vh, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gate-form {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  width: min(24rem, 88vw);
  margin-inline: auto;
}

.gate-form .newsletter { border-color: color-mix(in srgb, var(--paper) 45%, transparent); max-width: none; }

.gate-form .newsletter-note { color: color-mix(in srgb, var(--paper) 55%, transparent); }

.gate .mq { border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.gate .mq .hollow { -webkit-text-stroke-color: color-mix(in srgb, var(--paper) 85%, transparent); }
.gate .mq span { color: var(--paper); }
.gate .mq .ball-dot { background: var(--paper); }
.gate .mq .ball-dot::after { background: #0a0908; }

/* ---------- dark status pages ---------- */

.status-page--dark {
  background: #0a0908;
  color: var(--paper);
}

.status-page--dark p { color: color-mix(in srgb, var(--paper) 70%, transparent); }

.status-page .orb {
  width: clamp(9rem, 22vw, 14rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
  border: 1.5px solid color-mix(in srgb, var(--paper) 40%, transparent);
}

.status-page .orb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-page--dark .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.status-page--dark .btn:hover { background: transparent; color: var(--paper); }

/* ---------- doc pages, y2k head band ---------- */

.doc-band {
  background: var(--ink);
  color: var(--paper);
  padding: calc(4.5rem + 4vh) var(--gutter) 2.2rem;
}

.doc-band-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.doc-band .eyebrow { color: color-mix(in srgb, var(--paper) 60%, transparent); }

.doc-band h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-top: 0.5rem;
  line-height: 0.95;
}

.doc-band h1 .hollow-display { -webkit-text-stroke-color: var(--paper); }

.doc-band .doc-updated {
  margin-top: 1rem;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.doc-band + .doc { padding-top: 3rem; }

/* ---------- responsive: the rack & co ---------- */

@media (max-width: 960px) {
  .manifest-inner { grid-template-columns: 1fr; }
  .rack { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .rack-item:nth-child(n) { grid-column: auto; margin-top: 0; }
  .rack-item:nth-child(even) { transform: translateY(2.2rem); }
  .pdp-ghost { display: none; }
}

@media (max-width: 560px) {
  .rack { grid-template-columns: 1fr; }
  .rack-item:nth-child(even) { transform: none; }
  .rack-item .idx { font-size: 4rem; }
  .gate-cell .num { font-size: 3rem; }
  .shop-film video { aspect-ratio: 16 / 10; }
}

/* ---------- reduced motion for the y2k layer ---------- */

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .mq-track { animation: none; }
  .seal::before { animation: none; }
  .gate-colon { animation: none; }
  .pdp-media { transform: none; }
}

/* ---------- intro: "dont be too Leight." ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0908;
  opacity: 1;
  transition: opacity 0.9s var(--ease-ball);
  will-change: opacity;
}

.intro-line {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-size: clamp(1.8rem, 5.5vw, 4rem);
  color: var(--paper);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(0.6rem);
  padding: 0 var(--gutter);
  text-align: center;
}

.intro-line em {
  font-style: italic;
  color: var(--fog);
}

.intro.is-playing .intro-line {
  animation: intro-line 1.1s var(--ease-out) forwards;
}

/* the line rises up and out with the overlay as it lifts, so the reveal
   is one continuous motion rather than a fade-to-black then a pop */
.intro.is-done {
  opacity: 0;
  pointer-events: none;
}

.intro.is-done .intro-line {
  transform: translateY(-0.5rem);
  transition: transform 0.9s var(--ease-ball);
}

body.intro-lock {
  overflow: hidden;
}

@keyframes intro-line {
  0%   { opacity: 0; transform: translateY(0.6rem); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .gate-bg { opacity: 0.4; }
  .gate-bg--b { display: none; }
}
