/* ===== Design B — "artist drop" =====
   Everything here is scoped to html.v2, so Design A (styles.css) is untouched.
   Dark, big condensed type, rose-red accent, parallax hero, marquee strip. */

.hero2, .marquee, .split { display: none; }

html.v2 {
  --bg: #0b0b0c;
  --bg-alt: #ececec;          /* product photos sit on light tiles so they read on black */
  --fg: #f2f0ee;
  --muted: rgba(242, 240, 238, 0.62);
  --line: rgba(242, 240, 238, 0.14);
  --btn: #f2f0ee;
  --btn-text: #0b0b0c;
  --accent: #d1343f;          /* sampled from the rose */
  --display: 'Anton', 'Impact', sans-serif;
}
html.v2 body { font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0; }
html.v2 .hero { display: none; }
html.v2 .hero2, html.v2 .marquee, html.v2 .split { display: block; }

/* Header floats over the hero on the home page, solid elsewhere */
html.v2 .header { background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: transparent; }
html.v2 body[data-page="home"] .header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 0.3s; }
html.v2 body[data-page="home"] .header.scrolled { background: rgba(11, 11, 12, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.v2 .nav { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; }
html.v2 .nav a { color: var(--muted); }
html.v2 .nav a:hover, html.v2 .nav a.active { color: var(--fg); text-decoration: none; }
html.v2 .cart-count { background: var(--accent); color: #fff; }

/* Buttons */
html.v2 .btn { border-radius: 999px; text-transform: uppercase; font-size: 13px; letter-spacing: 0.14em; font-weight: 600; padding: 15px 34px; transition: transform 0.2s, background 0.2s, color 0.2s; }
html.v2 .btn:hover { transform: translateY(-2px); }
html.v2 .btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
html.v2 .btn.ghost { color: var(--fg); border-color: var(--line); }

/* Hero with parallax */
.hero2 { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero2 .bg { position: absolute; inset: -12% 0 -12% 0; will-change: transform; }
.hero2 .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(0.25) contrast(1.05); }
.hero2::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0.05) 22%, rgba(11,11,12,0.15) 55%, rgba(11,11,12,0.95) 100%); }
.hero2 .copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 7vh; z-index: 2; text-align: center; padding: 0 20px; }
.hero2 .word { font-family: var(--display); font-size: clamp(110px, 24vw, 340px); line-height: 0.82; letter-spacing: 0.01em; margin: 0; color: var(--fg); will-change: transform; }
.hero2 .word .r { color: var(--accent); }
.hero2 .tag { text-transform: uppercase; letter-spacing: 0.4em; font-size: 13px; color: var(--muted); margin: 18px 0 26px; }
.hero2 .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.marquee .track { display: flex; width: max-content; animation: marquee 80s linear infinite; font-family: var(--display); font-size: 28px; letter-spacing: 0.04em; text-transform: uppercase; will-change: transform; }
/* Two identical .grp halves, no whitespace between items (flex ignores it), so -50% lands exactly on the seam — no jump. */
.marquee .grp { display: flex; flex-shrink: 0; }
.marquee .track span { padding: 0 22px; flex-shrink: 0; }
.marquee .track .dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section titles */
html.v2 .section h2 { font-family: var(--display); font-size: clamp(40px, 6vw, 76px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; margin-bottom: 32px; }
html.v2 .section h2 small { display: block; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 10px; }

/* Cards */
html.v2 .grid { gap: 32px 16px; }
html.v2 body[data-page="home"] #featured.grid { grid-template-columns: repeat(2, 1fr); }
html.v2 .card .ph { border-radius: 14px; }
html.v2 .card .t { font-weight: 600; font-size: 15px; margin-top: 14px; }
html.v2 .card:hover .t { text-decoration: none; color: var(--accent); }
html.v2 .card .p { color: var(--muted); }

/* Split story band with its own parallax image */
.split { position: relative; }
.split .inner { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 80vh; }
.split .pic { position: relative; overflow: hidden; }
.split .pic img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; filter: grayscale(0.2); }
.split .txt { display: flex; flex-direction: column; justify-content: center; padding: 64px 7vw; }
.split .txt .k { font-size: 13px; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; }
.split .txt h3 { font-family: var(--display); font-size: clamp(44px, 5.5vw, 88px); line-height: 0.95; text-transform: uppercase; margin: 14px 0 20px; font-weight: 400; }
.split .txt p { color: var(--muted); max-width: 440px; margin: 0 0 28px; }

/* Product page */
html.v2 .info h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(36px, 4vw, 56px); line-height: 1; }
html.v2 .gallery .main, html.v2 .thumbs button { border-radius: 14px; overflow: hidden; }
html.v2 .pill { background: transparent; }
html.v2 .pill.on { background: var(--fg); color: var(--bg); }
html.v2 .qty, html.v2 .form input, html.v2 .form textarea, html.v2 .newsletter input { border-color: var(--line); background: transparent; color: var(--fg); }
html.v2 .desc a { color: var(--fg); }

