/* Hero expertise orb (replaces headshot placeholder). */

.hero-photo-card {
  /*
   * Ensure the hero card resolves to a real square on first layout.
   * (If height stays "auto", the viewport can grow and reveal all icons.)
   */
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.hero-expertise-orb {
  --hero-orb-icon-size: clamp(5rem, 6.8vw, 6.5rem);
  --hero-orb-slide-ms: 620ms;

  position: absolute;
  inset: 10%;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  isolation: isolate;
  background: linear-gradient(120deg, var(--color-hero-start), var(--color-hero-end));
  border: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 14px 34px rgb(2 6 14 / 0.32);
}

.hero-expertise-orb::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border-radius: 9999px;
  border: none;
  background: radial-gradient(circle at 30% 30%, rgb(155 155 155 / 0.1), rgb(255 255 255 / 0.04));
  filter: blur(0);
  z-index: 0;
}

.hero-expertise-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 9999px;
  background: conic-gradient(
    from var(--button-border-angle),
    rgb(197 3 55 / 0) 78%,
    rgb(197 3 55 / 0.95) 86%,
    rgb(197 3 55 / 0.95) 92%,
    rgb(197 3 55 / 0) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: button-border-orbit 3s linear infinite;
  will-change: --button-border-angle;
  z-index: 1;
}

.hero-expertise-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 9999px;
  display: grid;
  place-items: center;
}

.hero-expertise-track {
  height: 100%;
  width: 100%;
  position: relative;
}

.hero-expertise-icon {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(0, 22%, 0);
  pointer-events: none;
  transition:
    opacity var(--hero-orb-slide-ms) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--hero-orb-slide-ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-expertise-icon.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-expertise-icon.is-exit {
  opacity: 0;
  transform: translate3d(0, -22%, 0);
}

.hero-expertise-icon i {
  width: calc(var(--hero-orb-icon-size) + 1.25rem);
  height: calc(var(--hero-orb-icon-size) + 1.25rem);
  display: grid;
  place-items: center;
  border-radius: 9999px;
  color: #fff;
  font-size: var(--hero-orb-icon-size);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-expertise-track {
    transform: none;
  }

  .hero-expertise-icon {
    transition: none;
  }

  .hero-expertise-orb::after {
    animation: none;
  }
}

