/* Homepage launch hero. One campaign fills the viewport while native
   horizontal scrolling preserves touch, trackpad, and no-script access. */

.sm-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--white);
  overflow: hidden;
}

.onepage-body {
  overflow-x: clip;
}

.sm-hero__viewport {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.sm-hero__viewport::-webkit-scrollbar {
  display: none;
}

.sm-hero__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--pink-wash);
}

.sm-hero__pic {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 810px;
}

.sm-hero__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-hero__copy {
  position: absolute;
  top: 50%;
  left: max(48px, calc((100% - 1440px) / 2 + 48px));
  width: min(500px, calc(100% - 96px));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-16);
  text-align: left;
}

.sm-eyebrow {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.sm-hero__slide[data-hero-slide="strawberry-matcha"] .sm-eyebrow {
  margin-left: var(--sp-4);
}

.sm-hero__title {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.sm-hero__sub {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.sm-hero__toolbar {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--white);
}

.sm-hero__controls { display: flex; }

.sm-hero__playback {
  min-height: 44px;
  min-width: 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.sm-hero__playback-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sm-hero__playback-icon--play { display: none; }
.sm-hero__playback[data-paused="true"] .sm-hero__playback-icon--pause { display: none; }
.sm-hero__playback[data-paused="true"] .sm-hero__playback-icon--play { display: block; }
.sm-hero__playback[hidden] { display: none; }
.sm-hero__playback:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }

.sm-hero__dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sm-hero__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.3);
  transition: width var(--transition-mid), background var(--transition-mid), transform var(--transition-mid);
}

.sm-hero__dot:first-child::before {
  transform: translateX(16px);
}

.sm-hero__dot:last-child::before {
  transform: translateX(-16px);
}

.sm-hero__dot.is-active::before {
  width: 24px;
  background: var(--ink);
}

.sm-hero__dot:focus-visible::before {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
}

@media (max-width: 768px) {
  .sm-hero__slide {
    padding-bottom: 52px;
    background: var(--white);
  }

  .sm-hero__pic {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .sm-hero__copy {
    position: static;
    width: auto;
    transform: none;
    padding: var(--sp-24) var(--sp-24) var(--sp-8);
    gap: var(--sp-16);
  }

  .sm-hero__title {
    font-size: clamp(38px, 12vw, 52px);
  }

  .sm-hero__toolbar {
    bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-hero__viewport {
    scroll-behavior: auto;
  }

  .sm-hero__dot::before {
    transition: none;
  }
}
