/* ==========================================================================
   CORROSION — drop 001
   Every value here comes from the design handoff. Two surfaces, one accent,
   no rounded corners anywhere. Don't add colours.
   ========================================================================== */

@import url("fonts.css");

:root {
  /* surfaces */
  --ink-bg:      #0A0A09;
  --panel:       #0D0C0B;
  --panel-alt:   #101010;
  /* text */
  --ink:         #EDE7DC;
  --ink-dim:     #C8C0B2;
  --ink-muted:   #8A8378;   /* 4.5:1 on --ink-bg — do not darken */
  --tan:         #A89273;
  /* lines */
  --hairline:    #1E1B17;
  --hairline-2:  #221F1B;
  --hairline-3:  #2A2621;
  /* type */
  --display:     'UnifrakturMaguntia', serif;
  --sans:        'Barlow Condensed', 'Helvetica Neue', Arial, sans-serif;
  --mono:        'Space Mono', ui-monospace, 'Courier New', monospace;
  /* rhythm */
  --pad-block:   clamp(44px, 7vw, 100px);
  --pad-inline:  clamp(16px, 4vw, 48px);
  --gap-tight:   clamp(12px, 2vw, 22px);
  --gap-wide:    clamp(24px, 4vw, 64px);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink-bg);
  scroll-padding-top: 76px;          /* sticky header clearance for anchors */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; transition: color 140ms ease-out; }
a:hover { color: var(--tan); }

img { display: block; max-width: 100%; height: auto; }
ul  { margin: 0; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 100;
  transform: translateY(-120%);
  padding: 12px 20px;
  background: var(--ink); color: var(--ink-bg);
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.skip-link:focus { transform: translateY(0); color: var(--ink-bg); }

/* ------------------------------------------------------------ type kit -- */

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--tan);
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.display { font-family: var(--display); font-weight: 400; line-height: .92; }

.loud {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.body-copy {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--ink-dim);
}

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out;
}

.btn--solid { background: var(--ink); color: var(--ink-bg); }
.btn--solid:hover:not(:disabled) { background: var(--tan); color: var(--ink-bg); }

.btn--ghost { border: 1px solid var(--hairline-3); color: var(--ink); }
.btn--ghost:hover { border-color: var(--tan); color: var(--tan); }

.btn--wide { width: 100%; padding: 18px 24px; letter-spacing: .2em; }
.btn--lg   { padding: 16px 34px; }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--panel-alt);
  color: var(--ink-muted);
  border: 1px solid var(--hairline-2);
  cursor: not-allowed;
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  /* wraps the nav onto its own line rather than clipping it at ~360px,
     which is where the single line stops fitting */
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px var(--pad-inline);
  background: rgba(10, 10, 9, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__mark {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
}

.site-nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px clamp(11px, 2.2vw, 28px);
  font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}

/* bag button lives in the nav, in the nav's own language */
.bag-button { cursor: pointer; letter-spacing: inherit; white-space: nowrap; }
.bag-button[hidden] { display: none; }
.bag-button__count { color: var(--tan); font-family: var(--mono); font-size: 12px; }

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

.hero {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(40px, 7vw, 96px) var(--pad-inline) 0;
  text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #17150F 0%, #0A0A09 60%);
}

.hero__eyebrow { margin: 0 0 clamp(16px, 3vw, 30px); }

.hero__wordmark {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 17vw, 250px);
  line-height: .82;
  letter-spacing: -.01em;
  color: var(--ink);
}

.hero__subline {
  max-width: 700px;
  margin: clamp(18px, 3vw, 30px) 0 0;
  font-size: clamp(17px, 2.4vw, 27px);
  font-weight: 600; line-height: 1.18;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* the beanie must not overlap the subline or the buttons — keep margins positive */
.hero__beanie {
  width: 100%;
  max-width: min(620px, 78vw);
  margin-top: clamp(16px, 3vw, 32px);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .9));
}

.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: clamp(20px, 3vw, 36px) 0 clamp(48px, 7vw, 96px);
}

/* SPLIT treatment — alternate hero, switched by CONFIG.heroTreatment.
   Only one of the two ever renders; the class lands on <html> before paint. */
.hero--split { display: none; }
.hero-is-split .hero--wordmark { display: none; }

