/* Google Fonts Nanum Pen Script, SIL OFL: ./fonts/NanumPenScript-OFL.txt.
   인사말 글자만 포함한 공식 웹폰트. 문구 추가 시 Google Fonts text 요청도 갱신한다. */
@font-face {
  font-family: "Worldski Greeting";
  src: url("./fonts/NanumPenScript-greeting.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.page-about .handwritten-greeting > p {
  font-family: "Worldski Greeting", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--navy);
  margin: 0 0 22px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.page-about .handwritten-greeting > .concept-sign {
  display: inline-block;
  vertical-align: middle;
  color: var(--teal, #008496);
  margin-bottom: 0;
}
/* 대표 도장 — 서명 끝에 반듯하게(대표 2026-10-21 「도장은 반듯하게」, 처음엔 -6° 기울임), 글씨를 다 쓴 뒤 찍힌다 */
.page-about .greeting-stamp {
  display: inline-block;
  vertical-align: middle;
  width: 58px;
  height: auto;
  margin-left: 6px;
  opacity: 0.92;
}
.handwritten-greeting.is-ready .greeting-stamp {
  opacity: 0;
}
.handwritten-greeting.is-writing .greeting-stamp {
  animation: greeting-stamp 420ms cubic-bezier(0.2, 0.8, 0.3, 1.2) calc(var(--ink-total, 0ms) + 150ms) both;
}
@keyframes greeting-stamp {
  from {
    opacity: 0;
    transform: scale(1.8);
  }
  60% {
    opacity: 1;
    transform: scale(0.94);
  }
  to {
    opacity: 0.92;
    transform: none;
  }
}
.greeting-word {
  white-space: nowrap;
}
.greeting-letter {
  display: inline-block;
}
.handwritten-greeting.is-ready .greeting-letter {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}
.handwritten-greeting.is-writing .greeting-letter {
  animation: greeting-write 140ms ease-out var(--ink-delay) both;
}
@keyframes greeting-write {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
@media (max-width: 760px) {
  .page-about .handwritten-greeting > p {
    font-size: 26px;
    margin-bottom: 18px;
  }
  .page-about .handwritten-greeting > .concept-sign {
    margin-bottom: 0;
  }
  .page-about .greeting-stamp {
    width: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .handwritten-greeting .greeting-letter {
    animation: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }
  .handwritten-greeting .greeting-stamp {
    animation: none !important;
    opacity: 0.92 !important;
  }
}
