/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white:    #ffffff;
  --surface:  #f5f5f3;
  --line:     #e4e4e0;
  --muted:    #888880;
  --ink:      #111110;
  --red:      #e8001a;
  --font:     'Inter', system-ui, sans-serif;
  --px:       clamp(1.5rem, 5vw, 4rem);
  --max:      1280px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--px);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-brand { display: flex; align-items: center; gap: 0.85rem; }

.nav-jbl {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--red);
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
  flex-shrink: 0;
}

.nav-product {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Hero (split layout, compact) ───────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 52vh;
  max-height: 620px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem var(--px);
  background: var(--white);
}

.hero-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.93;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
}

.hero-meta .dot { color: var(--line); }

.hero-right {
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}

.hero-right:hover .hero-img { transform: scale(1.03); }

/* ─── Info Strip ──────────────────────────────────────────── */
.info-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.info-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem var(--px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.info-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.info-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  justify-self: center;
}

/* ─── Gallery ─────────────────────────────────────────────── */
.gallery {
  padding: 4rem var(--px) 5rem;
  background: var(--white);
}

.gallery-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.gallery-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.gallery-hint {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Featured viewer */
.featured {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
}

.featured img {
  width: 100%;
  height: clamp(300px, 48vw, 580px);
  object-fit: contain;
  background: var(--surface);
  padding: 1.5rem;
  transition: opacity 0.22s ease;
}

.featured img.fading { opacity: 0; }

.feat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.feat-bar span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

#featLabel {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Prev / next buttons */
.feat-nav {
  position: absolute;
  top: calc(50% - 22px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feat-nav:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  transform: scale(1.08);
}

.feat-nav.prev { left: 0.85rem; }
.feat-nav.next { right: 0.85rem; }

/* Thumbnail grid */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.45rem;
}

.thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 7px;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s var(--ease);
  pointer-events: none;
}

.thumb:hover { transform: translateY(-2px); }
.thumb:hover img { transform: scale(1.07); }

.thumb.active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--px);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer a {
  color: var(--red);
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer a:hover { opacity: 0.7; }

.footer strong { color: var(--ink); }

.footer-copy { font-size: 0.73rem; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }
  .hero-right {
    height: 45vw;
    min-height: 220px;
  }
  .hero-left { padding: 2.5rem var(--px); }

  .info-strip-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .info-divider { display: none; }

  .thumbs { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

@media (max-width: 600px) {
  .nav-eyebrow { display: none; }
  .gallery-header { flex-direction: column; align-items: flex-start; }
  .featured img { height: 58vw; min-height: 220px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 0.35rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}
