/* Veterinary case study. Scoped to this page. */

.vet {
  --vet-lilac: #efe6f6;
  --vet-lilac-deep: #6d4d86;
  overflow-x: clip;
}

.vet .study-hero h1 {
  max-width: 12em;
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
}

.vet .study-lede {
  max-width: 40rem;
}

.vet-problem {
  background:
    linear-gradient(180deg, rgba(248, 197, 194, 0.42), rgba(251, 247, 241, 0) 16rem),
    var(--cream);
}

.vet-realize {
  background:
    linear-gradient(180deg, var(--vet-lilac), rgba(251, 247, 241, 0) 22rem),
    var(--cream);
}

.vet-audience {
  background: var(--cream);
}

.vet-site {
  background:
    linear-gradient(180deg, var(--teal-soft), rgba(251, 247, 241, 0) 18rem),
    var(--cream);
}

.vet-beforebuy {
  background:
    linear-gradient(180deg, rgba(227, 178, 60, 0.16), rgba(251, 247, 241, 0) 14rem),
    var(--cream);
}

.vet-student {
  background:
    linear-gradient(180deg, rgba(239, 230, 246, 0.9), rgba(251, 247, 241, 0) 20rem),
    var(--cream);
}

.vet-mail {
  background: var(--ink);
  color: var(--cream);
}

.vet-mail h2,
.vet-mail .study-copy {
  color: var(--cream);
}

.vet-room {
  background:
    linear-gradient(180deg, rgba(184, 201, 163, 0.35), rgba(251, 247, 241, 0) 16rem),
    var(--cream);
}

.vet-swag {
  background: var(--cream);
}

.vet-show {
  background:
    linear-gradient(180deg, var(--vet-lilac), rgba(251, 247, 241, 0) 24rem),
    var(--cream);
}

.vet-line {
  background: var(--cream);
}

.vet-unfinished {
  background:
    linear-gradient(180deg, rgba(95, 174, 168, 0.16), rgba(251, 247, 241, 0) 12rem),
    var(--cream);
}

.vet-close {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.vet-scribble {
  margin: 1.4rem 0 0;
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--vet-lilac-deep);
}

.vet-scribble--ink {
  color: var(--pink-deep);
}

.vet-shift {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 46rem;
}

.vet-shift__before {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(229, 84, 128, 0.7);
}

.vet-shift__new {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--teal);
}

.vet-shift__new li {
  margin: 0;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

.vet-shift__new li:nth-child(1) { font-size: clamp(1.7rem, 4vw, 2.35rem); }
.vet-shift__new li:nth-child(2) { font-size: clamp(2rem, 5vw, 2.9rem); }
.vet-shift__new li:nth-child(3) {
  max-width: 18em;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 500;
}
.vet-shift__new li:nth-child(4) {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  color: var(--pink-deep);
}

.vet-frame {
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(1.8rem, 4vw, 2.8rem) auto 0;
}

.vet-frame--lead {
  margin-top: clamp(2rem, 5vw, 3.2rem);
}

.vet-frame .shot,
.vet-pair .shot,
.vet-sitegrid .shot,
.vet-beyond .shot,
.vet-roomgrid .shot,
.vet-keep .shot,
.vet-collage .shot {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--paper);
}

.vet-frame .shot img,
.vet-pair .shot img,
.vet-sitegrid .shot img,
.vet-beyond .shot img,
.vet-roomgrid .shot img,
.vet-keep .shot img,
.vet-collage .shot img {
  max-height: none;
}

.vet-cap {
  max-width: 40rem;
  margin: 0.75rem 0.1rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.vet-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: end;
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(1.4rem, 3vw, 2rem) auto 0;
}

.vet-pair figure,
.vet-beyond figure,
.vet-keep figure,
.vet-collage figure,
.vet-roomgrid figure,
.vet-sitegrid figure {
  margin: 0;
}

.vet-pair__aside {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.vet-sitegrid,
.vet-roomgrid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.vet-sitegrid h2,
.vet-roomgrid h2 {
  max-width: 12ch;
}

.vet-pull {
  margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.vet-beyond {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(0.8rem, 2vw, 1.3rem);
  align-items: start;
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(1.6rem, 4vw, 2.4rem) auto 0;
}

.vet-beyond__path {
  margin-top: clamp(2rem, 6vw, 4.5rem);
}

.vet-mailgrid {
  max-width: 40rem;
}

.vet-mail .study-copy p + p {
  margin-top: 1rem;
}

.vet-keep {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  align-items: start;
}

.vet-keep__print {
  grid-row: span 2;
}

.vet-collage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(0.75rem, 2vw, 1.1rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  align-items: start;
}

.vet-collage__floor {
  grid-column: 1 / -1;
}

.vet-collage__table {
  align-self: start;
}

.vet-collage__mock {
  margin-top: 0;
}

.vet-route {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}

.vet-route svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.vet-route__path {
  fill: none;
  stroke: var(--vet-lilac-deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.vet-route__stop circle {
  fill: var(--teal);
}

.vet-route__stop text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -0.03em;
  fill: var(--ink);
}

.vet-route__stop:nth-child(3) text,
.vet-route__stop:nth-child(5) text {
  font-size: 22px;
}

.vet-route__stop:nth-child(6) text {
  font-size: 15px;
  font-style: italic;
}

.vet-route__note {
  margin: 0.4rem 0 0;
  max-width: 22rem;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--pink-deep);
}

.vet-unfinished h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.vet-unfinished__copy {
  max-width: 38rem;
  font-size: 1.2rem;
}

.vet-close__label {
  max-width: 16ch;
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.vet-close__line {
  max-width: 16em;
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.vet-byline {
  margin: 1.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.vet-back {
  margin: 1.35rem 0 0;
}

.vet-back a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--blush);
}

.vet-back a:hover {
  color: var(--pink-deep);
  border-bottom-color: var(--pink);
}

.vet .shot:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .vet-route:not(.is-on) .vet-route__path {
    stroke-dashoffset: 1;
  }

  .js .vet-route.is-on .vet-route__path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.5s ease;
  }

  .js .vet-shift:not(.is-on) .vet-shift__new li {
    opacity: 0;
    transform: translateY(10px);
  }

  .js .vet-shift.is-on .vet-shift__new li {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .js .vet-shift.is-on .vet-shift__new li:nth-child(2) { transition-delay: 0.08s; }
  .js .vet-shift.is-on .vet-shift__new li:nth-child(3) { transition-delay: 0.16s; }
  .js .vet-shift.is-on .vet-shift__new li:nth-child(4) { transition-delay: 0.24s; }
}

@media (max-width: 800px) {
  .vet .study-meta {
    grid-template-columns: 1fr;
  }

  .vet-pair,
  .vet-sitegrid,
  .vet-roomgrid,
  .vet-beyond,
  .vet-keep,
  .vet-collage {
    grid-template-columns: 1fr;
  }

  .vet-pair__aside,
  .vet-beyond__path,
  .vet-collage__mock {
    margin-top: 0;
    margin-bottom: 0;
  }

  .vet-keep__print {
    grid-row: auto;
  }

  .vet-collage__floor {
    grid-column: auto;
  }

  .vet-route__stop text {
    font-size: 15px;
  }
}
