:root {
  --bg: #fff;
  --surface: #fff;
  --ink: #000;
  --ink-inverse: #fff;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif-italic: Georgia, "Times New Roman", serif;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius-sm: 0.375rem;
  --radius-pill: 999px;
  --fs-ui: max(11px, 0.6875rem);
  --fs-brand: max(11px, 0.75rem);
}

html {
  font-size: clamp(11px, 0.833vw, 16px);
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: transparent;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
  text-decoration: none;
}

.brand-frame {
  width: 130px;
  height: 56px;
  overflow: hidden;
  position: relative;
  flex: none;
}

.brand-frame video.brand {
  display: block;
  width: 168px;
  height: 56px;
  object-fit: cover;
  margin-left: -19px;
}

.tagline-hero {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 21.25rem;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu a {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.menu-word {
  position: relative;
  display: inline-block;
}

.menu-word__b {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.account {
  display: flex;
  gap: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  margin-top: 30vh;
  background: #000;
  overflow: hidden;
}

.hero .hero-bg-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  outline: none;
}

/* ---------- Hero title ---------- */

.hero-title {
  position: fixed;
  z-index: 40;
  left: 2rem;
  right: 2rem;
  bottom: calc(70vh + 1.5rem);
  margin: 0;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-title .italic {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Hero footer / CTA ---------- */

.hero-footer {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1.5rem;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.hero-footer .cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  gap: 1rem;
}

.cta-copy {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 22rem;
}

.shop-now {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 2.5rem;
  background: #fff;
  color: #fff;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.shop-now__label {
  display: inline-block;
  mix-blend-mode: difference;
  color: #fff;
  font-size: var(--fs-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.1875rem;
}

/* ---------- Product ---------- */

.product {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  color: #fff;
  opacity: 0;
}

.product-thumb {
  position: relative;
  flex: none;
  width: calc(7rem * var(--card-scale, 1));
  height: calc(7rem * var(--card-scale, 1));
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-thumb img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.product-info {
  display: flex;
  flex-direction: column;
  max-width: 34rem;
}

.product-info h2 {
  margin: 0 0 0.625rem 0;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.product-info .desc {
  margin: 0 0 0.875rem 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 34rem;
}

.product-info .price {
  margin-top: auto;
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Add button ---------- */

.add-btn {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 20;
  width: 3.375rem;
  height: 3.375rem;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.625rem;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  padding: 0;
}

.add-btn__label {
  display: block;
  mix-blend-mode: difference;
  color: #fff;
  line-height: 1;
  padding-bottom: 0.1875rem;
}

/* ---------- Scroll track ---------- */

.scroll-spacer {
  height: 220vh;
  pointer-events: none;
}

/* ---------- Light responsive adjustment (not in the original spec) ---------- */
/* The spec is a fixed desktop layout with no breakpoints; below ~640px the
   header row has no room and starts overlapping itself, so this adds just
   enough wrapping/resizing to keep it legible without touching colors,
   blend modes, copy, or the scroll-scrub behavior. */
@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .tagline-hero {
    display: none;
  }

  .menu {
    order: 3;
    flex: 1 1 100%;
  }

  .menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .account {
    margin-left: auto;
  }

  .hero-title {
    left: 1.25rem;
    right: 1.25rem;
    font-size: 1.6rem;
  }

  .hero-footer {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .cta-copy {
    max-width: 100%;
  }

  .product {
    left: 1.25rem;
    bottom: 1.25rem;
    max-width: calc(100vw - 2.5rem);
  }

  .product-thumb {
    width: calc(min(6rem, 18vw) * var(--card-scale, 1));
    height: calc(min(6rem, 18vw) * var(--card-scale, 1));
  }

  .product-info {
    min-width: 0;
    max-width: 38vw;
  }

  .product-info .desc {
    max-width: 38vw;
  }

  .add-btn {
    bottom: 1.25rem;
  }
}
