/* ===== Tokens ===== */
:root {
  --ink: #111111;
  --canvas: #ffffff;
  --on-primary: #ffffff;
  --soft-cloud: #f5f5f5;
  --hairline: #cacacb;
  --hairline-soft: #e5e5e5;
  --charcoal: #39393b;
  --ash: #4b4b4d;
  --mute: #707072;
  --stone: #9e9ea0;
  --sale: #d30005;
  --sale-deep: #780700;
  --success: #007d48;
  --accent-teal: #0a7281;
  --accent-purple-soft: #beaffd;

  --sp-xxs: 2px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 18px;
  --sp-xl: 24px;
  --sp-xxl: 30px;
  --sp-section: 48px;

  --r-none: 0px;
  --r-sm: 18px;
  --r-md: 24px;
  --r-lg: 30px;
  --r-full: 9999px;

  --font-display: 'Bebas Neue', 'Helvetica Now Text', Helvetica, Arial, sans-serif;
  --font-ui: 'Inter', 'Helvetica Now Text', Helvetica, Arial, sans-serif;

  --container-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1920px) {
  .wrap { padding: 0 80px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  padding: 16px 32px;
  height: 48px;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.5); opacity: 0.5; }

.btn-primary { background: var(--ink); color: var(--on-primary); }
.btn-secondary { background: var(--soft-cloud); color: var(--ink); }
.btn-on-image { background: var(--canvas); color: var(--ink); padding: 12px 24px; }
.btn-sm { font-size: 14px; padding: 10px 20px; height: 40px; }

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--soft-cloud);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.2s ease;
}

/* Button hover — pointer devices only, off on touch/mobile */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--charcoal); }
  .btn-secondary:hover { background: var(--hairline-soft); }
  .btn-on-image:hover { background: var(--soft-cloud); }
  .btn-icon:hover { background: var(--hairline-soft); }
}

/* ===== Utility bar ===== */
.utility-bar {
  background: var(--soft-cloud);
  height: 36px;
  display: flex;
  align-items: center;
}
.utility-bar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.utility-bar a { color: var(--mute); }
.utility-bar a:hover { color: var(--ink); }

/* ===== Primary nav ===== */
.primary-nav {
  background: var(--canvas);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: inset 0 -1px 0 var(--hairline-soft);
}
.primary-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 2px solid transparent;
}
.nav-links a.active,
.nav-links a:hover {
  border-bottom-color: var(--ink);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-cloud);
  border-radius: var(--r-md);
  height: 40px;
  padding: 8px 16px;
  width: 220px;
  border: 2px solid transparent;
}
.search-pill:focus-within {
  background: var(--canvas);
  border-color: var(--ink);
  box-shadow: 0 0 0 12px var(--soft-cloud);
}
.search-pill input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-ui);
  font-size: 14px;
  width: 100%;
  color: var(--ink);
}
.search-pill svg { flex-shrink: 0; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .search-pill { width: 40px; padding: 8px; }
  .search-pill input { display: none; }
  .hamburger { display: inline-flex; }
}

/* ===== Section rhythm ===== */
.section { margin-top: var(--sp-section); }
.section:first-of-type { margin-top: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}
.section-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  color: var(--ink);
}

@media (max-width: 599px) {
  .section { margin-top: 24px; }
}
@media (max-width: 960px) and (min-width: 600px) {
  .section { margin-top: 32px; }
}

/* ===== Campaign hero ===== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: var(--ink);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.3s cubic-bezier(.16,.84,.44,1), transform 2.2s cubic-bezier(.16,.84,.44,1);
}
.hero.in-view img {
  opacity: 1;
  transform: scale(1);
}
.hero-copy {
  position: absolute;
  left: 24px;
  bottom: 48px;
  max-width: 760px;
  color: var(--on-primary);
}
.hero-eyebrow,
.hero-title span,
.hero-copy .btn {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.16,.84,.44,1), transform 0.8s cubic-bezier(.16,.84,.44,1);
}
.hero.in-view .hero-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.hero.in-view .hero-title span { opacity: 1; transform: translateY(0); }
.hero.in-view .hero-title span:nth-child(1) { transition-delay: 0.62s; }
.hero.in-view .hero-title span:nth-child(2) { transition-delay: 0.72s; }
.hero.in-view .hero-title span:nth-child(3) { transition-delay: 0.82s; }
.hero.in-view .hero-copy .btn { opacity: 1; transform: translateY(0); transition-delay: 1s; }
.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0 0 24px 0;
  font-weight: 400;
}
.hero-title span { display: block; }
@media (max-width: 1023px) {
  .hero-title { font-size: 64px; }
  .hero { aspect-ratio: 4/5; }
}
@media (max-width: 599px) {
  .hero-title { font-size: 48px; }
  .hero-copy { left: 16px; right: 16px; bottom: 24px; }
}

/* ===== Scroll-in image reveal ===== */
.product-card-image img,
.rail-tile img,
.campaign-tile img,
.member-card img {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.9s cubic-bezier(.16,.84,.44,1), transform 1.3s cubic-bezier(.16,.84,.44,1);
}
.product-card-image.in-view img,
.rail-tile.in-view img,
.campaign-tile.in-view img,
.member-card.in-view img {
  opacity: 1;
  transform: scale(1);
}