/* Newsletter + footer */
html.v2 .newsletter { background: #141416; }
html.v2 .newsletter h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; }
html.v2 .newsletter input { border-radius: 999px 0 0 999px; padding-left: 20px; }
html.v2 .newsletter .btn { border-radius: 0 999px 999px 0; background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 760px) {
  .split .inner { grid-template-columns: 1fr; }
  .split .pic { min-height: 60vh; }
  html.v2 body[data-page="home"] #featured.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
}

/* Preview-only design switcher */
.design-switch { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; background: #121212; border-radius: 999px; padding: 4px; box-shadow: 0 6px 24px rgba(0,0,0,0.25); font: 600 12px/1 system-ui, sans-serif; }
.design-switch a { color: #bbb; text-decoration: none; padding: 9px 14px; border-radius: 999px; letter-spacing: 0.04em; }
.design-switch a.on { background: #fff; color: #121212; }
.b-only { display: none; }
html.v2 .b-only { display: block; }
html.v2 .cat-title { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; letter-spacing: 0.02em; border-top: 1px solid var(--line); padding-top: 22px; }
html.v2 .cat-group:first-child .cat-title { border-top: 0; padding-top: 0; }

/* ---- Flat-lay hero: the headphones sit on the photo's top edge, so anchor to the top ---- */
.hero2[data-hero="flatlay"] .bg { inset: 0 0 -24% 0; }               /* no overshoot above, so the top edge stays in frame */
.hero2[data-hero="flatlay"] .bg img { object-position: 72% 0%; filter: none; }
.hero2[data-hero="flatlay"]::after { background: linear-gradient(180deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0) 14%, rgba(11,11,12,0) 50%, rgba(11,11,12,0.92) 100%); }
/* Phones: show the whole square photo under the header, wordmark below it — nothing cropped */
@media (max-width: 760px) {
  .hero2[data-hero="flatlay"] { height: auto; min-height: 0; padding-top: 72px; }
  .hero2[data-hero="flatlay"] .bg { position: relative; inset: auto; aspect-ratio: 1 / 1; transform: none !important; }
  .hero2[data-hero="flatlay"] .bg img { object-position: 50% 50%; }
  .hero2[data-hero="flatlay"]::after { display: none; }
  .hero2[data-hero="flatlay"] .bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(11,11,12,0), var(--bg)); }
  .hero2[data-hero="flatlay"] .copy { position: relative; bottom: auto; padding: 4px 20px 44px; margin-top: -9vw; }
  .hero2[data-hero="flatlay"] .word { font-size: 32vw; }
}

/* Hero photo fades in (with a slow, slight settle) once decoded on first load */
html.v2 .hero2 .bg img { opacity: 0; transform: scale(1.04); transition: opacity 1.1s ease, transform 2.2s cubic-bezier(0.16, 1, 0.3, 1); }
html.v2 .hero2 .bg img.loaded { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { html.v2 .hero2 .bg img { transition: none; transform: none; } }
/* Hero reveal order: photo fades in first, then wordmark → tagline → buttons slide up after it */
@media (prefers-reduced-motion: no-preference) {
  html.v2 .hero2 .word.scroll-trigger.in { animation-delay: 0.45s; }
  html.v2 .hero2 .tag.scroll-trigger.in { animation-delay: 0.65s; }
  html.v2 .hero2 .ctas.scroll-trigger.in { animation-delay: 0.8s; }
}
/* The photo's fade ends at the page colour (not 92%) so its bottom edge never shows.
   (The banner keeps its top border — Nate: "the banner was fine".) */
html.v2 .hero2::after { background: linear-gradient(180deg, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0.05) 22%, rgba(11,11,12,0.15) 55%, var(--bg) 100%); }
html.v2 .hero2[data-hero="flatlay"]::after { background: linear-gradient(180deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0) 14%, rgba(11,11,12,0) 50%, var(--bg) 100%); }
@media (max-width: 760px) {
  html.v2 .hero2[data-hero="flatlay"] .bg::after { bottom: -1px; height: calc(30% + 1px); }
  html.v2 .hero2[data-hero="flatlay"]::after { display: none; }
}
/* The load-in zoom (scale 1.04 → 1) must stay INSIDE the photo frame — unclipped, the extra 4%
   hung below the bottom fade on phones and showed as a light line until the zoom settled. */
html.v2 .hero2 .bg { overflow: hidden; }
html.v2 .hero2 .bg img { transform-origin: 50% 50%; }
html.v2 .cart-foot .ship-to select { color: var(--fg); border-color: var(--line); border-radius: 999px; padding: 6px 12px; }
html.v2 .cart-foot .ship-to select option { background: #141416; color: var(--fg); }
html.v2 .policy h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 64px); letter-spacing: .01em; }
html.v2 .policy h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 22px; }
html.v2 .policy p, html.v2 .policy li { color: #cfcfcf; }
html.v2 .policy b { color: var(--fg); }

/* EU-only stock tag (11-13): on sale, but ships from abroad */
.ship-note{display:inline-block;margin:6px 0 2px;padding:6px 12px;border-radius:999px;font-size:13px;line-height:1.3;
  background:rgba(240,170,60,.14);color:#f0b45a;border:1px solid rgba(240,170,60,.45)}
.ship-note.sm{margin-top:4px;padding:3px 9px;font-size:12px}
.ship-note[hidden]{display:none}
