/* REBALL LOSTBALL / SECOND ROUND hero. Loaded after the storefront CSS. */

body.second-round-active {
  background: #07120c;
}

body.second-round-active .site-header {
  transform: translate3d(0, -120%, 0);
  opacity: 0;
  pointer-events: none;
}

.site-header {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform 420ms cubic-bezier(.22,1,.36,1), opacity 260ms ease;
}

.second-round-hero {
  position: relative;
  width: 100%;
  height: 240vh;
  margin: 0;
  background: #07120c;
  isolation: isolate;
}

.second-round-stage {
  --sr-progress: 0;
  --sr-video-opacity: 1;
  --sr-ending-opacity: 0;
  --sr-copy-opacity: 1;
  --sr-shade-opacity: 1;
  --sr-grain-opacity: .1;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #07120c;
}

.second-round-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #07120c;
}

.second-round-video,
.second-round-ending,
.second-round-shade,
.second-round-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.second-round-video,
.second-round-ending {
  object-fit: contain;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  background: #07120c;
}

.second-round-video {
  z-index: 0;
  opacity: var(--sr-video-opacity);
  filter: saturate(.86) contrast(1.06) brightness(.83);
}

.second-round-ending {
  z-index: 1;
  opacity: var(--sr-ending-opacity);
  filter: saturate(.92) contrast(1.04) brightness(.92);
}

.second-round-shade {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(4, 14, 9, .60) 0%, rgba(4, 14, 9, .24) 42%, rgba(4, 14, 9, .06) 70%, rgba(4, 14, 9, .18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .20) 0%, transparent 32%, transparent 70%, rgba(0, 0, 0, .28) 100%);
  opacity: var(--sr-shade-opacity);
}

.second-round-grain {
  z-index: 4;
  opacity: var(--sr-grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.second-round-ui {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.second-round-kicker {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  left: clamp(24px, 5vw, 76px);
  right: clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-data, "Space Grotesk", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: var(--sr-copy-opacity);
}

.second-round-kicker b {
  font: inherit;
  color: rgba(255,255,255,.9);
}

.second-round-scenes {
  position: absolute;
  left: clamp(24px, 7vw, 112px);
  bottom: clamp(72px, 14vh, 144px);
  width: min(760px, calc(100vw - 48px));
  min-height: 290px;
  opacity: var(--sr-copy-opacity);
}

.second-round-copy {
  position: absolute;
  inset: auto 0 0;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(7px);
  transition: opacity 420ms ease, transform 600ms cubic-bezier(.22,1,.36,1), filter 420ms ease;
}

.second-round-copy.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.second-round-eyebrow {
  margin: 0 0 18px;
  color: rgba(255,255,255,.74);
  font-family: var(--font-data, "Space Grotesk", sans-serif);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: .18em;
}

.second-round-copy h1,
.second-round-copy h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5.6vw, 84px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.second-round-subcopy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.68);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 450;
  line-height: 1.65;
}

.second-round-progress {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: clamp(28px, 5vh, 54px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.58);
  opacity: var(--sr-copy-opacity);
}

.second-round-progress-track {
  display: block;
  width: clamp(90px, 10vw, 150px);
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.25);
}

.second-round-progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgba(255,255,255,.92);
  will-change: transform;
}

.second-round-progress small {
  font-family: var(--font-data, "Space Grotesk", sans-serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}

/* The real golf/hole ending still is intentional. Decorative landing UI stays retired. */
.second-round-frame,
.second-round-paper,
.second-round-surface,
.second-round-bridge,
.second-round-cta {
  display: none !important;
}

.second-round-hero + #products,
.second-round-hero + .home-stage {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: var(--paper, #f7f6f1);
  border-top: 0;
}

.second-round-hero + #products {
  padding-top: clamp(44px, 5.5vw, 68px);
}

#products .featured-product-grid,
#products .featured-product-grid .product-card:first-child {
  scroll-margin-top: 92px;
}

.second-round-hero.is-reduced-motion {
  height: 100svh;
}

.second-round-hero.is-reduced-motion .second-round-video {
  opacity: 0;
}

.second-round-hero.is-reduced-motion .second-round-ending {
  opacity: 1;
}

/* Break the cinematic out of the storefront's narrow content column on desktop.
   92vw preserves a deliberate edge gutter while 1600px prevents overexpansion.
   The media itself stays contain, so neither the video nor the golf ending is cropped. */
@media (min-width: 1024px) {
  .second-round-hero {
    width: min(92vw, 1600px);
    max-width: 1600px;
    margin-left: calc(50% - min(46vw, 800px));
    margin-right: 0;
  }
}

@media (max-width: 760px) {
  .second-round-hero {
    height: 205vh;
  }

  .second-round-stage {
    min-height: 560px;
  }

  .second-round-scenes {
    left: 22px;
    right: 22px;
    bottom: 84px;
    width: auto;
    min-height: 260px;
  }

  .second-round-copy h1,
  .second-round-copy h2 {
    font-size: clamp(34px, 10.2vw, 56px);
    line-height: 1.06;
  }

  .second-round-subcopy {
    max-width: 88vw;
    margin-top: 18px;
    font-size: 13px;
  }

  .second-round-kicker {
    top: 22px;
    left: 22px;
    right: 22px;
  }

  .second-round-kicker span {
    max-width: 65vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .second-round-progress {
    right: 22px;
    bottom: 30px;
  }

  .second-round-progress-track {
    width: 82px;
  }

  .second-round-shade {
    background:
      linear-gradient(180deg, rgba(4,14,9,.14) 0%, rgba(4,14,9,.08) 30%, rgba(4,14,9,.54) 78%, rgba(4,14,9,.68) 100%);
  }

  .second-round-hero + #products {
    padding-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .second-round-copy {
    transition: none !important;
  }
}
