.principles-profile {
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 2fr);
  align-items: start;
  column-gap: clamp(48px, 8vw, 132px);
  width: min(86%, 1272px);
  padding-block: clamp(122px, 21svh, 212px) max(180px, 32svh);
}

.profile-portrait {
  position: relative;
  margin: 0;
}

.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.xiangting-signature {
  position: absolute;
  width: 94%;
  height: auto;
  top: 0;
  left: -7%;
  transform: translateY(-39%);
  pointer-events: none;
}

.signature-ink {
  fill: none;
  stroke: #2874ff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-statement {
  margin: -.16em 0 0;
  max-width: 20em;
  font: 600 clamp(25px, 2.95vw, 48px)/1.52 system-ui, sans-serif;
  color: #eef3f9;
  text-wrap: pretty;
  line-break: strict;
}

.profile-statement strong { font-weight: inherit; }
.statement-line { display: block; }
.statement-line:nth-child(3) { margin-top: .42em; }
.statement-ending { white-space: nowrap; }
.marked-words {
  position: relative;
  display: inline-block;
  color: #79b4ff;
}
.marked-words svg {
  position: absolute;
  left: -.03em;
  bottom: .025em;
  width: 106%;
  height: .19em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.signed-heart {
  display: inline-block;
  width: .75em;
  vertical-align: .08em;
  margin-left: -.35em;
  fill: none;
  stroke: #79b4ff;
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(9deg);
}

@media (prefers-reduced-motion: no-preference) {
  .profile-portrait[data-signature] .signature-ink {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .profile-portrait[data-signature="writing"] .signature-ink {
    animation: xiangting-pen var(--duration) linear var(--delay) both;
  }

  @keyframes xiangting-pen { to { stroke-dashoffset: 0; } }
}

@media (max-width: 620px) {
  .principles-profile {
    grid-template-columns: minmax(0, 1fr);
    width: 84%;
    row-gap: 26px;
    padding-top: max(105px, 15svh);
  }
  .profile-portrait { width: clamp(128px, 39vw, 195px); }
  .profile-statement { font-size: clamp(21px, 5.5vw, 29px); line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  .principles-profile { padding-bottom: 24px; }
}
