/* Undercover Rockstars — design system
   Ported from the Claude Design source `Undercover Rockstars v3.dc.html`.
   The source set theme variables inline on a wrapper div; here they live on
   [data-mode] so the day/night choice can persist across real pages. */

/* ---------------------------------------------------------------- theme */

:root,
[data-mode="night"] {
  --bg:    #0a0a0b;
  --fg:    #ecebe6;
  --mute:  #7e7d78;
  --line:  rgba(236, 235, 230, .13);
  --panel: rgba(236, 235, 230, .03);
  --time:  '03:00';
}
[data-mode="day"] {
  --bg:    #e9e7e1;
  --fg:    #0f0f10;
  --mute:  #6a6963;
  --line:  rgba(15, 15, 16, .14);
  --panel: rgba(15, 15, 16, .035);
}

:root {
  --acc: oklch(62% 0.24 27);
  --ink: #0a0a0b;                      /* text that sits on the accent */
  --sans: 'Archivo', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: 28px;
  --gap: 24px;
}

/* ----------------------------------------------------------------- base */

html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .6s, color .6s;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
button, input, textarea, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--mute); }
::selection { background: var(--acc); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--acc); color: var(--ink);
  padding: 12px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
}
.skip-link:focus { left: 0; color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

@keyframes ur-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes ur-rise    { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes ur-spin    { to { transform: rotate(360deg) } }
@keyframes ur-blink   { 0%, 100% { opacity: 1 } 50% { opacity: .15 } }
@keyframes ur-scan    { from { transform: translateY(-100%) } to { transform: translateY(100%) } }
@keyframes ur-pulse   { 0%, 100% { box-shadow: 0 0 0 0 var(--acc) } 70% { box-shadow: 0 0 0 8px transparent } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------ typography */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mono-sm { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.mute { color: var(--mute); }
.acc  { color: var(--acc); }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.h-hero, .h-display, .h-page, .h-mid {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.h-hero    { font-size: clamp(46px, 7.2vw, 164px); line-height: .86; letter-spacing: -.045em; }
.h-page    { font-size: clamp(48px, 7vw, 124px);   line-height: .88; letter-spacing: -.04em; }
.h-display { font-size: clamp(40px, 5.4vw, 88px);  line-height: .92; }
.h-mid     { font-size: clamp(28px, 3vw, 44px);    line-height: .95; letter-spacing: -.02em; }

.lede { margin: 0; font-size: 16px; line-height: 1.7; color: var(--mute); }

/* ------------------------------------------------------------- structure */

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.col-1-3  { grid-column: 1 / span 3; }
.col-4-9  { grid-column: 4 / span 9; }
.col-1-8  { grid-column: 1 / span 8; }
.col-9-4  { grid-column: 9 / span 4; }

.section {
  padding: 120px var(--gut);
  border-bottom: 1px solid var(--line);
}
.page-pad { padding: 72px var(--gut) 140px; }

/* the faint graph-paper backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .5;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}
main, footer, .site-header { position: relative; z-index: 1; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 16px var(--gut);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a[aria-current="page"] { color: var(--acc); }
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* wordmark: U[ndercover] R[ockst]★[r]s — collapses to UR★ once scrolled */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 15px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}
.wordmark:hover { color: inherit; }
.wordmark .veil {
  display: inline-block;
  max-width: 12em;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  transition: max-width .8s cubic-bezier(.7, 0, .2, 1), opacity .5s ease;
}
.wordmark .gap { max-width: 1em; }
.wordmark .star {
  display: inline-block;
  color: var(--acc);
  animation: ur-spin 6s linear infinite;
  transform-origin: 50% 54%;
  margin: 0;
}
/* collapsed state */
.is-scrolled .wordmark .veil { max-width: 0; opacity: 0; }
.is-scrolled .wordmark .star { margin: 0 .12em; }

.btn-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line);
  padding: 9px 14px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: border-color .3s;
}
.btn-mode:hover { border-color: var(--fg); }
.btn-mode .led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  display: block;
  animation: ur-pulse 2.4s infinite;
  flex: none;
}
.btn-bag {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  padding: 9px 16px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  display: flex;
  gap: 10px;
  transition: background-color .3s, border-color .3s, color .3s;
}
.btn-bag:hover { background: var(--acc); border-color: var(--acc); color: var(--ink); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: var(--acc); color: var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--fg); color: var(--bg); }
.btn--lg { padding: 20px; }
.btn--ghost {
  background: none;
  border: 1px solid var(--acc);
  color: var(--acc);
}
.btn--ghost:hover { background: var(--acc); color: var(--ink); }
.btn--inline { width: max-content; display: inline-flex; }

