/* ===== Scroll & motion polish (added v42) ===== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, #c6a15b, #f0d9a0);
  transform: scaleX(0); transform-origin: left;
  z-index: 9999; pointer-events: none;
}

/* Hero headline rises line by line on load */
html.js .hero-headline span,
html.js .hero .eyebrow,
html.js .hero-tagline,
html.js .ai-highlight,
html.js .hero .hero-text {
  opacity: 0; transform: translateY(28px);
  animation: mmRise 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
html.js .hero .eyebrow { animation-delay: 80ms; }
html.js .hero-headline span:nth-child(1) { animation-delay: 220ms; }
html.js .hero-headline span:nth-child(2) { animation-delay: 420ms; }
html.js .hero-tagline { animation-delay: 640ms; }
html.js .ai-highlight { animation-delay: 780ms; }
html.js .hero .hero-text { animation-delay: 920ms; }
@keyframes mmRise { to { opacity: 1; transform: translateY(0); } }

/* Smoother reveal + staggered children */
.reveal { transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1); }
html.js .stagger-item {
  opacity: 0; transform: translateY(34px) scale(.98);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
html.js .stagger-item.in { opacity: 1; transform: none; }

/* Card tilt + glow */
.service-card, .founder-card, .about-stat, .diversity-stat {
  transition: transform 300ms ease, box-shadow 300ms ease, opacity 800ms ease;
  will-change: transform;
}
.service-card.tilting, .founder-card.tilting { transition: transform 80ms linear, box-shadow 300ms ease; }
.service-card:hover, .founder-card:hover { box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.service-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(198,161,91,.14), transparent 45%);
  opacity: 0; transition: opacity 300ms ease;
}
.service-card:hover::after { opacity: 1; }
.service-card { position: relative; }

/* Buttons: soft lift and shine */
.button { transition: transform 200ms ease, box-shadow 250ms ease, background 250ms ease; }
.button:hover { box-shadow: 0 12px 30px rgba(198,161,91,.28); }
.button-primary { position: relative; overflow: hidden; }
.button-primary::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left 700ms ease; pointer-events: none;
}
.button-primary:hover::before { left: 140%; }

/* Cursor glow (desktop only) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(198,161,91,.10), transparent 65%);
  opacity: 0; transition: opacity 400ms ease; will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* Images: gentle zoom while scrolling into view */
.team-photo-banner img, .hero-video-frame { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.team-photo-banner:not(.in-view) img { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .cursor-glow, .button-primary::before { display: none; }
  html.js .hero-headline span, html.js .hero .eyebrow, html.js .hero-tagline,
  html.js .ai-highlight, html.js .hero .hero-text,
  html.js .stagger-item { opacity: 1; transform: none; animation: none; transition: none; }
  .team-photo-banner:not(.in-view) img { transform: none; }
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Showreel sound hint: slim glass pill at the bottom; the whole video is the tap target */
.showreel-sound-hint {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  margin: 0; padding: 0 0 18px; border: 0; border-radius: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 38%);
  cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent;
}
.showreel-sound-hint[hidden] { display: none; }
.showreel-sound-hint .pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 16px; border-radius: 999px;
  background: rgba(14,14,14,.55); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-family: inherit; font-size: .88rem; font-weight: 600; letter-spacing: .03em; line-height: 1;
}
.showreel-sound-hint .pill svg { width: 18px; height: 18px; flex: none; stroke: #e6c887; }
.showreel-sound-hint .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: 2px; }
.showreel-sound-hint .eq i { width: 2px; background: #e6c887; border-radius: 1px; animation: mmEq 1s ease-in-out infinite; }
.showreel-sound-hint .eq i:nth-child(1) { height: 5px; animation-delay: 0s; }
.showreel-sound-hint .eq i:nth-child(2) { height: 11px; animation-delay: .2s; }
.showreel-sound-hint .eq i:nth-child(3) { height: 7px; animation-delay: .4s; }
@keyframes mmEq { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .showreel-sound-hint .eq i { animation: none; } }
