/* A-List Automotive — storefront styles
   Black and white, engineered feel: white canvas, light grey panels, black bands,
   square corners, two-line headings (light line over a bold uppercase line),
   edge-to-edge photo tiles and arrow-led uppercase links. */

:root {
  --bg: #ffffff;
  --surface: #f3f3f3;
  --surface-2: #e9e9e9;
  --line: #e3e3e3;
  --line-strong: #c9c9c9;
  --text: #0b0b0b;
  --muted: #6d6d6d;

  --dark: #0b0b0b;
  --dark-2: #171717;
  --on-dark: #f4f4f4;
  --on-dark-muted: #9b9b9b;
  --dark-line: rgba(255, 255, 255, 0.14);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --header-h: 76px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lock { overflow: hidden; }
[hidden] { display: none !important; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; border-radius: 0; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ----------
   Headings are bold uppercase; a light, sentence-case line (.eyebrow / .kicker)
   sits above them to form the two-line heading. */
h1, h2, h3, .display {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}
.display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; }
h2, .h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
h3, .h3 { font-size: 1.05rem; line-height: 1.2; }

.eyebrow, .kicker {
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 6px;
  color: inherit;
}

.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--muted); max-width: 48ch; margin: 0; }
.muted { color: var(--muted); }

.heading { margin-bottom: clamp(28px, 4vw, 44px); }
.heading--center { text-align: center; }
.heading p:not(.kicker) { margin: 14px 0 0; color: var(--muted); max-width: 56ch; }
.heading--center p:not(.kicker) { margin-left: auto; margin-right: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
/* Primary: black on light pages, white inside dark bands */
.btn--light, .btn--dark { background: var(--text); color: #fff; }
.btn--light:hover, .btn--dark:hover { background: #2a2a2a; }
.btn--ghost { border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: #fff; }
.on-dark .btn--light { background: #fff; color: var(--dark); }
.on-dark .btn--light:hover { background: #d9d9d9; }
.on-dark .btn--ghost { border-color: #fff; color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--dark); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Arrow-led uppercase link. Markup puts the arrow last; row-reverse shows it first. */
.link-arrow {
  display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.link-arrow svg { width: 20px; height: 20px; stroke-width: 2; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  background: #fff; color: var(--text);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Image slots ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #efefef 0%, #e2e2e2 100%);
}
.media::after {
  content: attr(data-slot);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.media.has-img::after { content: none; }
.media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.4s var(--ease);
}
/* Price flyers are shown whole on white instead of cropped */
.media--contain { background: #fff; }
.media--contain img { object-fit: contain; }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--dark); color: var(--on-dark);
  text-align: center; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px var(--gutter);
  font-weight: 500;
}

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}

/* ---------- Logo: left aligned, "launch" on hover ----------
   Hover: the badge kicks forward with a skew, three speed lines streak out
   behind it, and a chrome shine sweeps across the lettering. */
.logo { position: relative; display: inline-flex; align-items: center; line-height: 0; justify-self: start; }
.logo__art { position: relative; display: block; overflow: hidden; }
.logo img { height: 44px; width: auto; }
.logo .logo--light { display: none; }
.logo__art::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-160%) skewX(-20deg); pointer-events: none;
}
.logo__lines {
  position: absolute; right: 100%; top: 50%; width: 46px; height: 24px; margin-right: 6px;
  transform: translateY(-50%); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
}
.logo__lines i { display: block; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; opacity: 0; }
.logo__lines i:nth-child(1) { width: 60%; }
.logo__lines i:nth-child(2) { width: 100%; }
.logo__lines i:nth-child(3) { width: 40%; }
.logo:hover .logo__art { animation: logoLaunch 0.7s var(--ease); }
.logo:hover .logo__art::after { animation: logoShine 0.75s 0.08s ease-out; }
.logo:hover .logo__lines i { animation: logoLines 0.6s var(--ease); }
.logo:hover .logo__lines i:nth-child(2) { animation-delay: 0.05s; }
.logo:hover .logo__lines i:nth-child(3) { animation-delay: 0.1s; }
@keyframes logoLaunch {
  0% { transform: none; }
  22% { transform: translateX(-4px) skewX(6deg); }
  55% { transform: translateX(7px) skewX(-12deg); }
  78% { transform: translateX(-1px) skewX(2deg); }
  100% { transform: none; }
}
@keyframes logoShine { to { transform: translateX(380%) skewX(-20deg); } }
@keyframes logoLines {
  0% { transform: scaleX(0); opacity: 0; }
  35% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(-14px); opacity: 0; }
}

/* ---------- Main nav: centred, "pit board" hover ----------
   Hover: a skewed black plate wipes in from the left, each letter rolls up
   one after another and comes back white; the other links dim. */
.nav { display: flex; gap: 6px; justify-self: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted);
  isolation: isolate; transition: opacity 0.3s var(--ease), color 0.2s;
}
.nav__fill {
  position: absolute; inset: 0; z-index: -1; background: var(--text);
  transform: skewX(-14deg) scaleX(0); transform-origin: left center;
  transition: transform 0.42s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav__word { display: inline-flex; overflow: hidden; line-height: 1.3; padding-left: 0.16em; margin-left: -0.16em; }
.nav__char {
  position: relative; display: inline-block; white-space: pre;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: calc(var(--i) * 28ms);
}
.nav__char::after {
  content: attr(data-ch); position: absolute; left: 0; top: 100%; color: #fff;
}
.nav:hover .nav__link:not(:hover) { opacity: 0.35; }
.nav__link:hover .nav__fill, .nav__link:focus-visible .nav__fill { transform: skewX(-14deg) scaleX(1); }
.nav__link:hover .nav__char, .nav__link:focus-visible .nav__char { transform: translateY(-100%); }
.nav__link:focus-visible { outline-offset: 4px; }
/* Current page: dark text with a bar underneath */
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::before {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--text);
  transition: opacity 0.2s;
}
.nav__link[aria-current="page"]:hover::before { opacity: 0; }

.header__tools { display: flex; gap: 4px; justify-self: end; align-items: center; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center; position: relative;
  transition: background 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 5px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--text); color: #fff;
  font-size: 0.64rem; font-weight: 600; line-height: 17px; text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-btn { display: none; }

/* Mobile nav */
.mnav {
  position: fixed; inset: 0; z-index: 80; background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; padding: 14px var(--gutter) 32px;
  transform: translateY(-100%); transition: transform 0.45s var(--ease);
}
.mnav.open { transform: none; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; height: 54px; }
.mnav .logo--dark, .footer .logo--dark { display: none; }
.mnav .logo--light, .footer .logo--light { display: block; }
.mnav .icon-btn:hover { background: var(--dark-2); }
.mnav__links { display: flex; flex-direction: column; margin-top: 32px; border-top: 1px solid var(--dark-line); }
.mnav__links a {
  font-weight: 600; text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.02em;
  padding: 18px 0; border-bottom: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; align-items: center;
}
.mnav__links svg { width: 20px; height: 20px; color: var(--on-dark-muted); }
.mnav__foot { margin-top: auto; color: var(--on-dark-muted); font-size: 0.9rem; }

/* ---------- Hero ----------
   Desktop: full-bleed HD photo, a light sweep on load, a slim tag line,
   a rotating "Shop" badge and a framed looping clip of the light-up decal.
   Phones: the tall collage, then a video panel with a kinetic headline. */
.hero {
  position: relative; background: var(--dark); color: var(--on-dark);
  height: min(calc(100svh - var(--header-h) - 34px), 900px); min-height: 560px;
  overflow: hidden; isolation: isolate;
}
.hero__picture, .hero__picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__picture { z-index: -2; }
.hero__picture img { object-fit: cover; object-position: 50% 62%; animation: heroIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes heroIn { from { transform: scale(1.12); filter: blur(10px) brightness(0.4); } to { transform: none; filter: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 38%), linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%);
}
/* One white light streak across the photo as it lands */
.hero__sweep { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__sweep::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 22%; left: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  animation: sweep 1.6s 0.9s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes sweep { to { transform: translateX(560%) skewX(-18deg); } }

/* ---------- Pop-up shop call-to-action (desktop) ----------
   After 5 seconds the photo dims and softens, the kicker eases in, each word
   of the title rises out of a blur, then the button frame draws itself
   around the label and a light streak runs across it. */

.hero__cta {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--gutter);
  visibility: hidden; pointer-events: none;
}
.hero.is-cta .hero__cta { visibility: visible; pointer-events: auto; }
/* Dim and soften the photo behind the text */
.hero__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0.3) 100%);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.is-cta .hero__cta::before { opacity: 1; }