.hero-is-split .hero--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
  padding: 0;
  text-align: left;
  background: none;
  border-bottom: 1px solid var(--hairline);
}
.hero--split .hero__text   { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 84px); }
.hero--split .hero__eyebrow{ margin: 0 0 18px; letter-spacing: .4em; font-size: 11px; }
.hero--split .hero__wordmark { font-size: clamp(50px, 9vw, 128px); line-height: .84; }
.hero--split .hero__subline  { max-width: 520px; margin: 24px 0 0; font-size: clamp(17px, 2vw, 24px); line-height: 1.2; }
.hero--split .hero__actions  { justify-content: flex-start; margin: 32px 0 0; }
.hero--split .hero__panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(70% 70% at 50% 45%, #17150F 0%, #0A0A09 70%);
}
.hero--split .hero__beanie { max-width: 520px; margin-top: 0; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .9)); }

/* ------------------------------------------------------------- marquee -- */

.marquee {
  display: flex; overflow: hidden;
  padding: 12px 0;
  background: var(--tan); color: var(--ink-bg);
  border-top: 1px solid var(--ink-bg);
  border-bottom: 1px solid var(--ink-bg);
}

.marquee__track {
  display: flex; flex: none; gap: 48px;
  padding-right: 48px;
  white-space: nowrap;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

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

/* ------------------------------------------------------------- section -- */

.section {
  padding: var(--pad-block) var(--pad-inline);
  border-bottom: 1px solid var(--hairline);
}
.section--panel { background: var(--panel); }
.section--last  { border-bottom: 0; }

.section__head {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 16px;
}

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

.countdown { max-width: 1200px; margin: 0 auto; text-align: center; }
.countdown__eyebrow { margin: 0 0 clamp(20px, 4vw, 40px); letter-spacing: .4em; font-size: 11px; }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  max-width: 900px; margin: 0 auto;
}

.countdown__cell {
  padding: clamp(14px, 2.5vw, 28px) 6px;
  border: 1px solid var(--hairline-2);
  background: var(--panel-alt);
}

.countdown__digits {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(30px, 7vw, 74px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-muted);
}

.countdown__line {
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tan);
}

/* --------------------------------------------------------- notify form -- */

.notify {
  max-width: 560px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--hairline);
}

.notify__label { display: block; margin-bottom: 12px; text-align: center; }

.notify__row { display: flex; flex-wrap: wrap; gap: 10px; }

.notify__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 15px 16px;
  background: var(--panel-alt);
  border: 1px solid var(--hairline-3);
  color: var(--ink);
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  transition: border-color 140ms ease-out;
}
.notify__input::placeholder { color: var(--ink-muted); text-transform: uppercase; letter-spacing: .12em; }
.notify__input:focus { outline: none; border-color: var(--tan); }
.notify__input[aria-invalid="true"] { border-color: var(--tan); }

.notify__submit { flex: 0 0 auto; padding: 15px 28px; }

.notify__status {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.6;
  color: var(--tan);
  text-align: center;
}
.notify__status--muted { color: var(--ink-muted); }

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

.product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--gap-wide);
  max-width: 1280px; margin: 0 auto;
  align-items: center;
}

.product__panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  background: radial-gradient(70% 70% at 50% 45%, #16150F 0%, #0C0C0B 72%);
  border: 1px solid var(--hairline);
}

.product__image { width: 100%; max-width: 560px; filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .85)); }

.product__kicker { margin: 0 0 14px; font-size: 11px; letter-spacing: .3em; }

.product__name {
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 700; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
}

.product__price {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--tan);
}

.product__desc { margin: 22px 0 0; }

.product__size-label { margin: 30px 0 12px; }

.size-pill {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--ink-bg);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

.product__buy { display: flex; flex-direction: column; margin-top: 28px; }

.product__stock {
  margin: 14px 0 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.7;
  color: var(--tan);
}
.product__stock--muted { color: var(--ink-muted); }

.product__details { margin-top: 34px; border-top: 1px solid var(--hairline); padding-top: 22px; }
.product__details-label { margin: 0 0 10px; }
.product__details ul { padding-left: 18px; font-size: 16px; line-height: 1.8; color: var(--ink-dim); }

/* ------------------------------------------------------------ up close -- */

.upclose { max-width: 1280px; margin: 0 auto; }
.upclose .section__head { margin-bottom: clamp(22px, 4vw, 40px); }
.upclose__title { font-size: clamp(34px, 6vw, 76px); line-height: .92; }
.upclose__note  { font-size: 12px; }

.upclose__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap-tight);
}