/* Hover zoom on product photography — pointer devices only, off on touch/mobile */
@media (hover: hover) and (pointer: fine) {
  .product-card-image.in-view img {
    transition: opacity 0.9s cubic-bezier(.16,.84,.44,1), transform 0.6s cubic-bezier(.16,.84,.44,1);
  }
  .product-card-image.in-view:hover img {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero img,
  .hero-eyebrow,
  .hero-title span,
  .hero-copy .btn,
  .product-card-image img,
  .rail-tile img,
  .campaign-tile img,
  .member-card img {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Product grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .grid { grid-template-columns: 1fr; gap: var(--sp-xs); }
}

.product-card { background: var(--canvas); }
.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--soft-cloud);
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-lg);
}
.wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.9);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .wish-btn:hover { background: rgba(255,255,255,1); }
}
.swatch-row { display: flex; gap: 6px; margin-top: var(--sp-sm); }
.swatch-dot {
  width: 12px; height: 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.swatch-dot.active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.product-name {
  font-size: 16px;
  font-weight: 500;
  margin: var(--sp-sm) 0 0 0;
}
.product-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  margin: var(--sp-xs) 0 0 0;
}
.price-row {
  margin-top: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}
.price-sale { color: var(--sale); }
.price-strike { color: var(--mute); text-decoration: line-through; }
.price-off { color: var(--sale); }

/* ===== Category rail ===== */
.rail {
  display: flex;
  gap: var(--sp-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { height: 0; }
.rail-tile {
  position: relative;
  flex: 0 0 260px;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--ink);
}
.rail-tile img {
  width: 100%; height: 100%; object-fit: cover;
}
.rail-tile .btn-on-image {
  position: absolute;
  left: 12px;
  bottom: 12px;
}
@media (max-width: 599px) {
  .rail-tile { flex-basis: 68vw; }
}

/* ===== Campaign tile (editorial) ===== */
.campaign-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--ink);
}
.campaign-tile img { width: 100%; height: 100%; object-fit: cover; }
.campaign-tile-copy {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: var(--on-primary);
  max-width: 600px;
}
.campaign-tile-copy .kicker {
  font-size: 14px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px; display: block;
}
.campaign-tile-copy h3 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 18px 0;
  font-weight: 400;
}
@media (max-width: 1023px) {
  .campaign-tile { aspect-ratio: 4/5; }
  .campaign-tile-copy h3 { font-size: 40px; }
}

/* ===== Member strip ===== */
.member-strip {
  background: var(--ink);
  color: var(--on-primary);
  padding: var(--sp-section) 0;
}
.member-strip .section-title { color: var(--on-primary); }
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}
.member-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #000;
}
.member-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.member-card-copy {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
}
.member-card-copy h4 {
  font-size: 24px; font-weight: 500; margin: 0 0 12px 0;
}
@media (max-width: 960px) {
  .member-grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--hairline);
  margin-top: var(--sp-section);
  padding-top: var(--sp-section);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}
.footer-col h5 {
  font-size: 16px; font-weight: 500; margin: 0 0 var(--sp-lg) 0;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--sp-md); }
.footer-col a { font-size: 14px; font-weight: 500; color: var(--mute); }
.footer-col a:hover { color: var(--ink); }
.footer-fine {
  border-top: 1px solid var(--hairline);
  margin-top: var(--sp-section);
  padding: var(--sp-xl) 0 var(--sp-section) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.3px;
}
@media (max-width: 960px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-xl); }
}
@media (max-width: 599px) {
  .footer-cols { grid-template-columns: 1fr; }
}
