/* ==========================================================================
   Rolling Ape — BJJ rash guards
   Look: bone paper, matte black and a bronze accent. Serif caps for
         headings and labels, square corners, hairline lines, a little kanji.
   ========================================================================== */

@property --c {
  syntax: '<color>';
  inherits: true;
  initial-value: #B08D57;
}

:root {
  --ink: #141312;
  --ink-2: #3b3834;
  --muted: #6e6962;
  --paper: #f1eee8;
  --card: #f8f6f2;
  --line: #dcd6cc;
  --accent: #b08d57;
  --accent-text: #7a5f38;
  --accent-soft: #ebe3d4;
  --mat: #0d0d0c;
  --mat-2: #141413;
  --mat-3: #1c1b19;
  --mat-line: rgba(236, 232, 225, 0.1);
  --on-mat: #ece8e1;
  --on-mat-muted: #9d978e;
  --error: #8f2318;

  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --jp: 'Noto Serif JP', 'Yu Mincho', serif;

  --r-sm: 2px;
  --r: 4px;
  --r-lg: 6px;
  --shadow: 0 1px 2px rgba(20, 19, 18, 0.04);
  --shadow-lg: 0 24px 60px rgba(20, 19, 18, 0.12);
  --glow: none;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.02; letter-spacing: 0.02em; font-weight: 600; text-transform: uppercase; }
p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: 0.18em; font-size: 12px; }

/* ---------- Type pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--on-mat-muted); }
.eyebrow--on-accent { color: var(--accent); }
.eyebrow .dot { width: 22px; height: 1px; background: var(--accent); }
.eyebrow .num { color: var(--accent); }
.h2 { font-size: clamp(34px, 5vw, 60px); }
.h2 em { font-style: normal; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border-radius: var(--r-sm); border: 0;
  font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #c4a36f; }
.btn--ghost { background: transparent; color: var(--on-mat); box-shadow: inset 0 0 0 1px rgba(236, 232, 225, 0.35); }
.btn--ghost:hover { background: rgba(236, 232, 225, 0.08); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 0; background: rgba(20, 19, 18, 0.06); font-size: 15px;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(20, 19, 18, 0.12); }

/* ==========================================================================
   Header
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: var(--on-mat);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.nav[data-theme='dark'].is-scrolled { background: rgba(13, 13, 12, 0.6); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.nav[data-theme='light'] {
  color: var(--ink);
  background: rgba(241, 238, 232, 0.88);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.nav__links a { opacity: 0.8; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.nav__progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.logo b { color: var(--accent); font-weight: 800; }
.logo--ink { color: var(--ink); }

/* Logo (app/logo-mark.tsx): RA monogram, bronze crown, two-line word. */
.logo__word { display: grid; line-height: 1; }
.logo__word small { margin-top: 5px; font-size: 8px; font-weight: 600; letter-spacing: 0.34em; opacity: 0.7; }
.logo__mark { flex: none; overflow: visible; }
.logo__mark * { transform-box: fill-box; }
.logo__crown { transform-origin: 50% 100%; transition: transform 0.35s var(--ease); }
.logo:hover .logo__crown { transform: translateY(-1.5px) rotate(-6deg); }

/* The nav logo builds itself once when the page opens. */
.logo--intro .logo__letters path { stroke-dasharray: 100; animation: logo-draw 0.9s var(--ease) both; }
.logo--intro .logo__letters path + path { animation-delay: 0.25s; }
.logo--intro .logo__crown { animation: logo-crown 0.6s 0.9s cubic-bezier(0.34, 1.5, 0.5, 1) both; }
.logo--intro .logo__word { animation: logo-word 0.7s 0.3s var(--ease) both; }
@keyframes logo-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes logo-crown { from { opacity: 0; transform: translateY(-8px); } }
@keyframes logo-word { from { opacity: 0; transform: translateX(-8px); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) {
  .logo *, .logo--intro * { animation: none !important; transition: none !important; }
}

.bag-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; transition: background 0.2s; }
.bag-btn:hover { background: rgba(127, 127, 127, 0.15); }
.bag-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--r-sm); background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}
.bag-btn.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ==========================================================================
   Hero — scroll-driven video
   ========================================================================== */
