/* 이샘컴퓨터학원 홈페이지 — 이샘 디자인 시스템 토큰 기반 (Claude Design 시안 B) */

@font-face {
    font-family: 'GmarketSans';
    src: url('../fonts/GmarketSans-Medium-subset.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue-50: #EEF5FF; --blue-100: #D9E8FF; --blue-200: #B3D2FF; --blue-300: #80B5FF; --blue-400: #3D90FF;
    --blue-500: #0074FF; --blue-600: #0062DB; --blue-700: #004FB3; --blue-800: #003D8A; --blue-900: #062B5F;
    --gray-50: #F5F7FA; --gray-100: #EDF0F5; --gray-200: #DDE2EA; --gray-300: #C4CBD6; --gray-400: #98A2B3;
    --gray-500: #6B7688; --gray-600: #4B5565; --gray-700: #333C4A; --gray-800: #1F2633; --gray-900: #111722;
    --navy-800: #11214A; --navy-900: #0A1630;
    --red-500: #F04438; --red-700: #B42318;
    --green-700: #067647;

    --brand: var(--blue-500); --brand-hover: var(--blue-600); --brand-press: var(--blue-700);
    --brand-subtle: var(--blue-50); --brand-subtle-hover: var(--blue-100);
    --text-strong: var(--gray-900); --text-body: var(--gray-700); --text-muted: var(--gray-500);
    --text-disabled: var(--gray-400); --text-brand: var(--blue-500); --text-inverse-muted: #AAB6CC;
    --surface-subtle: var(--gray-50);
    --border-subtle: var(--gray-100); --border-default: var(--gray-200); --border-strong: var(--gray-300);
    --focus-ring: 0 0 0 3px rgba(0, 116, 255, .28);
    --danger: var(--red-500); --danger-text: var(--red-700);
    --overlay: rgba(10, 22, 48, .56);

    --font-display: 'GmarketSans', 'Pretendard', system-ui, sans-serif;
    --font-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
    --shadow-md: 0 4px 12px rgba(10, 22, 48, .08);
    --shadow-lg: 0 12px 32px rgba(10, 22, 48, .12);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --dur-fast: 120ms;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--text-body);
    font: 400 16px/1.65 var(--font-body);
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; color: var(--text-strong); }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--text-brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
::selection { background: var(--blue-100); }
.icon { display: inline-block; flex: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.anchor { scroll-margin-top: var(--header-h); }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* ---------- Type ---------- */
.eyebrow { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; color: var(--text-brand); }
.eyebrow-light { color: var(--blue-300); }
.eyebrow-onbrand { color: var(--blue-100); }
.h2 { font: 500 clamp(28px, 3.4vw, 42px)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }
.h2-light { color: #fff; }
.h3 { font: 500 21px/1.35 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }
.body { font: 400 15px/1.65 var(--font-body); color: var(--text-body); text-wrap: pretty; }
.body-lg { max-width: 520px; font: 400 17px/1.75 var(--font-body); color: var(--text-body); text-wrap: pretty; }
.section-head { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    background: var(--brand); color: #fff;
    font: 500 15px/1 var(--font-body); letter-spacing: -0.01em; white-space: nowrap;
    cursor: pointer; text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-primary:active { background: var(--brand-press); }
.btn-secondary { background: var(--brand-subtle); color: var(--text-brand); }
.btn-secondary:hover { background: var(--brand-subtle-hover); color: var(--text-brand); }
.btn-secondary:active { background: var(--blue-200); }
.btn-outline { background: #fff; color: var(--text-strong); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--gray-50); color: var(--text-strong); }
.btn-outline:active { background: var(--gray-100); }
.btn-inverse { background: #fff; color: var(--text-brand); }
.btn-inverse:hover { background: var(--blue-50); color: var(--text-brand); }
.btn-inverse:active { background: var(--blue-100); }
.btn:disabled { background: var(--gray-100); color: var(--text-disabled); border-color: transparent; cursor: not-allowed; }

.badge {
    display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
    border-radius: var(--radius-xs); background: var(--brand-subtle); color: var(--text-brand);
    font: 700 12px/1 var(--font-body); letter-spacing: 0; white-space: nowrap;
}
.badge-sm { height: 20px; padding: 0 6px; font-size: 11px; }

.icon-tile {
    width: 48px; height: 48px; flex: none; border-radius: var(--radius-md);
    background: var(--blue-50); color: var(--text-brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-tile-sm { width: 40px; height: 40px; }
.icon-tile-lg { width: 64px; height: 64px; border-radius: 50%; }
.glyph-tile { font: 500 14px/1 var(--font-mono); }
.glyph-tile-lg {
    width: 52px; height: 52px; flex: none; border-radius: var(--radius-md);
    background: var(--blue-50); color: var(--text-brand);
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font: 500 18px/1 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); white-space: nowrap; }
.brand-accent { color: var(--text-brand); }
.site-nav { display: flex; align-items: center; gap: 28px; font: 500 15px/1 var(--font-body); }
.site-nav a { color: var(--text-strong); }
.site-nav a.nav-family { color: var(--text-brand); }
.call-narrow { display: none; }
@media (max-width: 1039px) { .site-nav { display: none; } }
@media (max-width: 899px) { .call-wide { display: none; } .call-narrow { display: inline; } }

/* ---------- Hero stage (scroll-pinned) ---------- */
.stage-section { background: var(--navy-900); }
.stage-pin { position: relative; height: 540vh; }
.stage-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; }
@supports (height: 100svh) { .stage-sticky { height: calc(100svh - var(--header-h)); } }

.big-word {
    position: absolute; left: 50%; top: 50%;
    font: 500 clamp(110px, 22vw, 340px)/1 var(--font-display); letter-spacing: -0.04em;
    color: rgba(255, 255, 255, .07); white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translate(-50%, -50%);
    transition: opacity 500ms var(--ease-out);
}

.stage-group {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    padding: 0 20px; pointer-events: none;
    transform: perspective(1600px) translateY(45vh) rotateX(18deg) scale(.86);
}
.win-wrap { width: min(900px, 100%); }
.win {
    height: 420px; background: #fff; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.win-bar {
    height: 40px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 14px;
    background: var(--gray-100); border-bottom: 1px solid var(--border-default);
}
.win-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.win-file { margin-left: 10px; font: 500 12px/1 var(--font-mono); color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-app { margin-left: auto; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--text-brand); }
.win-body { position: relative; flex: 1; min-height: 0; background: #fff; }

.scene {
    position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px;
    opacity: 0; transform: translateY(20px) scale(.98);
    transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.scene:first-child { opacity: 1; transform: none; }
.scene-gray { background: var(--gray-100); }
.scene-row { flex-direction: row; gap: 12px; }

.fx-bar {
    display: flex; align-items: center; height: 30px; flex: none;
    border: 1px solid var(--border-default); border-radius: 6px; overflow: hidden;
    font: 400 12px/1 var(--font-mono);
}
.fx-ref {
    width: 44px; height: 100%; flex: none; display: flex; align-items: center; justify-content: center;
    border-right: 1px solid var(--border-default); background: var(--gray-50); color: var(--text-muted);
}
.fx-label { padding: 0 10px; color: var(--text-brand); font-style: italic; }
.fx-formula { color: var(--text-strong); white-space: nowrap; overflow: hidden; }

.sheet { flex: none; border: 1px solid var(--border-default); border-radius: 6px; overflow: hidden; font: 400 12px/1 var(--font-body); }
.sheet-row { display: grid; border-bottom: 1px solid var(--border-subtle); color: var(--text-strong); }
.sheet-cols-6 { grid-template-columns: 26px repeat(5, minmax(0, 1fr)); }
.sheet-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.sheet-head { background: var(--gray-50); border-bottom-color: var(--border-default); font: 500 11px/1 var(--font-mono); color: var(--text-muted); }
.sheet-head span { padding: 7px 0; text-align: center; border-right: 1px solid var(--border-default); }
.sheet-head span:last-child { border-right: 0; }
.sheet-title { border-bottom-color: var(--border-default); font: 700 12px/1 var(--font-body); }
.sheet-cols-6 > span:not(.sheet-n) { padding: 8px; border-right: 1px solid var(--border-subtle); }
.sheet-title.sheet-cols-6 > span:not(.sheet-n) { border-right-color: var(--border-default); }
.sheet-cols-6 > span:last-child { border-right: 0; }
.sheet-head-strong { background: var(--gray-50); }
.sheet-cols-4 > span { padding: 7px 8px; }
.sheet-head-strong > span { padding: 9px 8px; }
.sheet-n {
    padding: 8px 0; text-align: center; background: var(--gray-50);
    border-right: 1px solid var(--border-default); font: 500 11px/1 var(--font-mono); color: var(--text-muted);
}
.sheet-cell { height: 28px; }
.sheet-cell > span { display: inline-block; opacity: 0; }
.ar { text-align: right; }
.ac { text-align: center; }
.c-brand { color: var(--text-brand); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }

.bars {
    flex: 1; min-height: 70px; display: flex; gap: 14px; padding: 10px 14px 8px;
    border: 1px solid var(--border-default); border-radius: 6px; opacity: 0;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-v { font: 500 11px/1 var(--font-mono); color: var(--text-brand); height: 11px; }
.bar-track { position: relative; flex: 1; width: 100%; max-width: 44px; }
.bar-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--brand); border-radius: 4px 4px 0 0; }
.bar-name { font: 500 11px/1 var(--font-body); color: var(--text-muted); }

.tools { display: flex; gap: 6px; flex: none; }
.tool {
    height: 26px; padding: 0 10px; border-radius: 6px; display: flex; align-items: center;
    font: 500 12px/1 var(--font-body); background: #fff; color: var(--text-body); transition: all 200ms;
}
.tool.is-on { background: var(--brand); color: #fff; }
.doc {
    flex: 1; min-height: 0; background: #fff; border-radius: 4px; box-shadow: var(--shadow-md);
    padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.doc-title { font: 700 17px/1.3 var(--font-body); color: var(--text-strong); min-height: 22px; }
.caret { display: inline-block; width: 2px; height: 17px; margin-left: 2px; vertical-align: -3px; background: var(--brand); opacity: 0; }
.doc-lines { display: flex; flex-direction: column; gap: 8px; }
.doc-line { display: block; height: 7px; border-radius: 4px; background: var(--gray-200); transform: scaleX(0); transform-origin: left; }
.doc-table { border: 1px solid var(--gray-300); font: 400 12px/1 var(--font-body); color: var(--text-strong); }
.doc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border-bottom: 1px solid var(--gray-300); opacity: 0; }
.doc-row:last-child { border-bottom: 0; }
.doc-row-head { background: var(--gray-50); font-weight: 700; }
.doc-row span { padding: 8px; text-align: center; border-right: 1px solid var(--gray-200); }
.doc-row span:last-child { border-right: 0; }
.doc-eq {
    align-self: flex-start; padding: 10px 14px; border: 1px dashed var(--blue-300); background: var(--blue-50);
    border-radius: 6px; font: 500 14px/1 var(--font-mono); color: var(--blue-800); opacity: 0;
}

.thumbs { width: 64px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.thumb {
    aspect-ratio: 16 / 10; background: #fff; border-radius: 4px; border: 2px solid transparent;
    padding: 6px; display: flex; flex-direction: column; gap: 4px; transition: border-color 200ms;
}
.thumb.is-on { border-color: var(--brand); }
.thumb-t { height: 4px; width: 60%; border-radius: 2px; background: var(--gray-300); }
.thumb-b { flex: 1; border-radius: 2px; background: var(--blue-100); }
.thumb > span { opacity: 0; }
.slide {
    flex: 1; min-width: 0; background: #fff; border-radius: 4px; box-shadow: var(--shadow-md);
    padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; justify-content: center; gap: 22px; overflow: hidden;
}
.slide-title { display: flex; flex-direction: column; gap: 8px; opacity: 0; }
.slide-no { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--text-brand); }
.slide-h { font: 500 clamp(18px, 2vw, 24px)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }
.slide-boxes { display: flex; align-items: center; gap: 6px; }
.slide-step { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.slide-box {
    flex: 1; min-width: 0; height: 62px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700);
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px;
    font: 500 12px/1.3 var(--font-body); opacity: 0;
}
.slide-box-solid { background: var(--brand); color: #fff; }
.slide-arrow { width: 14px; height: 2px; flex: none; background: var(--blue-300); transform: scaleX(0); transform-origin: left; }
.slide-cap { display: flex; flex-direction: column; gap: 7px; opacity: 0; }
.slide-cap span { height: 6px; border-radius: 3px; background: var(--gray-200); }
.slide-cap span:first-child { width: 86%; }
.slide-cap span:last-child { width: 58%; }
@media (max-width: 479px) { .thumbs { display: none; } }

.result-badge {
    height: 20px; padding: 0 8px; border-radius: 4px; display: inline-flex; align-items: center;
    font: 700 11px/1 var(--font-body); background: var(--gray-100); color: var(--text-muted); opacity: 0;
}
.result-badge.pass { background: var(--brand); color: #fff; }
.sheet-cols-4 > .ac { padding-top: 4px; padding-bottom: 4px; display: flex; justify-content: center; }
.pass-sum {
    flex: 1; min-height: 56px; border: 1px solid var(--border-default); border-radius: 6px; padding: 12px 14px;
    display: flex; flex-direction: column; justify-content: center; gap: 10px; opacity: 0;
}
.pass-head { display: flex; justify-content: space-between; align-items: baseline; font: 500 13px/1 var(--font-body); color: var(--text-body); }
.pass-pct { font: 500 24px/1 var(--font-display); color: var(--text-brand); }
.pass-track { height: 8px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.pass-fill { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; }

.stage-caption {
    width: min(900px, 100%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; opacity: 0;
}
.track-titles { position: relative; flex: 1 1 300px; height: 58px; }
.track-title {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px;
    opacity: 0; transform: translateY(24px);
    transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.track-title:first-child { opacity: 1; transform: none; }
.track-h { font: 500 clamp(20px, 2.4vw, 26px)/1.2 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.track-sub { font: 500 15px/1.3 var(--font-body); color: var(--blue-200); }
.track-pills { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
.track-pill {
    height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
    background: transparent; color: #fff; font: 500 13px/1 var(--font-body); cursor: pointer;
    transition: all 200ms var(--ease-out);
}
.track-pill.is-on { background: #fff; color: var(--navy-900); border-color: #fff; }

.intro {
    position: absolute; left: 0; right: 0; top: clamp(36px, 8vh, 88px); z-index: 2; padding: 0 24px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.hero-title { font: 500 clamp(34px, 5.4vw, 68px)/1.18 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.hero-line { display: block; overflow: hidden; }
.hero-in-line { display: block; }
.hero-accent { color: var(--blue-300); }
.hero-lead { max-width: 560px; font: 400 18px/1.65 var(--font-body); color: var(--text-inverse-muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-in { transition: opacity 800ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms); }
.js .hero-in { opacity: 0; transform: translateY(20px); }
.js .hero-in-line { transform: translateY(100%); }
.js .is-entered .hero-in { opacity: 1; transform: none; }

.scroll-cue {
    margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    pointer-events: none; transition: opacity 600ms var(--ease-out) 900ms;
}
.js .scroll-cue { opacity: 0; }
.cue-mouse {
    width: 26px; height: 42px; border: 2px solid var(--blue-300); border-radius: 14px;
    display: flex; justify-content: center; padding-top: 8px;
}
.cue-wheel { width: 4px; height: 9px; border-radius: 2px; background: #fff; animation: isamWheel 1.6s cubic-bezier(.2, .8, .2, 1) infinite; }
.cue-chev { display: flex; flex-direction: column; align-items: center; }
.cue-chev div {
    width: 9px; height: 9px; border-right: 2px solid var(--blue-300); border-bottom: 2px solid var(--blue-300);
    animation: isamChev 1.6s ease-in-out infinite;
}
.cue-chev div + div { margin-top: -3px; animation-delay: .2s; }
@keyframes isamWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes isamChev { 0%, 100% { opacity: .25; transform: translateY(-2px) rotate(45deg); } 50% { opacity: 1; transform: translateY(2px) rotate(45deg); } }

.stage-progress { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; opacity: 0; }
.stage-progress-inner { width: min(1152px, calc(100% - 48px)); display: flex; align-items: center; gap: 16px; }
.progress-step { font: 500 13px/1 var(--font-mono); color: #fff; }
.progress-track { flex: 1; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--blue-400); }
.progress-total { font: 500 13px/1 var(--font-mono); color: var(--text-inverse-muted); }

/* ---------- Reveal on scroll ---------- */
.rv { transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 700ms var(--ease-out) var(--d, 0ms), border-color 200ms, box-shadow 200ms; }
.js [data-reveal].rv:not(.is-seen),
.js [data-reveal]:not(.is-seen) .rv { opacity: 0; transform: translateY(36px); }

/* ---------- Coding band ---------- */
.coding-band { background: var(--surface-subtle); }
.coding-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.coding-copy { display: flex; align-items: center; gap: 16px; }
.coding-title { font: 500 19px/1.35 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }
.coding-sub { font: 400 15px/1.5 var(--font-body); color: var(--text-body); }

/* ---------- Director ---------- */
.section-director { padding: 120px 0; }
.director-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 64px; align-items: center; }
.director-photo {
    aspect-ratio: 4 / 5; max-width: 440px; width: 100%; border-radius: 24px; overflow: hidden;
    clip-path: inset(0 0 0 0 round 24px); transition: clip-path 1100ms var(--ease-out);
}
.js [data-reveal]:not(.is-seen) .director-photo { clip-path: inset(0 0 100% 0 round 24px); }
.director-photo img { width: 100%; height: 100%; object-fit: cover; }
.director-photo-empty { background: var(--navy-900); }
.director-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.director-fallback img { width: 96px; height: 96px; margin-bottom: 8px; }
.director-fallback-name { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.director-fallback-sub { font: 500 15px/1 var(--font-body); color: var(--text-inverse-muted); }
.director-copy { display: flex; flex-direction: column; gap: 22px; }
.signature { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.signature-line { width: 40px; height: 1px; background: var(--gray-300); }
.signature-role { font: 500 15px/1 var(--font-body); color: var(--text-muted); }
.signature-name { font: 500 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }

/* ---------- Generic sections ---------- */
.section { padding: 112px 0; }
.section-subtle { background: var(--surface-subtle); }
.section-navy { background: var(--navy-900); }
.card-grid { display: grid; gap: 24px; }
.card-grid-280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card-grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.how-card {
    background: #fff; border: 1px solid var(--border-default); border-radius: 16px; padding: 32px 28px;
    display: flex; flex-direction: column; gap: 18px;
}
.how-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-lg); }
.how-top { display: flex; align-items: center; justify-content: space-between; }
.how-no { font: 500 40px/1 var(--font-display); color: var(--blue-200); }

.results-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden;
}
.result { background: var(--navy-900); padding: 36px 28px; display: flex; flex-direction: column; gap: 14px; }
.result-v { font: 500 clamp(40px, 4.4vw, 56px)/1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.result-u { font-size: .45em; color: var(--blue-300); margin-left: 4px; }
.result-l { font: 500 15px/1.4 var(--font-body); color: var(--text-inverse-muted); }

.review {
    margin: 0; background: var(--surface-subtle); border-radius: 16px; padding: 32px 28px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.review blockquote { margin: 0; font: 400 17px/1.7 var(--font-body); color: var(--text-strong); text-wrap: pretty; }
.review figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-who { font: 500 14px/1 var(--font-body); color: var(--text-muted); }

.schedule { background: #fff; border: 1px solid var(--border-default); border-radius: 16px; overflow: hidden; }
.schedule-row {
    display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center;
    padding: 20px 28px; border-bottom: 1px solid var(--border-subtle); font: 400 15px/1.4 var(--font-body); color: var(--text-body);
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-head { padding: 16px 28px; background: var(--gray-50); border-bottom-color: var(--border-default); font: 500 13px/1.3 var(--font-body); color: var(--text-muted); }
.schedule-course { font: 500 16px/1.35 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }
.schedule-fee { color: var(--text-brand); font-weight: 500; }
@media (max-width: 599px) { .schedule-row { padding-left: 18px; padding-right: 18px; font-size: 14px; } }

/* ---------- Consult ---------- */
.section-consult { padding: 96px 0; }
.consult-card {
    background: var(--brand); border-radius: 24px; padding: clamp(28px, 5vw, 64px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: start;
    transition: transform 900ms var(--ease-out), opacity 900ms var(--ease-out);
}
.js .consult-card:not(.is-seen) { opacity: 0; transform: translateY(48px) scale(.97); }
.consult-copy { display: flex; flex-direction: column; gap: 20px; color: #fff; }
.consult-lead { font: 400 17px/1.65 var(--font-body); color: #fff; }
.consult-phone {
    display: flex; align-items: center; gap: 12px; padding-top: 8px; color: #fff;
    font: 500 clamp(26px, 3vw, 34px)/1 var(--font-display); letter-spacing: -0.02em;
}
.consult-phone:hover { color: #fff; }
.consult-panel { background: #fff; border-radius: 16px; padding: 28px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font: 500 14px/1.4 var(--font-body); color: var(--text-strong); }
.req { color: var(--danger); margin-left: 2px; }
.control {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    background: #fff; color: var(--text-strong); font: 400 15px/1.5 var(--font-body);
    outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.control::placeholder { color: var(--text-muted); }
.control:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
textarea.control { height: auto; padding: 11px 14px; resize: vertical; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap select:invalid { color: var(--text-muted); }
.select-wrap option { color: var(--text-strong); }
.select-wrap .icon { position: absolute; right: 14px; color: var(--text-muted); pointer-events: none; }

.checkbox { position: relative; display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font: 400 14px/1.5 var(--font-body); color: var(--text-body); }
.checkbox input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.checkbox-box {
    width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: var(--radius-xs);
    border: 1.5px solid var(--border-strong); background: #fff; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) var(--ease-out);
}
.checkbox-box .icon { opacity: 0; }
.checkbox input:checked + .checkbox-box { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked + .checkbox-box .icon { opacity: 1; }
.checkbox input:focus-visible + .checkbox-box { box-shadow: var(--focus-ring); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font: 400 13px/1.5 var(--font-body); color: var(--text-muted); min-height: 20px; }
.form-help { font: 400 13px/1.5 var(--font-body); color: var(--text-muted); text-align: center; }

.dialog {
    width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: var(--overlay); }
.dialog-body { padding: 40px 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.dialog-body form { width: 100%; margin-top: 8px; }
.success-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--blue-50); color: var(--text-brand);
    display: flex; align-items: center; justify-content: center;
}
.success-title { font: 500 22px/1.35 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }
.success-text { font: 400 15px/1.6 var(--font-body); color: var(--text-body); }

/* ---------- Location ---------- */
.section-location { padding: 24px 0 112px; }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.map-box { position: relative; min-height: 360px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-default); background: var(--surface-subtle); }
.map { position: absolute; inset: 0; }
.map-fallback {
    position: absolute; inset: 0; padding: 32px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
}
.map-fallback[hidden] { display: none; }
.map-fallback-title { font: 500 18px/1.5 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); }
.info-card { border: 1px solid var(--border-default); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-text { display: flex; flex-direction: column; gap: 6px; }
.info-label { font: 500 13px/1 var(--font-body); color: var(--text-muted); }
.info-value { font: 500 17px/1.5 var(--font-body); color: var(--text-strong); }
.info-small { font-size: 15px; }
a.info-value:hover { color: var(--text-strong); }
a.info-link, a.info-link:hover { color: var(--text-brand); }
.info-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .info-card { padding: 24px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); padding: 56px 0 64px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font: 500 18px/1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.footer-logo img { width: 32px; height: 32px; }
.footer-info { display: flex; flex-direction: column; gap: 6px; font: 400 14px/1.6 var(--font-body); color: var(--text-inverse-muted); }
.footer-family { display: flex; flex-direction: column; gap: 12px; font: 400 14px/1.6 var(--font-body); }
.footer-eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--text-inverse-muted); }
.footer-family a { color: #fff; }
.footer-copy { max-width: 1200px; margin: 40px auto 0; padding: 24px 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font: 400 13px/1 var(--font-body); color: var(--text-inverse-muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rv, .hero-in, .consult-card, .director-photo, .scene, .track-title, .big-word { transition: none !important; }
    .cue-wheel, .cue-chev div { animation: none; }
}

/* ---------- Naver map marker ---------- */
.map-marker { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.map-marker-label {
    padding: 7px 10px; border-radius: var(--radius-sm); background: var(--brand); color: #fff;
    font: 500 13px/1 var(--font-body); white-space: nowrap; box-shadow: var(--shadow-md);
}
.map-marker-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: var(--shadow-md); }
