/* ==========================================================================
   MABL Audio — landing page
   Shares the photographic background and glass language with site.css, but
   stays self-contained so the product pages are never affected.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-a: #1d1f20;
  --bg-b: #111114;
  --text: #F3F3F4;
  --muted: #A9AAAE;
  --faint: #7C7D82;
  --hairline: rgba(255, 255, 255, .09);

  --glass-bg: rgba(255, 255, 255, .055);
  --glass-border: rgba(255, 255, 255, .13);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, .06);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, .42);

  --amber: #D08A4C;

  /* Neon sign. Swap --neon-hue to recolour the whole glow at once. */
  --neon-hue: 28;
  --neon-core: #FFF4E6;
  --neon-1: hsl(var(--neon-hue) 85% 62% / .90);
  --neon-2: hsl(var(--neon-hue) 85% 58% / .70);
  --neon-3: hsl(var(--neon-hue) 85% 55% / .45);
  --neon-4: hsl(var(--neon-hue) 85% 52% / .28);
  --radius: 30px;
  /* Kept identical to site.css so the shared header lines up across pages. */
  --pad: clamp(20px, 5vw, 84px);
  --bundle: 1320px;
  /* Gutter that lines an edge up with the centred content bundle; below the
     bundle width it collapses to the plain page padding. */
  --gutter: calc(max(0px, (100% - var(--bundle)) / 2) + var(--pad));
  --header-h: 62px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed pseudo-element rather than background-attachment, so mobile browsers
   keep the photo steady while scrolling. Same treatment as site.css. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 17, 20, .72) 0%, rgba(17, 17, 20, .55) 40%, rgba(17, 17, 20, .8) 100%),
    url("../assets/bg.jpg") center 30% / cover no-repeat,
    linear-gradient(145deg, var(--bg-a) 0%, var(--bg-b) 100%);
}

img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--bundle); margin: 0 auto; padding-inline: var(--pad); }


/* ── Header ──────────────────────────────────────────────────────────────────
   Mirrors the navbar in site.css exactly (values copied, not approximated) so
   moving between the landing page and a product page shows no seam. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 14px var(--gutter);
  background: rgba(17, 17, 20, .48);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(17, 17, 20, .66);
}

.wordmark {
  display: grid;
  justify-items: center;
  text-decoration: none;
  line-height: 1;
}

.wordmark strong {
  font-size: 19px;
  font-weight: 680;
  letter-spacing: .14em;
  text-indent: .14em;
}

.wordmark span {
  margin-top: 2px;
  font-size: 7.5px;
  font-weight: 560;
  letter-spacing: .52em;
  text-indent: .52em;
  color: #9EAEB4;
}


/* ── Page title ──────────────────────────────────────────────────────────────
   Sized below the slide headlines on purpose: the product name inside the
   carousel stays the loudest thing on the page. */
.page-title {
  margin: clamp(12px, 2.2vw, 28px) 0 clamp(8px, 1.4vw, 18px);
  /* Sized to sit on one line inside the content width, which the carousel
     cards share, so the headline ends flush with them. The content box tops
     out at 1152px (--bundle minus twice --pad), and the 39 characters need
     about 21.7x the font size, hence the 52px ceiling and the 4vw term.
     Wrapping is deliberately left on: should the wording ever grow, the line
     breaks instead of pushing the page sideways. */
  font-size: clamp(17px, 4vw, 52px);
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.03;
  text-transform: uppercase;
  text-align: center;

  /* Neon sign: a near-white core so the letters stay crisp, with the colour
     living entirely in the glow. Tinting the core itself would cost contrast
     without looking any more like neon. */
  color: var(--neon-core);
  text-shadow:
    0 0 2px rgba(255, 240, 222, .95),
    0 0 10px var(--neon-1),
    0 0 24px var(--neon-2),
    0 0 52px var(--neon-3),
    0 0 96px var(--neon-4);
  animation: neon-breathe 5.5s ease-in-out infinite;
}

/* A slow swell rather than a flicker — a stuttering sign would pull attention
   away from the products, which is the opposite of the point. */
@keyframes neon-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .93; }
}

@media (prefers-reduced-motion: reduce) {
  .page-title { animation: none; }
}

@media (max-width: 700px) {
  /* Below this a single line would shrink under ~28px, which stops reading as a
     headline. Size it for two or three comfortable lines instead. */
  .page-title {
    font-size: clamp(26px, 6.6vw, 34px);
  }
}

/* ── Carousel ────────────────────────────────────────────────────────────── */
.carousel {
  position: relative;
  /* First element on the page now, so it has to clear the fixed header. */
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(18px, 3.2vw, 34px);
}

/* scroll-snap carries the interaction: without JavaScript the slides stay
   swipeable and keyboard-scrollable, only the arrows and dots go missing. */
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  /* overflow-x alone leaves overflow-y computed as auto, which lets the track
     be dragged vertically too. The track is only ever as tall as its tallest
     slide, so closing that axis clips nothing. */
  overflow-y: hidden;
  /* Stops a swipe between slides from triggering the browser's back gesture. */
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.track::-webkit-scrollbar { display: none; }

.slide {
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: clamp(420px, 62vh, 640px);
  padding: clamp(28px, 4.5vw, 64px);
  text-decoration: none;

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
}

