/* ───────── 히어로 슬라이드 (모션 그래픽) ───────── */
.hs { padding: 118px 0 30px; --dur: 7000ms; }
.hs-track { display: grid; }
.hs-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility 0s linear .5s; }
.hs-slide.is-active { visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; z-index: 1; }

/* 문장: 줄마다 아래에서 밀려 올라오는 마스크 */
.hs h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(27px, 3.3vw, 42px); line-height: 1.24; letter-spacing: -0.035em; margin: 0 0 26px; }
.hs h1 em { font-style: normal; color: var(--accent); }
.hs .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hs .ln > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.19, 1, .22, 1); }
.hs-slide.is-active .ln > span { transform: none; }
.hs-slide.is-active .ln:nth-child(1) > span { transition-delay: .12s; }
.hs-slide.is-active .ln:nth-child(2) > span { transition-delay: .22s; }
.hs-slide.is-active .ln:nth-child(3) > span { transition-delay: .32s; }
.hs-slide.is-active .ln:nth-child(4) > span { transition-delay: .42s; }
.hs .lead { font-size: 18px; color: var(--ink-2); max-width: 500px; margin: 0 0 34px; }
.hs-in { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .8s cubic-bezier(.19, 1, .22, 1); }
.hs-slide.is-active .hs-in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

/* 사진: 옆으로 열리며 천천히 줌 아웃 (켄 번스) */
.hs-figure { margin: 0; }
.hs-media { position: relative; }
.hs-media .frame { aspect-ratio: 3 / 2; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s cubic-bezier(.77, 0, .175, 1) .15s; }
.hs-slide.is-active .hs-media .frame { clip-path: inset(0 0 0 0); }
.hs-media .frame img { transform: scale(1.14); transform-origin: 60% 40%; }
.hs-slide.is-active .hs-media .frame img { animation: kenburns var(--dur) linear forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }

/* 손그림 선이 그려지는 효과 */
.doodle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.doodle path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
.doodle path.d2 { stroke: var(--paper); stroke-width: 2.5; }
.doodle path.d3 { stroke: var(--accent); stroke-width: 2; opacity: .85; }
.hs-slide.is-active .doodle path { animation: draw 1.4s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: 1.05s; }
.hs-slide.is-active .doodle path.d2 { animation-delay: 1.55s; }
.hs-slide.is-active .doodle path.d3 { animation-delay: 1.95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 하단 탭 + 진행 막대 */
.hs-nav { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.hs-tabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); flex: 1; }
.hs-tabs button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 12px 12px 12px 0; font-size: 13.5px; color: var(--muted); position: relative; border-top: 1px solid var(--line-2); transition: color .2s; }
.hs-tabs button b { font-family: var(--serif); font-weight: 600; margin-right: 8px; color: inherit; }
.hs-tabs button:hover, .hs-tabs button[aria-selected="true"] { color: var(--ink); }
.hs-tabs button[aria-selected="true"] b { color: var(--accent); }
.hs-tabs i { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); }
.hs-tabs button[aria-selected="true"] i { animation: hsprog var(--dur) linear forwards; }
.hs.paused .hs-tabs button[aria-selected="true"] i { animation-play-state: paused; }
.hs.stopped .hs-tabs button[aria-selected="true"] i { animation: none; width: 100%; }
@keyframes hsprog { from { width: 0; } to { width: 100%; } }
.hs-ctrl { display: flex; gap: 4px; }
.hs-ctrl .icon-btn { border-color: var(--line-2); }
.hs-ctrl .i-play { display: none; }
.hs.stopped .hs-ctrl .i-play { display: block; }
.hs.stopped .hs-ctrl .i-pause { display: none; }
.hs-ctrl svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .hs { padding-top: 96px; }
  .hs-slide { grid-template-columns: 1fr; gap: 28px; }
  .hs-figure { order: -1; }
  .hs .lead { font-size: 16px; margin-bottom: 24px; }
  .hs-nav { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
  .hs-ctrl { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .hs-tabs button { font-size: 0; padding: 10px 6px 6px 0; }
  .hs-tabs button b { font-size: 13px; }
  .hs .hero-ctas .btn-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hs .ln > span, .hs-in { transform: none !important; opacity: 1 !important; transition: none !important; }
  .hs-media .frame { clip-path: none !important; }
  .hs-media .frame img { animation: none !important; transform: none !important; }
  .doodle path { stroke-dashoffset: 0; animation: none !important; }
}
