/* ---------------------------------- */
/* Scroll-reveal base states          */
/* ---------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-32px);
}
[data-reveal="left"].is-revealed {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(32px);
}
[data-reveal="right"].is-revealed {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}
[data-reveal="scale"].is-revealed {
  transform: scale(1);
}

/* Staggered children reveal delays, set via inline custom property */
[data-reveal] {
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* No-JS fallback: without animations.js to toggle .is-revealed, content
   must still be fully visible and usable. */
html.no-js [data-reveal],
html.no-js [data-img-reveal] {
  opacity: 1;
  transform: none;
  clip-path: none;
}

/* ---------------------------------- */
/* Hero entrance sequence             */
/* ---------------------------------- */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy .eyebrow {
  animation: hero-rise 700ms var(--ease-out) both;
}
.hero-copy h1 {
  animation: hero-rise 700ms var(--ease-out) 90ms both;
}
.hero-copy > p {
  animation: hero-rise 700ms var(--ease-out) 180ms both;
}
.hero-copy .btn-row {
  animation: hero-rise 700ms var(--ease-out) 260ms both;
}
.hero-copy .spec-strip {
  animation: hero-rise 700ms var(--ease-out) 340ms both;
}
.hero-visual {
  animation: hero-rise 900ms var(--ease-out) 200ms both;
}

/* ---------------------------------- */
/* Crane hook sway (hero illustration) */
/* ---------------------------------- */
@keyframes hook-sway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.hook-sway {
  transform-origin: top center;
  animation: hook-sway 4.5s var(--ease-in-out) infinite;
}

@keyframes cable-draw {
  from {
    stroke-dashoffset: 240;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.cable-draw {
  stroke-dasharray: 240;
  animation: cable-draw 1.6s var(--ease-out) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hook-sway {
    animation: none;
  }
}

/* ---------------------------------- */
/* Counter number pulse on completion  */
/* ---------------------------------- */
@keyframes count-settle {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.stat-number.is-counted {
  animation: count-settle 260ms var(--ease-out);
}

/* ---------------------------------- */
/* Marquee for industries strip        */
/* ---------------------------------- */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------------------------------- */
/* Mobile nav panel transition         */
/* ---------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink-900);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-in-out);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav ul {
  display: grid;
  gap: var(--space-lg);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-on-dark);
  opacity: 0;
  transform: translateY(16px);
}

.mobile-nav.is-open a {
  animation: hero-rise 500ms var(--ease-out) forwards;
}

.mobile-nav.is-open a:nth-child(1) {
  animation-delay: 80ms;
}
.mobile-nav.is-open a:nth-child(2) {
  animation-delay: 140ms;
}
.mobile-nav.is-open a:nth-child(3) {
  animation-delay: 200ms;
}
.mobile-nav.is-open a:nth-child(4) {
  animation-delay: 260ms;
}

/* ---------------------------------- */
/* Image reveal (clip-path wipe)       */
/* ---------------------------------- */
[data-img-reveal] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-out);
}

[data-img-reveal].is-revealed {
  clip-path: inset(0 0 0% 0);
}

/* ---------------------------------- */
/* FAQ open/close                      */
/* ---------------------------------- */
.faq-answer {
  transition: max-height 380ms var(--ease-in-out);
}


