/* Full viewport introduction. Layer order: copy < body < footer < arm. */
.portfolio { overflow-x: clip; }
.page--profile {
  --profile-footer-height: clamp(160px, 22svh, 220px);
  --profile-character-width: min(112vw, max(78vw, 150svh));
  --profile-character-left: calc((100% - var(--profile-character-width)) / 2);
  --profile-character-top: 3svh;
  width: 100%;
  height: 100svh;
  min-height: 0;
  contain: layout paint;
}
.profile-hero__date, .profile-hero__credit {
  top: clamp(22px, 4.7svh, 48px);
  font-size: clamp(14px, 1.3vw, 24px);
}
.profile-hero__date { left: 7.2%; }
.profile-hero__credit { right: 6.9%; }
.profile-hero__title {
  inset: 15svh 12% auto;
  width: 76%;
  height: 29svh;
  margin: 0;
}
.profile-title-svg { width: 100%; height: 100%; overflow: visible; }
.profile-title-svg path {
  fill: var(--profile-red);
  stroke: var(--profile-red);
  stroke-width: 1.6px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-hero__translation, .profile-hero__pronunciation {
  top: 45svh;
  font-size: clamp(20px, 2.3vw, 42px);
}
.profile-hero__translation { left: 19%; }
.profile-hero__pronunciation { right: 19%; }
.profile-character img {
  max-width: none;
  transform-origin: 50% 30%;
  pointer-events: none;
  user-select: none;
}
.profile-footer__content {
  display: grid;
  grid-template-columns: 1.15fr .95fr 1.4fr .45fr 1.4fr;
  align-items: center;
  gap: clamp(12px, 2.6vw, 48px);
  padding: 22px 5.2% 14px;
}
.profile-footer__content::before { inset: 12px 3.7% auto; border-top-width: 1px; }
.profile-masthead__edition, .profile-masthead__number,
.profile-masthead__statement, .profile-masthead__stamp, .profile-masthead__word {
  position: relative;
  inset: auto;
  width: auto;
}
.profile-masthead__edition {
  padding-left: clamp(28px, 3.2vw, 60px);
  font-size: clamp(11px, 1vw, 18px);
  line-height: 1.25;
}
.profile-masthead__arrow { top: -8px; font-size: clamp(30px, 3vw, 48px); }
.profile-masthead__barcode {
  width: 100%; max-width: 240px; height: clamp(14px, 2svh, 24px);
  margin-top: clamp(16px, 3svh, 32px);
}
.profile-masthead__number {
  transform: none; font-size: clamp(76px, 9.5vw, 168px); letter-spacing: -.06em;
}
.profile-masthead__statement { font-size: clamp(11px, .96vw, 18px); line-height: 1.2; }
.profile-masthead__pill {
  height: clamp(36px, 5svh, 58px);
  margin-bottom: clamp(14px, 2svh, 22px) !important;
  padding-inline: 6px;
  border-width: 2px;
  font-size: clamp(10px, 1.22vw, 23px);
  white-space: nowrap;
}
.profile-masthead__stamp { font-size: clamp(10px, .95vw, 18px); }
.profile-masthead__checker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 108px);
  height: auto;
  margin-bottom: clamp(10px, 2svh, 26px);
  background: none;
  clip-path: none;
}
.profile-masthead__checker > span { grid-row: 1; aspect-ratio: 1; background: currentColor; }
.profile-masthead__checker > span:nth-child(1) { grid-column: 1; }
.profile-masthead__checker > span:nth-child(2) { grid-column: 3; }
.profile-masthead__checker > span:nth-child(3) { grid-column: 5; }
.profile-masthead__checker > span:nth-child(4) { grid-row: 2; grid-column: 2; }
.profile-masthead__checker > span:nth-child(5) { grid-row: 2; grid-column: 4; }
.profile-masthead__word {
  font-size: clamp(48px, 6.3vw, 120px);
  letter-spacing: -.05em;
  white-space: nowrap;
}
.profile-masthead__corner-arrow { right: 3%; bottom: 8px; font-size: clamp(26px, 2.4vw, 46px); }

@media (max-width: 959px) {
  .page--profile {
    --profile-footer-height: clamp(250px, 32svh, 300px);
    --profile-character-width: min(235vw, max(225vw, 88svh));
    --profile-character-top: 12svh;
  }
  .profile-hero__date, .profile-hero__credit { top: 26px; font-size: 14px; }
  .profile-hero__date { left: 20px; }
  .profile-hero__credit { right: 20px; }
  .profile-hero__title { inset: 19svh 5% auto; width: 90%; height: 12svh; }
  .profile-hero__translation, .profile-hero__pronunciation { top: 9svh; font-size: clamp(16px, 3.8vw, 26px); }
  .profile-hero__translation { left: 6%; }
  .profile-hero__pronunciation { right: 6%; }
  .profile-footer__content {
    grid-template-columns: .95fr 1fr 1.05fr;
    grid-template-rows: 90px 1fr;
    align-content: start;
    gap: 8px 16px;
    padding: 18px 20px 42px;
  }
  .profile-footer__content::before { inset: 10px 20px auto; }
  .profile-masthead__number { grid-column: 1; grid-row: 1; font-size: 90px; }
  .profile-masthead__word { grid-column: 2 / 4; grid-row: 1; font-size: clamp(48px, 12.5vw, 92px); text-align: right; }
  .profile-masthead__edition { grid-column: 1; grid-row: 2; padding-left: 0; padding-top: 18px; font-size: 11px; }
  .profile-masthead__arrow { top: -16px; font-size: 28px; }
  .profile-masthead__barcode { margin-top: 14px; height: 16px; }
  .profile-masthead__statement { grid-column: 2 / 4; grid-row: 2; align-self: center; font-size: 11px; }
  .profile-masthead__pill { height: 32px; font-size: 12px; margin-bottom: 14px !important; }
  .profile-masthead__stamp { position: absolute; bottom: 12px; left: 20px; display: flex; align-items: center; gap: 10px; font-size: 8px; text-align: left; }
  .profile-masthead__checker { width: 34px; height: auto; margin: 0; }
  .profile-masthead__corner-arrow { right: 20px; bottom: 10px; font-size: 24px; }
}
