/* Motion follows the reference site's staggered AOS fade-up and side reveals. */
html { overflow-x: clip; }
.topbar { transition: box-shadow .3s ease, border-color .3s ease; }
.topbar.scrolled { box-shadow: 0 8px 24px rgba(50, 31, 24, .10); border-color: transparent; }
.hero-line { display: block; }
.hero-scroll.is-visible { animation: scroll-cue 2.6s ease-in-out infinite; }

/* Phoenix-style hero cells: fixed centres, staggered halos and pointer glow. */
.home-hero { overflow: hidden; }
.home-hero .hero-inner { position: relative; z-index: 1; }
.home-hero .hero-scroll { z-index: 1; }
.hero-network { position: absolute; top: 0; left: 0; width: 100%; height: 720px; opacity: .5; pointer-events: none; z-index: 0; }
.hero-network__links { animation: network-breathe 6s ease-in-out infinite; }
.hero-network__links line { stroke: url(#nr-connection); stroke-width: 2; }
.hero-network__links .hero-network__flow { stroke: #fff5e7; stroke-opacity: .64; stroke-width: 2.3; stroke-dasharray: 42 400; animation: network-flow 8s linear infinite; }
.hero-network__cursor-links { opacity: 0; transition: opacity .35s ease; }
.hero-network--engaged .hero-network__cursor-links { opacity: .58; }
.hero-network__cursor-links line { stroke: url(#nr-connection); stroke-width: 1.7; transition: x2 .3s ease-out, y2 .3s ease-out; }
.hero-network__halo { animation: cell-pulse 4s ease-in-out infinite; }
.hero-network__pointer { opacity: .4; transition: cx .5s ease-out, cy .5s ease-out; }

.motion-ready .reveal {
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.motion-ready .reveal[data-reveal="up"] { transform: translate3d(0, 28px, 0); }
.motion-ready .reveal[data-reveal="right"] { transform: translate3d(-32px, 0, 0); }
.motion-ready .reveal[data-reveal="left"] { transform: translate3d(32px, 0, 0); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); will-change: auto; }

.image-frame img, .gallery img, .wide-feature img {
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.image-frame:hover img, .gallery figure:hover img { transform: scale(1.055); }
.service-card { transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 18px 35px rgba(68, 43, 33, .10); }
.motion-ready .service-card.is-visible:hover { transform: translateY(-7px); }
.service-card:hover img { transform: scale(1.075); }
.inline-link { transition: color .25s ease, gap .25s ease; }
.inline-link:hover { color: var(--copper); gap: 22px; }
.btn span { display: inline-block; transition: transform .25s ease; }
.btn:hover span { transform: translate(3px, -3px); }
.service-row { transition: background-color .3s ease, padding-left .3s ease; }
.service-row:hover { background-color: rgba(167, 107, 66, .045); padding-left: 10px; }

@keyframes scroll-cue {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(7px); opacity: .6; }
}
@keyframes cell-pulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes network-breathe {
  0%, 100% { opacity: .3; }
  50% { opacity: .6; }
}
@keyframes network-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -442; }
}

@media (max-width: 700px) {
  .motion-ready .reveal[data-reveal="right"],
  .motion-ready .reveal[data-reveal="left"] { transform: translate3d(0, 20px, 0); }
  .motion-ready .reveal.is-visible { transform: translate3d(0, 0, 0); }
  .motion-ready .reveal { transition-duration: .55s; transition-delay: min(var(--reveal-delay, 0ms), 280ms); }
  .service-card:hover { transform: none; box-shadow: none; }
  .motion-ready .service-card.is-visible:hover { transform: none; }
  .hero-scroll { display: none; }
  /* Mobile keeps a narrow strip of moving cells to the left of her face. */
  .hero-network { height: 655px; opacity: .32; clip-path: inset(0 72% 0 0); }
  .hero-network__pointer, .hero-network__cursor-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .image-frame img, .gallery img, .wide-feature img, .service-card, .btn, .inline-link { transition: none; }
  .hero-network__links, .hero-network__halo, .hero-network__flow { animation: none; }
  .hero-network__cursor-links { display: none; }
  .case-track { transition: none; }
  .hero-network__pointer { display: none; }
}
