
.petaro-live-hero {
  --ph-cream: #f6f1e8;
  --ph-ink: #141210;
  --ph-sage: #7d9a78;
  --ph-clay: #d4896a;
  --ph-duration: 6.5s;
  --ph-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  color: var(--ph-cream);
  background: #161310;
  isolation: isolate;
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

.petaro-live-hero__stage,
.petaro-live-hero__slide,
.petaro-live-hero__photo,
.petaro-live-hero__veil,
.petaro-live-hero__aurora,
.petaro-live-hero__glow,
.petaro-live-hero__grain,
.petaro-live-hero__paws {
  position: absolute;
  inset: 0;
}

.petaro-live-hero__stage { z-index: 0; }

.petaro-live-hero__slide {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 1.1s var(--ph-ease), visibility 1.1s;
}

.petaro-live-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.petaro-live-hero__photo {
  background: center / cover no-repeat var(--hero-img);
  transform: scale(1.14);
  filter: saturate(1.1) contrast(1.05) brightness(0.92);
}

.petaro-live-hero.is-ready .petaro-live-hero__slide.is-active .petaro-live-hero__photo {
  animation: petaro-drift var(--ph-duration) linear forwards;
}

.petaro-live-hero__slide--2.is-active .petaro-live-hero__photo { animation-name: petaro-drift-b; }
.petaro-live-hero__slide--3.is-active .petaro-live-hero__photo { animation-name: petaro-drift-c; }

.petaro-live-hero__slide.is-exit .petaro-live-hero__photo {
  animation: none;
  transform: scale(1.05);
}

.petaro-live-hero__veil {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(16, 14, 12, 0.88) 0%, rgba(16, 14, 12, 0.42) 46%, rgba(16, 14, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(16, 14, 12, 0.28) 0%, rgba(16, 14, 12, 0.12) 38%, rgba(16, 14, 12, 0.78) 100%);
}

.petaro-live-hero__aurora {
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 18% 72%, rgba(212, 137, 106, 0.22), transparent 70%),
    radial-gradient(48% 42% at 78% 28%, rgba(125, 154, 120, 0.2), transparent 68%),
    radial-gradient(30% 28% at 55% 80%, rgba(255, 220, 180, 0.12), transparent 70%);
  animation: petaro-aurora 14s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}

.petaro-live-hero__glow {
  z-index: 3;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(55% 45% at 72% 38%, rgba(255, 230, 195, 0.2), transparent 62%),
    radial-gradient(38% 32% at 22% 68%, rgba(125, 154, 120, 0.18), transparent 65%);
  mix-blend-mode: soft-light;
}

.petaro-live-hero__grain {
  z-index: 4;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px;
  mix-blend-mode: overlay;
}

/* Soft paw prints */
.petaro-live-hero__paws {
  z-index: 4;
  pointer-events: none;
}

.petaro-live-hero__paw {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='20' cy='18' rx='7' ry='9' fill='rgba(246,241,232,0.55)'/%3E%3Cellipse cx='32' cy='12' rx='7' ry='9' fill='rgba(246,241,232,0.55)'/%3E%3Cellipse cx='44' cy='18' rx='7' ry='9' fill='rgba(246,241,232,0.55)'/%3E%3Cellipse cx='14' cy='30' rx='6' ry='8' fill='rgba(246,241,232,0.45)'/%3E%3Cellipse cx='32' cy='42' rx='14' ry='12' fill='rgba(246,241,232,0.5)'/%3E%3C/svg%3E");
  filter: blur(0.2px);
  animation: petaro-paw 9s ease-in-out infinite;
}

.petaro-live-hero__paw--1 { left: 8%; top: 22%; animation-delay: 0.4s; transform: rotate(-18deg); }
.petaro-live-hero__paw--2 { left: 18%; top: 58%; animation-delay: 2.2s; transform: rotate(12deg); width: 22px; height: 22px; }
.petaro-live-hero__paw--3 { right: 12%; top: 18%; animation-delay: 1.1s; transform: rotate(20deg); width: 24px; height: 24px; }
.petaro-live-hero__paw--4 { right: 22%; top: 64%; animation-delay: 3.4s; transform: rotate(-10deg); width: 20px; height: 20px; }

