body {
  opacity: 0;
  transition: opacity 1.2s ease;
  margin: 0;
}
body.loaded {
  opacity: 1;
}
/* Start states */
.contest-logo,
.picture-light,
.dirty-dog-framed,
.name-and-info {
  opacity: 0;
  transform: translateY(10px);
}

/* Reveal sequence */
body.loaded .contest-logo {
  animation: heroReveal 0.45s ease-out 0.05s forwards;
}

body.loaded .picture-light {
  animation: heroReveal 0.45s ease-out 0.15s forwards;
}

body.loaded .dirty-dog-framed {
  animation: heroReveal 0.55s ease-out 0.25s forwards;
}

body.loaded .name-and-info {
  animation: heroReveal 0.45s ease-out 0.4s forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .contest-logo,
  .picture-light,
  .dirty-dog-framed,
  .name-and-info {
    transition: none;
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
.header-section-wrapper {
  background: #fff;
}
.header-section-inner {
  max-width: 360px;
  margin: 0 auto;
  padding: 1.25rem 0.75rem 1rem;
}
.header-section-inner img {
  width: 100%;
}
.top-section-wrapper {
  background-color: #1D6B4B;
  background-image: url("https://cdn.shopify.com/s/files/1/0275/8072/7380/files/big-carpet-bg.webp?v=1787773220");
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
}
.top-section-inner {
  padding-bottom: 5rem;
}
.contest-logo {
  filter: drop-shadow(0px 0px 4px #00000055);
  position: relative;
  z-index: 3;
}
.contest-logo h1 {
  margin: 0;
}
.contest-logo .logo-desktop {
  max-width: 100%;
  width: 600px;
  margin: 0 auto;
  padding: 3rem 0 1rem;
  display: block;
}
.contest-logo .logo-mobile {
  max-width: 100%;
  width: 600px;
  margin: 0 auto;
  padding-top: 1rem;
  display: none;
}
@media (max-width: 700px) {
  .contest-logo .logo-desktop {
    display: none;
  }
  .contest-logo .logo-mobile {
    display: block;
    max-width: 280px;
    width: 65%;
    padding: 2rem 0 1rem;
  }
}
.picture-light {
  margin: 0 auto;
  max-width: 480px;
  position: relative;
  z-index: 5;
}
.picture-light::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  width: 50%;
  height: 220px;

  background: linear-gradient(to bottom, rgb(255 223 141 / 65%) 0%, rgb(255 231 147 / 28%) 45%, rgba(255, 245, 210, 0) 100%);;

  filter: blur(14px);
  pointer-events: none;
  mix-blend-mode: hard-light;
}
.picture-light::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  height: 280px;

  background: radial-gradient(ellipse at top, rgb(255 178 0 / 10%) 0%, rgb(255 199 3 / 17%) 35%, rgb(255 249 226 / 8%) 60%, rgba(255, 245, 210, 0) 100%);

  clip-path: polygon(
    18% 0,
    82% 0,
    100% 100%,
    0 100%
  );

  filter: blur(22px);
  pointer-events: none;
  mix-blend-mode: hard-light;
}
.picture-light .bulb {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 65px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px rgb(255 228 65), 0 0 7px rgba(255, 240, 180, 0.9), 0 0 15px rgba(255, 230, 150, 0.55);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: hard-light;
}
.picture-light img {
  width: 100%;
  margin-bottom: -6%;
  position: relative;
  z-index: 5;
}
@media (max-width: 500px) {
  .picture-light img {
    margin-bottom: -6.5%;
  }
}
@media (max-width: 400px) {
  .picture-light img {
    margin-bottom: -7%;
  }
}
.dirty-dog-framed {
  margin: 0 auto;
  max-width: 500px;
  filter: drop-shadow(0px 0px 4px #00000055);
  position: relative;
  z-index: 3;
}
.dirty-dog-framed img {
  width: 100%;
}
.name-and-info {
  margin: 0 auto;
  max-width: 450px;
  filter: drop-shadow(0px 0px 4px #00000055);
  position: relative;
  z-index: 3;
}
.name-and-info img {
  width: 100%;
  padding-bottom: 3rem;
  margin-top: -1rem;
}

.bottom-section-wrapper {
  background-image: url("https://cdn.shopify.com/s/files/1/0275/8072/7380/files/tile-bg_1.jpg?v=1787952243");
  background-repeat: repeat;
  background-size: 1400px;
  background-position: center;
  position: relative;
  z-index: 5;
}
.bottom-section-inner {
  padding: 0 1rem;
}
.shampoo-lineup {
  margin: 0 auto;
  max-width: 460px;
}
.shampoo-lineup img {
  width: 100%;
  margin-top: -9.5rem;
}
.contest-copy {
  margin: 0 auto;
  max-width: 607px;
  font-family: Montserrat, Arial, sans-serif;
  font-style: normal;
  line-height: normal;
  color: #000;
}
.contest-copy h2 {
  font-size: 42px;
  font-weight: 800;
  margin-top: -1.5rem;
  margin-bottom: 0;
}
.contest-copy p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}
.contest-copy a {
  color: #000;
}
.additional-content {
  text-align: center;
}
.bathtime-collage {
  margin: 2rem auto 0;
  max-width: 460px;
}
.bathtime-collage img {
  width: 100%;
}
.shampoo-cta {
  display: inline-block;
  color: #FFF;
  text-align: center;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 28px;
  font-style: normal;
  text-decoration: none;
  font-weight: 600;
  line-height: normal;
  background: #13492C;
  border-radius: 8px;
  padding: 1rem 2rem;
  margin-top: 1.25rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.shampoo-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.social-links {
  padding: 4rem 0 1rem;
}
.social-links img {
  max-width: 80px;
  transition: transform 0.2s ease;
}

.social-links a:hover img {
  transform: scale(1.08);
}


@keyframes lightFlicker {
  0%, 100% {
    opacity: 1;
  }

  6% {
    opacity: 0.98;
  }

  7% {
    opacity: 0.88;
  }

  8.5% {
    opacity: 1;
  }

  39% {
    opacity: 0.96;
  }

  40% {
    opacity: 0.9;
  }

  42% {
    opacity: 1;
  }

  73% {
    opacity: 0.97;
  }

  74% {
    opacity: 0.92;
  }

  76% {
    opacity: 1;
  }
}

@keyframes outerLightPulse {
  0%, 100% {
    filter: blur(22px) brightness(1);
  }

  50% {
    filter: blur(22px) brightness(1.08);
  }
}

@keyframes innerLightPulse {
  0%, 100% {
    filter: blur(14px) brightness(1);
  }

  50% {
    filter: blur(14px) brightness(1.08);
  }
}

@keyframes bulbFlicker {
  0%, 100% {
    opacity: 1;
  }

  7% {
    opacity: 0.82;
  }

  8.5% {
    opacity: 1;
  }

  40% {
    opacity: 0.9;
  }

  42% {
    opacity: 1;
  }
}

@keyframes bulbPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    filter: brightness(1);
  }

  50% {
    transform: translateX(-50%) scale(1.06);
    filter: brightness(1.1);
  }
}

.picture-light::after {
  animation:
    lightFlicker 18.9s infinite,
    outerLightPulse 13.2s ease-in-out infinite;
}

.picture-light::before {
  animation:
    lightFlicker 17.1s infinite,
    innerLightPulse 11.4s ease-in-out infinite;
}

.picture-light .bulb {
  animation:
    bulbFlicker 17.1s infinite,
    bulbPulse 8.4s ease-in-out infinite;
}

.top-section-wrapper {
  position: relative;
  overflow: hidden;
}

/* PAW SPACE */
.top-section-wrapper {
  position: relative;
  overflow: hidden;
}

.pawprint {
  position: absolute;
  width: 200px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;

  mix-blend-mode: multiply;

  filter: sepia(0.95) saturate(0.25) brightness(0.8) contrast(1.32);

  animation: pawAppear 0.35s ease-out forwards;
}
@media (max-width: 800px) {
  .pawprint {
    width: 140px;
  }
}

@keyframes pawAppear {
  0% {
    opacity: 0;
    scale: 0.7;
  }

  70% {
    opacity: 0.5;
    scale: 1.08;
  }

  100% {
    opacity: 0.4;
    scale: 1;
  }
}
/* PAW SPACE */

@media (prefers-reduced-motion: reduce) {
  .picture-light .bulb { animation: none; }
}
