.hero.hero-bubble {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: auto;
  height: 10svh;
  overflow: clip;

  --img-w: 93vw;

  padding-top: 0;
  margin-top: 0;

  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  margin-bottom: 2rem;

  transition: min-height 260ms ease;
}

.hero.hero-bubble.is-collapsed {
  min-height: 20vh;
}

.hero.hero-bubble {
  --shrink: 0;
  --shrink-scale: 0.15;
  --shrink-rise: 100px;
  --shrink-fade: 0;

  --hero-open: 100svh;
  --hero-closed: 20svh;

  min-height: calc(
    var(--hero-open) - (var(--shrink) * (var(--hero-open) - var(--hero-closed)))
  );

  transform-origin: 50% 35%;
  overflow: clip;
}

.hero-shrink {
  transform-origin: 50% 35%;
  will-change: transform, opacity;

  transform: translateY(calc(var(--shrink) * -1 * var(--shrink-rise)))
    scale(calc(1 - (var(--shrink) * (1 - var(--shrink-scale)))));

  opacity: calc(1 - (var(--shrink) * var(--shrink-fade)));
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-bubble {
    min-height: var(--hero-open);
  }
  .hero-shrink {
    transform: none;
    opacity: 1;
  }
}

.hero.hero-bubble.is-collapsed .hero-shrink {
  transform: translateY(-100px) scale(0.86);
  opacity: 1;
}

.hero-copy {
  position: relative;
  z-index: 60;

  padding: var(--pad);
  padding-bottom: 0;

  display: flex;
  flex-direction: column;

  width: 100%;

  margin: 0 0 0 0;

  align-items: flex-start;
  text-align: left;

  pointer-events: none;
}

.hero-bubble-title {
  position: static;
  margin: 0;
  pointer-events: auto;

  font-family: "BBH Bogle", sans-serif;
  font-style: normal;
  font-size: clamp(3.8rem, 7.6vw, 8.2rem);
  line-height: 1.08;
  letter-spacing: 0.1rem;
  font-weight: 400;
}

.hero-bubbles {
  position: relative;
  z-index: 10;
  pointer-events: none;

  justify-self: start;
}

.bubble--main {
  width: var(--img-w);
  max-width: 97vw;
  transform: none;
}

.bubble {
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  overflow: hidden;
}

.bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 50% !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-bubble {
    transition: none;
  }

  .hero-shrink {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .hero.hero-bubble.is-collapsed .hero-shrink {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero.hero-bubble {
    --hero-open: 52svh;
    --hero-closed: 18svh;
    margin-bottom: 0;
    align-content: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    margin: 0;
    padding-bottom: 0;
  }

  .hero-bubble-title {
    width: 100%;
    font-size: 4rem;
    text-align: center;
    line-height: 1.08;
  }

  .hero-bubbles {
    justify-self: center;
    width: 100%;
    margin-top: 0.75rem;
    display: grid;
    place-items: center;
  }

  .bubble--main {
    width: min(92vw, 520px);
    max-width: min(92vw, 520px);
    margin: 0;
  }
}

@media (max-width: 760px) {
  .hero.hero-bubble {
    --hero-open: 52svh;
    --hero-closed: 18svh;
    margin-bottom: 0;
    align-content: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    margin: 0;
    padding-bottom: 0;
  }

  .hero-bubble-title {
    width: 100%;
    font-size: 2.5rem;
    text-align: center;
    line-height: 1.08;
  }

  .hero-bubbles {
    justify-self: center;
    width: 100%;
    margin-top: 0.75rem;
    display: grid;
    place-items: center;
  }

  .bubble--main {
    width: min(92vw, 520px);
    max-width: min(92vw, 520px);
    margin: 0;
  }
}
.process {
  margin-top: 3rem;
  position: relative;
  width: 100%;
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1rem, 4vw, 2.25rem);
  color: var(--bg);
}

.process-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.process-head {
  text-align: center;
  margin: 0 auto clamp(1.6rem, 3.2vw, 2.4rem);
  max-width: 70%;
}

.process-title {
  font-family: "BBH Bogle", sans-serif;
  font-style: normal;
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.05rem;
  font-weight: 100;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.8vw, 2rem);
}

.process-step {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.process-step-title {
  font-family: "BBH Bogle", sans-serif;
  font-style: normal;
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 0.98rem + 0.55vw, 1.25rem);
  line-height: 1.1;
  letter-spacing: 0.05rem;
  font-weight: 100;
}

.process-step-copy {
  margin: 0;
  font-family: "Oxygen", sans-serif;
  font-style: normal;
  font-size: clamp(1rem, 0.95rem + 0.6vw, 1.25rem);
  line-height: 1.55;
  opacity: 0.92;
}

.process--oval {
  --bg-inset-x: 0;
  --bg-inset-y: 3vh;
  --bg-radius-x: 0px;
  --bg-radius-y: 0px;
  --bg-shift-y: 0px;
}

.process--oval::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  left: 50%;
  transform: translateX(-50%);
  width: 100vw;

  background: var(--accent-ink);
  z-index: 0;
  pointer-events: none;

  clip-path: inset(
    var(--bg-inset-y) var(--bg-inset-x) var(--bg-inset-y) var(--bg-inset-x)
      round var(--bg-radius-x) / var(--bg-radius-y)
  );

  translate: 0 var(--bg-shift-y);
}

@media (hover: hover) {
  .case-item {
    transition: transform 200ms ease;
  }

  .case-item:hover {
    transform: translateY(-2px);
  }

  .case-item__media {
    transition: transform 220ms ease;
  }

  .case-item:hover .case-item__media {
    transform: scale(1.03);
  }
}

@media (max-width: 500px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-head {
    max-width: 100%;
  }

  .process {
    text-align: center;
  }

  .process-head {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .process-steps {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .process-step {
    justify-items: center;
    text-align: center;
  }

  .process-step-copy {
    text-align: center;
    max-width: 30ch;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero.hero-bubble {
    align-content: start;
  }

  .hero-copy {
    margin-top: 5rem;
  }
}