.hero { position: relative; height: 520vh; background: var(--mat); color: var(--on-mat); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }

.hero__glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(45% 55% at 50% 45%, rgba(176, 141, 87, 0.09), transparent 70%);
}
.hero__kanji {
  position: absolute; left: 52%; top: 50%; z-index: -1;
  transform: translate(-50%, calc(-50% + var(--kanji-y, 0px)));
  font-family: var(--jp); font-weight: 900; font-size: min(62vh, 42vw); line-height: 1;
  writing-mode: vertical-rl; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 232, 225, 0.07);
  pointer-events: none; user-select: none;
}

.hero__media {
  position: absolute; inset: 0;
  transform: scale(var(--media-scale, 1));
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, rgba(0, 0, 0, 0.35) 0, #000 38%, #000 80%, rgba(0, 0, 0, 0.5) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, rgba(0, 0, 0, 0.35) 0, #000 38%, #000 80%, rgba(0, 0, 0, 0.5) 100%);
  mask-composite: intersect;
}
.hero__canvas { width: 100%; height: 100%; display: block; }

.hero__copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(540px, 36vw); min-height: 420px; }
.hero__panel {
  position: absolute; left: 0; top: 50%; width: 100%;
  opacity: 0; filter: blur(10px); transform: translateY(calc(-50% + 24px));
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.hero__panel.is-active { opacity: 1; filter: blur(0); transform: translateY(-50%); pointer-events: auto; }
.hero__title { font-size: clamp(44px, 5.4vw, 80px); }
.hero__title span { display: block; }
.hero__title em { display: block; font-style: normal; color: var(--accent); }
.hero__big { font-size: clamp(48px, 6.4vw, 96px); }
.hero__lede { margin-top: 22px; font-size: clamp(16px, 1.35vw, 19px); color: #c9c3ba; max-width: 460px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__micro { margin-top: 18px; font-size: 13px; color: var(--on-mat-muted); }

/* Word blur-in on first load (ScopePlay style) */
.hero__title .w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.25em); animation: word-in 0.9s var(--ease) forwards; }
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }

