/* Tokens sampled from the night camo. Re-sample from the full-res originals when they land. */
:root {
  --bg: #1c1c1d;
  --bg-2: #262628;
  --camo: #3c3c3f;
  --ink: #0f0f10;
  --text: #ecebe8;
  --muted: #8d8d90;
  --line: rgb(236 235 232 / 0.12);
  --tile: #fff;
  --gutter: clamp(16px, 3vw, 40px);
  --font: "Archivo", system-ui, sans-serif;
  --bar: 70px; /* top bar height; the wordmark sits just below it */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
/* body has no background of its own, so the fixed concrete layer below shows through every section */
body {
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Dark concrete wall, fixed behind the whole page; the tint keeps text contrast up */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgb(18 18 19 / 0.45), rgb(18 18 19 / 0.45)), url("assets/concrete.jpg") center / cover;
}
/* Film grain on top */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.caps { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Top bar: frosted dark glass, so the drop details stay readable over the hero, the product tiles and everything else */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: start;
  gap: 16px;
  min-height: var(--bar);
  padding: 18px var(--gutter);
  background: rgb(16 16 17 / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
}
.meta { text-align: center; }
.meta span { display: block; font-weight: 500; opacity: 0.55; }
.actions { display: flex; align-items: center; gap: 22px; }
.bag-btn { letter-spacing: inherit; text-transform: inherit; font-weight: inherit; }
.bag-count { display: inline-block; min-width: 2ch; }
.menu-btn { display: grid; justify-items: end; gap: 5px; width: 26px; padding: 4px 0; }
.menu-btn span { display: block; height: 1.5px; background: currentColor; width: 100%; }
.menu-btn span:nth-child(2) { width: 70%; }

/* Hero */
/* overflow-y stays visible so the smoke can drift over the top of the shop once the pin releases */
.hero { position: relative; z-index: 1; height: 100svh; overflow-x: clip; }
.wordmark {
  position: absolute;
  top: calc(var(--bar) + 2svh);
  inset-inline: 0;
  text-align: center;
  font-size: 22.5vw;
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.8;
  letter-spacing: -0.035em;
  color: var(--text);
  white-space: nowrap;
}
/* Size and top are set in main.js: head just above GRAPPLE, forearms at the bottom of the first screen */
.rig { position: absolute; top: var(--bar); height: calc(100svh - var(--bar)); aspect-ratio: 0.5; inset-inline: 0; margin-inline: auto; pointer-events: none; }
.fighter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Keeps the smoke image's own proportions (no stretching); the feet line sits 60% of the way down so they sink into the densest band */
/* At least 130vw wide so the dense band runs past both screen edges (the hero clips the overflow) */
.smoke { position: absolute; left: 50%; bottom: 0; width: max(260%, 130vw); aspect-ratio: 1800 / 1004; translate: -50% 40%; }
.smoke span {
  position: absolute;
  inset: 0;
  background: url("assets/hero/smoke.webp") center / contain no-repeat;
  animation: drift 16s ease-in-out infinite alternate;
}
.smoke span:nth-child(2) { scale: -1 1; opacity: 0.75; animation-duration: 21s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }
.micro {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 2;
  text-transform: uppercase;
}
.panel {
  position: absolute;
  top: calc(var(--bar) + 24px);
  right: var(--gutter);
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 22px 26px;
  background: rgb(15 15 16 / 0.86);
  backdrop-filter: blur(8px);
  font-size: 15px;
  line-height: 1.65;
}
.beat {
  position: absolute;
  left: var(--gutter);
  bottom: 6svh;
  font-size: clamp(72px, 15vw, 240px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  opacity: 0;
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue::after { content: " ↓"; }

/* Sections */
.section { padding: clamp(96px, 12vw, 160px) var(--gutter); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section__head--sub { margin-top: clamp(80px, 10vw, 140px); }
.section__title {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.section__title--sm { font-size: clamp(48px, 7vw, 110px); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--sets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

.card { display: flex; flex-direction: column; background: var(--bg-2); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  transition: opacity 0.5s ease, scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card__media .back { opacity: 0; }
.card:hover .card__media img { scale: 1.03; }
.card:hover .back, .card:focus-within .back { opacity: 1; }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--text);
}
/* Flex column so margin-top: auto pins the size picker and button to the bottom, level across a row of cards */
.card__body { display: flex; flex-direction: column; gap: 14px; padding: 20px; flex: 1; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__name { font-size: 18px; font-weight: 800; font-stretch: 90%; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.15; }
.card__price { font-size: 18px; font-weight: 700; }
.card__blurb { color: var(--muted); font-size: 14px; }
.card__form { display: grid; gap: 10px; margin-top: auto; }
.card__sizes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.card__sizes label { display: grid; gap: 6px; }
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
}
.btn {
  height: 50px;
  padding: 0 20px;
  background: var(--text);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn:hover:not(:disabled) { background: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
}
@keyframes marquee { to { translate: -50% 0; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.features li { display: grid; gap: 14px; align-content: start; padding: 28px 24px 40px; box-shadow: inset 1px 0 var(--line); }
.features h3 { font-size: 24px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; line-height: 1.05; }
.features p { color: var(--muted); max-width: 34ch; }

/* Footer */
.footer { padding: 0 var(--gutter) 28px; overflow: hidden; }
.footer__mark {
  font-size: 38vw;
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--bg-2);
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Dialogs */
dialog { color: var(--text); border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.dialog-close { letter-spacing: 0.16em; }

.menu { width: 100%; height: 100dvh; background: var(--ink); padding: 22px var(--gutter); }
.menu[open] { display: grid; grid-template-rows: auto 1fr; }
.menu .dialog-close { justify-self: end; }
.menu nav { display: grid; align-content: center; gap: 4px; }
.menu nav a {
  font-size: clamp(56px, 12vw, 150px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.menu nav a:hover { color: var(--muted); }

.bag {
  margin: 0 0 0 auto;
  width: min(440px, 100vw);
  height: 100dvh;
  background: var(--bg-2);
  translate: 100% 0;
  transition: translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), display 0.45s allow-discrete, overlay 0.45s allow-discrete;
}
.bag[open] { translate: 0 0; }
@starting-style { .bag[open] { translate: 100% 0; } }
.bag__inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.bag__head { display: flex; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.bag__lines { overflow-y: auto; padding: 8px 24px; }
.bag__empty { padding: 24px; }
.bag__lines:not(:empty) + .bag__empty { display: none; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; aspect-ratio: 4 / 5; object-fit: contain; padding: 4px; background: var(--tile); }
.line__name { font-weight: 700; text-transform: uppercase; font-size: 14px; line-height: 1.2; }
.line__meta { color: var(--muted); font-size: 13px; }
.line__side { display: grid; justify-items: end; align-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; }
.qty button { width: 32px; height: 32px; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.line__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag__foot { display: grid; gap: 14px; padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.bag__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.bag__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 700; }
.bag__note { text-align: center; }

@media (max-width: 760px) {
  :root { --bar: 54px; }
  .topbar { grid-template-columns: 1fr auto; }
  .meta { display: none; }
  .panel { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .smoke span { animation: none; }
  .hero { overflow: hidden; } /* no camera move, so keep the zoomed-in fighter inside the first screen */
  .beat { display: none; }
}

/* Text pages (small print, order confirmed) */
.page { max-width: 760px; margin-inline: auto; display: grid; gap: 22px; padding-top: 48px; }
.page h2 { font-size: 26px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; margin: 28px 0 10px; }
.page p { color: #cfcfcc; max-width: 68ch; margin-bottom: 12px; }
.page a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.page__nav a { text-decoration: none !important; }
.page__btn { display: inline-grid; place-items: center; justify-self: start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