.petaro-live-hero__frame {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  /* Clear absolute floating home header (bar + outer inset + gap) */
  padding:
    calc(var(--ph-header-h, 76px) + 1.75rem + env(safe-area-inset-top, 0px))
    0
    2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(2rem, 7vh, 4rem);
  min-height: inherit;
}

.petaro-live-hero__main {
  display: grid;
  grid-template-columns: minmax(min(100%, 22rem), 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  overflow: visible;
}

.petaro-live-hero__copy {
  /* Wide enough for the Petaro wordmark at desktop size (root rem is 10px) */
  max-width: 48rem;
  min-width: 0;
  overflow: visible;
}

.petaro-live-hero__copy > *:not(.petaro-live-hero__brand),
.petaro-live-hero__float {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.petaro-live-hero.is-ready .petaro-live-hero__copy > *:not(.petaro-live-hero__brand) {
  animation: petaro-rise 1s var(--ph-ease) forwards;
}

.petaro-live-hero.is-ready .petaro-live-hero__eyebrow { animation-delay: 0.05s; }
.petaro-live-hero.is-ready .petaro-live-hero__value { animation-delay: 0.22s; }
.petaro-live-hero.is-ready .petaro-live-hero__line { animation-delay: 0.32s; }
.petaro-live-hero.is-ready .petaro-live-hero__pills { animation-delay: 0.4s; }
.petaro-live-hero.is-ready .petaro-live-hero__ctas { animation-delay: 0.5s; }
.petaro-live-hero.is-ready .petaro-live-hero__proof { animation-delay: 0.62s; }

.petaro-live-hero.is-ready .petaro-live-hero__float {
  animation: petaro-float-in 1.05s var(--ph-ease) forwards;
  animation-delay: var(--float-delay, 0.35s);
}

.petaro-live-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.72);
}

.petaro-live-hero__brand {
  position: relative;
  z-index: 1;
  margin: 0 0 0.35rem;
  overflow: visible;
  width: max-content;
  max-width: none;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
  font-size: clamp(68px, 14vw, 128px) !important;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 800;
  opacity: 0;
  /* No transform — compositing layers shear bold glyph overhangs */
  transform: none !important;
}

/* Opacity-only entrance (no translate) */
.petaro-live-hero.is-ready .petaro-live-hero__brand {
  animation: petaro-fade-brand 1s var(--ph-ease) 0.12s forwards;
}

.petaro-live-hero__brand-word {
  display: inline-block;
  padding: 0.02em 0.12em 0.04em 0;
  /* Solid fill — background-clip:text sheared the bold “o” */
  color: #f3e6d0;
  -webkit-text-fill-color: #f3e6d0;
  /* Hairline stroke expands ink so the bold “o” can’t look sheared */
  -webkit-text-stroke: 0.5px #f3e6d0;
  paint-order: stroke fill;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: none;
  overflow: visible;
}

.petaro-live-hero__value {
  margin: 0 0 0.55rem;
  max-width: 16ch;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
  font-size: clamp(32px, 4.2vw, 48px) !important;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: rgba(246, 241, 232, 0.98);
}

