/* Dogs page: bleeding portrait opening, the lit coat sentence, asymmetric service rows. */

/* Opening: portrait runs off the left edge of the viewport */
.dg-open { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: end; padding-block: 0 clamp(3rem, 7vw, 7rem); }
.dg-open__media { margin: 0; }
.dg-open__media img { border-radius: 0 .2rem .2rem 0; }
.dg-open__text { padding-inline: var(--gut); }
.dg-open__text > .stitch--short { margin-top: 1.5rem; }
@media (min-width: 56rem) {
  .dg-open { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-right: var(--gut); padding-top: clamp(1.5rem, 3vw, 3rem); }
  .dg-open__text { padding-inline: 0; padding-bottom: clamp(1rem, 4vw, 4rem); }
}
@media (max-width: 55.99rem) {
  .dg-open__media img { aspect-ratio: 4 / 4.2; object-position: 50% 30%; }
}

/* The set piece: a sentence that lights as it is read */
.dg-kicker { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); color: var(--ink-soft); }
.coat {
  font-family: var(--display); font-variation-settings: var(--soft);
  font-size: clamp(2.1rem, 1rem + 5.4vw, 5.9rem); line-height: 1.2; letter-spacing: -.025em;
  max-width: 17em; text-wrap: balance; color: var(--ink);
}
.coat__w {
  padding-bottom: .09em;
  background: var(--stitch) no-repeat 0 100% / 100% .07em;
}
.coat.is-live .coat__w {
  color: color-mix(in srgb, var(--ink) 60%, var(--paper));
  background-size: 0% .07em;
  transition: color .7s var(--ease), background-size .9s var(--ease);
}
.coat.is-live .coat__w.is-lit { color: var(--ink); background-size: 100% .07em; }

/* Service rows */
.dg-row .grid { align-items: center; }
.dg-row__text p { max-width: 30em; }
.dg-row__text .stitch--short { margin-top: 1.5rem; }
.dg-row .sewn img { aspect-ratio: 16 / 10; }
.dg-row .sewn--tall img { aspect-ratio: 4 / 5; }

/* Row 2: golden runs the full width of the screen */
.dg-row--wide { padding-top: 0; }
.dg-wide { margin: 0 0 clamp(2.5rem, 5vw, 4.5rem); }
.dg-wide img { border-radius: 0; aspect-ratio: 4 / 3; object-position: 55% 50%; }
.dg-row .dg-wide img { aspect-ratio: 4 / 3; }
@media (min-width: 48rem) { .dg-row .dg-wide img { aspect-ratio: 1672 / 717; } }
.dg-wide__copy { align-items: start; }
.dg-wide__copy p { max-width: 30em; }
.dg-wide__copy .stack > * + * { margin-top: 1.25rem; }

/* Row 3: puppy sits on the right, tag on the left edge */
.dg-puppy { max-width: 32rem; width: 100%; justify-self: end; }
@media (max-width: 55.99rem) { .dg-puppy { justify-self: start; } }

/* Calm groom */
.dg-calm .grid { align-items: end; }
.dg-calm__text p { max-width: 30em; }
.dg-calm .fig img { aspect-ratio: 3 / 2; }

/* Close */
.dg-close .grid { align-items: end; }
.dg-close__tag { display: flex; justify-content: flex-start; padding-top: 1rem; }
@media (min-width: 56rem) { .dg-close__tag { justify-content: flex-end; } }
.dg-close .tag--lg { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .coat .coat__w { color: var(--ink) !important; background-size: 100% .07em !important; }
}
