.profile-scene {
  position: relative;
  color: #faf0dc;
  background:
    radial-gradient(ellipse at 77% 49%, #77512d36, transparent 52%),
    var(--midnight-horizon);
}

.collaboration-marker { position: absolute; inset: 0; }

.stage > .profile-scene {
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: auto;
  visibility: hidden;
  opacity: var(--profile-opacity, 0);
  transform: translateY(var(--profile-offset, 26svh));
  background: radial-gradient(ellipse at 77% 49%, #77512d36, transparent 52%);
}
.stage > .profile-scene.is-revealing { visibility: visible; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(37%, 33rem, 51svh));
  align-items: center;
  align-content: end;
  gap: clamp(1.75rem, 5vw, 5rem);
  width: 100%;
  min-height: 100%;
  margin-inline: auto;
  padding-block: clamp(3rem, 8svh, 6rem);
  padding-inline: var(--section-inset-left) var(--section-inset-right);
  padding-bottom: clamp(1.5rem, 3svh, 2.5rem);
}

.stage > .profile-scene > .profile-layout {
  flex: 1 0 auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(34%, 29rem, 39svh));
  align-content: center;
  padding-block: max(5.5rem, 10svh) 0;
}
.profile-copy {
  container-type: inline-size;
}
.profile-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .55rem;
  align-items: center;
  width: 5rem;
  margin-bottom: 1.45rem;
  color: #dba968;
}
.profile-rule::before, .profile-rule::after {
  content: "";
  border-top: 1px solid currentColor;
}
.profile-rule span {
  width: .36rem;
  aspect-ratio: 1;
  transform: rotate(45deg);
  background: currentColor;
}
.profile-copy h2 {
  margin-block-start: 0;
  margin-block-end: 0;
  outline: none;
  color: #ffe1a7;
  font: 400 min(13.5cqi, 4.6rem)/1.08 "Palatino Linotype", Georgia, serif;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-shadow: 0 .035em .08em #020310;
}
.profile-copy p {
  max-width: 56ch;
  margin-top: 1.55rem;
  color: #ece4db;
  font: 400 clamp(1.05rem, 1.85vw, 1.28rem)/1.6 Georgia, serif;
}
.profile-copy .profile-roles {
  max-width: none;
  margin-top: clamp(.65rem, 1.6cqi, 1rem);
  color: #fff0cf;
  font: 400 clamp(1.375rem, 3cqi, 1.65rem)/1.4 "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: .01em;
  text-wrap: pretty;
}
.profile-roles span {
  margin-inline: .15em;
  color: #dba968;
}
.profile-copy .profile-credits {
  margin-top: 1rem;
  color: #ffe1a7;
}
.profile-copy [data-profile-typing]::highlight(profile-untyped) {
  color: transparent;
}
.profile-frame {
  position: relative;
  justify-self: end;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0;
  filter: drop-shadow(0 .8rem 1.5rem #01020bad);
}
.profile-portrait, .profile-frame-art {
  position: absolute;
  display: block;
}
.profile-portrait {
  inset: 10.65% 11.6% 10.6%;
  width: 76.8%;
  height: 78.75%;
  object-fit: cover;
  object-position: 18% center;
}
.profile-frame-art { inset: 0; width: 100%; height: 100%; }
body[data-motion="on"] .profile-scene.is-revealing .profile-frame {
  animation: portrait-float 7s ease-in-out infinite;
}
@keyframes portrait-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.65rem); }
}

main > .profile-scene { padding-block-start: var(--site-header-space); }

main > .profile-scene > .profile-layout {
  min-height: auto;
  padding-block: clamp(1.75rem, 5vw, 4rem);
}

@media (max-width: 600px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "frame" "copy";
    gap: 1.5rem;
  }
  .profile-frame { grid-area: frame; justify-self: center; width: min(54vw, 13rem); }
  .profile-copy { grid-area: copy; min-width: 0; }
  .profile-copy h2 { font-size: clamp(2rem, 10vw, 3.25rem); white-space: normal; }
  .profile-copy .profile-roles { font-size: clamp(1.05rem, 4.5vw, 1.35rem); }
  .profile-rule { margin-bottom: .9rem; }
  .profile-copy p { margin-top: .85rem; }
}

@media (max-height: 470px) and (min-width: 551px) {
  .profile-layout { padding-block: 2.25rem 1.5rem; }
  .profile-frame { width: min(100%, 54svh); }
}