.petaro-live-hero__line {
  margin: 0 0 1.15rem;
  max-width: 28ch;
  min-height: 1.2em;
  font-size: 18px !important;
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
  color: rgba(246, 241, 232, 0.84);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.petaro-live-hero__line.is-swap,
.petaro-live-hero__caption.is-swap,
.petaro-live-hero__label.is-swap {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.petaro-live-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.petaro-live-hero__pills li {
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(246, 241, 232, 0.26);
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.3);
  backdrop-filter: blur(8px);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.petaro-live-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.petaro-live-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: transform 0.28s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.petaro-live-hero__btn:hover { transform: translateY(-3px); }

.petaro-live-hero__btn--primary {
  background: linear-gradient(180deg, #d06a45 0%, #c45d3a 100%);
  color: #fff8f2 !important;
  box-shadow:
    0 18px 44px rgba(196, 93, 58, 0.42),
    0 0 0 1px rgba(255, 248, 239, 0.12);
}

.petaro-live-hero__btn--primary:hover {
  background: linear-gradient(180deg, #c45d3a 0%, #b04f2f 100%);
  box-shadow:
    0 22px 50px rgba(176, 79, 47, 0.48),
    0 0 0 1px rgba(255, 248, 239, 0.22);
}

.petaro-live-hero__btn--ghost {
  border: 1.5px solid rgba(246, 241, 232, 0.5);
  color: var(--ph-cream) !important;
  background: rgba(20, 18, 16, 0.22);
  backdrop-filter: blur(10px);
}

.petaro-live-hero__btn--ghost:hover {
  background: rgba(246, 241, 232, 0.14);
}

.petaro-live-hero__proof {
  margin: 0;
  font-size: 14px !important;
  color: rgba(246, 241, 232, 0.68);
  letter-spacing: 0.01em;
}

/* Floating product cards */
.petaro-live-hero__floaters {
  position: relative;
  min-height: 320px;
  align-self: center;
}

.petaro-live-hero__float {
  position: absolute;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  width: min(240px, 100%);
  padding: 0.55rem;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.14);
  border: 1px solid rgba(246, 241, 232, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  color: #faf7f2 !important;
  text-decoration: none !important;
  transition: transform 0.35s var(--ph-ease), background 0.25s ease;
}

.petaro-live-hero__float:hover {
  transform: translateY(-6px) scale(1.02) !important;
  background: rgba(255, 252, 247, 0.22);
}

.petaro-live-hero__float--1 {
  top: 8%;
  right: 8%;
  animation: petaro-bob 5.5s ease-in-out infinite;
}

.petaro-live-hero__float--2 {
  top: 42%;
  right: 28%;
  animation: petaro-bob 6.2s ease-in-out 0.6s infinite;
}

.petaro-live-hero__float--3 {
  bottom: 4%;
  right: 2%;
  animation: petaro-bob 5.8s ease-in-out 1.1s infinite;
}

.petaro-live-hero.is-ready .petaro-live-hero__float--1,
.petaro-live-hero.is-ready .petaro-live-hero__float--2,
.petaro-live-hero.is-ready .petaro-live-hero__float--3 {
  animation:
    petaro-float-in 1.05s var(--ph-ease) forwards,
    petaro-bob 5.8s ease-in-out var(--float-delay, 0.8s) infinite;
  animation-delay: var(--float-delay, 0.35s), calc(var(--float-delay, 0.35s) + 1s);
}

.petaro-live-hero__float-media {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(20, 18, 16, 0.35);
}

.petaro-live-hero__float-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.petaro-live-hero__float-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.petaro-live-hero__float-name {
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.petaro-live-hero__float-price {
  font-size: 13px !important;
  color: rgba(250, 247, 242, 0.78);
}

.petaro-live-hero__dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem 1.5rem;
  align-items: end;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.petaro-live-hero.is-ready .petaro-live-hero__dock {
  animation: petaro-rise 0.95s var(--ph-ease) 0.7s forwards;
}

.petaro-live-hero__caption {
  margin: 0;
  max-width: 38ch;
  font-size: 15px !important;
  line-height: 1.45;
  color: rgba(246, 241, 232, 0.7);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.petaro-live-hero__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.petaro-live-hero__dot {
  appearance: none;
  width: 44px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.22);
  overflow: hidden;
  cursor: pointer;
}

.petaro-live-hero__dot-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ph-sage), #d8b089);
}

.petaro-live-hero.is-playing .petaro-live-hero__dot.is-active .petaro-live-hero__dot-fill {
  animation: petaro-fill var(--ph-duration) linear forwards;
}

.petaro-live-hero__side {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  min-width: 7rem;
}

.petaro-live-hero__label {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.78);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.petaro-live-hero__index {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
  font-size: 18px !important;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 232, 0.62);
}

.petaro-live-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.28);
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.3);
  color: var(--ph-cream);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.petaro-live-hero__arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(246, 241, 232, 0.14);
  border-color: rgba(246, 241, 232, 0.55);
}

