/* Cats page: sea-foam ground, the tag that turns over. */
.page-cats { --head-bg: var(--foam); background: var(--foam); }

/* Opening: the portrait is the larger half and breaks out to the right edge. */
@media (min-width: 56rem) {
  .cats-open .opening__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.cats-open .sewn__tag .tag__num { font-size: 1.3rem; }

/* The turning tag. Default state (no script, or reduced motion): both faces side by side. */
.turn-screen { padding-block: clamp(3rem, 7vw, 7rem); }
.turn { --face: min(calc(100vw - 2 * var(--gut)), 30rem); display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.turn__btn {
  display: block; padding: 0; background: none; border: 0; border-radius: 1.5rem;
  color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.turn__btn:disabled { cursor: default; color: var(--ink); }
.turn__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); }
.turn__face {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
  width: var(--face); min-height: clamp(22rem, 48vw, 32rem);
  padding: 4.5rem clamp(1.25rem, 3vw, 1.9rem) 1.9rem;
  background: var(--paper); color: var(--ink);
  border: .09rem solid var(--ink); border-radius: 2.4rem 2.4rem .3rem .3rem;
  box-shadow: .3rem .45rem 0 rgba(30, 42, 71, .13);
  transform: rotate(-1.5deg);
}
.turn__face::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 3rem; height: .14rem; background: var(--stitch); }
.turn__face::after {
  content: ""; position: absolute; left: 50%; top: 1rem; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
  border: .09rem solid var(--ink); border-radius: 50%; background: var(--foam);
}
.turn__face--back { background: var(--butter); transform: rotate(1.5deg); justify-content: flex-start; }
.turn__face--back .label { margin-bottom: .4rem; }
.turn__big {
  font-family: var(--display); font-variation-settings: var(--soft);
  font-size: clamp(3rem, 1.5rem + 6vw, 5.5rem); line-height: .92; letter-spacing: -.03em; text-wrap: balance;
}
.turn__line {
  display: block; padding-block: .75rem; border-top: .07rem dashed rgba(30, 42, 71, .4);
  font-weight: 600; font-variant-caps: all-small-caps; text-transform: lowercase;
  letter-spacing: .14em; font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); line-height: 1.1;
}
.turn__kicker { color: var(--ink); }
.turn__cap { display: none; font-size: .9rem; color: var(--ink-soft); }

/* With motion welcome and script running: one tag, two faces, a slow 3D turn. */
@media (prefers-reduced-motion: no-preference) {
  .js .turn__btn { perspective: 80rem; }
  .js .turn__inner {
    display: grid; gap: 0; width: var(--face); transform-style: preserve-3d;
    transform: rotate(-1.5deg) rotateY(0deg); transition: transform .9s var(--ease);
  }
  .js .turn__btn.is-turned .turn__inner { transform: rotate(-1.5deg) rotateY(180deg); }
  .js .turn__face {
    grid-area: 1 / 1; transform: none; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    transition: visibility 0s linear .45s;
  }
  .js .turn__face--back { transform: rotateY(180deg); visibility: hidden; }
  .js .turn__btn.is-turned .turn__face--front { visibility: hidden; }
  .js .turn__btn.is-turned .turn__face--back { visibility: visible; }
  .js .turn__cap { display: block; }
}

/* Care paragraphs beside the wide photograph. */
.brush { padding-top: clamp(2rem, 5vw, 5rem); }
.brush__grid { align-items: center; }
.brush__fig img { aspect-ratio: 3 / 2; }
.brush__text { --gap: 1.6rem; }
.brush__text .label { margin-bottom: .35rem; }
.brush__text .t-l { max-width: 14em; }
@media (min-width: 56rem) {
  .brush__fig { margin-left: calc(var(--gut) * -1); }
  .brush__fig img { border-radius: 0 .2rem .2rem 0; }
}

/* Paper band: the call tag and the service link. */
.band__grid { align-items: center; }
.band__text { --gap: 1.25rem; }
.band__more { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.band .tag__note { color: #B4442B; }
.band__call { display: flex; justify-content: flex-start; padding: 1rem 0; }
@media (min-width: 56rem) { .band__call { justify-content: center; } }
