/* Site motion — presence & hierarchy */

/* Hero content stays put — no entrance translate (felt like the hero scrolling up) */
.gg-hero-content > *,
.gg-page-hero .gg-wrap > * {
  opacity: 1;
  transform: none;
}

/* Hero / quote media layers (legacy) — always static, never animated */
.gg-hero-media,
.gg-page-hero-media,
.gg-quote-media {
  position: absolute;
  inset: 0;
  background-image: var(--gg-media-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transform: none !important;
  animation: none !important;
  will-change: auto;
}
.gg-hero::before,
.gg-page-hero::before {
  z-index: 1;
}
.gg-hero-content,
.gg-page-hero .gg-wrap,
.gg-scroll-cue {
  z-index: 2;
}

@media (max-width: 720px) {
  .gg-hero-media {
    background-image: url("/gallery/brand/home-hero-mobile.jpg");
    background-position: 42% 18%;
  }
}

/* Scroll cue fades after scroll */
.gg-scroll-cue {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.gg-scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

/* Scroll reveals */
.gg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.gg-reveal.is-in {
  opacity: 1;
  transform: none;
}
.gg-reveal-stagger > .gg-reveal:nth-child(1) { transition-delay: 0.04s; }
.gg-reveal-stagger > .gg-reveal:nth-child(2) { transition-delay: 0.12s; }
.gg-reveal-stagger > .gg-reveal:nth-child(3) { transition-delay: 0.2s; }
.gg-reveal-stagger > .gg-reveal:nth-child(4) { transition-delay: 0.28s; }
.gg-reveal-stagger > .gg-reveal:nth-child(5) { transition-delay: 0.36s; }
.gg-reveal-stagger > .gg-reveal:nth-child(6) { transition-delay: 0.44s; }
.gg-reveal-stagger > .gg-reveal:nth-child(n+7) { transition-delay: 0.5s; }

/* Quote band */
.gg-quote {
  overflow: hidden;
}
.gg-quote-media {
  inset: -8% 0;
  transform: translateY(0);
  transition: transform 0.1s linear;
  z-index: 0;
}
.gg-quote::before { z-index: 1; }
.gg-quote-inner {
  position: relative;
  z-index: 2;
}

/* Buttons */
.gg-btn {
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.gg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.gg-btn-ghost:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.gg-btn-primary:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Social icons */
.gg-hero-social a,
.gg-footer-social a {
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}
.gg-hero-social a:hover,
.gg-footer-social a:hover {
  transform: scale(1.08);
}

/* Cards — image zoom */
.gg-article-card-media,
.gg-work-card-media,
.gg-card-media,
.gg-portfolio-media,
.gg-about-photo {
  overflow: hidden;
}
.gg-article-card-media img,
.gg-work-card-media img,
.gg-card-media img,
.gg-portfolio-media img,
.gg-about-photo img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.gg-article-card:hover .gg-article-card-media img,
.gg-work-card:hover .gg-work-card-media img,
.gg-card:hover .gg-card-media img,
.gg-portfolio-media:hover img,
.gg-about-photo:hover img {
  transform: scale(1.06);
}

/* Service cards lift */
.gg-service,
.gg-skill {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.gg-service:hover,
.gg-skill:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .gg-hero-content > *,
  .gg-page-hero .gg-wrap > *,
  .gg-reveal,
  .gg-btn,
  .gg-hero-social a,
  .gg-footer-social a,
  .gg-article-card-media img,
  .gg-work-card-media img,
  .gg-card-media img,
  .gg-portfolio-media img,
  .gg-about-photo img,
  .gg-service,
  .gg-skill,
  .gg-scroll-cue,
  .gg-word-roll-mask,
  .gg-word-roll-track {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .gg-hero-media,
  .gg-page-hero-media,
  .gg-quote-media {
    animation: none !important;
    transform: none !important;
    inset: 0;
  }
}