/* ------------------------------------------------------------ status bar */

.statusbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.statusbar > div {
  padding: 18px var(--gut);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-width: 0;
}
.statusbar > div:last-child { border-right: 0; }
.statusbar .dot {
  width: 6px; height: 6px;
  background: var(--acc);
  display: block;
  animation: ur-blink 1.6s infinite;
  flex: none;
}
.statusbar .live { display: flex; gap: 8px; align-items: center; }

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

.hero {
  position: relative;
  padding: 96px var(--gut) 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-star {
  position: absolute;
  right: -4vw;
  top: -10vh;
  font-size: 60vh;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  animation: ur-spin 80s linear infinite;
  pointer-events: none;
  user-select: none;
}
.hero-grid { position: relative; align-items: end; }
.hero-copy { grid-column: 10 / span 3; display: grid; gap: 18px; padding-bottom: 10px; }
.hero-headline { grid-column: 1 / span 9; }
.hero-headline .l { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-headline .l > span { display: block; animation: ur-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-headline .l:nth-child(1) > span { animation-delay: .1s }
.hero-headline .l:nth-child(2) > span { animation-delay: .2s }
.hero-headline .l:nth-child(3) > span { animation-delay: .3s; color: var(--acc); }
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 72px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-foot .chip { padding: 4px 8px; border: 1px solid var(--line); }
.hero-foot .blink { color: var(--fg); animation: ur-blink 2s infinite; }

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

.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ur-marquee 40s linear infinite;
  width: max-content;
}
.ticker-track span { padding: 0 24px; }
.ticker-track .sep { opacity: .4; padding: 0; }
.ticker-track .odd { color: var(--acc); }

/* ------------------------------------------------------------ pair cards */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  min-height: 300px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  transition: background-color .25s, color .25s;
  min-width: 0;
}
.tile:hover { background: var(--fg); color: var(--bg); }
.tile--tall { min-height: 420px; }
.tile-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tile-head .cat { opacity: .6; }
.tile-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-height: 120px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}
.tile--tall .tile-swatches { min-height: 220px; }
.tile-swatches > span {
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
}
.tile:hover .tile-swatches > span { border-color: color-mix(in oklab, var(--bg) 40%, transparent); }
.tile-foot { display: grid; gap: 8px; }
.tile-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.tile-name .price { font-weight: 400; font-family: var(--mono); font-size: 11px; }
.tile-spec {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.7;
  opacity: .8;
}
.tile .spec-night { display: none; }
.tile:hover .spec-day { display: none; }
.tile:hover .spec-night { display: block; }

/* ------------------------------------------------------------ pairs rows */

.pairs { border-top: 1px solid var(--line); }
.pair-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(18px, 1.8vw, 28px);
}
.pair-row .n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--mute);
}
.pair-row .wire {
  height: 1px;
  background: linear-gradient(90deg, var(--mute), var(--acc));
  position: relative;
}
.pair-row .wire::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  background: var(--acc);
  border-radius: 50%;
}

/* ----------------------------------------------------------- shift cards */

.shift {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.shift > div {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.shift > div:last-child { border-right: 0; margin-right: 0; }
.shift .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.shift .note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); }

/* ----------------------------------------------------------------- codes */

.codes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.code {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 220px;
  min-width: 0;
}
.code h3 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: .01em;
  line-height: 1.15;
}
.code p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--mute); }

/* ---------------------------------------------------------------- signal */