.petaro-live-hero__arrow--prev { left: clamp(0.6rem, 2vw, 1.4rem); }
.petaro-live-hero__arrow--next { right: clamp(0.6rem, 2vw, 1.4rem); }

.petaro-live-hero__scroll {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 1.4rem;
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(246, 241, 232, 0.7) !important;
  text-decoration: none !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
}

.petaro-live-hero.is-ready .petaro-live-hero__scroll {
  animation: petaro-rise 0.9s var(--ph-ease) 0.9s forwards;
}

.petaro-live-hero__scroll i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(246, 241, 232, 0.8), transparent);
  animation: petaro-pulse 1.8s ease-in-out infinite;
}

@keyframes petaro-rise {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes petaro-fade-brand {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes petaro-float-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes petaro-fill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes petaro-drift {
  from { transform: scale(1.14) translate3d(1.5%, 0, 0); }
  to { transform: scale(1.03) translate3d(-1.5%, -1%, 0); }
}

@keyframes petaro-drift-b {
  from { transform: scale(1.16) translate3d(-1%, 1%, 0); }
  to { transform: scale(1.04) translate3d(1.2%, -0.8%, 0); }
}

@keyframes petaro-drift-c {
  from { transform: scale(1.12) translate3d(0, 1.4%, 0); }
  to { transform: scale(1.03) translate3d(-0.8%, -1.2%, 0); }
}

@keyframes petaro-pulse {
  0%, 100% { transform: scaleY(0.7); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes petaro-aurora {
  from { transform: translate3d(-2%, 1%, 0) scale(1); opacity: 0.75; }
  to { transform: translate3d(2%, -2%, 0) scale(1.06); opacity: 1; }
}

@keyframes petaro-paw {
  0%, 100% { opacity: 0; transform: translateY(8px) scale(0.9); }
  20% { opacity: 0.35; }
  50% { opacity: 0.55; transform: translateY(0) scale(1); }
  80% { opacity: 0.2; }
}

@keyframes petaro-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .petaro-live-hero__main {
    grid-template-columns: 1fr;
  }

  .petaro-live-hero__floaters {
    display: none;
  }

  .petaro-live-hero__dock {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .petaro-live-hero__side {
    justify-items: start;
    grid-auto-flow: column;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }

  .petaro-live-hero__arrow,
  .petaro-live-hero__scroll {
    display: none;
  }
}

@media (max-width: 1024px) {
  .petaro-live-hero__frame {
    /* Mobile header is shorter, but still needs clear air under the pill */
    padding-top: calc(var(--ph-header-h, 60px) + 1.35rem + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 640px) {
  .petaro-live-hero {
    min-height: min(100svh, 860px);
  }

  .petaro-live-hero__frame {
    width: min(1200px, calc(100% - 1.5rem));
    /* Start below the floating pill so the eyebrow can’t sit under it
       when short viewports / browser chrome compress the hero */
    justify-content: flex-start;
    padding-top: calc(var(--ph-header-h, 60px) + 1.6rem + env(safe-area-inset-top, 0px));
    padding-bottom: 1.5rem;
    gap: 1.25rem;
  }

  .petaro-live-hero__brand {
    font-size: clamp(56px, 18vw, 78px) !important;
  }

  .petaro-live-hero__value {
    max-width: 16ch;
  }

  .petaro-live-hero__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petaro-live-hero__photo,
  .petaro-live-hero__dot-fill,
  .petaro-live-hero__scroll i,
  .petaro-live-hero__aurora,
  .petaro-live-hero__paw,
  .petaro-live-hero__float,
  .petaro-live-hero.is-ready .petaro-live-hero__copy > *,
  .petaro-live-hero.is-ready .petaro-live-hero__brand,
  .petaro-live-hero.is-ready .petaro-live-hero__dock,
  .petaro-live-hero.is-ready .petaro-live-hero__scroll,
  .petaro-live-hero.is-ready .petaro-live-hero__float {
    animation: none !important;
    transition: none !important;
  }

  .petaro-live-hero__copy > *,
  .petaro-live-hero__brand,
  .petaro-live-hero__dock,
  .petaro-live-hero__scroll,
  .petaro-live-hero__float {
    opacity: 1 !important;
    transform: none !important;
  }
}
