/* Opening + motion upgrades (loads last). Doors get panel mouldings and a light sheen; the hero "pushes in"
   after the doors open; section marks draw themselves; scroll progress bar. All transform/opacity only. */

/* ---- opening doors: panel mouldings, sheen, slower weight ---- */
.intro .ld { background: linear-gradient(90deg, #151b16, #080b09 70%); }
.intro .ld::before { display: block !important; content: ""; position: absolute; inset: 9vh 4vw; border: 1px solid rgba(245, 247, 242, 0.09); }
.intro .ld.l::before { right: 7vw; } .intro .ld.r::before { left: 7vw; }
.intro .ld::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(142, 240, 0, 0.12) 50%, transparent 62%); transform: translateX(-130%); animation: sheen 1.5s ease 0.35s forwards; pointer-events: none; }
@keyframes sheen { to { transform: translateX(130%); } }
.intro .ld.l { animation-duration: 1.5s; } .intro .ld.r { animation-duration: 1.5s; }
.intro-seam { width: 3px; box-shadow: 0 0 60px 16px rgba(166, 255, 34, 0.28); }

/* camera push-in on the hero once the doors part */
.intro-on .hero .wrap { animation: pushIn 2s cubic-bezier(0.16, 1, 0.3, 1) 1.85s both; transform-origin: 50% 30%; }
@keyframes pushIn { from { transform: scale(1.06); } }
.intro-on .hero::before { animation: lightSpill 2.2s ease 1.9s both; }
@keyframes lightSpill { from { opacity: 0; } 40% { opacity: 1; } }

/* ---- section marks draw themselves ---- */
.js .reveal .mono::before, .js .sec-head .mono::before { transform-origin: left; transform: scaleX(0); transition: transform 0.9s var(--ease) 0.2s; }
.js .reveal.in .mono::before { transform: none; }
.js .step::before { transition: transform 0.6s var(--ease), opacity 0.6s; }
.js .step.reveal:not(.in)::before { opacity: 0; transform: translateY(8px); }
.js .svc.reveal .ic svg { transform: scale(0.5) rotate(-24deg); opacity: 0; transition: transform 0.8s var(--ease) 0.3s, opacity 0.6s ease 0.3s; }
.js .svc.reveal.in .ic svg { transform: none; opacity: 1; }
.js .stepup > div.reveal li { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 300ms); }

/* ---- scroll progress (supported browsers only) ---- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--lime); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---- WhatsApp links on service cards ---- */
.svc-wa { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.88rem; font-weight: 500; color: var(--lime-2); text-decoration: none; width: fit-content; }
.svc-wa::after { content: "→"; transition: transform 0.25s var(--ease); }
.svc-wa:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-wa:hover::after { transform: translateX(4px); }
.svc-lead + .svc .svc-wa { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .intro-on .hero .wrap, .intro-on .hero::before, .progress { animation: none !important; }
  .js .reveal .mono::before { transform: none; }
  .js .svc.reveal .ic svg { transform: none; opacity: 1; }
}

/* the logo arrow keeps its brand copper */
.im-line { stroke: #d7793f; } .im-head { fill: #d7793f; }
.intro-word b { color: #cdbfac; }
