/* 원장 소개 v7 · 약력 B안 확정본 — 큰 연도 색인 + 그 자리에서 커지는 사진 (2026-10-19 4차) · doctor.v7.html · doctor.v7.preview.html
   p-doc-v7-sb.css(2차 제안 · story-b 미리보기)를 바탕으로, 마우스를 따라다니던 카드(.sb-float)를 뺐다.
   줄: [큰 윤곽 연도] [제목 · 덧붙임] [사진]. 화면에 들어오면 괘선이 왼→오로 그어지고 연도가 금색으로 채워진다(p-doc.js [data-rv] → .is-in).
   사진은 항상 보인다. PC 마우스: 사진에 올리면 그 자리에서 2배로 커진다(오른쪽 가운데 기준, CSS :hover).
   모바일 · 터치: 사진을 누르면 글 폭만큼 커지고(오른쪽 위 기준, 배율 --zs 는 js/p-doc-v7-sb2.js), 다시 누르거나 다른 곳을 누르면 원래대로(.is-zoom). */
.sb { --sb-e: cubic-bezier(.65, 0, .35, 1); position: relative; background: #141311; color: #fff; padding: 140px 0 150px; }
.sb .eyebrow { color: #c9a35a; }
.sb__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.sb__range { display: flex; align-items: center; gap: 16px; font-size: 15px; letter-spacing: .24em; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.sb__range i { width: 48px; height: 1px; background: rgba(201,163,90,.7); }
.sb__list { margin: 36px 0 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.sb-r { position: relative; display: grid; grid-template-columns: minmax(0, 28%) minmax(0, 1fr) clamp(180px, 14vw, 240px); grid-template-areas: "y tx ph"; column-gap: clamp(24px, 3vw, 56px); align-items: start; padding: clamp(36px, 3.4vw, 52px) clamp(0px, 1vw, 16px); transition: background-color .5s; }
.sb-r::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.16); transform-origin: left; transition: transform 1.1s var(--sb-e); }
.dv-js .sb-r[data-rv]:not(.is-in)::before { transform: scaleX(0); }
.dv-js .sb-r[data-rv]:not(.is-in) { opacity: 1; transform: none; }   /* 줄 자체는 그대로 두고 안쪽(괘선 · 연도 · 글 · 사진 틀)만 움직인다 */
.sb-r__y { grid-area: y; display: flex; align-items: flex-start; gap: 14px; margin: 0; overflow: hidden; }
.sb-r__n { padding-top: .9em; font-size: 13px; letter-spacing: .14em; color: #8f887c; font-variant-numeric: tabular-nums; }
.sb-r__yy { display: block; font-size: clamp(64px, 3vw + 40px, 112px); line-height: .92; font-weight: 200; letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1px rgba(201,163,90,.75); background: linear-gradient(#d9b46a, #a9843e) no-repeat 0 100% / 100% 0; -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.2s var(--sb-e) .35s, transform 1s cubic-bezier(.2, .7, .2, 1); }
.sb-r.is-in .sb-r__yy, :root:not(.dv-js) .sb-r__yy { background-size: 100% 100%; }
.dv-js .sb-r:not(.is-in) .sb-r__yy { transform: translateY(60%); }
.sb-r__tx { grid-area: tx; padding-top: 6px; }
.sb-w4 { display: block; font-weight: 300; color: rgba(255,255,255,.76); }
.sb-r__t { font-size: clamp(20px, 6px + 1.2vw, 26px); line-height: 1.5; font-weight: 700; letter-spacing: -0.035em; }
.sb-num { display: block; margin-top: 4px; font-size: clamp(56px, 5vw, 88px); line-height: 1.05; font-weight: 300; letter-spacing: -0.045em; color: #c9a35a; }
.sb-r__more { display: grid; gap: 10px; margin-top: 16px; max-width: 640px; font-size: 17px; line-height: 1.85; color: #d2ccc2; }
.sb-q { color: #e2c27f; font-weight: 600; }
.sb-r__note { margin-top: 12px; font-size: 15px; color: #9d978c; }
.dv-js .sb-r > .sb-r__tx { transition: opacity .8s ease .2s, translate .9s cubic-bezier(.2, .7, .2, 1) .2s; }
.dv-js .sb-r:not(.is-in) > .sb-r__tx { opacity: 0; translate: 0 18px; }

/* 사진: 늘 보이고, 커질 때는 다른 줄 위로 올라온다(그림자). 커지는 것은 안쪽 .sb-r__phi(사진 칸 자체는 제자리) */
.sb-r__ph { grid-area: ph; position: relative; z-index: 1; margin: 6px 0 0; aspect-ratio: 4 / 3; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.sb-r__phi { position: absolute; inset: 0; overflow: hidden; background: #2b2926; transform-origin: 100% 50%; transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s; }
.sb-r__ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.9); transition: filter .5s; }
.sb-r__ph::after { content: ""; position: absolute; z-index: 1; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; pointer-events: none; transition: opacity .3s;   /* 돋보기 + 표시 */
  background: rgba(20,19,17,.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23e2c27f' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='11.5' cy='11.5' r='5'/%3E%3Cpath d='M15.2 15.2l3.6 3.6M11.5 9.3v4.4M9.3 11.5h4.4'/%3E%3C/svg%3E") center / 26px no-repeat; }
.sb-r__ph.is-zoom { z-index: 6; cursor: zoom-out; }
.sb-r__ph.is-zoom .sb-r__phi { transform: scale(var(--zs, 2)); box-shadow: 0 30px 70px -18px rgba(0,0,0,.9); }
.sb-r__ph.is-zoom img { filter: none; }
.sb-r__ph.is-zoom::after { opacity: 0; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .sb-r:hover { background: rgba(255,255,255,.035); }
  .sb-r:hover .sb-r__yy { -webkit-text-stroke-color: #e2c27f; }
  .sb-r__ph:hover { z-index: 6; }
  .sb-r__ph:hover .sb-r__phi { transform: scale(2); box-shadow: 0 30px 70px -18px rgba(0,0,0,.9); }
  .sb-r__ph:hover img { filter: none; }
  .sb-r__ph:hover::after { opacity: 0; }
}

@media (max-width: 1023px) {
  .sb { padding: 96px 0 104px; }
  .sb__range { font-size: 12px; gap: 10px; }
  .sb__range i { width: 24px; }
  .sb-r { grid-template-columns: minmax(0, 1fr) 120px; grid-template-areas: "y ph" "tx tx"; row-gap: 14px; padding: 30px 0; }
  .sb-r__y { align-self: end; }
  .sb-r__yy { font-size: 58px; }
  .sb-r__ph { margin: 0; align-self: end; }
  .sb-r__phi { transform-origin: 100% 0; }
  .sb-r__ph img { filter: none; }
  .sb-r__ph::after { right: 5px; bottom: 5px; width: 24px; height: 24px; background-size: 24px; }
  .sb-r__tx { padding: 0; }
  .sb-r__t { font-size: 19px; }
  .sb-num { font-size: 54px; }
  .sb-r__more { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-js .sb-r:not(.is-in) .sb-r__yy { transform: none; }
  .dv-js .sb-r:not(.is-in) > .sb-r__tx { translate: none; }
  .sb-r::before, .sb-r__phi { transition: none; }
}