.slide-copy { min-width: 0; }
.slide-kicker {
  display: block; margin-bottom: 14px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber);
}
.slide-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 86px); font-weight: 800;
  letter-spacing: -.04em; line-height: .96; text-transform: uppercase;
}
.slide-copy .slide-product-title { text-transform: none; }
.slide-copy p { margin: 0; max-width: 40ch; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }
.slide-copy .slide-product-tagline {
  margin: -3px 0 13px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 620;
  letter-spacing: -.015em;
}
.slide-cta {
  display: inline-block; margin-top: 26px; padding: 12px 26px;
  border-radius: 999px; font-size: 15px; font-weight: 600;
  background: rgba(255, 255, 255, .93); color: #111114;
}
.slide:hover .slide-cta { background: #fff; }

.slide-media { position: relative; display: grid; place-items: center; min-width: 0; }
.slide-media img {
  width: 100%; max-width: 360px; height: auto; display: block;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .55));
}

.slide-pedal-product {
  position: relative;
  display: block;
  width: min(100%, 360px);
}

.slide-pedal-product > .slide-pedal-image {
  width: 100%;
  max-width: none;
}

.slide-tone3000-badge {
  position: absolute;
  z-index: 2;
  top: -20%;
  right: -4%;
  display: grid;
  justify-items: center;
  width: 46%;
  padding: 9px 10px 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  color: #f0f0f2;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.012)),
    rgba(11,11,14,.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 14px 30px rgba(0,0,0,.32);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  text-align: center;
  transform: rotate(6.5deg);
  transform-origin: 50% 50%;
}

.slide-tone3000-badge b {
  width: 100%;
  margin-bottom: 8px;
  color: #b9b9bd;
  font-size: clamp(6px, .62vw, 8px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: .16em;
  text-align: center;
}

.slide-tone3000-badge img {
  width: 100%;
  max-width: none;
  filter: none;
}

/* The tile for what does not exist yet — deliberately not dressed as a product. */
.slide.is-placeholder { border-style: dashed; }
.slide.is-placeholder .slide-media {
  font-size: clamp(60px, 10vw, 120px); color: var(--faint); font-weight: 200;
}

/* ── Carousel controls ───────────────────────────────────────────────────── */
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; pointer-events: none;
  left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding-inline: clamp(6px, 1.4vw, 18px);
}
.carousel-nav button {
  pointer-events: auto;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(18, 18, 21, .6);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text); font: inherit; font-size: 17px; line-height: 1;
  transition: background .18s ease, opacity .18s ease;
}
.carousel-nav button:hover:not(:disabled) { background: rgba(28, 28, 32, .85); }
.carousel-nav button:disabled { opacity: 0; pointer-events: none; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .22);
  transition: background .18s ease, transform .18s ease;
}
.dots button[aria-current="true"] { background: var(--text); transform: scale(1.4); }

/* ── About + Contact ─────────────────────────────────────────────────────────
   Deliberately not glass. The carousel above owns the frosted look; repeating
   it here would read as another product panel. A matte slab sets these two
   apart as the quieter, informational end of the page. */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 64px);
  margin-block: clamp(34px, 5vw, 64px) clamp(20px, 3vw, 36px);
  padding: clamp(28px, 3.6vw, 52px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(9, 9, 11, .58);
}

.info-col {
  /* The header is fixed, so anchor jumps need to clear it. */
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.info-col + .info-col {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(26px, 4vw, 64px);
}

.info-col h2 {
  margin: 0 0 14px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.info-col p { margin: 0 0 12px; max-width: 52ch; color: var(--muted); font-size: 15.5px; }

@media (max-width: 780px) {
  .info { grid-template-columns: 1fr; }
  .info-col + .info-col {
    border-left: 0;
    padding-left: 0;
    padding-top: clamp(26px, 5vw, 40px);
    border-top: 1px solid var(--hairline);
  }
}
.button {
  display: inline-block; margin-top: 10px; padding: 12px 24px;
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600;
  background: rgba(255, 255, 255, .93); color: #111114;
}
.button:hover { background: #fff; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { padding-block: 34px 48px; margin-top: 30px; border-top: 1px solid var(--hairline); }
.site-footer p { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.site-footer a { color: var(--text); }

:where(a, button):focus-visible {
  outline: 2px solid rgba(242, 240, 235, .82);
  outline-offset: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .slide {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    text-align: center;
    min-height: 0;
  }
  .slide-copy { grid-area: copy; }
  .slide-media { grid-area: media; }
  .slide-pedal-product { width: min(100%, 210px); }
  .slide-tone3000-badge {
    top: -13%;
    right: -3%;
    width: 50%;
    padding: 7px 8px 6px;
    transform: rotate(6deg);
  }
  .slide-tone3000-badge img { max-width: none; }
  .slide-copy p { margin-inline: auto; }
  .slide-copy .slide-product-tagline {
    margin-inline: auto;
    text-align: center;
  }
  .carousel-nav { position: static; transform: none; margin-top: 18px; justify-content: center; gap: 12px; }
  .carousel-nav button:disabled { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .track { scroll-behavior: auto; }
  .carousel-nav button, .dots button, .slide-cta { transition: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .slide { background: rgba(20, 20, 24, .82); }
  .site-header { background: rgba(10, 10, 12, .95); }
}
