:root {
  --marquee-duration: 43s;
  --marquee-gap: 10px;
  --breed-card-width: 168px;
}

.header-brand-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
}

.header-brand-logo img {
  display: block;
  width: auto;
  height: 42px;
  mix-blend-mode: screen;
}

.dog-marquee {
  position: relative;
  padding-top: 82px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: var(--olive);
  color: #fff;
}

.dog-marquee-viewport {
  width: 100%;
  padding: 9px 0 11px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.dog-marquee-track {
  display: flex;
  width: max-content;
  opacity: 0;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.dog-marquee.is-ready .dog-marquee-track {
  opacity: 1;
  will-change: transform;
  animation: dog-marquee var(--marquee-duration) linear infinite;
  backface-visibility: hidden;
}

.dog-marquee-set {
  display: flex;
  flex: none;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
}

.breed-card {
  position: relative;
  flex: 0 0 var(--breed-card-width);
  width: var(--breed-card-width);
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #29362d;
  contain: layout paint;
}

.breed-card::after {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(20, 28, 22, .66));
}

.breed-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breed-card__name {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 7px;
  left: 9px;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .055em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
}

@keyframes dog-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.about-photo img {
  object-position: 50% 48%;
}

.gallery .wide img {
  object-position: 50% 32%;
}

.gallery .tall img {
  object-position: 50% 40%;
}

.service-area {
  padding-top: 0;
  background: var(--cream);
}

.service-area-grid {
  display: grid;
  gap: 36px;
}

.service-area-copy h2 {
  max-width: 550px;
  font-size: clamp(2.5rem, 10vw, 4.6rem);
}

.service-area-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 24px 0 26px;
  color: var(--muted);
  font-size: 17px;
}

.service-area-copy > small {
  display: block;
  max-width: 470px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.map-frame {
  position: relative;
  height: clamp(340px, 92vw, 400px);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #cbbda9;
  border-radius: 4px 45px 4px 4px;
  background: #d7ded2;
  box-shadow: 0 18px 50px rgba(36, 47, 39, .11);
  isolation: isolate;
}

.map-fallback,
#service-map {
  position: absolute;
  inset: 0;
}

.map-fallback {
  z-index: 1;
  display: grid;
  place-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 68% 28%, rgba(201, 111, 82, .22) 0 15%, transparent 15.5%),
    linear-gradient(145deg, #e8dbc7 0 52%, #aebfb6 52.3% 100%);
  text-align: center;
  transition: opacity .3s ease;
}

.map-fallback::before {
  content: "";
  width: 150px;
  height: 150px;
  margin: 0 auto -118px;
  border: 2px solid var(--terra);
  border-radius: 50%;
  background: rgba(201, 111, 82, .12);
}

.map-fallback span {
  position: relative;
  font: italic 38px/1 var(--serif);
  letter-spacing: -.04em;
}

.map-fallback p {
  position: relative;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-frame.has-tiles .map-fallback {
  opacity: 0;
}

#service-map {
  z-index: 2;
  background: transparent;
  font-family: var(--sans);
}

#service-map .leaflet-tile-pane {
  filter: sepia(.22) saturate(.72) contrast(.9) brightness(1.04);
}

#service-map .leaflet-control-attribution {
  margin: 0 5px 5px 0;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 253, 249, .86);
  color: #526058;
  font-size: 9px;
}

#service-map .leaflet-control-attribution a {
  color: #43564a;
  text-decoration: underline;
}

#service-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(39, 49, 43, .2);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(36, 47, 39, .12);
}

#service-map .leaflet-control-zoom a {
  border: 0;
  background: rgba(255, 253, 249, .92);
  color: var(--olive);
}

.palma-marker {
  border: 0;
  background: transparent;
}

.palma-marker-dot {
  display: block;
  width: 20px;
  height: 20px;
  border: 5px solid #fffdf9;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 4px 14px rgba(39, 49, 43, .35);
}

#service-map .palma-label {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  box-shadow: 0 5px 18px rgba(39, 49, 43, .22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#service-map .palma-label::before {
  border-top-color: var(--olive);
}

@media (min-width: 700px) {
  :root {
    --marquee-gap: 12px;
    --breed-card-width: 210px;
  }

  .header-brand-logo img {
    height: 52px;
  }

  .dog-marquee {
    padding-top: 94px;
  }

  .dog-marquee-viewport {
    padding: 11px 0 13px;
  }

  .breed-card {
    border-radius: 16px;
  }

  .map-frame {
    height: 460px;
  }
}

@media (min-width: 1000px) {
  :root {
    --marquee-gap: 14px;
    --breed-card-width: 270px;
  }

  .gallery .wide img {
    object-position: 50% 36%;
  }

  .gallery .tall img {
    object-position: 50% 42%;
  }

  .service-area-grid {
    grid-template-columns: .76fr 1.24fr;
    align-items: center;
    gap: 7vw;
  }

  .map-frame {
    height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dog-marquee.is-ready .dog-marquee-track {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .dog-marquee-set[aria-hidden="true"] {
    display: none;
  }
}


/* Responsive composition for the portrait-format 8.png hero. */
.footer-brand-logo {
  display: inline-block;
  line-height: 0;
}

.footer-brand-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 60px;
  mix-blend-mode: screen;
}


.hero-media {
  isolation: isolate;
  background: var(--olive);
}

.hero-content {
  z-index: 2;
}

.hero-media img {
  position: absolute;
  right: clamp(-64px, calc(20vw - 128px), -42px);
  bottom: 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(24, 32, 26, .90) 0%, rgba(24, 32, 26, .72) 47%, rgba(24, 32, 26, .20) 79%, rgba(24, 32, 26, .03) 100%),
    linear-gradient(0deg, rgba(18, 24, 20, .58), transparent 54%);
}

@media (min-width: 481px) {
  .hero-media img {
    right: 0;
  }
}

@media (min-width: 700px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(24, 32, 26, .88) 0%, rgba(24, 32, 26, .64) 44%, rgba(24, 32, 26, .14) 75%, rgba(24, 32, 26, .01) 100%),
      linear-gradient(0deg, rgba(18, 24, 20, .44), transparent 55%);
  }
}

@media (min-width: 1000px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(24, 32, 26, .88) 0%, rgba(24, 32, 26, .64) 41%, rgba(24, 32, 26, .10) 68%, rgba(24, 32, 26, 0) 100%),
      linear-gradient(0deg, rgba(18, 24, 20, .34), transparent 50%);
  }
}