.hero__steps {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; width: 190px; display: grid; gap: 22px;
}
.hero__steps li { display: grid; grid-template-columns: 34px 1fr; row-gap: 8px; align-items: baseline; opacity: 0.35; transition: opacity 0.4s; }
.hero__steps li.is-active, .hero__steps li.is-done { opacity: 1; }
.hero__steps .num { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.hero__steps span:not(.num) { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.hero__steps i { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.hero__steps b { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.hero__steps.is-hidden { opacity: 0; transition: opacity 0.5s; }

.hero__product {
  position: absolute; right: var(--gutter); top: 50%; width: 290px;
  background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 14px 14px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(calc(-50% + 40px)) scale(0.96); filter: blur(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
  pointer-events: none;
}
.hero__product.is-active { opacity: 1; transform: translateY(-50%); filter: blur(0); pointer-events: auto; }
.hero__product .hp__img { border-radius: var(--r-sm); background: #e6e1d8; aspect-ratio: 1; display: grid; place-items: center; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.hero__product .hp__img img { width: 88%; filter: drop-shadow(0 18px 20px rgba(11, 21, 38, 0.25)); }
.hero__product .hp__row { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 4px 10px; gap: 10px; }
.hero__product h3 { font-size: 19px; letter-spacing: 0.02em; }
.hero__product .hp__price { font-weight: 800; white-space: nowrap; }
.hero__product .sizes { margin: 0 4px 12px; }
.hero__product .btn { width: 100%; height: 46px; }

.hero__scroll {
  position: absolute; left: calc(var(--gutter) / 2 - 6px); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--on-mat-muted);
  transition: opacity 0.4s;
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 64px; background: rgba(255, 255, 255, 0.2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
.hero.is-moving .hero__scroll { opacity: 0; }

/* Loader bar for frames */
.hero__stage::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--loaded, 0));
  opacity: calc(1 - var(--loaded-done, 0)); transition: transform 0.3s, opacity 0.6s;
}

/* Tablet / phone hero: video fills the screen */
@media (max-width: 1023px) {
  .hero { height: 440vh; }
  .hero__media {
    -webkit-mask-image: none; mask-image: none; mix-blend-mode: normal; }
  .hero__stage::before {
    content: ''; position: absolute; inset: auto 0 0; height: 62%; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 20%, rgba(0, 0, 0, 0.6) 55%, transparent);
  }
  .hero__kanji { display: none; }
  .hero__copy { z-index: 2; left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: calc(28px + env(safe-area-inset-bottom)); transform: none; min-height: 0; height: 58%; }
  .hero__panel { top: auto; bottom: 0; transform: translateY(24px); }
  .hero__panel.is-active { transform: none; }
  .hero__lede { margin-top: 14px; }
  .hero__ctas { margin-top: 22px; }
  .hero__steps {
    z-index: 2; top: calc(var(--nav-h) + 6px); left: var(--gutter); right: var(--gutter); width: auto; transform: none;
    grid-template-columns: repeat(4, 1fr); gap: 6px;
  }
  .hero__steps li { grid-template-columns: auto 1fr; column-gap: 6px; }
  .hero__steps span:not(.num) { font-size: 12px; }
  .hero__steps .num { font-size: 10px; }
  .hero__steps i { order: -1; margin-bottom: 4px; }
  .hero__product { z-index: 3; left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); width: auto; display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; padding: 12px; transform: translateY(40px) scale(0.98); }
  .hero__product.is-active { transform: none; }
  .hero__product .hp__img { grid-row: span 3; }
  .hero__product .hp__row { margin: 2px 0 8px; }
  .hero__product .sizes { margin: 0 0 10px; }
  .hero__panel[data-panel='end'] { bottom: 200px; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { background: var(--mat); color: var(--on-mat); overflow: hidden; border-top: 1px solid var(--mat-line); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.marquee span.jp { font-family: var(--jp); letter-spacing: 0.1em; color: var(--accent); }
.marquee b { color: var(--accent); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head--center { text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* Reveal on scroll (blur-up) */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }

/* ==========================================================================
   Shop
   ========================================================================== */
.shop { background: var(--paper); position: relative; z-index: 2; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.filter:hover { border-color: var(--ink-2); }
.filter[aria-selected='true'] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.filter[aria-selected='true'] small { color: var(--on-mat-muted); }
.filter__thumbs { display: flex; }
.filter__thumbs img { width: 34px; height: 34px; border-radius: var(--r-sm); background: #e6e1d8; object-fit: contain; padding: 2px; }
.filter__thumbs img + img { margin-left: -14px; box-shadow: -2px 0 0 var(--card); }
.filter strong { display: block; font-size: 14px; line-height: 1.2; }
.filter small { display: block; font-size: 12px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; grid-auto-flow: dense; }
.card {
  --c: #B08D57;
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  animation: card-in 0.6s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink-2); }
.card__media {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; width: 100%; cursor: zoom-in; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(62% 62% at 50% 50%, #efebe4 0%, #e3ded5 75%);
  transition: background 0.4s;
}
.card__media::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: 9%; height: 8%;
  background: radial-gradient(closest-side, rgba(11, 21, 38, 0.25), transparent); filter: blur(4px);
  transition: transform 0.5s var(--ease), opacity 0.5s;
}
.card__media img { width: 86%; position: relative; z-index: 1; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: translateY(-6px) scale(1.03); }
.card:hover .card__media::after { transform: scaleX(0.85); opacity: 0.6; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 9px; border-radius: var(--r-sm); background: var(--ink); color: var(--paper);
}
.card__body { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px 6px; }
.card__title { font-size: 18px; letter-spacing: 0.02em; line-height: 1.2; }
.card__meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.card__price { font-weight: 800; white-space: nowrap; }
.card__quick { display: flex; gap: 6px; padding: 10px 18px 18px; flex-wrap: wrap; align-items: center; }
.card__quick small { font-size: 12px; color: var(--muted); margin-right: 2px; font-weight: 600; }
.qsize {
  min-width: 36px; height: 30px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent;
  font-size: 12px; font-weight: 700; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.qsize:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qsize.is-pref:not(:disabled) { border-color: var(--accent); color: var(--accent-text); }
.qsize:disabled, .size:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* Feature (dark) cards in the bento */
.card.is-feature { grid-column: span 2; grid-row: span 2; background: var(--mat-2); border-color: var(--mat-line); color: var(--on-mat); }
.card.is-feature .card__media {
  flex: 1; aspect-ratio: auto;
  background: radial-gradient(55% 55% at 50% 48%, rgba(176, 141, 87, 0.18) 0%, transparent 70%), var(--mat-2);
}
.card.is-feature .card__media::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); }
.card.is-feature .card__media img { width: 74%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.card.is-feature .card__kanji {
  position: absolute; right: 6%; top: 6%; font-family: var(--jp); font-weight: 900; font-size: 140px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(176, 141, 87, 0.4); writing-mode: vertical-rl;
}
.card.is-feature .card__title { font-size: 28px; }
.card.is-feature .card__meta { color: var(--on-mat-muted); }
.card.is-feature .badge { background: var(--accent); color: var(--ink); }
.card.is-feature .qsize { background: transparent; border-color: var(--mat-line); color: var(--on-mat); }
.card.is-feature .qsize:hover { background: var(--on-mat); color: var(--ink); }
.card.is-feature .card__quick small { color: var(--on-mat-muted); }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

@media (max-width: 1099px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card.is-feature { grid-column: span 2; grid-row: span 1; }
  .card.is-feature .card__media { aspect-ratio: 16 / 11; }
  .card.is-feature .card__media img { width: auto; height: 92%; }
}
@media (max-width: 560px) {
  .grid { gap: 12px; }
  .card__body { padding: 12px 12px 4px; flex-direction: column; gap: 2px; }
  .card__title { font-size: 15px; }
  .card__meta { display: none; }
  .card__quick { display: none; }
  .card__body .card__price { font-size: 14px; padding-bottom: 10px; }
  .badge { top: 10px; left: 10px; font-size: 9px; padding: 4px 8px; }
  .card.is-feature .card__title { font-size: 20px; }
  .card.is-feature .card__kanji { font-size: 90px; }
  .filter { padding-right: 12px; }
  .filter__thumbs { display: none; }
  .filter { padding: 10px 14px; }
}

/* ==========================================================================
   Spotlight
   ========================================================================== */
.spotlight { background: var(--mat); color: var(--on-mat); position: relative; overflow: hidden; }
.spotlight .container { position: relative; }

.spot-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.spot-tab {
  --c: #B08D57;
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; text-align: left;
  border-radius: var(--r-sm); border: 1px solid var(--mat-line); background: var(--mat-2); color: var(--on-mat);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.spot-tab:hover { border-color: rgba(236, 232, 225, 0.3); }
.spot-tab img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: contain; background: var(--mat-3); padding: 3px; }
.spot-tab strong { display: block; font-size: 14px; line-height: 1.2; }
.spot-tab small { display: block; font-size: 12px; color: var(--on-mat-muted); }
.spot-tab[aria-selected='true'] { border-color: var(--accent); background: var(--mat-3); }

.spot {
  --c: #B08D57;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border-radius: var(--r); background: var(--mat-2); border: 1px solid var(--mat-line); overflow: hidden;
}
.spot__media {
  position: relative; min-height: 560px; display: grid; place-items: center; overflow: hidden; cursor: crosshair;
  background: radial-gradient(52% 52% at 50% 50%, rgba(176, 141, 87, 0.16) 0%, transparent 72%), #0a0a09;
}
.spot__kanji {
  position: absolute; left: 6%; top: 50%; transform: translateY(-50%);
  font-family: var(--jp); font-weight: 900; font-size: 300px; line-height: 1; writing-mode: vertical-rl;
  color: transparent; -webkit-text-stroke: 1.5px rgba(176, 141, 87, 0.3);
  pointer-events: none;
}
.spot__word {
  position: absolute; bottom: -0.12em; left: 0; right: 0; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(64px, 11vw, 150px); letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; white-space: nowrap;
  color: rgba(236, 232, 225, 0.05); pointer-events: none;
}
.spot__img { width: min(86%, 520px); position: relative; z-index: 1; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.65)); transition: opacity 0.35s, transform 0.6s var(--ease); }
.spot__img.is-swapping { opacity: 0; transform: translateY(16px) scale(0.97); }
.spot__lens {
  position: absolute; z-index: 3; width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.08);
  background-repeat: no-repeat; background-color: #0d0d10;
  opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--ease);
}
.spot__lens.is-on { opacity: 1; transform: scale(1); }

.spot__info { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--mat-line); }
.spot__name { font-size: clamp(36px, 4.2vw, 56px); }
.spot__desc { margin-top: 16px; color: #c9c3ba; font-size: 17px; max-width: 440px; }
.spot__specs { margin: 28px 0; display: grid; gap: 0; }
.spot__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--mat-line); font-size: 14px; }
.spot__specs div:last-child { border-bottom: 1px solid var(--mat-line); }
.spot__specs dt { color: var(--on-mat-muted); }
.spot__specs dd { margin: 0; font-weight: 600; text-align: right; }
.spot__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.spot__price { font-size: 30px; font-weight: 800; letter-spacing: 0.02em; }

.chip-hint {
  display: flex; width: max-content; margin: 28px auto 0; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: var(--r-sm); background: var(--mat-3); color: var(--on-mat); font-weight: 600; font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.chip-hint__icon { width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent); color: var(--ink); font-size: 13px; }

@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; }
  .spot__media { min-height: 400px; }
  .spot__kanji { font-size: 200px; }
  .spot__info { border-left: 0; border-top: 1px solid var(--mat-line); }
  .spot-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .spot-tab { flex: none; }
  .chip-hint { display: none; }
}

