/* The first view is photo-only. The solid introduction card is revealed by the first downward gesture. */
.store-hero {
  min-height: calc(100svh - 78px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(44px, 7vh, 82px) clamp(22px, 6vw, 92px) clamp(72px, 10vh, 110px);
  background-color: #83c7ef;
  isolation: isolate;
  overflow: hidden;
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("/assets/storefront/localstop-mascot-ai-cleanup-v1.png");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: .72;
  filter: blur(32px) saturate(.78) brightness(.94);
  transform: scale(1.12);
  transition: transform 1.45s cubic-bezier(.16, .76, .2, 1), filter 1.35s ease;
  pointer-events: none;
}

.hero-photo-shell {
  --hero-photo-lift: clamp(18px, 3vh, 34px);
  position: absolute;
  inset: calc(-1 * var(--hero-photo-lift)) 0 0;
  z-index: -2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .03) 2%, rgba(0, 0, 0, .13) 5%, rgba(0, 0, 0, .32) 8%, rgba(0, 0, 0, .62) 12%, rgba(0, 0, 0, .87) 16%, #000 21%, #000 79%, rgba(0, 0, 0, .87) 84%, rgba(0, 0, 0, .62) 88%, rgba(0, 0, 0, .32) 92%, rgba(0, 0, 0, .13) 95%, rgba(0, 0, 0, .03) 98%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .03) 2%, rgba(0, 0, 0, .13) 5%, rgba(0, 0, 0, .32) 8%, rgba(0, 0, 0, .62) 12%, rgba(0, 0, 0, .87) 16%, #000 21%, #000 79%, rgba(0, 0, 0, .87) 84%, rgba(0, 0, 0, .62) 88%, rgba(0, 0, 0, .32) 92%, rgba(0, 0, 0, .13) 95%, rgba(0, 0, 0, .03) 98%, transparent 100%);
  transition: transform 1.55s cubic-bezier(.16, .76, .2, 1), filter 1.4s ease;
}

.store-hero::after {
  content: none;
}

.hero-copy {
  width: min(620px, 100%);
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid rgba(20, 50, 41, .2);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(7, 29, 23, 0);
  opacity: 0;
  filter: blur(16px);
  transform: translateY(68px) scale(.95);
  clip-path: inset(9% 3% 9% 3% round 38px);
  pointer-events: none;
  transition:
    opacity 1.1s cubic-bezier(.22, .7, .22, 1) .16s,
    filter 1.25s ease-out .08s,
    transform 1.35s cubic-bezier(.16, .76, .2, 1),
    clip-path 1.25s cubic-bezier(.16, .76, .2, 1),
    box-shadow 1.25s ease .12s;
}

.store-hero.is-copy-visible::before {
  transform: scale(1.12);
  filter: blur(24px) saturate(.78) brightness(.84);
}

.store-hero.is-copy-visible .hero-photo {
  transform: scale(1.018);
  filter: brightness(.9) saturate(.92);
}

.store-hero.is-copy-visible .hero-copy {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
  clip-path: inset(0 round 30px);
  box-shadow: 0 26px 70px rgba(7, 29, 23, .24);
  pointer-events: auto;
  animation: hero-copy-reveal 1.55s cubic-bezier(.16, .76, .2, 1) both;
}

@keyframes hero-copy-reveal {
  0%, 10% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(76px) scale(.945);
    clip-path: inset(12% 5% 12% 5% round 42px);
    box-shadow: 0 10px 34px rgba(7, 29, 23, 0);
  }
  55% {
    opacity: .72;
    filter: blur(5px);
    transform: translateY(14px) scale(.988);
    clip-path: inset(2% 1% 2% 1% round 34px);
    box-shadow: 0 18px 52px rgba(7, 29, 23, .13);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1);
    clip-path: inset(0 round 30px);
    box-shadow: 0 26px 70px rgba(7, 29, 23, .24);
  }
}

.hero-scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(24px, 4vh, 42px);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 253, 247, .62);
  box-shadow: 0 12px 34px rgba(7, 29, 23, .2);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  cursor: pointer;
  transition: opacity .4s ease, transform .55s cubic-bezier(.2, .72, .18, 1), background-color .2s ease;
  animation: hero-cue-bob 1.8s ease-in-out infinite;
}

.hero-scroll-cue span {
  width: 15px;
  height: 15px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  background: rgba(255, 253, 247, .86);
  outline: 3px solid rgba(207, 232, 91, .75);
  outline-offset: 4px;
}

.store-hero.is-copy-visible .hero-scroll-cue {
  opacity: 0;
  transform: translate(-50%, 24px) scale(.82);
  pointer-events: none;
  animation: none;
}

@keyframes hero-cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.hero-copy h1 {
  font-size: clamp(47px, 5.6vw, 78px);
}

.hero-copy .hero-lead {
  color: #344e46;
}

@supports not (height: 100svh) {
  .store-hero { min-height: calc(100vh - 78px); }
}

@media (max-width: 950px) {
  .store-hero {
    display: flex;
    min-height: calc(100svh - 78px);
    padding-top: 48px;
  }

  .hero-copy {
    width: min(590px, 88%);
  }
}

@media (max-width: 640px) {
  .store-hero {
    min-height: calc(100svh - 68px);
    align-items: flex-end;
    padding: 32px 16px 52px;
  }

  .hero-photo-shell {
    --hero-photo-lift: 0px;
    inset: 0;
  }

  .store-hero::before {
    background-image: url("/assets/storefront/localstop-mascot-ai-cleanup-v1.png");
    background-position: 50% 50%;
    opacity: .58;
  }

  .hero-photo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 55% 68%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-copy {
    width: 100%;
    padding: 24px 22px;
    border-radius: 24px;
    background: var(--paper);
  }

  .hero-copy h1 {
    font-size: clamp(39px, 12vw, 50px);
    margin-bottom: 20px;
  }

  .hero-copy .hero-lead {
    font-size: 15px;
  }

  .hero-copy .hero-actions {
    margin: 22px 0;
  }

  .hero-copy .button {
    min-height: 44px;
    padding-inline: 17px;
  }

  .hero-copy .address-line {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-hero::before,
  .store-hero::after,
  .hero-photo,
  .hero-copy,
  .hero-scroll-cue {
    transition: none;
  }

  .hero-scroll-cue { animation: none; }
  .store-hero.is-copy-visible .hero-copy { animation: none; }
}
