:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-quick: 200ms;
  --motion-enter: 720ms;
}

.hero-line {
  display: block;
  padding: 0.05em 0 0.13em;
  margin: -0.05em 0 -0.13em;
  overflow: hidden;
}
.hero-line > span,
.hero-line > em {
  display: inline-block;
  animation: hero-type 950ms var(--motion-ease) both;
}
.hero-line + .hero-line > em {
  animation-delay: 95ms;
}
.hero-kicker {
  animation: quiet-arrival 660ms var(--motion-ease) both;
}
.hero-description {
  animation: quiet-arrival 720ms 95ms var(--motion-ease) both;
}
.hero-ctas,
.hero-note {
  animation: quiet-arrival 690ms 160ms var(--motion-ease) both;
}
.hero-visual > img {
  animation: portrait-opening 1150ms var(--motion-ease) both;
}
.hero-seal b {
  animation: seal-turn 1350ms var(--motion-ease) both;
}
.image-caption {
  animation: quiet-arrival 820ms 185ms var(--motion-ease) both;
}

@keyframes hero-type {
  from {
    transform: translateY(0.53em);
    opacity: 0.72;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes quiet-arrival {
  from {
    transform: translateY(12px);
    opacity: 0.68;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes portrait-opening {
  from {
    clip-path: inset(4% 0 4% 7%);
    transform: scale(1.055);
    opacity: 0.86;
  }
  to {
    clip-path: inset(0);
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes seal-turn {
  from {
    transform: rotate(-42deg);
    opacity: 0.65;
  }
  to {
    transform: rotate(0);
    opacity: 1;
  }
}
@keyframes heading-arrival {
  from {
    transform: translateY(16px);
    opacity: 0.65;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes card-arrival {
  from {
    transform: translateY(20px) scale(0.985);
    opacity: 0.76;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes detail-arrival {
  from {
    transform: translateX(16px);
    opacity: 0.74;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes image-unveil {
  from {
    clip-path: inset(0 0 8% 6%);
    opacity: 0.8;
  }
  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

[data-reveal="heading"][data-entered] > :is(div, h2) {
  animation: heading-arrival var(--motion-enter) var(--motion-ease) both;
}
[data-reveal="heading"][data-entered] > :is(div, h2):nth-child(2) {
  animation-delay: 65ms;
}
[data-reveal="card"][data-entered] {
  animation: card-arrival 650ms var(--motion-ease) both;
}
[data-reveal="card"][data-entered]:nth-of-type(2) {
  animation-delay: 60ms;
}
[data-reveal="card"][data-entered]:nth-of-type(3) {
  animation-delay: 110ms;
}
[data-reveal="card"][data-entered]:nth-of-type(4) {
  animation-delay: 145ms;
}
[data-reveal="detail"][data-entered] {
  animation: detail-arrival 670ms var(--motion-ease) both;
}
[data-reveal="detail"][data-entered]:nth-child(2) {
  animation-delay: 55ms;
}
[data-reveal="detail"][data-entered]:nth-child(3) {
  animation-delay: 95ms;
}
[data-reveal="mask"][data-entered] {
  animation: image-unveil 900ms var(--motion-ease) both;
}

.panel-swap {
  animation: panel-arrival 350ms var(--motion-ease) both;
}
.mobile-nav:not([hidden]) {
  animation: menu-arrival 340ms var(--motion-ease) both;
}
dialog[open] {
  animation: dialog-arrival 350ms var(--motion-ease) both;
}
dialog[open]::backdrop {
  animation: backdrop-arrival 280ms ease-out both;
}
.step-shell {
  animation: panel-arrival 320ms var(--motion-ease) both;
}
.success-icon {
  animation: success-arrival 520ms var(--motion-ease) both;
}
.form-error {
  animation: panel-arrival 270ms var(--motion-ease) both;
}

@keyframes panel-arrival {
  from {
    transform: translateY(7px);
    opacity: 0.72;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes menu-arrival {
  from {
    transform: translateY(-8px);
    opacity: 0.72;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes dialog-arrival {
  from {
    transform: translateY(12px) scale(0.985);
    opacity: 0.72;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes backdrop-arrival {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes success-arrival {
  from {
    transform: scale(0.83);
    opacity: 0.62;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.action-arrow {
  display: inline-block;
  transition: transform var(--motion-quick) var(--motion-ease);
}
:is(.button, .text-link, .service-card-bottom button, .plain-link):hover
  .action-arrow {
  transform: translate(3px, -2px);
}
.time-choice span {
  transition:
    background var(--motion-quick),
    color var(--motion-quick),
    border-color var(--motion-quick);
}
.service-tabs button::after,
.location-tabs button::after {
  transition: transform 220ms var(--motion-ease);
  transform-origin: left;
}
.service-tabs button[aria-selected="true"]::after,
.location-tabs button[aria-selected="true"]::after {
  animation: tab-underline 240ms var(--motion-ease) both;
}
@keyframes tab-underline {
  from {
    transform: scaleX(0.35);
  }
  to {
    transform: scaleX(1);
  }
}
.menu-toggle span {
  transition: transform 220ms var(--motion-ease);
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .salon-photo {
      overflow: hidden;
    }
    .salon-photo img {
      animation: architecture-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes architecture-drift {
      from {
        transform: scale(1.08) translateY(-2.8%);
      }
      to {
        transform: scale(1.08) translateY(2.8%);
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .button:hover,
  .service-card:hover img {
    transform: none;
  }
}
