/* =========================================================
   아워스토리 홈페이지 v2 — 하위 페이지 모션 컴포넌트
   (style.css → motion.css → sub.css 순서로 덧씌움)
   ========================================================= */

/* 실제 사진을 컬러 그대로 쓰도록 메인 스타일 덮어쓰기 */
.duo img, .duo .ph { filter: saturate(1.02) contrast(1.02); mix-blend-mode: normal; opacity: 1; }
.duo::after { background: linear-gradient(180deg, rgba(4,18,22,0) 35%, rgba(4,18,22,.55)); }
.tc-card .ph { filter: none; mix-blend-mode: normal; opacity: 1; }
.tc-card::after { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65)); }
.tc-card.is-active::after { background: linear-gradient(90deg, rgba(4,16,20,.82) 0%, rgba(4,16,20,.45) 50%, rgba(4,16,20,.15) 100%), linear-gradient(0deg, rgba(4,16,20,.7), transparent 45%); }
.field-row img { filter: none; }
.hs-panel .hrd { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 9vw, 8rem); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.35); background: radial-gradient(circle at 30% 30%, #1E5A66, #0B2A31); }

/* 공통 */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-sm); font-weight: 700; color: var(--teal-deep); }
.eyebrow-line::before { content: ""; width: 32px; height: 2px; background: currentColor; }
[data-dark] .eyebrow-line, .on-ink .eyebrow-line { color: var(--marker); }
.sec { padding: clamp(96px, 12vw, 180px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.08; letter-spacing: -0.04em; }
.sec-head p { color: var(--muted); font-size: var(--fs-lg); max-width: 34em; }
.ink { background: var(--ink); color: #fff; }
.ink .sec-head p { color: #A9CDD2; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* =========================================================
   XH: 하위 페이지 히어로 (사진 + 거대 타이포 + 스크롤 시 카드로 접힘)
   ========================================================= */
.xh { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; color: #fff; background: #061C21; isolation: isolate; }
.xh-media { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.xh-media img { position: absolute; inset: -4% 0 0 0; width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.xh-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(4,16,20,.86) 0%, rgba(4,16,20,.55) 45%, rgba(4,16,20,.15) 100%),
  linear-gradient(0deg, rgba(4,16,20,.75) 0%, transparent 45%); }
.xh-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--tint, transparent); mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
.xh-inner { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(120px, 18vh, 190px); }
.xh-crumb { font-size: var(--fs-sm); color: rgba(255,255,255,.7); display: flex; gap: 10px; align-items: center; }
.xh-crumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.xh-crumb a:hover { color: #fff; }
.xh-crumb i { width: 4px; height: 4px; border-radius: 50%; background: var(--marker); display: inline-block; }
.xh-logo { height: clamp(34px, 4.2vw, 54px); width: auto; margin-top: 26px; align-self: flex-start; background: #fff; padding: 10px 16px; border-radius: 12px; box-sizing: content-box; }
.xh-title { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1rem + 5.6vw, 6.6rem); line-height: 1.04; letter-spacing: -0.045em; max-width: 12em; }
.xh-title .xl { display: block; overflow: hidden; padding-bottom: .06em; }
.xh-title .xl > span { display: inline-block; will-change: transform; }
.xh-title em { font-style: normal; color: var(--marker); }
.xh-lead { margin-top: 26px; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.65; color: rgba(255,255,255,.86); max-width: 36em; }
.xh .btn-row { margin-top: 32px; }
.xh .btn-primary { background: #fff; color: var(--ink); }
.xh .btn-primary:hover { background: var(--marker); color: var(--ink); }
.xh .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.xh .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.xh-ticker { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; overflow: hidden; pointer-events: none; }
.xh-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.xh-track span { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 2rem + 6vw, 8.4rem); letter-spacing: -0.05em; line-height: 1; padding-right: .45em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.28); }
.xh-scroll { position: absolute; right: var(--gutter); bottom: clamp(140px, 20vh, 210px); z-index: 3; width: 2px; height: 72px; background: rgba(255,255,255,.25); overflow: hidden; }
.xh-scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--marker); animation: xhscroll 1.8s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes xhscroll { to { top: 100%; } }
.xh-index { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 40px); font-family: var(--display); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .02em; color: rgba(255,255,255,.75); writing-mode: vertical-rl; }
@media (max-width: 760px) {
  .xh-inner { padding-bottom: 130px; }
  .xh-index, .xh-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .xh-track { animation: none; } .xh-scroll::after { animation: none; } }

/* =========================================================
   FACTS: 큰 숫자 띠
   ========================================================= */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid currentColor; }
