/* ============================================================
   Sections: sale banner, header, hero (incl. carousel)
   Owner: Agent F. Nobody else edits this file.
   Class prefixes: .banner-, .header-, .hero-
   Colours: var(--token) from css/tokens.css ONLY.
   ============================================================ */

/* ---- sale banner ---- */

.banner-bar {
  background: var(--banner-fill);
  color: var(--banner-ink);
  padding: 13px 5vw;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  font-family: var(--font-meta);
  font-size: var(--size-meta);
  letter-spacing: 0.08em;
}

.banner-headline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.banner-body {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--banner-ink-soft);
}

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

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 5vw;
  position: sticky;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--paper);
}

.header-mark {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: contain;
}

.header-id {
  display: grid;
  gap: 3px;
}

.header-wordmark {
  font-family: var(--font-display);
  font-size: 50px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.header-locale {
  font-family: var(--font-meta);
  font-size: var(--size-meta-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--header-meta);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 16px);
  font-size: var(--size-ui);
  flex-wrap: wrap;
}

.header-link {
  color: var(--nav-link);
  text-decoration: none;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  transition: color 160ms, border-color 160ms, transform 160ms;
}

.header-link:hover {
  color: var(--aqua-light);
  border-bottom-color: var(--aqua-light);
  transform: translateY(-2px);
}

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

.hero {
  background: var(--band-hero);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: center;
  gap: var(--gap-hero);
  padding: var(--pad-hero);
}

.hero-left {
  display: grid;
  gap: 22px;
  justify-items: start;
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-meta);
  font-size: var(--size-meta-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise-dark);
}

.hero-eyebrow-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0; /* stays 9x9 when the derived "Next:" text wraps at 375px */
  background: var(--aqua);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-display);
  line-height: 1.03;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  font-size: var(--size-lead);
  line-height: 1.55;
  color: var(--body);
  max-width: 48ch;
  text-wrap: pretty;
}

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

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--turquoise);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--size-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-btn-primary:hover {
  background: var(--turquoise-dark);
}

.hero-btn-icon {
  margin-left: 9px;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  text-decoration: none;
  font-size: var(--size-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-btn-secondary:hover {
  background: var(--turquoise-tint);
}

/* Stat row: a 1px hairline grid — a tinted parent shows through the `gap`. */
.hero-stats {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--hairline-grid);
  width: 100%;
}

.hero-stat {
  background: var(--band-hero);
  padding: 16px 18px;
}

/* First cell is flush left so "1,800" aligns with the H1's edge (mock). */
.hero-stat:first-child {
  padding-left: 0;
  display: grid;
  gap: 4px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-softer);
}

/* "CuT by HANd" line, moved into the left column from the old right-column tile. */
.hero-caption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: var(--size-ui);
  line-height: 1.55;
  color: var(--body-softer);
}

.hero-caption-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--turquoise-dark);
  white-space: nowrap;
}

.hero-caption-body {
  max-width: 42ch;
}

.hero-visual {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--carousel-ground);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 700ms ease;
}

/* A video layer is a replaced element — inset:0 alone doesn't size it the
   way it sizes a div, so object-fit needs an explicit box to fit into. */
video.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--carousel-ground);
}

.hero-dots {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  cursor: pointer;
  /* mock-exact literal: inactive-dot colour has no token equivalent */
  background: rgba(253, 251, 247, 0.45);
}

.hero-dot.is-active {
  background: var(--paper);
}

.hero-below {
  display: grid;
  min-width: 0;
}

.hero-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.hero-thumb {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: var(--carousel-ground);
  border: 2px solid transparent;
  opacity: 0.62;
}

.hero-thumb.is-active {
  border: 2px solid var(--turquoise);
  opacity: 1;
}

/* A video clip has no still frame to use as a background-image, so its
   thumbnail is a neutral tile with a small play glyph instead of a broken
   background — see the local playGlyph() helper in src/sections/hero.js. */
.hero-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark-soft);
}

.hero-thumb-video.is-active {
  color: var(--turquoise);
}

/* A layer at opacity 0 is still on top of the stack — it must not intercept
   clicks meant for the visible one (bit us with reduced-motion video controls). */
.hero-slide[style*="opacity: 0"] { pointer-events: none; }