.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.signal-form { display: flex; border: 1px solid var(--fg); }
.signal-form input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  padding: 16px 18px;
  color: var(--fg);
  font-size: 15px;
}
.signal-form button {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 0 22px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.signal-form button:hover { background: var(--acc); color: var(--ink); }
.signal-ok {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--acc);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.log {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 260px;
}
.log-head {
  display: flex;
  justify-content: space-between;
  color: var(--mute);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.log-head .rec { color: var(--acc); animation: ur-blink 1.2s infinite; }
.log-line { display: flex; gap: 14px; animation: ur-rise .6s both; }
.log-line .n { color: var(--mute); }
.log-caret {
  width: 8px; height: 14px;
  background: var(--fg);
  display: block;
  animation: ur-blink 1s steps(2) infinite;
  margin-top: 4px;
}

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

.site-footer { border-top: 1px solid var(--line); }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 56px var(--gut) 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-cols nav { display: grid; gap: 12px; align-content: start; }
.footer-mark {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(32px, 4vw, 64px);
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.footer-legal {
  margin: 0;
  padding: 18px var(--gut);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ------------------------------------------------------------ collection */

.filters {
  display: flex;
  border: 1px solid var(--line);
  width: max-content;
  max-width: 100%;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow-x: auto;
}
.filters button {
  background: transparent;
  color: var(--fg);
  border: 0;
  border-right: 1px solid var(--line);
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: background-color .25s, color .25s;
  white-space: nowrap;
}
.filters button:last-child { border-right: 0; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.collection-head { align-items: end; margin-bottom: 48px; }
.collection-head .h-page { font-size: clamp(56px, 8vw, 140px); line-height: .88; }

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

.product {
  display: grid;
  grid-template-columns: 7fr 5fr;
  border-bottom: 1px solid var(--line);
}
.product-media { border-right: 1px solid var(--line); min-width: 0; }
.media-row { display: grid; grid-template-columns: 1fr 1fr; }
.media-row--top { border-bottom: 1px solid var(--line); }
.media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.media::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px dashed var(--line);
}
.media--day    { aspect-ratio: 4/5; border-right: 1px solid var(--line); background: var(--panel); }
.media--night  { aspect-ratio: 4/5; background: var(--fg); color: var(--bg); }
.media--night::before { border-color: color-mix(in oklab, var(--bg) 40%, transparent); }
.media--night span { opacity: .7; }
.media--detail { aspect-ratio: 1; font-size: 10px; }
.media--detail:first-child { border-right: 1px solid var(--line); }
.media span { position: relative; }

.product-panel {
  position: sticky;
  top: 70px;
  align-self: start;
  padding: 40px var(--gut) 48px;
  display: grid;
  gap: 28px;
  min-width: 0;
}
.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.product-price {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .06em;
}
.product-price small { font-size: 10px; color: var(--mute); margin-left: 10px; }
.versions { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.versions > div { padding: 18px; min-width: 0; }
.versions .v-day { border-right: 1px solid var(--line); }
.versions .v-night { background: var(--acc); color: var(--ink); }
.versions p { margin: 0; font-size: 14px; line-height: 1.55; }
.versions .label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.versions .v-night .label { color: inherit; opacity: .7; }
.versions .v-night p { font-weight: 600; }

.sizes { display: flex; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.sizes button {
  width: 56px; height: 46px;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  transition: background-color .2s, color .2s;
}
.sizes button:last-child { border-right: 0; }
.sizes button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.spec-table {
  display: grid;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.spec-table > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.spec-table > div:last-child { border-bottom: 1px solid var(--line); }
.spec-table dt { margin: 0; }
.spec-table dd { margin: 0; color: var(--fg); text-align: right; }

/* ---------------------------------------------------------- fitting room */

.fit-shell {
  display: grid;
  grid-template-columns: 4fr 8fr;
  border: 1px solid var(--line);
}
.fit-controls { border-right: 1px solid var(--line); display: grid; align-content: start; min-width: 0; }
.fit-block {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  min-width: 0;
}
.fit-block:last-child { border-bottom: 0; }
.fit-block .step {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
}
.fit-drop {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 1px dashed var(--line);
  cursor: pointer;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.fit-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fit-drop span {
  position: relative;
  padding: 8px 12px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.7;
}
.fit-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fit-note { margin: 0; font-size: 12px; line-height: 1.6; color: var(--mute); }

.fit-pairs { display: grid; border: 1px solid var(--line); }
.fit-pairs button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  transition: background-color .2s, color .2s;
}
.fit-pairs button:last-child { border-bottom: 0; }
.fit-pairs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.fit-pairs .p { opacity: .6; }

.fit-toggle {
  display: flex;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fit-toggle button {
  flex: 1;
  padding: 14px;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: background-color .2s, color .2s;
}
.fit-toggle button:last-child { border-right: 0; }
.fit-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.fit-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.fit-pane { position: relative; display: grid; place-items: center; overflow: hidden; min-width: 0; }
.fit-pane--in { border-right: 1px solid var(--line); background: var(--panel); }
.fit-pane--out { background: var(--panel); transition: background-color .5s, color .5s; }
.fit-pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fit-pane--in img { filter: grayscale(1); opacity: .75; }
.fit-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2;
}
.fit-idle {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  padding: 24px;
}
.fit-idle .star { font-size: 40px; color: var(--acc); animation: ur-spin 6s linear infinite; }
.fit-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--acc);
  box-shadow: 0 0 24px var(--acc);
  animation: ur-scan 2.4s linear infinite;
  pointer-events: none;
}
.fit-provider {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.8;
}

/* ------------------------------------------------------------------- bag */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .55);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.bag {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  width: min(440px, 100vw);
  background: var(--bg);
  color: var(--fg);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px var(--gut) 28px;
  animation: ur-rise .4s cubic-bezier(.2, .7, .2, 1) both;
}
.bag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bag-head button {
  background: none;
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 8px 12px;
}
.bag-body { overflow: auto; padding: 20px 0; display: grid; align-content: start; }
.bag-empty {
  margin: 40px 0;
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 28px;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--mute);
}
.bag-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.bag-line .thumb { aspect-ratio: 3/4; border: 1px dashed var(--line); }
.bag-line .body { display: grid; align-content: space-between; gap: 8px; min-width: 0; }
.bag-line .title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.bag-line .title .amt { font-family: var(--mono); font-weight: 400; font-size: 12px; }
.bag-line .size {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.qty { display: flex; align-items: center; font-family: var(--mono); font-size: 12px; }
.qty button {
  background: none;
  border: 1px solid var(--line);
  color: inherit;
  width: 30px; height: 30px;
  cursor: pointer;
}
.qty .n { width: 36px; text-align: center; }
.qty .rm {
  background: none;
  border: 0;
  color: var(--mute);
  cursor: pointer;
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0;
  width: auto; height: auto;
}
.bag-foot { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 14px; }
.bag-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 12px 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  gap: 16px;
  align-items: center;
  animation: ur-rise .4s both;
}
.toast button {
  background: var(--acc);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 8px 12px;
}

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

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .shift { grid-template-columns: repeat(2, 1fr); }
  .codes { grid-template-columns: 1fr; }
  .statusbar { grid-template-columns: repeat(2, 1fr); }
  .statusbar > div:nth-child(2) { border-right: 0; }
  .signal-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --gut: 20px; --gap: 16px; }
  .grid12 { grid-template-columns: 1fr; }
  .col-1-3, .col-4-9, .col-1-8, .col-9-4,
  .hero-headline, .hero-copy { grid-column: 1 / -1; }
  .hero-copy { padding-bottom: 0; }
  .section { padding: 72px var(--gut); }
  .page-pad { padding: 48px var(--gut) 96px; }
  .product { grid-template-columns: 1fr; }
  .product-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-panel { position: static; padding: 28px var(--gut) 40px; }
  .fit-shell { grid-template-columns: 1fr; }
  .fit-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .fit-stage { grid-template-columns: 1fr; min-height: 0; }
  .fit-pane { min-height: 320px; }
  .fit-pane--in { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pair-row { grid-template-columns: 40px 1fr 40px 1fr; gap: 12px; font-size: 18px; }
  .hero-star { font-size: 40vh; }
}

@media (max-width: 700px) {
  .site-header { grid-template-columns: auto auto; row-gap: 12px; }
  .site-nav { grid-column: 1 / -1; order: 3; gap: 16px; font-size: 10px; overflow-x: auto; }
  .header-right { gap: 8px; }
  .btn-mode, .btn-bag { padding: 8px 10px; font-size: 10px; }
  .tiles { grid-template-columns: 1fr; }
  .shift { grid-template-columns: 1fr; }
  .shift > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  .shift > div:last-child { border-bottom: 0; }
  .statusbar { grid-template-columns: 1fr; }
  .statusbar > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .media-row { grid-template-columns: 1fr; }
  .media--day, .media--detail:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .versions { grid-template-columns: 1fr; }
  .versions .v-day { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr; }
  .toast { left: 12px; right: 12px; transform: none; }
}

/* honeypot: off-screen for people, present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Factory Zero credit: the ring is the FZ mark, rotating slowly. */
.fz-credit a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.fz-credit a:hover { color: var(--acc); }
.fz-ring {
  flex: none;
  transform-origin: 50% 50%;
  animation: fzRing 12s linear infinite;
}
@keyframes fzRing { to { transform: rotate(360deg) } }
