/* Motion layer. Everything here is gated on .motion (set by motion.js) and disabled for reduced motion. */
@keyframes fka-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fka-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fka-frame { from { opacity: 0; transform: translate(14px, 14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: text only, so the portrait (largest paint) is never delayed. */
  .motion .hero-copy > *, .motion .page-hero .wrap > div > *, .motion .page-hero .wrap.narrow > * {
    animation: fka-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .motion .hero-copy > :nth-child(2), .motion .page-hero :is(.wrap > div, .wrap.narrow) > :nth-child(2) { animation-delay: 0.08s; }
  .motion .hero-copy > :nth-child(3), .motion .page-hero :is(.wrap > div, .wrap.narrow) > :nth-child(3) { animation-delay: 0.16s; }
  .motion .hero-copy > :nth-child(4), .motion .page-hero :is(.wrap > div, .wrap.narrow) > :nth-child(4) { animation-delay: 0.24s; }
  .motion .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .motion .page-portrait::before, .motion .hero-photo::before { animation: fka-frame 1.1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

  /* Scroll reveal */
  .motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
  .motion .reveal.in { opacity: 1; transform: none; }

  /* Gold rule under section kickers draws in */
  .motion .reveal.kicker-line::after { content: ""; display: block; width: 36px; height: 1px; margin-top: 12px; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .motion .reveal.kicker-line.in::after { transform: scaleX(1); }

  /* Photos ease from a slight zoom as they enter */
  .motion .reveal-img img { transform: scale(1.06); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .motion .reveal-img.in img { transform: none; }
  .motion .work-panel.reveal-img.in:hover img { transform: scale(1.03); }

  /* Buttons: gold sheen on hover */
  .button.gold { position: relative; overflow: hidden; }
  .button.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s ease; pointer-events: none; }
  .button.gold:hover::after { transform: translateX(120%); }
}

/* Metric strip */
.metric-strip dd { font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 767.98px) {
  .metric-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
}
