/* A shared ribbon motif: connection paths in the brand blue and teal. */
.hero { position: relative; isolation: isolate; }
.hero::after {
  content: ''; position: absolute; width: 260px; height: 260px;
  top: -180px; left: 37%; border: 32px solid #d4e8e6;
  border-radius: 50%; z-index: -1; pointer-events: none;
}
.hero__image { position: relative; isolation: isolate; }
.hero__image::before {
  content: ''; position: absolute; inset: -16px -14px 18px 28px;
  background: #d5e9e5; border-radius: 8px 64px 8px 8px;
  transform: rotate(3deg); z-index: -1; pointer-events: none;
}
.hero__image::after {
  content: ''; position: absolute; width: 150px; height: 108px;
  right: -22px; bottom: -40px;
  background: url('../images/abstract-ribbon.svg') center / contain no-repeat;
  pointer-events: none;
}
.page-hero--visual { overflow: hidden; }
.page-hero__art { position: relative; isolation: isolate; }
.page-hero__art::before {
  content: ''; position: absolute; width: 110px; height: 110px;
  right: -14px; top: -10px; border-radius: 50%;
  background: #f4d99e; z-index: -1; pointer-events: none;
}
.page-hero__art::after {
  content: ''; position: absolute; width: 105px; height: 76px;
  left: -16px; bottom: -12px;
  background: url('../images/abstract-ribbon.svg') center / contain no-repeat;
  pointer-events: none;
}
.editorial-figure { position: relative; isolation: isolate; }
.editorial-figure::before {
  content: ''; position: absolute; width: 90px; height: 90px;
  border: 14px solid #eed29a; border-radius: 50%;
  left: -20px; top: -20px; z-index: -1; pointer-events: none;
}
.service-coverage { position: relative; overflow: hidden; isolation: isolate; }
.service-coverage::before {
  content: ''; position: absolute; width: 200px; height: 200px;
  left: -140px; bottom: -105px; border: 24px solid #bdddd7;
  border-radius: 50%; z-index: -1; pointer-events: none;
}
@media (max-width: 720px) {
  .hero__image { margin: 10px 8px 24px 0; }
  .hero__image::before { inset: -10px -8px 12px 20px; transform: rotate(2deg); }
  .hero__image::after { width: 100px; height: 72px; right: -8px; bottom: -24px; }
  .page-hero__art::before { width: 76px; height: 76px; right: -6px; }
  .page-hero__art::after { width: 80px; height: 58px; left: -4px; }
  .editorial-figure::before { width: 64px; height: 64px; left: -8px; top: -12px; border-width: 10px; }
}

/* Animate only decorative layers; the photo, copy and layout remain stationary. */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: hero-ring-drift 12s ease-in-out infinite; }
  .hero__image::before { animation: hero-panel-drift 14s ease-in-out infinite; }
  .hero__image::after { animation: hero-ribbon-drift 9s ease-in-out infinite; }
}
@keyframes hero-ring-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 12px 8px; }
}
@keyframes hero-panel-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: -4px -6px; }
}
@keyframes hero-ribbon-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: -6px -8px; rotate: -3deg; }
}
@media (max-width: 640px) {
  @keyframes hero-ring-drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 6px 4px; }
  }
  @keyframes hero-ribbon-drift {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: -3px -4px; rotate: -2deg; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero__image::before, .hero__image::after { animation: none; }
}
