/* Top white H1s — orange → lime wrap wipe (homepage + every page hero) */
.gg-hero .gg-hero-title,
.gg-page-hero .gg-hero-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 0.75rem;
}

.gg-hero .gg-hero-title__plain,
.gg-page-hero .gg-hero-title__plain {
  display: block;
  position: relative;
  z-index: 1;
}

.gg-hero .gg-hero-title__vinyl,
.gg-page-hero .gg-hero-title__vinyl {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #ff8a3d 0%,
    #ff5a00 22%,
    #ff7a2e 45%,
    #d4e800 62%,
    #c6ff00 82%,
    #e2ff6a 100%
  );
  background-size: 100% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(0 100% 0 0);
  filter: none;
}

.gg-hero .gg-hero-title__edge,
.gg-page-hero .gg-hero-title__edge {
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: 0;
  width: 3px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #c6ff00 12%,
    #ff5a00 50%,
    #c6ff00 88%,
    transparent 100%
  );
  box-shadow:
    0 0 10px rgba(198, 255, 0, 0.85),
    2px 0 14px rgba(255, 90, 0, 0.55),
    -1px 0 6px rgba(0, 0, 0, 0.4);
  transform: translateX(0);
}

.gg-hero .gg-hero-title.is-wrapping .gg-hero-title__vinyl,
.gg-page-hero .gg-hero-title.is-wrapping .gg-hero-title__vinyl {
  animation: gg-wrap-reveal var(--gg-wrap-dur, 1.8s) cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

.gg-hero .gg-hero-title.is-wrapping .gg-hero-title__edge,
.gg-page-hero .gg-hero-title.is-wrapping .gg-hero-title__edge {
  opacity: 1;
  animation: gg-wrap-edge var(--gg-wrap-dur, 1.8s) cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

.gg-hero .gg-hero-title.is-wrapped .gg-hero-title__vinyl,
.gg-page-hero .gg-hero-title.is-wrapped .gg-hero-title__vinyl {
  clip-path: inset(0 0 0 0);
  animation: none;
}

.gg-hero .gg-hero-title.is-wrapped .gg-hero-title__edge,
.gg-page-hero .gg-hero-title.is-wrapped .gg-hero-title__edge {
  opacity: 0;
  animation: none;
}

@keyframes gg-wrap-reveal {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes gg-wrap-edge {
  0% { left: 0%; opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gg-hero .gg-hero-title__vinyl,
  .gg-page-hero .gg-hero-title__vinyl {
    clip-path: inset(0 0 0 0);
    animation: none !important;
  }
  .gg-hero .gg-hero-title__edge,
  .gg-page-hero .gg-hero-title__edge {
    display: none !important;
  }
}
