/* Stable motion layer. Each entrance has one permanent visible end state. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
.hero-photo, .hero-copy, .hero-cta { animation: none; }
.hero-photo { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .motion-pending .hero .header,
  .motion-pending .hero-copy > *,
  .motion-pending .hero-cta { opacity: 0; }
  .motion-intro .header { animation: stable-header-enter .7s var(--motion-ease) both; }
  .motion-intro .hero-copy > * { animation: stable-copy-enter .85s var(--motion-ease) both; }
  .motion-intro .hero-copy > :nth-child(1) { animation-delay: .08s; }
  .motion-intro .hero-copy > :nth-child(2) { animation-delay: .18s; }
  .motion-intro .hero-copy > :nth-child(3) { animation-delay: .28s; }
  .motion-intro .hero-cta { animation: stable-fade-enter .8s .38s both; }
  .motion-active .motion-item {
    opacity: 0; translate: 0 18px;
    transition: opacity .65s ease-out, translate .8s var(--motion-ease);
  }
  .motion-active .motion-still { translate: none; }
  .motion-active .motion-item.is-revealed { opacity: 1; translate: none; }

}
@keyframes stable-header-enter {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0; }
}
@keyframes stable-copy-enter {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0; }
}
@keyframes stable-fade-enter { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 651px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-photo {
    transform: translate3d(0, var(--hero-offset, 0px), 0) scale(1.045);
    will-change: transform;
  }
}
.reading-progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 30;
  background: #bc9a70; transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.desktop-nav a { position: relative; transition: opacity .25s; }
.desktop-nav a::after {
  content: ""; position: absolute; bottom: 5px; left: 0; right: 0;
  height: 1px; background: currentColor; transform: scaleX(0);
  transform-origin: right; transition: transform .45s var(--motion-ease);
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after {
  transform: scaleX(1); transform-origin: left;
}
.book-top, .gold-button, .hero-cta {
  transition: background .3s, color .3s, box-shadow .4s, gap .4s var(--motion-ease);
}
.hero-cta:hover { box-shadow: 0 8px 28px #23191224; }
.gold-button:hover { box-shadow: 0 9px 24px #49392f24; }
.hero-cta span, .gold-button .icon, .location-link .icon {
  transition: transform .45s var(--motion-ease);
}
.hero-cta:hover span { transform: translateX(3px); }
.gold-button:hover .icon, .location-link:hover .icon { transform: translate(3px, -3px); }
.course-links a, .text-link { position: relative; }
.course-links a::after, .text-link::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--motion-ease);
}
.course-links a:hover::after, .text-link:hover::after,
.course-links a:focus-visible::after, .text-link:focus-visible::after {
  transform: scaleX(1); transform-origin: left;
}
.founder-photo img { transition: transform 1.1s var(--motion-ease); }
.treatment-editorial img { transition: filter .6s; }
.treatment { transition: border-color .4s; }
.treatment:focus-within, .treatment:hover { border-bottom-color: var(--gold); }
.treatment button span { transition: translate .4s var(--motion-ease); }
.treatment button:hover span { translate: 6px 0; }
.treatment button .icon { transition: transform .5s var(--motion-ease), opacity .3s; }
.treatment.selected button .icon { opacity: 1; }
.mobile-nav {
  transform-origin: top right;
  transition: opacity .3s, transform .45s var(--motion-ease), visibility .3s;
}
.mobile-nav:not(.open) { transform: translateY(-10px) scale(.98); }
.mobile-nav.open a { animation: menu-item-enter .5s var(--motion-ease) both; }
.mobile-nav.open a:nth-child(2) { animation-delay: .045s; }
.mobile-nav.open a:nth-child(3) { animation-delay: .09s; }
.mobile-nav.open a:nth-child(4) { animation-delay: .135s; }
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before, .contact::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(240px, 36vw, 460px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid #71543b12;
  animation: contour-drift 14s ease-in-out infinite alternate paused;
}
.contact::before { top: -25%; right: -15%; }
.contact::after { bottom: -40%; left: -18%; animation-delay: -7s; }
.contact.motion-in-view::before, .contact.motion-in-view::after { animation-play-state: running; }
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 20;
  display: grid; place-items: center; width: 46px; height: 46px;
  padding: 0; border: 1px solid #71543b30; border-radius: 50%;
  color: var(--gold); background: #f9f6f0f5; box-shadow: 0 4px 18px #49392f10;
  opacity: 0; visibility: hidden; translate: 0 12px; pointer-events: none;
  transition: opacity .3s, visibility .3s, translate .4s var(--motion-ease), background .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; translate: 0; pointer-events: auto; }
.back-to-top:hover { background: #ede6db; translate: 0 -3px; }
.back-to-top img { width: 18px; height: 18px; transform: rotate(-90deg); }
@keyframes menu-item-enter {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0; }
}
@keyframes contour-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-20px, 22px) scale(1.08); }
}
@media (hover: hover) and (pointer: fine) {
  .founder-photo:hover img { transform: scale(1.025); }
}
@media (max-width: 650px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-photo { transform: none !important; will-change: auto; }
  .founder-photo:hover img { transform: none; }
  .treatment button:hover span, .back-to-top { translate: none; }
}
