:root {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

html,
body {
  overflow-x: clip;
}

.reading-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #bb7951, #f5cb72 58%, #6b9ab9);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

.hero-line { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1 .hero-line,
  .hero h1 em,
  .hero-copy > p,
  .hero-actions {
    animation: hero-arrive 1s var(--motion-ease) both;
  }

  .hero .eyebrow { animation-delay: .08s; }
  .hero h1 .hero-line { animation-delay: .18s; }
  .hero h1 em { animation-delay: .34s; }
  .hero-copy > p:not(.hero-note) { animation-delay: .52s; }
  .hero-actions { animation-delay: .66s; }
  .hero-copy > .hero-note { animation-delay: .82s; }

  @keyframes hero-arrive {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .motion-pending {
    opacity: 0;
    transition: opacity .8s var(--motion-ease), transform .9s var(--motion-ease), filter .9s var(--motion-ease);
    transition-delay: var(--motion-delay, 0ms);
  }

  .motion-type {
    transform: translateY(36px);
    filter: blur(5px);
  }

  .friction h2.motion-type:not(.motion-in),
  .contact h2.motion-type:not(.motion-in) {
    transform: translateX(-28px);
  }

  .process h2.motion-type:not(.motion-in) {
    transform: translateY(48px);
    filter: none;
  }

  .scope h2.motion-type:not(.motion-in) {
    transform: scale(.96);
    transform-origin: left center;
  }

  .motion-rise { transform: translateY(32px); }
  .motion-slide { transform: translateX(42px); }
  .motion-scale { transform: scale(.965); }

  .motion-pending.motion-in {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

  .section:not(.scope) .motion-type.motion-in em {
    animation: accent-warm .9s .2s both;
  }

  @keyframes accent-warm {
    from { color: #728d9e; }
    to { color: #bb7951; }
  }

  .simulator-panel {
    transition: background-color .8s ease;
  }

  .simulator[data-mode="camadas"] .simulator-panel {
    background-color: #2c2927;
  }

  .scene-after {
    transform: scale(1.035);
    transition: opacity 1s ease, filter .4s ease, transform 1.3s var(--motion-ease);
  }

  .simulator[data-mode="camadas"] .scene-after { transform: scale(1); }

  .scene-label,
  .scene-dot {
    transition: background-color .6s ease, color .6s ease, transform .6s var(--motion-ease);
  }

  .simulator[data-mode="camadas"] .scene-label { transform: translateY(3px); }

  .expertise-visual.motion-in .light-rings {
    animation: rings-breathe 7s ease-in-out infinite;
  }

  @keyframes rings-breathe {
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: .75; }
  }

  .offer-strip.motion-in strong {
    animation: offer-settle .8s .25s var(--motion-ease) both;
  }

  @keyframes offer-settle {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
  .motion-pending { opacity: 1; transform: none; filter: none; }
}
