/* Home-only motion: preserve typography, dimensions and native scrolling. */
body.home-motion { --motion-ease:cubic-bezier(.22,1,.36,1); }
/* Prepare offscreen elements, then release a single, visible entrance. */
body.home-motion .motion-enter {
  translate:0 0;
  scale:1;
  transition:translate 1.05s var(--motion-ease),scale 1.05s var(--motion-ease);
  transition-delay:var(--entry-delay,0ms);
}
body.home-motion .motion-pending { translate:0 64px; transition:none; }
body.home-motion .about-photo-story.motion-pending { translate:-40px 48px; scale:.95; }
body.home-motion .education-card:nth-child(2) { --entry-delay:90ms; }
body.home-motion .education-card:nth-child(3) { --entry-delay:180ms; }
body.home-motion .education-card:nth-child(4) { --entry-delay:270ms; }
body.home-motion .next-chapter-group:nth-child(2),
body.home-motion .contact-links { --entry-delay:120ms; }
/* Start with the stylesheet, before the first paint: no opacity reset in JS. */
@media(prefers-reduced-motion:no-preference) {
  body.portfolio-presentation .hero-copy { animation:hero-enter 1.1s cubic-bezier(.22,1,.36,1) both; }
  body.portfolio-presentation .hero-side { animation:hero-enter 1.1s cubic-bezier(.22,1,.36,1) .15s both; }
}
@keyframes hero-enter { from { translate:0 48px; } to { translate:0 0; } }
@media(max-width:760px) {
  body.home-motion .motion-pending { translate:0 38px; }
  body.home-motion .about-photo-story.motion-pending { translate:0 38px; scale:.97; }
  body.home-motion .education-card { --entry-delay:0ms; }
}
body.home-motion > .home-nav { transition:box-shadow .35s ease,background .35s ease; }
body.home-motion > .home-nav.has-scrolled { box-shadow:0 4px 24px rgba(23,21,19,.07); }
body.home-motion .hero::after { animation:none; translate:0 var(--hero-drift,0px); }
body.home-motion .about-photo-story figure,
body.home-motion .photo-stamp { animation:none; }
body.home-motion .home-case-carousel .case-card img { transition:scale .8s var(--motion-ease); }
body.home-motion .cta-arrow { transition:translate .35s var(--motion-ease); }
body.home-motion .career-chevron { transition:transform .4s var(--motion-ease); }
body.home-motion .mba-dialog[open] { animation:dialog-arrive .38s var(--motion-ease); }
body.home-motion .mba-dialog[open]::backdrop { animation:backdrop-arrive .3s ease; }
@media(hover:hover) and (pointer:fine) {
  body.home-motion .home-case-carousel .case-card:hover img { scale:1.035; }
  body.home-motion a:hover > .cta-arrow { translate:3px -2px; }
  body.home-motion a:hover > .cta-arrow-right { translate:4px 0; }
}
@keyframes dialog-arrive { from { opacity:0; translate:0 18px; scale:.98; } to { opacity:1; translate:0 0; scale:1; } }
@keyframes backdrop-arrive { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  body.home-motion *, body.home-motion *::before, body.home-motion *::after { animation:none!important; transition:none!important; }
  body.home-motion .motion-enter, body.home-motion .about-photo-story, body.home-motion .hero::after, body.home-motion .cta-arrow { translate:none!important; }
  body.home-motion .motion-enter, body.home-motion .home-case-carousel .case-card img { scale:1!important; }
}
