/* Hero photo: a lawyer holding up a sealed certificate, with a localized
   thought bubble drawn on top (HTML text, so every language and page can
   carry its own line). Positions are % of the photo, so the bubble keeps
   pointing at his head at every width. */
.hero-photo {
  position: relative;
  margin: 0;
  width: 100%;
  container-type: inline-size;
  border-radius: 18px;
  overflow: hidden;
  background: #d9d6cf;
  box-shadow: 0 22px 55px rgba(13, 27, 51, .16);
  aspect-ratio: 1448 / 1086;
}
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero .hero-photo { max-width: 680px; justify-self: center; }

/* cloud outline shared by the frosted layer and its shadow */
.hero-thought {
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 250' preserveAspectRatio='none'%3E%3Cpath d='M64 206C26 206 6 178 18 148C-2 126 8 86 44 80C44 44 90 22 126 40C146 10 204 4 228 32C254 8 310 14 322 52C364 50 396 82 384 118C402 144 386 190 346 192C344 226 298 244 262 222C238 248 182 248 160 224C128 246 78 238 64 206Z'/%3E%3C/svg%3E");
  position: absolute;
  left: 2.5%;
  top: 4%;
  width: 47%;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 9.5% 9% 10.5%;
  text-align: center;
  color: #0D1B33;
  isolation: isolate;
  animation: hero-thought-in .55s cubic-bezier(.2, .9, .3, 1.25) 1.15s both;
  transform-origin: 85% 90%;
}
.hero-thought::before, .hero-thought::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--cloud) center / 100% 100% no-repeat;
  mask: var(--cloud) center / 100% 100% no-repeat;
}
.hero-thought::before {
  z-index: -2;
  background: rgba(13, 27, 51, .28);
  transform: translate(0, 3%);
  filter: blur(9px);
}
.hero-thought::after {
  z-index: -1;
  background: rgba(252, 251, 247, .74);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
}
.hero-thought-text {
  display: block;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(11px, 3.75cqw, 27px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero-thought-brand {
  display: block;
  margin-top: .55em;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(9px, 2.15cqw, 16px);
  letter-spacing: -.01em;
  color: #0D1B33;
}
.hero-thought-brand b { font-weight: 600; color: #00A88F; }

/* the little trailing clouds, from the bubble toward his temple */
.hero-thought-dot {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(252, 251, 247, .8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 3px 10px rgba(13, 27, 51, .22);
  animation: hero-dot-in .3s ease-out both;
}
.hero-thought-dot.d1 { left: 46.5%; top: 39%; width: 2.7%; animation-delay: .9s; }
.hero-thought-dot.d2 { left: 50.2%; top: 34.5%; width: 1.9%; animation-delay: .7s; }
.hero-thought-dot.d3 { left: 52.9%; top: 30.8%; width: 1.25%; animation-delay: .5s; }

@keyframes hero-dot-in { from { opacity: 0; transform: scale(.2); } }
@keyframes hero-thought-in { from { opacity: 0; transform: scale(.82); } }
@media (prefers-reduced-motion: reduce) {
  .hero-thought, .hero-thought-dot { animation: none; }
}
@media (max-width: 900px) {
  .home-hero .hero-photo { max-width: 630px; }
}