.facts > div { padding: 30px 24px 34px 0; position: relative; }
.facts > div + div { padding-left: 24px; border-left: 1px solid rgba(127,160,165,.35); }
.facts b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 1.8rem + 4.4vw, 6.4rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.facts b sup { font-size: .32em; vertical-align: top; position: relative; top: .55em; margin-left: 6px; letter-spacing: 0; color: var(--teal); }
.facts > div > span { display: block; margin-top: 12px; font-size: var(--fs-sm); font-weight: 600; opacity: .75; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } .facts > div { border-top: 1px solid rgba(127,160,165,.35); } }

/* 회사 개요: 다크 정보 그리드 */
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 22px; overflow: hidden; margin-top: clamp(48px, 6vw, 80px); }
.overview > div { background: #0B2E35; padding: 26px 28px; transition: background .35s; }
.overview > div:hover { background: #10414B; }
.overview dt { font-size: var(--fs-xs); font-weight: 700; color: var(--marker); }
.overview dd { margin: 8px 0 0; font-size: var(--fs-md); font-weight: 600; color: #fff; line-height: 1.55; }
.overview dd a { color: #fff; }
@media (max-width: 860px) { .overview { grid-template-columns: 1fr; } }

/* =========================================================
   SP: 고정된 화면에서 패널이 아래에서 덮어 올라옴 (사람/가치/기술 등)
   ========================================================= */
.sp { position: relative; background: #061C21; color: #fff; }
.sp-pin { position: relative; }
.sp-panel { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.js-motion .sp-pin { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.js-motion .sp-panel { position: absolute; inset: 0; }
.sp-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.sp-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,16,20,.88), rgba(4,16,20,.35) 65%, rgba(4,16,20,.2)), linear-gradient(0deg, rgba(4,16,20,.6), transparent 50%); }
.sp-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.sp-big { font-family: var(--display); font-weight: 800; font-size: clamp(4.4rem, 1.5rem + 12vw, 15rem); line-height: .86; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55); white-space: nowrap; will-change: transform; }
.sp-idx { margin-top: 28px; font-weight: 800; font-size: var(--fs-sm); color: var(--marker); }
.sp-body h3 { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); letter-spacing: -0.04em; }
.sp-body p { margin-top: 14px; font-size: var(--fs-lg); max-width: 28em; color: rgba(255,255,255,.86); }
.sp-dots { position: absolute; z-index: 5; right: var(--gutter); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 10px; }
.js-motion .sp-dots { display: flex; }
.sp-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .3s, transform .3s; }
.sp-dots i.on { background: var(--marker); transform: scale(1.5); }

/* =========================================================
   HTL: 가로로 흐르는 연혁
   ========================================================= */
.htl { background: var(--paper); overflow: hidden; }
.htl-pin { padding: clamp(96px, 11vw, 150px) 0 clamp(80px, 9vw, 120px); }
.htl-track { display: flex; gap: clamp(28px, 4vw, 64px); padding: 0 var(--gutter); width: max-content; margin-top: 20px; }
.htl-item { width: clamp(280px, 30vw, 420px); flex-shrink: 0; position: relative; padding-top: 34px; border-top: 2px solid var(--teal-ink); }
.htl-item::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--paper); }
.htl-year { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 2.4rem + 5vw, 7.6rem); line-height: .95; letter-spacing: -0.06em; color: var(--teal-ink); }
.htl-item.now .htl-year { color: var(--teal-deep); }
.htl-item ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.htl-item li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.55; }
.htl-item li b { color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.htl-bar { margin: 48px var(--gutter) 0; height: 3px; background: var(--line); position: relative; max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.htl-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal); }
@media (max-width: 860px) {
  .htl-track { flex-direction: column; width: auto; }
  .htl-item { width: auto; }
  .htl-bar { display: none; }
}

/* =========================================================
   CEO: 고정 이름 + 문장 등장
   ========================================================= */
