/* Original editorial portrait treatment. Load after style.css/profile.css.
   Deliberately still: the existing ambient canvas provides the site's motion. */

.portrait-v4 {
  --portrait-light: rgba(var(--accent-rgb, 195, 201, 205), .2);
  --portrait-shade: rgba(135, 156, 169, .12);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: 0;
  justify-self: center;
}

.portrait-v4__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: clamp(410px, 41vw, 540px);
}

/* Soft light behind the cutout, rather than a frame around the person. */
.portrait-v4__stage::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 8% -4% 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 40% 48%, var(--portrait-light), transparent 67%),
    radial-gradient(ellipse at 71% 60%, var(--portrait-shade), transparent 63%);
  transform: rotate(-9deg);
  pointer-events: none;
}

.portrait-v4__stage::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 76%;
  height: 12%;
  left: 12%;
  bottom: -1%;
  background: radial-gradient(ellipse, rgba(4, 8, 10, .38), transparent 68%);
  pointer-events: none;
}

.portrait-v4__image {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 24px rgba(4, 8, 10, .16));
}




.portrait-v4--about {
  max-width: 500px;
}






/* The portrait follows the active portfolio area with subdued neutral light. */
:root[data-palette='sage'] .portrait-v4 {
  --portrait-shade: rgba(168, 185, 199, .15);
}

:root[data-palette='stone'] .portrait-v4 {
  --portrait-shade: rgba(154, 173, 184, .15);
}

@media (max-width: 850px) {
  .portrait-v4--about .portrait-v4__stage {
    height: 430px;
  }




}

@media (max-width: 680px) {
  .portrait-v4--about {
    max-width: 420px;
    margin-top: 4px;
  }

  .portrait-v4--about .portrait-v4__stage {
    height: clamp(350px, 110vw, 460px);
  }





  .portrait-v4__stage::before {
    inset-inline: 0;
  }


}

@media (max-width: 370px) {
  .portrait-v4--about .portrait-v4__stage {
    height: 350px;
  }


}

/* No animations, parallax, or transitions are attached to the portrait, so
   both prefers-reduced-motion and the site's Pause setting are respected. */