/* ==========================================================================
   Size pills (shared)
   ========================================================================== */
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 48px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent;
  font-weight: 700; font-size: 14px; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.size:hover { border-color: var(--ink); }
.size[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sizes--dark .size { background: transparent; border-color: var(--mat-line); color: var(--on-mat); }
.sizes--dark .size:hover { border-color: var(--on-mat); }
.sizes--dark .size[aria-checked='true'] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hero__product .sizes { gap: 5px; flex-wrap: nowrap; }
.hero__product .size { flex: 1; min-width: 0; height: 34px; padding: 0 4px; font-size: 12px; border-radius: var(--r-sm); }

/* ==========================================================================
   Fit & fabric
   ========================================================================== */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard {
  position: relative; background: var(--card); border-radius: var(--r); padding: 14px 14px 28px; border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.fcard::before { content: ''; position: absolute; left: 28px; width: 40px; top: -1px; height: 2px; background: var(--accent); }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fcard h3 { font-size: 22px; letter-spacing: 0.02em; margin: 22px 14px 10px; }
.fcard p { color: var(--muted); margin: 0 14px; font-size: 15px; }
.fcard__art { position: relative; height: 200px; border-radius: var(--r-sm); overflow: hidden; background: var(--mat-2); color: rgba(236, 232, 225, 0.26); display: grid; place-items: center; }
.fcard__art svg { width: 100%; height: 100%; }
.fcard__art .tag {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
}
.swatch { position: absolute; inset: 0; background: url('../assets/products/laser-cats.webp') 50% 30% / 330% no-repeat; transition: background-size 1.2s var(--ease), background-position 1.2s var(--ease); }
.fcard:hover .swatch { background-size: 380%; background-position: 50% 26%; }
.fcard__art--stretch .stretch { transform-origin: 120px 70px; transition: transform 0.8s var(--ease); }
.fcard:hover .stretch { transform: scale(1.35, 1.25); }
.fcard__art--stretch .arrows path { transition: transform 0.8s var(--ease); }
.fcard:hover .arrows path:nth-child(1) { transform: translateX(-8px); }
.fcard:hover .arrows path:nth-child(2) { transform: translateX(8px); }
.fcard:hover .arrows path:nth-child(3) { transform: translateY(-5px); }
.fcard:hover .arrows path:nth-child(4) { transform: translateY(5px); }
.fcard__art--seam .zig { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s var(--ease); }
.fcard.is-in .zig { stroke-dashoffset: 0; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Size finder CTA (matte black block)
   ========================================================================== */
.sizing { padding-top: 0; }
.cta {
  display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center;
  background: var(--mat); color: var(--on-mat); border-radius: var(--r); padding: clamp(32px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.cta::after {
  content: '柔'; position: absolute; left: 34%; bottom: -60px; font-family: var(--jp); font-weight: 900; font-size: 340px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(176, 141, 87, 0.28); pointer-events: none;
}
.cta .h2 { color: var(--on-mat); }
.cta__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-weight: 600; }
.cta__steps li { display: flex; align-items: center; gap: 12px; }
.cta__steps span { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-size: 12px; font-weight: 700; }
.cta__note { margin-top: 22px; font-size: 14px; color: var(--on-mat-muted); font-weight: 600; }

.finder { position: relative; z-index: 1; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; }
.finder h3 { font-size: 20px; letter-spacing: 0.02em; margin-bottom: 4px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); height: 50px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--card); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.is-bad { border-color: var(--error); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.finder__result:empty { display: none; }
.finder__result { border-radius: var(--r-sm); background: var(--accent-soft); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: card-in 0.5s var(--ease); }
.finder__result strong { font-size: 30px; letter-spacing: 0.02em; color: var(--accent-text); line-height: 1; }
.finder__result p { font-size: 13px; color: var(--ink-2); }

.chart { margin-top: 28px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); overflow-x: auto; }
.chart table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.chart caption { text-align: left; padding: 22px 24px 8px; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.chart th, .chart td { padding: 14px 24px; text-align: left; border-top: 1px solid var(--line); }
.chart thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.chart tbody th { font-weight: 800; }
.chart tr.is-pref { background: var(--accent-soft); }
.chart tr.is-pref th { color: var(--accent-text); }

@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; gap: 32px; }
  .cta::after { font-size: 240px; left: auto; right: -20px; bottom: auto; top: -30px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); transition: border-color 0.3s; }
.faq details[open] { border-color: var(--ink-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--accent-text); font-weight: 700; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.faq details[open] summary::after { content: '−'; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 680px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid a:not(.logo) { display: block; padding: 5px 0; color: var(--ink-2); font-weight: 500; }
.footer__grid a:not(.logo):hover { color: var(--accent-text); }
.footer__blurb { margin-top: 16px; color: var(--muted); max-width: 320px; font-size: 15px; }
.footer__label { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer__text { color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__base .mono { color: var(--ink); font-weight: 700; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Quick view dialog
   ========================================================================== */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(13, 13, 12, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qv {
  --c: #B08D57;
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  border-radius: var(--r-lg); background: var(--paper); overflow: hidden; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.4);
}
.qv[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.qv__inner { display: grid; grid-template-columns: 1.1fr 1fr; max-height: inherit; }
.qv__media {
  position: relative; display: grid; place-items: center; min-height: 520px; overflow: hidden; cursor: crosshair;
  background: radial-gradient(60% 60% at 50% 50%, #efebe4 0%, #e3ded5 75%);
}
.qv__media img { width: 86%; filter: drop-shadow(0 30px 30px rgba(11, 21, 38, 0.22)); transition: opacity 0.3s; }
.qv__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: var(--r-sm); border: 0;
  background: rgba(241, 238, 232, 0.9); font-size: 26px; line-height: 1; box-shadow: var(--shadow); z-index: 4;
}
.qv__nav--prev { left: 16px; } .qv__nav--next { right: 16px; }
.qv__info { position: relative; padding: 44px 40px 36px; overflow-y: auto; }
.qv__close { position: absolute; top: 18px; right: 18px; }
.qv__name { font-size: clamp(30px, 3.4vw, 44px); padding-right: 40px; }
.qv__price { font-size: 24px; font-weight: 800; margin-top: 10px; letter-spacing: 0.02em; }
.qv__desc { margin-top: 14px; color: var(--ink-2); }
.qv__label { display: flex; justify-content: space-between; margin: 26px 0 10px; font-weight: 700; font-size: 14px; }
.qv__label a { color: var(--accent-text); font-weight: 600; font-size: 13px; }
.qv__buy { display: flex; gap: 12px; margin-top: 20px; }
.qv__buy .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); height: 50px; padding: 0 4px; }
.qty button { width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; background: transparent; font-size: 20px; }
.qty button:hover { background: var(--paper); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%237a5f38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.qv__fabric { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 800px) {
  .qv { border-radius: var(--r-lg); overflow-y: auto; }
  .qv__inner { grid-template-columns: 1fr; }
  .qv__media { min-height: 0; aspect-ratio: 1; }
  .qv__info { padding: 28px 22px 26px; overflow: visible; }
  .qv__close { position: fixed; top: 28px; right: 28px; z-index: 5; background: rgba(241, 238, 232, 0.92); }
}

/* ==========================================================================
   Bag drawer
   ========================================================================== */
.bag {
  margin: 0 0 0 auto; height: 100vh; height: 100dvh; max-height: none; width: min(440px, 100vw);
  background: var(--paper); display: none; flex-direction: column; box-shadow: -30px 0 80px rgba(0, 0, 0, 0.25);
}
.bag[open] { display: flex; animation: slide 0.45s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.bag__head h2 { font-size: 24px; }
.bag__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag__empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.bag__empty strong { display: block; color: var(--ink); font-size: 20px; letter-spacing: 0.02em; margin-bottom: 6px; }
.bag__empty .btn { margin-top: 22px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { --c: #B08D57; width: 84px; height: 84px; border-radius: var(--r-sm); background: #e6e1d8; display: grid; place-items: center; }
.line__img img { width: 88%; }
.line h3 { font-size: 16px; letter-spacing: 0.02em; line-height: 1.2; }
.line p { font-size: 13px; color: var(--muted); }
.line .qty { height: 36px; margin-top: 8px; width: max-content; }
.line .qty button { width: 28px; height: 28px; font-size: 16px; }
.line__right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.line__right strong { font-weight: 800; }
.line__remove { border: 0; background: none; font-size: 12px; color: var(--muted); text-decoration: underline; padding: 0; }
.bag__foot { padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.bag__total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.bag__total strong { font-size: 22px; font-weight: 800; }
.bag__note { font-size: 12px; color: var(--muted); text-align: center; }
.bag__note:empty { display: none; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: var(--r-sm);
  background: var(--mat-2); color: var(--on-mat); font-weight: 600; font-size: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--ink); font-weight: 700; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.toast button:empty { display: none; }

/* Centre product images with flex so % widths use the box width, not the image's own size. */
.card__media, .spot__media, .qv__media, .hero__product .hp__img, .line__img, .fcard__art { display: flex; align-items: center; justify-content: center; }
.card__quick small { display: none; }
.card__quick { gap: 5px; flex-wrap: nowrap; }
.card__quick .qsize { flex: 1; min-width: 0; padding: 0 2px; }
.card.is-feature .card__quick small { display: inline; }
.card.is-feature .card__quick .qsize { flex: 0 0 auto; min-width: 42px; }

/* ==========================================================================
   Header on small screens
   ========================================================================== */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav .btn--sm { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Photo products: a dark studio photo and a turning video (lib/images.ts, productMedia)
   The photos are the square part of the 720 x 1280 video from y = 170, so the video
   uses object-position 50% 30% to show the same part.
   ========================================================================== */
.card__media.is-photo, .card.is-feature .card__media.is-photo, .qv__media.is-photo, .line__img.is-photo, .hero__product .hp__img.is-photo { background: #0c0c0f; overflow: hidden; }
.card__media.is-photo::after { display: none; }
.card__media.is-photo img, .card.is-feature .card__media.is-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.card:hover .card__media.is-photo img { transform: scale(1.04); }
.card__video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.card__video.is-on { opacity: 1; }
.card__media .badge, .card__media .card__kanji { z-index: 2; }
.line__img.is-photo img, .hero__product .hp__img.is-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.filter__thumbs img.is-photo, .spot-tab img.is-photo { object-fit: cover; padding: 0; background: #0c0c0f; }
.spot__img.is-photo { border-radius: var(--r-sm); }
.qv__media.is-photo img, .qv__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: none; }
.qv__media.is-photo img { object-position: 50% 50%; }
.qv__media img[hidden], .qv__video[hidden] { display: none; }
.qv__thumbs { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.qv__thumbs:empty { display: none; }
.qv__thumb { position: relative; width: 52px; height: 52px; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.35); background: #0c0c0f; cursor: pointer; }
.qv__thumb img { position: static; width: 100%; height: 100%; object-fit: cover; }
.qv__thumb[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.qv__thumb.is-video::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
@media (max-width: 800px) { .qv__thumb { width: 44px; height: 44px; } }
