/* One motion layer: hero starts with first CSS paint; scroll cues run once. */
.hero-title-line { display: block; overflow: clip; padding-bottom: .09em; margin-bottom: -.09em; }
.hero-title-line > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ease: cubic-bezier(.22, 1, .36, 1); --motion-short: cubic-bezier(.2, .8, .2, 1); }
  /* Masks are present from the first paint; no element fades to zero. */
  html.motion-ready .reference-hero .announcement { animation: hero-chip 360ms var(--motion-ease) both; }
  html.motion-ready .reference-hero .hero-eyebrow { animation: hero-label 440ms var(--motion-ease) 100ms both; }
  html.motion-ready .reference-hero .hero-title-line > span { animation: hero-line 650ms var(--motion-ease) 150ms both; }
  html.motion-ready .reference-hero .hero-title-line + .hero-title-line > span { animation-delay: 310ms; }
  html.motion-ready .reference-hero .hero-description { animation: hero-copy 520ms var(--motion-ease) 570ms both; }
  html.motion-ready .reference-hero .hero-actions { animation: hero-action 470ms var(--motion-ease) 760ms backwards; }
  html.motion-ready .reference-hero .hero-cta-note { animation: hero-copy 420ms var(--motion-ease) 970ms both; }

  @media (min-width: 768px) {
    html.motion-ready .reference-hero .platform-preview { animation: cabinet-shell 680ms var(--motion-ease) 240ms both; }
    html.motion-ready .reference-hero .platform-topbar { animation: cabinet-bar 430ms var(--motion-ease) 420ms both; }
    html.motion-ready .reference-hero .platform-sidebar { animation: cabinet-nav 570ms var(--motion-ease) 560ms both; }
    html.motion-ready .reference-hero .platform-course-label { animation: cabinet-detail 380ms var(--motion-ease) 690ms both; }
    html.motion-ready .reference-hero .platform-lesson { animation: cabinet-card 600ms var(--motion-ease) 750ms both; }
    html.motion-ready .reference-hero .platform-learning li { animation: cabinet-detail 430ms var(--motion-ease) both; }
    html.motion-ready .reference-hero .platform-learning li:nth-child(1) { animation-delay: 1030ms; }
    html.motion-ready .reference-hero .platform-learning li:nth-child(2) { animation-delay: 1120ms; }
    html.motion-ready .reference-hero .platform-learning li:nth-child(3) { animation-delay: 1210ms; }
    html.motion-ready .reference-hero .platform-bottom { animation: cabinet-detail 420ms var(--motion-ease) 1270ms both; }
  }

  .audience-list li p { transition: transform 360ms var(--motion-short); }
  .audience-list li.is-current p { transform: translateX(5px); }
  .audience-frame { transition: opacity 420ms var(--motion-short), transform 520ms var(--motion-short); }
  @media (max-width: 1023px) {
    .is-audience-picker .audience-list li {
      visibility: hidden;
      opacity: 0;
      transform: translateX(16px) scale(.985);
      transition: opacity 290ms var(--motion-short), transform 360ms var(--motion-short), visibility 0s 360ms;
    }
    .is-audience-picker .audience-list li.is-current {
      visibility: visible;
      opacity: 1;
      transform: none;
      transition-delay: 0s;
    }
  }

  .methodology-steps.motion-in li { --step-delay: 0ms; }
  .methodology-steps.motion-in li:nth-child(2) { --step-delay: 130ms; }
  .methodology-steps.motion-in li:nth-child(3) { --step-delay: 260ms; }
  .methodology-steps.motion-in li:nth-child(4) { --step-delay: 390ms; }
  .methodology-steps.motion-in .methodology-step-number { animation: step-number 430ms var(--motion-ease) var(--step-delay) both; }
  .methodology-steps.motion-in p { animation: step-text 480ms var(--motion-ease) calc(var(--step-delay) + 50ms) both; }

  #program .module-body.is-active .module-inner-content { animation: module-panel 360ms var(--motion-ease) both; }
  #program .module-trigger[aria-expanded="true"] .module-index { transition: color 200ms var(--motion-short), transform 200ms var(--motion-short); transform: translateX(3px); }

  .program-outcome.motion-in { animation: result-row 550ms var(--motion-ease) both; }
  .program-outcome.motion-in .program-outcome-art { animation: result-art 630ms var(--motion-ease) both; }
  .diagnostic-map.motion-in, .pricing-payment.motion-in, .lead-card.motion-in { animation: decision-card 500ms var(--motion-ease) both; }

  .button { transition: background-color var(--fast), border-color var(--fast), color var(--fast), transform 180ms var(--motion-short), box-shadow 180ms var(--motion-short); }
  .button:active, .mentor-controls button:active, #program .module-trigger:active { transform: scale(.97); }
  .button > .ref-icon, .platform-lesson a .ref-icon, .lead-contact > .ref-icon { transition: transform 180ms var(--motion-short); }
  .button:hover > .ref-icon, .platform-lesson a:hover .ref-icon, .lead-contact:hover > .ref-icon { transform: translateX(4px); }
  @media (hover: hover) and (pointer: fine) {
    .button:hover { transform: translateY(-2px); box-shadow: 0 7px 16px -10px rgb(149 35 51 / 48%); }
    .button:hover:active { transform: scale(.97); }
    .mentor-controls button, #program .module-trigger { transition: background-color var(--fast), color var(--fast), transform 180ms var(--motion-short); }
  }

  @keyframes hero-chip { from { clip-path: inset(0 100% 0 0 round 48px); transform: translateX(-10px); } to { clip-path: inset(0 0 0 0 round 48px); transform: none; } }
  @keyframes hero-label { from { clip-path: inset(0 100% 0 0); transform: translateX(-9px); } to { clip-path: inset(0); transform: none; } }
  @keyframes hero-line { from { transform: translateY(108%); } to { transform: none; } }
  @keyframes hero-copy { from { clip-path: inset(0 0 100% 0); transform: translateY(14px); } to { clip-path: inset(0); transform: none; } }
  @keyframes hero-action { from { clip-path: inset(100% 0 0 0 round 80px); transform: translateY(18px); } to { clip-path: inset(0 round 80px); transform: none; } }
  @keyframes cabinet-shell { from { transform: translateY(30px) scale(.95); } to { transform: none; } }
  @keyframes cabinet-bar { from { clip-path: inset(0 0 100% 0); transform: translateY(-9px); } to { clip-path: inset(0); transform: none; } }
  @keyframes cabinet-nav { from { clip-path: inset(0 100% 0 0); transform: translateX(-18px); } to { clip-path: inset(0); transform: none; } }
  @keyframes cabinet-card { from { clip-path: inset(0 0 100% 0 round 12px); transform: translateY(20px) scale(.95); } to { clip-path: inset(0 round 12px); transform: none; } }
  @keyframes cabinet-detail { from { clip-path: inset(0 100% 0 0); transform: translateX(12px); } to { clip-path: inset(0); transform: none; } }
  @keyframes step-number { from { transform: scale(.72); } to { transform: none; } }
  @keyframes step-text { from { transform: translateX(14px); } to { transform: none; } }
  @keyframes module-panel { from { transform: translateY(var(--program-reveal-offset, 12px)) scale(.985); } to { transform: none; } }
  @keyframes result-row { from { transform: translateX(-24px); } to { transform: none; } }
  @keyframes result-art { from { transform: scale(.91) translateX(-12px); } to { transform: none; } }
  @keyframes decision-card { from { transform: translateY(18px) scale(.98); } to { transform: none; } }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  html.motion-ready .reference-hero .hero-title-line > span { animation-duration: 570ms; animation-delay: 80ms; }
  html.motion-ready .reference-hero .hero-title-line + .hero-title-line > span { animation-delay: 240ms; }
  html.motion-ready .reference-hero .hero-description { animation-delay: 490ms; }
  html.motion-ready .reference-hero .hero-actions { animation-delay: 680ms; }
  html.motion-ready .reference-hero .hero-cta-note { animation-delay: 850ms; }
}
