.portrait-band:has(img) { height: 5.9rem; aspect-ratio: auto; overflow: visible; }
.service-portrait {
  display: block; position: absolute; z-index: 1; inset: auto 1.1rem -.75rem auto;
  width: 5.65rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--ivory); outline: 1px solid #d1ad62;
  background: var(--sky); box-shadow: 0 8px 20px #142c4650;
}
.service-portrait img {
  position: absolute; top: 50%; left: 50%; width: var(--crop, 360%); height: auto;
  max-width: none; transform: translate(var(--cx, -59%), var(--cy, -52%));
}
.service-card[data-portrait="hotel-dog"] { --crop: 740%; --cx: -76.5%; --cy: -26%; }
.service-card[data-portrait="daycare-dog"] { --crop: 620%; --cx: -27.8%; --cy: -77%; }
.service-card[data-portrait="daycare-cat"] { --crop: 320%; --cx: -56%; --cy: -55%; }
.portrait-band + .service-copy { padding-top: 1.2rem; }
.portrait-band + .service-copy .tag { padding-inline-end: 5.65rem; }

.chapter-copy { box-shadow: 0 16px 35px #142c462b, 10px 10px 0 #d4e7ef; }
.chapter-daycare .chapter-copy { box-shadow: 0 16px 35px #142c462b, -10px 10px 0 #efdacc; }
.chapter-feline .chapter-copy { box-shadow: 0 16px 35px #142c4643, 10px 10px 0 #aac9dc; }
.chapter-outline { border-color: #fbf2d5a6; box-shadow: inset 0 0 0 1px #142c4633; }
.story-divider {
  position: relative; isolation: isolate; overflow: hidden; display:flex; justify-content:center; align-items:center;
  gap:.8rem; min-height: 4.5rem; margin: 0 0 clamp(1.6rem,4vw,3.4rem); border-block:1px solid var(--line);
}
.story-divider::before,.story-divider::after {
  content:''; position:absolute; z-index:-1; inset: 0 32% 0 -15%;
  background: linear-gradient(108deg, transparent, #dceff7db); transform: skewX(-22deg); pointer-events:none;
}
.story-divider::after { inset: 0 -15% 0 32%; background: linear-gradient(108deg,#f1d4c58c, transparent); }
.story-divider .paw-print { width:1.45rem; height:1.45rem; color:var(--action); }
.story-divider .paw-print:nth-child(2) { color:var(--night); transform:translateY(-.22rem) rotate(12deg); }
.story-divider .paw-print:nth-child(3) { color:#ad614d; transform:translateY(.26rem) rotate(-12deg); }
@supports (animation-timeline: view()) {
  @media (min-width: 45rem) and (prefers-reduced-motion: no-preference) {
    .story-divider::before { animation: story-plane-a linear both; animation-timeline: view(); }
    .story-divider::after { animation: story-plane-b linear both; animation-timeline: view(); }
  }
}
@keyframes story-plane-a { from { transform: translateX(-4%) skewX(-22deg); } to { transform: translateX(4%) skewX(-22deg); } }
@keyframes story-plane-b { from { transform: translateX(4%) skewX(-22deg); } to { transform: translateX(-4%) skewX(-22deg); } }

.paw-trail .paw-print { width:1.35rem; height:1.35rem; color:var(--action); }
.paw-trail .paw-print:nth-child(3n+1) { color:#5097bd; }
.paw-trail .paw-print:nth-child(3n) { color:#ce8069; }
.studio-heading {
  max-width: none; position:relative; isolation:isolate; overflow:hidden;
  padding:clamp(1.25rem,4vw,3rem); border:1px solid var(--line); border-radius:.65rem;
  background:linear-gradient(118deg,var(--paper) 8%,var(--sky) 100%); box-shadow:0 9px 28px #142c4610;
}
.studio-heading::after {
  content:''; position:absolute; z-index:-1; width:18rem; height:18rem; inset:-6rem -5rem auto auto;
  border:1px solid #287db443; border-radius:50%; box-shadow:0 0 0 1.2rem #287db410,0 0 0 2.5rem #287db40a;
  pointer-events:none;
}
.studio-heading h1 { font-size:clamp(2.25rem,5vw,4.25rem); }
.studio-demo { background:#faf7f2db; max-width:66ch; }
.studio-steps li { min-height:3rem; padding:.55rem .65rem; border-radius:.28rem; background:#fff9; }
.studio-steps li .paw-print { width:1.2rem; height:1.2rem; }
.studio-steps li[data-step="done"] { background:#dceff76e; }
.studio-steps li[aria-current] { box-shadow:0 3px 10px #142c4616; }
.studio-step-enter { animation: studio-step-in .27s ease-out both; }
@keyframes studio-step-in { from { opacity:.7; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media(max-width: 47rem) {
  .studio-steps li { align-content:start; padding:.45rem .35rem; }
  .studio-heading::after { right:-12rem; }
}
@media(prefers-reduced-motion: reduce) { .studio-step-enter { animation: none; } }
.paw-trail .paw-print { filter: drop-shadow(0 1px 1px #142c4640); }
.portrait-band::before, .portrait-band::after { bottom: 0; border-bottom: 0; }
