.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity var(--duration-slow) var(--ease-out),
    translate var(--duration-slow) var(--ease-out),
    scale var(--duration-slow) var(--ease-out);
}

.reveal--left {
  translate: -34px 0;
}

.reveal--right {
  translate: 34px 0;
}

.reveal--zoom {
  translate: 0 0;
  scale: 0.94;
}

.reveal--fade {
  translate: 0 0;
}

.reveal.is-visible {
  opacity: 1;
  translate: none;
  scale: none;
}

.reveal-stagger.is-visible {
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.3333%);
  }
}

/* ---------- Home: page-load choreography for the hero ---------- */
.hero__stripe--dark {
  background: linear-gradient(115deg, var(--brand) 42%, rgba(255, 255, 255, 0.7) 50%, var(--brand) 58%) 0 0 / 300% 100%;
  animation:
    hero-line-draw 1s 0.1s var(--ease-out) backwards,
    hero-line-shine 1.4s 1.1s ease-in-out backwards;
}

.hero__stripe--light {
  animation: hero-line-draw-light 1.2s 0.25s var(--ease-out) backwards;
}

.hero__photo {
  animation: hero-photo-wipe 1.3s 0.3s var(--ease-out) backwards;
}

.hero__photo > img {
  animation: hero-photo-zoom 2s 0.3s var(--ease-out) backwards;
}

@keyframes hero-line-draw {
  from {
    clip-path: polygon(calc(44% - 30px) 0, 44% 0, 44% 0, calc(44% - 30px) 0);
  }
}

@keyframes hero-line-draw-light {
  from {
    clip-path: polygon(calc(44% - 96px) 0, calc(44% - 30px) 0, calc(44% - 30px) 0, calc(44% - 96px) 0);
  }
}

@keyframes hero-line-shine {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

@keyframes hero-photo-wipe {
  from {
    clip-path: polygon(44% 0, 44% 0, 12% 100%, 12% 100%);
  }
}

@keyframes hero-photo-zoom {
  from {
    transform: scale(1.14);
  }
}

.hero__eyebrow {
  position: relative;
  padding-left: 2.6rem;
}

.hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  animation: svc-rule-grow 0.8s 0.5s var(--ease-out) backwards;
}

.hero__eyebrow {
  animation: svc-fade 0.8s 0.2s var(--ease-out) backwards;
}

.hero__title.reveal {
  transition-delay: 0.35s;
}

.hero__lead.reveal {
  transition-delay: 0.5s;
}

.hero__actions.reveal {
  transition-delay: 0.65s;
}

/* slider cards rise in one after another once the hero has landed */
.hero-services .svc-card {
  animation: spot-rise 0.8s var(--ease-out) backwards;
}

.hero-services .svc-card:nth-child(1) { animation-delay: 0.9s; }
.hero-services .svc-card:nth-child(2) { animation-delay: 1.0s; }
.hero-services .svc-card:nth-child(3) { animation-delay: 1.1s; }
.hero-services .svc-card:nth-child(4) { animation-delay: 1.2s; }
.hero-services .svc-card:nth-child(n + 5) { animation-delay: 1.3s; }

.hero-services__controls {
  animation: svc-fade 0.8s 0.8s var(--ease-out) backwards;
}

/* ---------- Home: staggered reveals inside sections ---------- */
.spotlight__grid > :nth-child(2) { transition-delay: 90ms; }
.spotlight__grid > :nth-child(3) { transition-delay: 180ms; }
.spotlight__grid > :nth-child(4) { transition-delay: 270ms; }

.why__list .why-row:nth-child(2) { transition-delay: 70ms; }
.why__list .why-row:nth-child(3) { transition-delay: 140ms; }
.why__list .why-row:nth-child(4) { transition-delay: 210ms; }
.why__list .why-row:nth-child(5) { transition-delay: 280ms; }
.why__list .why-row:nth-child(6) { transition-delay: 350ms; }

.why-stat {
  animation: none;
}

.footer-main > *:nth-child(2) { transition-delay: 80ms; }
.footer-main > *:nth-child(3) { transition-delay: 160ms; }
.footer-main > *:nth-child(4) { transition-delay: 240ms; }

/* heading accent rule draws under section titles */
.section-heading__title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s 0.25s var(--ease-out);
}

.section-heading--center .section-heading__title::after {
  margin-inline: auto;
  transform-origin: center;
}

.section-heading.is-visible .section-heading__title::after {
  transform: scaleX(1);
}

/* scroll progress line under the header */
.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 900px) {
  @keyframes hero-photo-wipe {
    from {
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: none;
    scale: none;
  }

  .hero__stripe--dark,
  .hero__stripe--light,
  .hero__photo,
  .hero__photo > img,
  .hero__eyebrow,
  .hero__eyebrow::before,
  .hero-services .svc-card,
  .hero-services__controls {
    animation: none;
  }

  .section-heading__title::after {
    transform: none;
    transition: none;
  }

  .scroll-progress {
    display: none;
  }
}

/* hero photo is oversized vertically so the parallax drift never exposes an edge */
.hero__photo > img {
  height: calc(100% + 80px);
  margin-top: -40px;
}