.hero__cta-kicker {
  margin: 0 0 18px; font-size: 0.74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.7em; padding-left: 0.7em; opacity: 0;
}
.hero.is-cta .hero__cta-kicker { animation: kickerIn 1.2s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes kickerIn { from { opacity: 0; letter-spacing: 1.2em; } to { opacity: 0.85; letter-spacing: 0.5em; } }

.hero__cta-title { font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 1; margin: 0 0 40px; }
.hero__cta-title span { display: inline-block; opacity: 0; transform: translateY(40%); filter: blur(12px); }
.hero.is-cta .hero__cta-title span { animation: wordIn 1s calc(0.45s + var(--w) * 0.12s) cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* The button: hairline frame that draws itself, glass backdrop, white fill on hover */
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  height: 64px; padding: 0 40px 0 44px; overflow: hidden; isolation: isolate;
  color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.cta__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cta__frame rect { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cta__fill {
  position: absolute; inset: 0; z-index: -1; background: #fff;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
/* Light streak */
.cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-180%) skewX(-20deg);
}
.cta__text, .cta__arrow { position: relative; transition: color 0.3s 0.12s; }
.cta__text { padding-left: 0.3em; }
.cta__arrow { width: 20px; height: 20px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s 0.12s; }
.cta:hover .cta__fill, .cta:focus-visible .cta__fill { transform: scaleY(1); }
.cta:hover .cta__text, .cta:hover .cta__arrow, .cta:focus-visible .cta__text, .cta:focus-visible .cta__arrow { color: var(--dark); }
.cta:hover .cta__arrow { transform: translateX(8px); }
.cta:active { transform: scale(0.98); }

/* Desktop entrance, then a slow idle shimmer */
.hero__cta .cta { opacity: 0; transform: translateY(14px); }
.hero.is-cta .hero__cta .cta { animation: ctaIn 0.8s 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero.is-cta .hero__cta .cta__frame rect { animation: draw 1.1s 0.95s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.hero.is-cta .hero__cta .cta::after { animation: streak 4.5s 2.1s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
@keyframes ctaIn { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes streak { 0% { transform: translateX(-180%) skewX(-20deg); } 30%, 100% { transform: translateX(380%) skewX(-20deg); } }

/* Phone version: full width, frame draws when the video panel scrolls in */
.cta--block { width: 100%; }
.is-in .cta--block .cta__frame rect { animation: draw 1.1s 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.is-in .cta--block::after { animation: streak 4.5s 1.8s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
/* Phone-only video panel */
.hero-m { display: none; }

/* Kinetic headline (phones) */
.kinetic { font-size: clamp(2.9rem, 14vw, 4.2rem); line-height: 0.92; letter-spacing: -0.005em; margin: 6px 0 0; }
.kinetic__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.kinetic__line > span { display: inline-block; transform: translateY(105%); }
.kinetic__line--outline > span { color: transparent; -webkit-text-stroke: 1.5px #fff; position: relative; }
/* A solid fill wipes across the outlined line, then pulls back, on repeat */
.kinetic__line--outline > span::after {
  content: attr(data-text); position: absolute; inset: 0; color: #fff; -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
}
.reveal { opacity: 0; transform: translateY(16px); }
.is-in .kinetic__line > span { animation: lineUp 0.9s calc(var(--d) * 0.12s) cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.is-in .kinetic__line--outline > span::after { animation: fillWipe 3.6s 1.1s cubic-bezier(0.7, 0, 0.2, 1) infinite; }
.is-in .reveal { animation: fadeUp 0.8s calc(var(--d) * 0.12s + 0.1s) cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fillWipe {
  0% { clip-path: inset(0 100% 0 0); }
  35%, 60% { clip-path: inset(0 0 0 0); }
  95%, 100% { clip-path: inset(0 0 0 100%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--grey { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lead, .section--dark .heading p:not(.kicker) { color: var(--on-dark-muted); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section__foot { margin-top: 44px; text-align: center; }

/* Category strip: edge-to-edge photo tiles, label and count top-left */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: #fff; }
.cat {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-start;
  color: #fff; padding: 18px;
}
.cat .media { position: absolute; inset: 0; z-index: -1; }
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.18) 34%, rgba(0,0,0,0) 55%);
}
.cat > *:not(.media) { position: relative; z-index: 1; }
.cat__label { font-weight: 300; font-size: 1.15rem; line-height: 1.2; }
.cat__meta { margin-top: 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.cat .cat__go {
  position: absolute; right: 0; bottom: 0;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: #fff; color: var(--text);
}
.cat__go svg { width: 20px; height: 20px; stroke-width: 2; transition: transform 0.25s var(--ease); }
.cat:hover .media img { transform: scale(1.05); }
.cat:hover .cat__go svg { transform: translateX(3px); }

/* Filter tabs */
.tabs { display: flex; justify-content: center; gap: 4px 28px; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
  position: relative; padding: 10px 0;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--text); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); }
.card__media .media { position: absolute; inset: 0; }
.card:hover .card__media .media img { transform: scale(1.04); }
.card__badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 11px; background: var(--text); color: #fff;
}
.card__badge--muted { background: #fff; color: var(--text); }
.card__add {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  height: 42px; padding: 0 16px;
  background: var(--text); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s;
}
.card__add svg { width: 15px; height: 15px; }
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
.card__add:hover { background: #2a2a2a; }
.card__add[disabled] { background: var(--surface-2); color: var(--muted); }
.card__body { padding: 16px 0 0; }
.card__cat { font-size: 0.86rem; font-weight: 300; color: var(--muted); margin: 0 0 3px; }
.card__title {
  font-size: 0.92rem; font-weight: 600; line-height: 1.3; margin: 0;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.price { margin-top: 8px; font-size: 0.95rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price s { color: var(--muted); font-size: 0.85rem; }
.price .unit { color: var(--muted); font-size: 0.78rem; }

.skeleton { background: var(--surface); aspect-ratio: 1 / 1.3; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* Make tiles (edge-to-edge, label top-left) */
.makes-band__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.makes-band__head p { margin: 0; color: var(--muted); max-width: 52ch; }
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.look {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; padding: 20px; color: #fff;
}
.look .media { position: absolute; inset: 0; z-index: -1; }
.look::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.2) 34%, rgba(0,0,0,0) 55%);
}
.look > *:not(.media) { position: relative; z-index: 1; }
.look h3 { font-weight: 300; text-transform: none; font-size: 1.35rem; letter-spacing: 0; }
.look:hover .media img { transform: scale(1.04); }
.look .link-arrow { align-self: flex-start; }

/* Value / feature list */
.values { background: var(--surface); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value { border-top: 2px solid var(--text); padding-top: 22px; }
.value svg { width: 28px; height: 28px; margin-bottom: 14px; stroke-width: 1.4; }
.value h3 { margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Split (image flush to the edge, text beside) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flush { max-width: none; padding: 0; gap: 0; align-items: stretch; }
.split--flush .split__text { padding: clamp(48px, 7vw, 110px) var(--edge) clamp(48px, 7vw, 110px) clamp(32px, 6vw, 96px); align-self: center; }
.split__text p.big { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; margin: 18px 0 28px; color: var(--muted); font-weight: 400; }
.split__media { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.split--flush .split__media { aspect-ratio: auto; min-height: 520px; }
.split__media .media { position: absolute; inset: 0; }
.link-list { display: grid; gap: 16px; justify-items: start; }

/* Help band + newsletter */
.help { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.help p { color: var(--on-dark-muted); margin: 16px 0 28px; max-width: 48ch; }
.join h3 { margin-bottom: 8px; }
.join p { margin: 0 0 18px; color: var(--on-dark-muted); }
.field-row { display: flex; gap: 0; }
.input {
  flex: 1; height: 50px; padding: 0 18px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text);
  outline: none; border-radius: 0; transition: border-color 0.2s;
}
.input:focus { border-color: var(--text); }
.input::placeholder { color: #8a8a8a; }
.on-dark .input { background: transparent; border-color: var(--dark-line); color: var(--on-dark); }
.on-dark .input:focus { border-color: #fff; }
.on-dark .input::placeholder { color: var(--on-dark-muted); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; min-height: 1.2em; }
.on-dark .form-note { color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding: 72px 0 28px; border-top: 1px solid var(--dark-line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  font-weight: 600; margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { color: var(--on-dark-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer li a:hover { color: #fff; }
.footer .logo img { height: 52px; }
.footer__about p { color: var(--on-dark-muted); max-width: 34ch; margin: 18px 0 22px; font-size: 0.92rem; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid var(--dark-line);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover { background: #fff; color: var(--dark); border-color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer__base {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--on-dark-muted);
}
.credit { text-align: center; font-size: 0.76rem; color: #6f6f6f; margin-top: 22px; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: #fff; }

/* ---------- Cart drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
}
.drawer.open { transform: none; }
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1rem; letter-spacing: 0.08em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__foot { padding: 20px 22px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer__row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 1rem; }
.drawer__note { font-size: 0.8rem; color: var(--muted); margin: 0 0 16px; }
.drawer__empty { text-align: center; padding: 64px 0; color: var(--muted); }
.drawer__empty .btn { margin-top: 20px; }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__media { width: 76px; height: 76px; overflow: hidden; position: relative; background: var(--surface); }
.line__media .media { position: absolute; inset: 0; }
.line__media .media::after { content: none; }
.line__title { font-size: 0.86rem; font-weight: 600; line-height: 1.3; margin: 0; text-transform: uppercase; letter-spacing: 0.02em; }
.line__variant { font-size: 0.8rem; color: var(--muted); margin: 2px 0 0; }
.line__price { font-size: 0.92rem; text-align: right; }
.line__remove { font-size: 0.76rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }
.line__remove:hover { color: var(--text); }

.qty { display: inline-flex; align-items: center; height: 36px; margin-top: 10px; border: 1px solid var(--line-strong); }
.qty button { width: 34px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); background: var(--surface); }
.qty button svg { width: 14px; height: 14px; }
.qty span, .qty input {
  min-width: 26px; width: 34px; text-align: center; font-size: 0.9rem;
  background: none; border: 0; outline: none; -moz-appearance: textfield;
}
.qty--lg { height: 50px; margin-top: 0; }
.qty--lg button { width: 44px; }

/* ---------- Search overlay ---------- */
.search {
  position: fixed; inset: 0 0 auto 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform 0.4s var(--ease);
  padding: 22px 0 28px;
}
.search.open { transform: none; }
.search form { display: flex; gap: 10px; align-items: center; }
.search .input { height: 56px; font-size: 1.05rem; }
.search__results { margin-top: 14px; display: grid; gap: 0; }
.search__results a {
  display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.search__results a:hover { background: var(--surface); }
.search__results svg { width: 18px; height: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--dark); color: #fff; padding: 13px 22px;
  font-size: 0.84rem; font-weight: 500;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(44px, 6vw, 84px) 0 clamp(28px, 4vw, 44px); background: var(--surface); }
.page-head p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); max-width: 56ch; }
.crumbs { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }

/* Shop toolbar */
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px 0 32px;
}
.toolbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
a.chip { display: inline-flex; align-items: center; gap: 10px; }
.chip__count { font-size: 0.72rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.select {
  height: 40px; padding: 0 38px 0 14px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 0;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.results-count { font-size: 0.82rem; color: var(--muted); }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }
.empty .link-arrow { color: var(--text); margin-top: 12px; }

/* Shop landing: categories first */
.shop-landing { padding-top: clamp(32px, 5vw, 56px); }
.shopcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; }
.shopcat { display: flex; flex-direction: column; background: var(--surface); transition: background 0.25s var(--ease); }
.shopcat:hover { background: var(--surface-2); }
.shopcat__media { position: relative; aspect-ratio: 4 / 3; }
.shopcat__media .media { position: absolute; inset: 0; }
.shopcat:hover .media img { transform: scale(1.04); }
.shopcat__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.shopcat__title { font-size: 1.1rem; }
.shopcat__blurb { margin: 8px 0 18px; color: var(--muted); font-size: 0.93rem; }
.shopcat__meta {
  margin: auto 0 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-top: 1px solid var(--line-strong); padding-top: 14px;
}
.shopcat__meta svg { width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
.shopcat:hover .shopcat__meta svg { transform: translateX(4px); }
.makes { margin-top: clamp(40px, 6vw, 64px); }
.makes h2 { margin-bottom: 16px; }
.landing-all { margin-top: 40px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); padding-top: 32px; }
.gallery { display: grid; gap: 10px; }
.gallery__main { aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: var(--surface); }
.gallery__main .media { position: absolute; inset: 0; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.thumb { aspect-ratio: 1 / 1; overflow: hidden; position: relative; border: 1px solid transparent; background: var(--surface); }
.thumb .media { position: absolute; inset: 0; }
.thumb .media::after { content: none; }
.thumb[aria-current="true"] { border-color: var(--text); }

.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.pdp__info h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.pdp__price { font-size: 1.4rem; margin: 18px 0 0; display: flex; gap: 12px; align-items: baseline; }
.pdp__price s { color: var(--muted); font-size: 1rem; }
.pdp__unit { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.pdp__stock { font-size: 0.85rem; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.pdp__stock::before { content: ""; width: 7px; height: 7px; background: #2f9e44; }
.pdp__stock.out::before { background: #c92a2a; }
.pdp__desc { color: var(--muted); margin: 24px 0 0; }
.pdp__desc p { margin: 0 0 12px; }
.opt { margin-top: 28px; }
.opt__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.opt .chip { height: auto; min-height: 40px; padding: 9px 14px; text-align: left; line-height: 1.3; text-transform: none; letter-spacing: 0; font-size: 0.86rem; font-weight: 500; }
.chip[disabled] { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.buy { display: flex; gap: 10px; margin-top: 28px; }
.buy .btn { flex: 1; height: 50px; }

.spec { margin-top: 30px; }
.spec__title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--text); margin-bottom: 12px; }
.spec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec li { position: relative; padding: 9px 0 9px 22px; color: #333; font-size: 0.93rem; border-bottom: 1px solid var(--line); }
.spec li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 2px; background: var(--text); }
.spec__fits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px !important; }

.acc { margin-top: 32px; border-top: 1px solid var(--text); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc details p { margin: 0 0 18px; color: var(--muted); font-size: 0.94rem; }

/* ---------- About / contact ---------- */
.prose { max-width: 62ch; color: #333; }
.prose p { margin: 0 0 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { border-top: 2px solid var(--text); padding-top: 22px; }
.stat h3 { margin-bottom: 10px; }
.stat p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact__list { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.contact__item {
  display: flex; gap: 18px; align-items: center; padding: 20px 4px;
  border-bottom: 1px solid var(--line); transition: background 0.2s;
}
a.contact__item:hover { background: var(--surface); }
.contact__item svg { width: 22px; height: 22px; flex: none; }
.contact__item small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.form textarea.input { height: 150px; padding: 14px 18px; resize: vertical; }
.form .btn { justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .shopcats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header__inner { grid-template-columns: 1fr auto; gap: 8px; }
  .logo img { height: 34px; }
  .logo__lines { display: none; }

  /* Phones: tall collage shown whole, then the video panel */
  .hero { height: auto; min-height: 0; }
  .hero::before, .hero__sweep, .hero__cta { display: none; }
  .hero__picture, .hero__picture img { position: static; height: auto; }
  .hero__picture img { display: block; animation: heroInM 1.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

  .hero-m { display: block; position: relative; background: #000; color: #fff; overflow: hidden; isolation: isolate; min-height: 640px; }
  .hero-m__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -2; }
  .hero-m::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 34%, rgba(0,0,0,0.8) 62%, rgba(0,0,0,0.95) 100%); }
  .hero-m__inner { padding: 360px var(--gutter) 36px; display: flex; flex-direction: column; align-items: flex-start; }
  .hero-m__copy { color: #d0d0d0; margin: 18px 0 18px; max-width: 34ch; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .makes-band__head, .split, .help, .contact, .pdp { grid-template-columns: 1fr; }
  .split--flush .split__media { min-height: 0; aspect-ratio: 4 / 3; }
  .split--flush .split__text { padding: 40px var(--gutter) 56px; }
  .pdp__info { position: static; }
  .values__grid, .stats { grid-template-columns: 1fr; }
  .card__add { opacity: 1; transform: none; height: 38px; padding: 0 12px; }
  .card__add span { display: none; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 10px; }
  .form .two { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .shopcats { grid-template-columns: 1fr; }
  .shopcat__media { aspect-ratio: 16 / 9; }
  .spec__fits { grid-template-columns: 1fr; }
  .toolbar__right { width: 100%; }
  .toolbar__right .select { flex: 1; }
  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
  .cat { aspect-ratio: 4 / 5; padding: 14px; }
  .look { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Simple button row (404 page) */
.hero__actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

@keyframes heroInM { from { filter: brightness(0.3); } to { filter: none; } }