.ceo2 { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
.ceo2-side { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.ceo2-side .q { font-family: var(--serif); font-size: clamp(7rem, 4rem + 9vw, 13rem); line-height: .7; color: var(--teal); display: block; height: .55em; }
.ceo2-side h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.15; letter-spacing: -0.04em; margin-top: 18px; }
.ceo2-sign { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.ceo2-sign b { font-family: var(--display); font-size: var(--fs-xl); font-weight: 800; }
.ceo2-sign small { color: var(--muted); font-size: var(--fs-sm); }
.ceo2-body p { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.75; font-weight: 500; color: var(--teal-ink); }
.ceo2-body p + p { margin-top: 1.4em; }
.ceo2-body .mk { background-image: linear-gradient(transparent 60%, var(--marker) 60%, var(--marker) 92%, transparent 92%); background-repeat: no-repeat; background-size: 0% 100%; }
.ceo2-body .mk.on { background-size: 100% 100%; transition: background-size 1s cubic-bezier(.16,1,.3,1); }
@media (max-width: 860px) { .ceo2 { grid-template-columns: 1fr; } .ceo2-side { position: static; } }

/* =========================================================
   HROWS: 행 목록 + 커서를 따라다니는 사진
   ========================================================= */
.hrows { list-style: none; border-top: 2px solid currentColor; position: relative; }
.hrow { position: relative; display: grid; grid-template-columns: 80px 1.1fr 1.6fr 48px; gap: 16px 32px; align-items: center; padding: clamp(24px, 3vw, 38px) 12px; border-bottom: 1px solid rgba(127,160,165,.4); isolation: isolate; transition: color .35s; text-decoration: none; color: inherit; }
.hrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--row-fill, var(--teal-ink)); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hrow:hover::before, .hrow:focus-visible::before { transform: scaleY(1); }
.hrow:hover, .hrow:focus-visible { color: #fff; }
.hrow .n { font-family: var(--display); font-weight: 800; font-size: var(--fs-md); color: var(--teal); }
.hrow h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.15; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.hrow:hover h3 { transform: translateX(10px); }
.hrow p { font-size: var(--fs-md); opacity: .8; }
.hrow .arw { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: transform .45s cubic-bezier(.16,1,.3,1), background .3s; }
.hrow:hover .arw { transform: rotate(-45deg); background: var(--marker); color: var(--ink); border-color: var(--marker); }
.hrow .arw svg { width: 18px; height: 18px; }
.ink .hrow { border-bottom-color: rgba(255,255,255,.18); }
.ink .hrow::before { background: var(--row-fill, var(--teal)); }
@media (max-width: 760px) {
  .hrow { grid-template-columns: 1fr 44px; }
  .hrow .n { display: none; }
  .hrow p { grid-column: 1 / -1; grid-row: 2; }
  .hrow .arw { grid-row: 1; grid-column: 2; width: 40px; height: 40px; }
}

/* =========================================================
   STRIKE: 문제 → 해결 (줄 긋기)
   ========================================================= */
.strike { background: var(--paper); }
.st-q { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1rem + 5.4vw, 6.4rem); line-height: 1.06; letter-spacing: -0.05em; color: var(--muted); position: relative; display: inline-block; }
.st-q .st-line { position: absolute; left: -2%; right: -2%; top: 52%; height: .12em; background: var(--coral, #F26B5B); transform-origin: 0 50%; transform: scaleX(0); border-radius: 99px; }
html:not(.js-motion) .st-q .st-line { transform: scaleX(1); }
.st-a { margin-top: clamp(28px, 4vw, 48px); font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1rem + 5.4vw, 6.4rem); line-height: 1.06; letter-spacing: -0.05em; color: var(--accent, var(--teal-deep)); }
.st-note { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(40px, 5vw, 72px); max-width: 980px; }
.st-note p { color: var(--muted); font-size: var(--fs-lg); }
.st-note p b { color: var(--teal-ink); }
@media (max-width: 760px) { .st-note { grid-template-columns: 1fr; } }

/* =========================================================
   SY: 스크롤에 따라 바뀌는 제품 화면 (sticky)
   ========================================================= */
.sy { background: var(--sy-bg, #F3EEFC); }
.sy-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); }
.sy-sticky { position: sticky; top: calc(var(--header-h) + 6vh); height: calc(100vh - var(--header-h) - 12vh); display: grid; place-items: center; align-self: start; }
.sy-device { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 11; background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -36px rgba(30, 20, 70, .5); overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.sy-device .bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 16px; background: #F4F3F8; border-bottom: 1px solid rgba(0,0,0,.05); }
.sy-device .bar i { width: 10px; height: 10px; border-radius: 50%; background: #DDDBE6; }
.sy-device .bar span { margin-left: 12px; font-size: .72rem; color: #8A88A0; font-weight: 600; }
.sy-screen { position: absolute; inset: 38px 0 0 0; padding: clamp(16px, 2.4vw, 28px); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .55s, transform .7s cubic-bezier(.16,1,.3,1); font-size: var(--fs-sm); color: #2A2840; }
.sy-screen.on { opacity: 1; transform: none; }
.sy-steps { padding: 18vh 0 22vh; }
.sy-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.sy-step.on { opacity: 1; }
.sy-step .k { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 3rem + 3vw, 6.4rem); line-height: 1; color: var(--accent, var(--rj)); letter-spacing: -0.06em; }
.sy-step h3 { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.04em; line-height: 1.15; }
.sy-step p { margin-top: 14px; font-size: var(--fs-lg); color: var(--muted); max-width: 26em; }
.sy-step ul { list-style: none; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.sy-step li { font-size: var(--fs-xs); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--accent, var(--rj)); }
.sy-inline { display: none; }
/* 화면 속 요소 */
.ui-row { display: flex; gap: 8px; align-items: center; }
.ui-chip { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft, #EFE8FB); color: var(--accent, var(--rj)); }
.ui-title { font-weight: 800; font-size: 1.05rem; margin: 12px 0 10px; color: #1F1C33; }
.ui-bars { display: grid; gap: 9px; margin-top: 8px; }
.ui-bars div { display: grid; grid-template-columns: 74px 1fr 34px; gap: 10px; align-items: center; font-size: .78rem; font-weight: 600; }
.ui-bars s { display: block; height: 9px; border-radius: 9px; background: #EEECF4; position: relative; overflow: hidden; text-decoration: none; }
.ui-bars s::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--accent, var(--rj)); border-radius: 9px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s .2s cubic-bezier(.16,1,.3,1); }
.on .ui-bars s::after { transform: scaleX(1); }
.ui-doc { background: #FAFAFD; border: 1px solid #ECEAF3; border-radius: 12px; padding: 14px; line-height: 1.7; font-size: .8rem; }
.ui-doc mark { background: linear-gradient(transparent 55%, #FFE266 55%); color: inherit; }
.ui-bubble { padding: 10px 13px; border-radius: 14px; margin-top: 8px; max-width: 86%; font-size: .8rem; line-height: 1.5; }
.ui-bubble.ai { background: var(--accent-soft, #EFE8FB); color: #2A1F55; }
.ui-bubble.me { background: #F0F0F5; margin-left: auto; }
.ui-wave { display: flex; gap: 4px; align-items: center; height: 34px; margin-top: 12px; }
.ui-wave i { width: 5px; border-radius: 4px; background: var(--accent, var(--rj)); animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-grid div { background: var(--accent-soft, #E2E8FF); border-radius: 12px; padding: 10px; font-size: .72rem; font-weight: 700; color: #1F2A66; }
.ui-grid b { display: block; font-size: 1.4rem; line-height: 1.1; }
.ui-vision { padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #5B76FF, var(--rc)); color: #fff; font-weight: 700; line-height: 1.5; font-size: .85rem; }
.ui-vision small { display: block; opacity: .8; font-weight: 500; font-size: .7rem; }
.ui-list { display: grid; gap: 7px; margin-top: 10px; }
.ui-list div { display: flex; justify-content: space-between; align-items: center; background: #F6F7FC; border-radius: 10px; padding: 8px 12px; font-size: .78rem; font-weight: 600; }
.ui-list em { font-style: normal; font-size: .68rem; font-weight: 800; color: var(--accent, var(--rc)); }
@media (max-width: 900px) {
  .sy-grid { grid-template-columns: 1fr; }
  .sy-sticky { display: none; }
  .sy-steps { padding: 0; }
  .sy-step { min-height: 0; opacity: 1; padding: 36px 0; }
  .sy-inline { display: block; position: relative; margin-top: 24px; }
  .sy-inline .sy-device { aspect-ratio: auto; }
  .sy-inline .sy-screen { position: relative; inset: auto; opacity: 1; transform: none; }
}

/* =========================================================
   TABS: 학생 / 교사 전환
   ========================================================= */
.tabs-nav { display: inline-flex; position: relative; background: rgba(255,255,255,.1); border-radius: 999px; padding: 6px; gap: 4px; }
.tabs-nav button { position: relative; z-index: 1; font: 800 var(--fs-md)/1 var(--sans); color: rgba(255,255,255,.75); background: none; border: 0; padding: 16px 28px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.tabs-nav button[aria-selected="true"] { color: var(--ink); }
.tabs-nav .pill { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--marker); transition: transform .55s cubic-bezier(.16,1,.3,1), width .55s cubic-bezier(.16,1,.3,1); }
.tab-panels { margin-top: clamp(40px, 5vw, 64px); position: relative; }
.tab-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tab-panel[hidden] { display: none; }
.feat-tile { position: relative; overflow: hidden; border-radius: 22px; min-height: 260px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; }
.feat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.feat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,50,.15), rgba(10,16,50,.88)); transition: background .4s; }
.feat-tile:hover img { transform: scale(1.08); }
.feat-tile:hover::after { background: linear-gradient(180deg, rgba(30,50,180,.35), rgba(10,16,50,.92)); }
.feat-tile .n { font-family: var(--display); font-weight: 800; color: var(--marker); font-size: var(--fs-sm); }
.feat-tile h3 { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; }
.feat-tile p { margin-top: 8px; color: rgba(255,255,255,.85); font-size: var(--fs-sm); max-width: 32em; }
@media (max-width: 760px) { .tab-panel { grid-template-columns: 1fr; } .tabs-nav button { padding: 14px 20px; } }

/* =========================================================
   FLOW4: 원형 진행 + 단계 (레디커리어 흐름)
   ========================================================= */
.flow4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: f4; }
.flow4::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: rgba(255,255,255,.18); }
.flow4 .line { position: absolute; left: 0; top: 46px; height: 2px; width: 100%; background: var(--marker); transform-origin: 0 50%; transform: scaleX(0); }
.flow4 li { list-style: none; position: relative; padding: 0 22px 0 0; }
.flow4 .dot { width: 92px; height: 92px; border-radius: 50%; background: #0F2468; border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #fff; position: relative; z-index: 1; transition: background .4s, border-color .4s, color .4s, transform .5s cubic-bezier(.16,1,.3,1); }
.flow4 li.on .dot { background: var(--marker); border-color: var(--marker); color: var(--ink); transform: scale(1.06); }
.flow4 h3 { margin-top: 24px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; }
.flow4 p { margin-top: 10px; color: #B9C4F2; font-size: var(--fs-sm); max-width: 22em; }
@media (max-width: 860px) {
  .flow4 { grid-template-columns: 1fr; gap: 28px; }
  .flow4::before, .flow4 .line { left: 45px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow4 .line { transform-origin: 50% 0; transform: scaleY(0); }
  .flow4 li { display: grid; grid-template-columns: 92px 1fr; gap: 0 20px; }
  .flow4 h3 { margin-top: 18px; }
  .flow4 p { grid-column: 2; }
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.pnav { position: sticky; top: 0; z-index: 40; background: rgba(246,249,248,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .4s cubic-bezier(.16,1,.3,1); }
body:not(.hdr-hidden) .pnav { top: var(--header-h); }
.pnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter); max-width: var(--wrap); margin: 0 auto; scrollbar-width: none; }
.pnav ul::-webkit-scrollbar { display: none; }
.pnav a { display: block; white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--teal-ink); text-decoration: none; transition: background .3s, color .3s; }
.pnav a:hover { background: var(--aqua); }
.pnav a.on { background: var(--teal-ink); color: #fff; }
.pg { padding: clamp(80px, 10vw, 150px) 0; scroll-margin-top: calc(var(--header-h) + 70px); border-bottom: 1px solid var(--line); }
.pg:nth-of-type(even) { background: #fff; }
.pg-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.pg-side { position: sticky; top: calc(var(--header-h) + 100px); align-self: start; }
.pg-side .no { font-family: var(--display); font-weight: 800; color: var(--teal); font-size: var(--fs-md); }
.pg-side h2 { margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5rem); line-height: 1.04; letter-spacing: -0.045em; }
.pg-side p { margin-top: 18px; color: var(--muted); font-size: var(--fs-md); max-width: 30em; }
.pg-photo { margin-top: 28px; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.pg-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.prows { list-style: none; border-top: 2px solid var(--teal-ink); }
.prow { border-bottom: 1px solid var(--line); }
.prow button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 1fr 44px; gap: 16px; align-items: center; padding: 26px 4px; }
.prow button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.prow h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.25; transition: color .3s, transform .45s cubic-bezier(.16,1,.3,1); }
.prow button:hover h3 { color: var(--teal-deep); transform: translateX(6px); }
.prow .pm { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--teal-ink); position: relative; transition: background .3s, transform .5s cubic-bezier(.16,1,.3,1); }
.prow .pm::before, .prow .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--teal-ink); transform: translate(-50%, -50%); transition: transform .4s, background .3s; }
.prow .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.prow.open .pm { background: var(--teal-ink); transform: rotate(180deg); }
.prow.open .pm::before, .prow.open .pm::after { background: #fff; }
.prow.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.prow .pbody { overflow: hidden; }
.js .prow .pbody { height: 0; }
.js .prow.open .pbody { height: auto; }
.prow .pin { padding: 0 4px 28px; }
.prow .pin p { color: var(--muted); }
.prow .pin ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.prow .pin li { font-size: var(--fs-sm); font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--aqua); color: var(--teal-ink); }
@media (max-width: 900px) { .pg-grid { grid-template-columns: 1fr; } .pg-side { position: static; } }

/* =========================================================
   NEWS: 연도별 + 첫 기사 크게
   ========================================================= */
.nfeat { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; min-height: 420px; isolation: isolate; }
.nfeat .ph { position: relative; overflow: hidden; }
.nfeat .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.nfeat:hover .ph img { transform: scale(1.06); }
.nfeat .tx { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.nfeat .src { font-weight: 800; color: var(--marker); font-size: var(--fs-sm); }
.nfeat h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.25; letter-spacing: -0.035em; }
.nfeat p { color: #CFE6E9; }
.nfeat .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; }
.nfeat .go i { width: 44px; height: 44px; border-radius: 50%; background: var(--marker); color: var(--ink); display: grid; place-items: center; font-style: normal; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.nfeat:hover .go i { transform: rotate(-45deg); }
@media (max-width: 860px) { .nfeat { grid-template-columns: 1fr; } .nfeat .ph { min-height: 240px; } }
.nyear { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: clamp(56px, 7vw, 96px); }
.nyear .y { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 2.4rem + 4vw, 6.4rem); letter-spacing: -0.06em; line-height: 1; color: var(--teal-ink); }
.nrow { display: grid; grid-template-columns: 100px 1fr 48px; gap: 8px 24px; align-items: center; padding: 26px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; isolation: isolate; transition: color .35s; }
.nlist { list-style: none; border-top: 2px solid var(--teal-ink); }
.nrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--teal-ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.nrow:hover::before, .nrow:focus-visible::before { transform: scaleY(1); }
.nrow:hover, .nrow:focus-visible { color: #fff; }
.nrow time { font-size: var(--fs-sm); font-weight: 700; color: var(--teal-deep); font-variant-numeric: tabular-nums; transition: color .3s; }
.nrow:hover time { color: var(--marker); }
.nrow h3 { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; }
.nrow .s { display: block; margin-top: 6px; font-size: var(--fs-sm); opacity: .7; font-weight: 500; }
.nrow .arw { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.nrow:hover .arw { transform: rotate(-45deg); }
.nrow .arw svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .nyear { grid-template-columns: 1fr; gap: 12px; }
  .nyear .y { position: static; }
  .nrow { grid-template-columns: 1fr 40px; }
  .nrow time { grid-column: 1 / -1; }
}

/* =========================================================
   이미지 모자이크 (패럴랙스)
   ========================================================= */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.mosaic figure { margin: 0; border-radius: 20px; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); will-change: transform; }
.mosaic .m1 { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.mosaic .m2 { grid-column: 6 / 13; aspect-ratio: 16 / 10; margin-top: 12vh; }
.mosaic .m3 { grid-column: 2 / 8; aspect-ratio: 16 / 10; margin-top: -6vh; }
.mosaic .m4 { grid-column: 8 / 12; aspect-ratio: 3 / 4; margin-top: 4vh; }
@media (max-width: 760px) { .mosaic .m1, .mosaic .m2, .mosaic .m3, .mosaic .m4 { grid-column: 1 / -1; margin-top: 0; } }

/* 이미지 등장: 커튼 걷히기 */
.js-motion .wipe { clip-path: inset(100% 0 0 0); }

/* 큰 글씨 흐름 (CTA 위) */
.bigtick { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; background: var(--paper); }
.bigtick .tk { display: flex; width: max-content; animation: marquee 20s linear infinite; }
.bigtick span { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 2rem + 7vw, 9rem); letter-spacing: -0.05em; line-height: 1; padding-right: .45em; white-space: nowrap; color: var(--teal-ink); }
.bigtick span.o { color: transparent; -webkit-text-stroke: 2px var(--teal-ink); }
.bigtick.rj span { color: var(--rj); } .bigtick.rj span.o { color: transparent; -webkit-text-stroke-color: var(--rj); }
.bigtick.rc span { color: var(--rc); } .bigtick.rc span.o { color: transparent; -webkit-text-stroke-color: var(--rc); }
@media (prefers-reduced-motion: reduce) { .bigtick .tk { animation: none; } }

/* FAQ 부드럽게 */
.faq2 { border-top: 2px solid var(--teal-ink); }
.faq2 .prow h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }

/* 문의 섹션 강화 */
.contact h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1.05; }

/* ---------- 소식 상세 기사 ---------- */
.art .wrap { max-width: 1080px; }
.art-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.art-meta time { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.art-title { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 1rem + 3vw, 3.6rem); line-height: 1.15; letter-spacing: -0.04em; color: var(--teal-ink); text-wrap: balance; }
.art-facts { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--teal-ink); border-bottom: 1px solid var(--line); }
.art-facts > div { padding: 22px 20px 24px 0; }
.art-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.art-facts dt { font-size: var(--fs-xs); font-weight: 700; color: var(--teal-deep); letter-spacing: .04em; }
.art-facts dd { margin-top: 8px; font-size: var(--fs-lg); font-weight: 700; color: var(--teal-ink); }
.art-facts dd b { font-family: var(--display); font-size: 1.6em; font-weight: 800; letter-spacing: -0.03em; }
.art figure { margin: 0; overflow: hidden; border-radius: 24px; background: var(--aqua); }
.art figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.art figure:hover img { transform: scale(1.04); }
.art-hero { margin-top: 56px !important; aspect-ratio: 16 / 10; }
.art-hero img { object-position: 50% 45%; }
.art-wide { margin-top: 56px !important; aspect-ratio: 16 / 9; }
.art-body { max-width: 720px; margin: 56px auto 0; }
.art-body p { font-size: var(--fs-lg); line-height: 1.85; color: var(--teal-ink); word-break: keep-all; }
.art-body p + p { margin-top: 1.4em; }
.art-body a:not(.art-back) { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.art-pair { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.art-pair figure { aspect-ratio: 3 / 4; position: relative; }
.art-pair figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(12,47,54,.78); color: #fff; font-size: var(--fs-sm); font-weight: 700; backdrop-filter: blur(6px); }
.art-back { margin-top: 56px; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--teal-ink); text-decoration: none; }
.art-back i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-ink); color: #fff; transform: rotate(180deg); transition: transform .4s; }
.art-back i svg { width: 18px; height: 18px; }
.art-back:hover i { transform: rotate(180deg) translateX(6px); }
@media (max-width: 760px) {
  .art-facts { grid-template-columns: 1fr 1fr; }
  .art-facts > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .art-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .art-pair { grid-template-columns: 1fr; }
  .art-facts dd { font-size: var(--fs-md); }
  .art-facts > div { padding-right: 12px; }
  .art-facts > div + div { padding-left: 14px; }
  .art figure { border-radius: 18px; }
}

/* ---------- 실제 제품 화면 (듀오톤 대신 원본 그대로) ---------- */
.duo.shot { display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); background: radial-gradient(120% 90% at 20% 10%, #6C4BC2 0%, #3B2468 55%, #24163F 100%); }
.duo.shot::after { display: none; }
.duo.shot img, .duo.shot .ph { position: relative; inset: auto; width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: none; mix-blend-mode: normal; opacity: 1; border-radius: 12px; box-shadow: 0 24px 60px rgba(8,4,24,.45), 0 0 0 1px rgba(255,255,255,.12); transform: perspective(1400px) rotateY(-4deg); }
@media (max-width: 860px) { .hs-panel .duo.shot { height: auto; } .duo.shot img, .duo.shot .ph { transform: none; } }
.pg-photo.shot { background: radial-gradient(120% 90% at 20% 10%, #6C4BC2 0%, #3B2468 60%, #24163F 100%); }
.pg-photo.shot img { inset: 8%; width: 84%; height: 84%; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 40px rgba(8,4,24,.45); }
