/* 기관 도입 쪽 (11-20)
   첫 화면은 도입 사례: KCL 담당자의 말을 머리 문구로, 그 아래 실험실 사진.
   글자 단계는 다른 기능 쪽(subpage-flow.css)과 같게 맞춘다: 제목 56 · 묶음 제목 40 · 작은 제목 22 · 설명 18 · 본문 17 */

/* 첫 화면: 도입 후기 넘기기 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 스크롤하면 후기가 옆으로 넘어간다: 묶음 높이 = 후기 수 × 화면 높이, 그 안에서 무대가 붙어 있고 줄이 옆으로 밀린다.
   무대 밖은 잘라서 옆 후기가 미리 보이지 않게 한다 */
.subpage .page-content .inst-case { position: relative; height: calc(var(--slides, 3) * 100svh); margin-top: calc(-1 * var(--site-header-height, 88px) - 4px); }
.subpage .page-content .inst-case.is-static { margin-top: 0; }
.subpage .page-content .inst-case__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--site-header-height, 88px) + 24px);
}
.subpage .page-content .inst-case__slides { display: grid; }
/* 세 후기를 같은 자리에 겹쳐 둔다. 틀이 나뉘지 않아 경계가 생기지 않는다 */
.subpage .page-content .inst-case__slide { grid-area: 1 / 1; min-width: 0; margin: 0; }
.subpage .page-content .inst-case__slide + .inst-case__slide .inst-case__photo img { opacity: 0; }
.subpage .page-content .inst-case__slide + .inst-case__slide :is(.inst-case__quote, .inst-case__who) { opacity: 0; }
.subpage .page-content .inst-case__photo { overflow: hidden; border-radius: 24px; }
.subpage .page-content .inst-case__photo img { will-change: opacity, transform; transform-origin: 50% 60%; }
.subpage .page-content .inst-case__quote { min-height: calc(2 * 1.32em + 1.6em * .62 + 8px); will-change: opacity, transform; }
.subpage .page-content .inst-case__quote {
  position: relative; max-width: 980px; margin: 0;
  font-size: clamp(34px, 3.9vw, 56px); font-weight: 600; line-height: 1.32; letter-spacing: -.03em; color: #191f28;
}
.subpage .page-content .inst-case__quote::before {
  content: "\201C"; display: block; height: .62em; margin-bottom: 8px;
  font-size: 1.6em; line-height: 1; color: #7938d6;
}
.subpage .page-content .inst-case__photo { position: relative; margin: 56px 0 0; }
.subpage .page-content .inst-case__photo img {
  display: block; width: 100%; height: clamp(240px, calc(100svh - 470px), 520px); object-fit: cover; border-radius: 24px; background: #f2f4f6;
}
/* 말한 사람: 사진 오른쪽 아래, 두 줄 같은 크기 */
.subpage .page-content .inst-case__who {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 72px 32px 28px; border-radius: 0 0 24px 24px; pointer-events: none;
  background: linear-gradient(to top, rgba(25,31,40,.5), rgba(25,31,40,0));
}
.subpage .page-content .inst-case__who :is(b, span) { font-size: 22px; line-height: 1.5; color: #fff; letter-spacing: -.02em; }
.subpage .page-content .inst-case__who b { font-weight: 400; }
.subpage .page-content .inst-case__who span { font-weight: 200; opacity: .9; }

/* 인증: 후기 바로 아래 */
.subpage .page-content #certified { padding-top: 160px; text-align: center; }
/* 첫 섹션과 같은 단계: 제목 = 후기 문구 크기, 설명 = 사진 위 이름표 크기 */
.subpage .page-content #institution #certified h2 { font-size: clamp(34px, 3.9vw, 56px); font-weight: 600; line-height: 1.32; letter-spacing: -.03em; }
.subpage .page-content #institution #certified > p { max-width: 880px; margin: 32px auto 0; font-size: 22px; font-weight: 300; line-height: 1.7; word-break: keep-all; text-wrap: balance; }
.subpage .page-content #certified .inst-certs { max-width: none; margin-inline: auto; }
.subpage .page-content .inst-certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px; margin: 48px 0 0; padding: 0; list-style: none; }
.subpage .page-content #institution .inst-certs li { display: flex; align-items: center; gap: 12px; margin: 0; }
.subpage .page-content .inst-certs img { display: block; height: auto; }
.subpage .page-content .inst-certs .inst-certs__gs { width: 116px; margin: -12px -8px; mix-blend-mode: multiply; }
.subpage .page-content .inst-certs .inst-certs__mss { width: 147px; }
.subpage .page-content .inst-certs b { font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: #8b95a1; }
.subpage .page-content #institution .inst-certs span { font-size: 14px; font-weight: 400; line-height: 1.4; color: #8b95a1; }

/* 아래 묶음들: 옛 규칙(subpages.css)의 큰 글자를 다른 기능 쪽 단계로 */
.subpage .page-content #institution h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.38; }
.subpage .page-content #institution h2 + p { font-size: 18px; line-height: 1.75; }
.subpage .page-content #institution h3 { font-size: 22px; line-height: 1.5; }
.subpage .page-content #institution :is(p, li) { font-size: 17px; line-height: 1.75; }
.subpage .page-content #institution thead th { font-size: 16px; }
.subpage .page-content #institution summary { font-size: 18px; }

/* 도입 문의: 단추 대신 연락처 */
.subpage .page-content .inst-contact { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 40px 0 0; }
.subpage .page-content .inst-contact dt { margin: 0 0 6px; font-size: 14px; font-weight: 400; color: #8b95a1; }
.subpage .page-content .inst-contact dd { margin: 0; font-size: 18px; font-weight: 500; }
.subpage .page-content .inst-contact a { color: #191f28; text-decoration: none; }
.subpage .page-content .inst-contact a:hover { color: #7938d6; }

@media (max-width: 760px) {
  /* 옛 규칙은 휴대폰에서도 양옆 64px 를 비워 글 폭이 214px 로 좁아진다. 이 쪽만 다른 기능 쪽처럼 24px 로 */
  .subpage .page-content:has(> #institution) { padding-left: 24px; padding-right: 24px; }
  .subpage .page-content .inst-case__quote br { display: none; }
  .subpage .page-content .inst-case__quote { min-height: calc(4 * 1.32em + 1.6em * .62 + 8px); }
  .subpage .page-content .inst-case__photo { border-radius: 16px; }
  .subpage .page-content .inst-case__photo img { height: clamp(200px, calc(100svh - 520px), 360px); border-radius: 16px; }
  .subpage .page-content .inst-case__who { padding: 48px 18px 16px; border-radius: 0 0 16px 16px; }
  .subpage .page-content .inst-case__who :is(b, span) { font-size: 18px; }
  .subpage .page-content #certified { padding-top: 112px; }
  .subpage .page-content #institution #certified > p { font-size: 18px; }
  .subpage .page-content .inst-case__photo { margin-top: 32px; }
}

/* 움직임 줄이기: 붙이지 않고 후기를 위아래로 차례로 */
.subpage .page-content .inst-case.is-static { height: auto; }
.subpage .page-content .inst-case.is-static .inst-case__stage { position: static; height: auto; overflow: visible; padding-top: 160px; }
.subpage .page-content .inst-case.is-static .inst-case__slides { display: flex; flex-direction: column; gap: 120px; }
.subpage .page-content .inst-case.is-static .inst-case__slide :is(img, .inst-case__quote, .inst-case__who) { opacity: 1 !important; transform: none !important; }
.subpage .page-content .inst-case.is-static .inst-case__quote { min-height: 0; }
