/* The mark is deliberately given an intrinsic size before any animation runs. */
.brand > .page-emblem {
  display: block;
  flex: none;
  box-sizing: content-box;
  width: 31px;
  height: 31px;
  margin-left: .1rem;
  padding-left: .55rem;
  border-left: 1px solid #d5bc8e52;
  color: #ead2a4;
}
.page-emblem-accent, .page-emblem-notch { color: #f3deaf }
.page-emblem-ink, .page-emblem-rim, .page-emblem-notch { transform-origin: 18px 18px }
@media (min-width:981px) and (max-width:1190px) {
  .brand > .page-emblem { width: 25px; height: 25px; padding-left: .35rem; margin-left: 0 }
  .mast nav { gap: clamp(9px,1vw,14px) }
}
@media (max-width:700px) {
  .brand > .page-emblem { width: 26px; height: 26px; padding-left: .35rem; margin-left: 0 }
}
@media (max-width:429px) {
  .mast .wrap { width: calc(100% - 1rem) }
  .mast .mast-inner { gap: 4px }
  .mast .brand { gap: 4px }
  .mast .mast-book .icon { display: none }
  .mast .mast-actions { gap: 5px }
  .brand > .page-emblem { width: 23px; height: 23px; padding: 0; border: 0 }
}
@media (max-width:359px) {
  .mast .mast-book { padding-inline: 7px }
}

@media (prefers-reduced-motion:no-preference) {
  .page-emblem-rim, .page-emblem-notch { animation: cabinet-rim-arrive .8s cubic-bezier(.16,.76,.19,1) both }
  .page-emblem-ink { animation: cabinet-ink-arrive .62s cubic-bezier(.19,.73,.19,1) both }
  .brand:is(:hover,:focus-visible) .page-emblem-accent { stroke: #fff4d8 }

  /* The first screen stays readable throughout its entrance, including the booking CTA. */
  .opening-line > span, .opening-line > em,
  .opening-label, .opening-intro, .opening-actions,
  .sv-lead h1 > *, .sv-lead > p, .sv-actions,
  .pg-hero-copy > *, .pg-hero h1 > *,
  .ca-lead h1, .if-main h1, .jr-mast h1, .jr-post-heading h1,
  .booking-page h1, .lg-title h1 {
    animation: cabinet-heading-arrive .65s cubic-bezier(.17,.72,.19,1) backwards;
  }
  .opening-line > em, .sv-lead h1 em, .pg-hero h1 em { animation-delay: 50ms }
  .opening-intro, .pg-hero-copy .pg-lead { animation-delay: 75ms }
  .opening-actions, .pg-hero-copy .pg-actions { animation-delay: 100ms }
  .revealed { animation: cabinet-reading-arrive .57s cubic-bezier(.15,.71,.22,1) backwards }

  /* Elevate the content optically without shifting card dimensions on hover. */
  .if-directory-item a { transition: background-color .24s }
  .if-directory-item a:is(:hover,:focus-visible) { padding-inline: 2px }
  .if-directory-item a > div { transition: transform .3s cubic-bezier(.16,.68,.23,1) }
  .if-directory-item a:is(:hover,:focus-visible) > div { transform: translateX(5px) }
  .lg-text section.motion-entered h2,
  .jr-prose section.motion-entered h2 {
    animation: cabinet-heading-arrive .54s cubic-bezier(.16,.67,.23,1) backwards;
  }
  :is(.if-field-gallery,.if-area-index,.sv-indications,.sv-family-grid ul,
      .ed-clinical-list ul,.ca-topics ul,[data-motion-sequence]).motion-entered > * {
    animation: cabinet-reading-arrive .55s cubic-bezier(.16,.67,.23,1) backwards;
    animation-delay: var(--cabinet-entrance-delay,0ms);
  }
  .motion-entered > :nth-child(3n+2) { --cabinet-entrance-delay: 45ms }
  .motion-entered > :nth-child(3n) { --cabinet-entrance-delay: 85ms }

  .btn, .mast-book { overflow: clip; isolation: isolate }
  .mast-book { position: relative }
  .btn::before, .mast-book::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: -35% auto -35% 0;
    width: 37%;
    background: linear-gradient(90deg, transparent, #fff5d83d 50%, transparent);
    transform: translateX(-150%) skewX(-20deg);
  }
  .btn:focus-visible::before, .mast-book:focus-visible::before {
    animation: cabinet-sheen .62s ease-out;
  }
  .btn:active, .mast-book:active { transform: translateY(0) scale(.98) }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine) {
  .btn:hover::before, .mast-book:hover::before { animation: cabinet-sheen .62s ease-out }
}
@supports (animation-timeline:scroll()) {
  @media (prefers-reduced-motion:no-preference) {
    .mast::after {
      content: "";
      position: absolute;
      inset: auto 0 -1px;
      height: 2px;
      pointer-events: none;
      background: linear-gradient(90deg,#ac8a51,#f0d7a4 85%,#f8eaca);
      transform-origin: 0 50%;
      animation: cabinet-reading-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes cabinet-rim-arrive {
  from { transform: rotate(-23deg) }
  to { transform: rotate(0) }
}
@keyframes cabinet-ink-arrive {
  from { transform: scale(.88); opacity: .8 }
  to { transform: scale(1); opacity: 1 }
}
@keyframes cabinet-heading-arrive {
  from { transform: translateY(.1em) }
  to { transform: none }
}
@keyframes cabinet-reading-arrive {
  from { transform: translateY(7px); opacity: .86 }
  to { transform: none; opacity: 1 }
}
@keyframes cabinet-reading-progress {
  from { transform: scaleX(0) }
  to { transform: scaleX(1) }
}
@keyframes cabinet-sheen {
  from { transform: translateX(-150%) skewX(-20deg) }
  to { transform: translateX(390%) skewX(-20deg) }
}