.crop {
  aspect-ratio: 4 / 3;
  background-image: url("../assets/beanie.png");
  background-repeat: no-repeat;
  background-color: var(--ink-bg);
  border: 1px solid var(--hairline);
}
.crop--embroidery { background-size: 260%; background-position: 48% 88%; }
.crop--knit       { background-size: 300%; background-position: 20% 40%; }
.crop--crown      { background-size: 200%; background-position: 50%  6%; }

.crop__caption {
  margin: 12px 0 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tan);
}

/* --------------------------------------------------------------- story -- */

.story { max-width: 960px; margin: 0 auto; }
.story__kicker { margin: 0 0 18px; }
.story__title  { margin: 0 0 26px; font-size: clamp(28px, 4.6vw, 58px); }
.story__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 3vw, 48px);
}

/* ---------------------------------------------------------------- team -- */

.team { max-width: 1100px; margin: 0 auto; }
.team .section__head { margin-bottom: clamp(20px, 3vw, 36px); }
.team__title { font-size: clamp(36px, 7vw, 86px); line-height: .9; }
.team__note  { color: var(--tan); }

.team__list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }

.rider {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: clamp(14px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--hairline);
}
.rider__name   { flex: 1 1 140px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 48px); line-height: 1; }
.rider__stance { flex: 0 1 auto; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.rider__handle { flex: 0 1 auto; min-width: 160px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--tan); }

/* ------------------------------------------------------------- contact -- */

.contact { max-width: 1000px; margin: 0 auto; text-align: center; }
.contact__title { margin: 0 0 clamp(18px, 3vw, 30px); font-size: clamp(36px, 7vw, 86px); line-height: .92; }
.contact__sub {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim);
}
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.contact__tba {
  padding: 16px 34px;
  border: 1px dashed var(--hairline-3);
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
}

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

.site-footer {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px;
  padding: clamp(22px, 4vw, 40px) var(--pad-inline);
  border-top: 1px solid var(--hairline);
}
.site-footer__mark { font-family: var(--display); font-size: clamp(24px, 3.4vw, 38px); line-height: 1; }

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

.bag-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 10, 9, .7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.bag-overlay[hidden] { display: none; }
.bag-overlay.is-open { opacity: 1; }

.bag {
  position: fixed; top: 0; right: 0; z-index: 61;
  display: flex; flex-direction: column;
  width: min(420px, 100vw); height: 100%;
  background: var(--ink-bg);
  border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  transition: transform 220ms ease-out;
}
.bag[hidden] { display: none; }
.bag.is-open { transform: translateX(0); }

.bag__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px var(--pad-inline);
  border-bottom: 1px solid var(--hairline);
}
.bag__title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.bag__close { cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.bag__close:hover { color: var(--tan); }

.bag__body { flex: 1 1 auto; overflow-y: auto; padding: var(--pad-inline); }

.bag__empty {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.8;
  color: var(--ink-muted);
}

.bag-line { display: flex; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.bag-line__thumb {
  flex: 0 0 72px; width: 72px; height: 72px;
  background: radial-gradient(70% 70% at 50% 45%, #16150F 0%, #0C0C0B 72%);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
}
.bag-line__thumb img { width: 86%; }
.bag-line__info { flex: 1 1 auto; min-width: 0; }
.bag-line__name { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bag-line__meta { margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

.qty { display: inline-flex; align-items: stretch; margin-top: 10px; border: 1px solid var(--hairline-3); }
.qty__btn {
  width: 32px; height: 32px;
  cursor: pointer;
  font-family: var(--mono); font-size: 15px; line-height: 1;
  color: var(--ink);
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
.qty__btn:hover:not(:disabled) { background: var(--tan); color: var(--ink-bg); }
.qty__btn:disabled { color: var(--hairline-3); cursor: not-allowed; }
.qty__value {
  min-width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
  border-left: 1px solid var(--hairline-3); border-right: 1px solid var(--hairline-3);
}

.bag-line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.bag-line__price { font-family: var(--mono); font-size: 14px; color: var(--tan); }
.bag-line__remove {
  cursor: pointer;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.bag-line__remove:hover { color: var(--tan); }

.bag__foot { flex: 0 0 auto; padding: var(--pad-inline); border-top: 1px solid var(--hairline); }
.bag__totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.bag__totals-label { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }
.bag__totals-value { font-family: var(--mono); font-size: 22px; color: var(--tan); }
.bag__note {
  margin: 12px 0 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-muted);
  text-align: center;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .bag, .bag-overlay { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
