/* MERIDIAN International — Layered Glass SIGNATURE
 * Navy + glass blur + 3D tilt + parallax depth + KO/EN toggle
 */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@200;300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg-base:        #0d1f3c;
  --bg-elevated:    #142a4f;
  --bg-deep:        #081428;
  --bg-base-rgb:    13, 31, 60;

  --glass-bg:       rgba(255, 255, 255, 0.08);
  --glass-bg-strong:rgba(255, 255, 255, 0.14);
  --glass-bg-soft:  rgba(255, 255, 255, 0.04);
  --glass-border:   rgba(255, 255, 255, 0.18);
  --glass-border-strong: rgba(255, 255, 255, 0.32);
  --glass-blur:     20px;
  --glass-blur-strong: 36px;

  --fg-primary:     #f4f7fb;
  --fg-secondary:   #aebcd5;
  --fg-tertiary:    #6b7a99;

  --accent:         #7dd3fc;
  --accent-hover:   #bae6fd;
  --accent-soft:    rgba(125, 211, 252, 0.18);
  --accent-glow:    rgba(125, 211, 252, 0.45);

  --tier-diamond:   #67e8f9;
  --tier-platinum:  #cbd5e1;
  --tier-gold:      #fbbf24;
  --tier-silver:    #94a3b8;

  --shadow-glass:   0 4px 24px rgba(0,0,0,0.32);
  --shadow-lift:    0 12px 48px rgba(0,0,0,0.5);
  --shadow-glow:    0 0 28px var(--accent-glow);

  --display: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --text:    'Inter', 'Pretendard', system-ui, sans-serif;
  --korean:  'Pretendard', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --gap:        20px;
  --gap-lg:     32px;
  --radius:     24px;
  --radius-sm:  14px;
  --radius-pill: 999px;

  --z-bg:       0;
  --z-content:  10;
  --z-nav:      80;
  --z-cursor:   90;
  --z-drawer:   100;
  --z-banner:   120;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* perspective REMOVED from body — was breaking position:fixed (banner/nav-pill/drawer scrolled with body) */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(125,211,252,0.18) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 60%, rgba(125,211,252,0.10) 0%, transparent 55%);
  background-attachment: fixed;
}
/* 3D perspective scoped to <main> so .glass tilt still works without trapping fixed-position descendants */
main { perspective: 1400px; }
html[lang="ko"] body { font-family: var(--korean); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--fg-primary);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  width: 100%;
  transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Demo Banner ───────────────────────────────────── */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-banner);
  background: rgba(13,31,60,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--fg-secondary); font-family: var(--mono); font-size: 12px;
  padding: 8px 16px; text-align: center; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--glass-border);
}
.demo-banner a { color: var(--accent); text-decoration: underline; font-weight: 500; }
body.has-banner { padding-top: 32px; }

/* ── Floating Glass Pill Nav (top-left) ────────────── */
.nav-pill {
  position: fixed; top: 20px; left: 20px; z-index: var(--z-nav);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 12px 8px 18px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-glass);
}
body.has-banner .nav-pill { top: 52px; }
.nav-brand {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.02em; padding-right: 12px;
  border-right: 1px solid var(--glass-border);
  margin-right: 6px; display: inline-flex; align-items: center; gap: 8px;
}
.nav-brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.nav-link {
  font-family: var(--text); font-weight: 400; font-size: 13px;
  color: var(--fg-secondary);
  padding: 6px 14px; border-radius: var(--radius-pill);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--fg-primary); background: var(--glass-bg-strong); }
.nav-cta {
  background: var(--accent); color: var(--bg-base);
  font-weight: 600; font-size: 13px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  margin-left: 4px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-user { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); }
.nav-user-link { font-family: var(--text); color: var(--ink); font-size: 12px; padding: 6px 10px; }
.nav-user-cta { border: 1px solid var(--accent); color: var(--accent) !important; padding: 6px 12px; border-radius: 100px; font-weight: 600; }
.nav-user-cta:hover { background: var(--accent); color: #fff !important; }

/* T4 mobile: nav-pill 항상 visible (강한 background, 높은 z-index) */
@media (max-width: 1024px) {
  .nav-pill {
    background: rgba(13,31,60,0.95) !important;             /* 어두운 navy로 변경 — 흰 pill이면 brand 글씨 안보임 */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    z-index: 999 !important;
    border-color: rgba(125,211,252,0.4) !important;
  }
  .nav-pill .nav-brand { color: #f4f7fb !important; }
  .nav-pill .nav-user { display: none; }
  .nav-burger {
    display: flex !important; width: 40px; height: 40px;
    background: var(--accent, #7dd3fc) !important; color: #0d1f3c !important;
    align-items: center; justify-content: center;
    font-size: 20px; border: 0; cursor: pointer; font-weight: 700;
  }
}

/* (Old drawer-close block removed — consolidated single block at line ~769) */
.drawer-divider { width: 60%; height: 1px; background: var(--accent, #1d4e89); opacity: 0.4; margin: 12px auto; display: block; border: 0; }
.drawer-user-link { color: var(--accent, #7dd3fc) !important; padding: 12px 0 !important; font-size: 18px !important; font-weight: 600 !important; }
.nav-burger {
  display: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--glass-bg-strong);
  align-items: center; justify-content: center;
  font-size: 16px;
}

/* ── Floating Lang Toggle (top-right) ──────────────── */
.lang-toggle {
  position: fixed; top: 20px; right: 20px; z-index: var(--z-nav);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-secondary);
  box-shadow: var(--shadow-glass);
  transition: color .2s, background .2s;
}
body.has-banner .lang-toggle { top: 52px; }
.lang-toggle:hover { color: var(--fg-primary); background: var(--glass-bg-strong); }
.lang-toggle .icon { width: 14px; height: 14px; opacity: 0.6; }

/* ── Section base ─────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
  z-index: var(--z-content);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.sec-header { padding-bottom: 36px; max-width: 920px; }
.sec-eyebrow {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 16px;
}
.sec-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em; line-height: 1.1;
  color: var(--fg-primary);
}
html[lang="ko"] .sec-title { font-weight: 400; font-family: var(--korean); }
.sec-sub {
  font-size: clamp(16px, 1.6vw, 20px); color: var(--fg-secondary);
  margin-top: 18px; max-width: 720px; line-height: 1.55; font-weight: 300;
}

/* ── Glass card base ──────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  position: relative;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              border-color .25s, background .25s, box-shadow .35s;
  will-change: transform;
}
.glass.tilt:hover {
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-lift);
}
.glass.strong {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
}

/* ── Hero — Layered Stack ─────────────────────────── */
#hero { padding: 0; min-height: 100vh; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: var(--z-bg);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,31,60,0.55) 0%, rgba(13,31,60,0.65) 50%, rgba(13,31,60,0.92) 100%);
}
.hero-stack {
  position: relative; z-index: var(--z-content);
  min-height: 100vh; padding: 140px 24px 80px;
  display: flex; align-items: center; justify-content: center;
}
.hero-layers {
  position: relative; width: 100%; max-width: 1100px;
  transform-style: preserve-3d;
}
.hero-card {
  position: absolute;
  padding: 36px 40px;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.hero-card[data-layer="front"] {
  position: relative;          /* drives layout flow */
  width: min(680px, 86%);
  margin: 0 auto;
  padding: 48px 52px;
  z-index: 3;
}
.hero-card[data-layer="mid"] {
  width: 280px;
  top: -40px; right: -10px;
  z-index: 2;
}
.hero-card[data-layer="back"] {
  width: 320px;
  bottom: -40px; left: -10px;
  z-index: 1;
}
.hero-headline {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.04em; line-height: 1.0;
  white-space: pre-line;
}
html[lang="ko"] .hero-headline { font-family: var(--korean); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.hero-headline .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px); color: var(--fg-secondary);
  margin-top: 22px; max-width: 480px; line-height: 1.5; font-weight: 300;
}
.hero-meta {
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
  margin-top: 26px; letter-spacing: 0.06em;
}

.hero-stat-cell { display: flex; flex-direction: column; gap: 14px; }
.hero-stat-label {
  font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-stat-arc { position: relative; width: 160px; height: 160px; align-self: center; }
.hero-stat-arc svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hero-stat-arc circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.hero-stat-arc .track { stroke: var(--glass-border); }
.hero-stat-arc .bar   { stroke: var(--accent); stroke-dasharray: 0 1000; transition: stroke-dasharray 1.4s cubic-bezier(.2,.8,.2,1); }
.hero-stat-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  font-family: var(--display); font-weight: 300;
  font-size: 44px; letter-spacing: -0.04em;
}
.hero-stat-num .max { font-size: 13px; color: var(--fg-tertiary); margin-top: -2px; letter-spacing: 0.04em; }
.hero-stat-note { font-size: 13px; color: var(--accent); text-align: center; margin-top: 4px; }

.hero-cta-cell { display: flex; flex-direction: column; gap: 12px; }
.hero-cta-cell .label {
  font-family: var(--display); font-weight: 400; font-size: 22px;
  letter-spacing: -0.02em; line-height: 1.2;
}
.hero-cta-cell .arrow { font-size: 18px; color: var(--accent); align-self: flex-end; }

.hero-scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: var(--z-content);
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-tertiary); letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-cue::after {
  content: ''; width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ── About — Glass Tile Grid ──────────────────────── */
.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap);
}
.about-tile {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 340px;
}
.about-tile-img { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.about-tile-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.about-tile-title {
  font-family: var(--display); font-weight: 400;
  font-size: 24px; letter-spacing: -0.02em;
}
html[lang="ko"] .about-tile-title { font-family: var(--korean); font-weight: 600; }
.about-tile-body p { color: var(--fg-secondary); font-size: 15px; line-height: 1.55; font-weight: 300; }

/* ── Faculty — 3D Card Coverflow ──────────────────── */
.faculty-coverflow {
  display: flex; gap: 16px; padding: 20px 8px 32px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  perspective: 1200px;
}
.faculty-coverflow::-webkit-scrollbar { height: 6px; }
.faculty-coverflow::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
.faculty-card {
  flex: 0 0 280px; min-width: 280px;
  scroll-snap-align: center;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.faculty-card-img { aspect-ratio: 4/5; background-size: cover; background-position: center; position: relative; }
.faculty-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,31,60,0.85) 100%);
}
.faculty-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--accent); color: var(--bg-base);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}
.faculty-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.faculty-name {
  font-family: var(--display); font-weight: 500; font-size: 17px;
  letter-spacing: -0.01em;
}
html[lang="ko"] .faculty-name { font-family: var(--korean); font-weight: 600; }
.faculty-role { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }
.faculty-prev { font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary); letter-spacing: 0.04em; }

/* ── IB Curriculum — Vertical Tab Glass ───────────── */
.curr-wrap {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--gap);
  align-items: start;
}
.curr-tabs {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 100px;
}
.curr-tab {
  padding: 14px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: left;
  font-family: var(--display); font-weight: 400; font-size: 14px;
  color: var(--fg-secondary);
  transition: background .2s, color .2s, border-color .2s;
}
.curr-tab:hover { color: var(--fg-primary); background: var(--glass-bg-soft); }
.curr-tab.active {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--accent);
}
.curr-panel { padding: 32px; min-height: 480px; }
.subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.subj-card {
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, background .25s, border-color .25s;
}
.subj-card:hover { background: var(--glass-bg); border-color: var(--glass-border-strong); transform: translateY(-3px); }
.subj-img { aspect-ratio: 16/10; background-size: cover; background-position: center; border-radius: 8px; }
.subj-code {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.subj-name {
  font-family: var(--display); font-weight: 500; font-size: 16px;
  letter-spacing: -0.01em; line-height: 1.25;
}
html[lang="ko"] .subj-name { font-family: var(--korean); font-weight: 600; }
.subj-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary); }
.subj-avg {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-secondary);
  margin-top: auto;
}
.subj-avg .num { color: var(--accent); font-weight: 600; }
.core-card { padding: 24px; }
.core-card .subj-img { aspect-ratio: 16/8; }
.core-name { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.core-body { color: var(--fg-secondary); font-size: 14px; line-height: 1.55; font-weight: 300; }

/* ── Schools — Acceptance Wall ────────────────────── */
.schools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.school-card {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s, border-color .25s;
}
.school-img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.school-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.school-name { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.school-loc { font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary); letter-spacing: 0.04em; }
.school-stats {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--glass-border);
  font-family: var(--mono); font-size: 11px; color: var(--fg-secondary);
}
.school-stats .accepted { color: var(--accent); font-weight: 600; }
.school-arc { position: relative; width: 36px; height: 36px; }
.school-arc svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.school-arc circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.school-arc .track { stroke: var(--glass-border); }
.school-arc .bar { stroke: var(--accent); stroke-dasharray: 0 1000; transition: stroke-dasharray 1.2s; }
.school-arc-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--fg-primary);
}

/* ── Alumni — Glass Bubble Grid ───────────────────── */
.alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.alumni-bubble {
  aspect-ratio: 1; padding: 0; overflow: hidden;
  position: relative; cursor: pointer;
  border-radius: var(--radius);
  transition: transform .35s, border-color .25s;
}
.alumni-bubble img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s, filter .35s; filter: grayscale(0.2) brightness(0.85); }
.alumni-bubble:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }
.alumni-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13,31,60,0.95) 100%);
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity .35s;
}
.alumni-bubble:hover .alumni-overlay { opacity: 1; }
.alumni-bubble .always {
  position: absolute; bottom: 16px; left: 18px; right: 18px; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-secondary); letter-spacing: 0.04em;
}
.alumni-bubble:hover .always { opacity: 0; transition: opacity .25s; }
.alumni-name { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.alumni-score { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 2px; }
.alumni-dest { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--accent-hover); margin-top: 8px; }

/* ── Process — Step Glass Cards ───────────────────── */
.process-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.process-step {
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.process-num {
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  letter-spacing: 0.1em;
}
.process-name {
  font-family: var(--display); font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em;
}
html[lang="ko"] .process-name { font-family: var(--korean); font-weight: 600; }
.process-body { color: var(--fg-secondary); font-size: 14px; line-height: 1.55; font-weight: 300; }

/* ── Calculator ───────────────────────────────────── */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
}
.calc-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.calc-row { display: flex; flex-direction: column; gap: 8px; }
.calc-row label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-secondary); letter-spacing: 0.04em;
}
.calc-row label .val {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  color: var(--accent);
}
.calc-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  padding: 0; border: 0;
  outline: none;
}
.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform .15s;
}
.calc-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 0;
}
.calc-bonus { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.calc-result { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.calc-mega {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(80px, 10vw, 144px);
  letter-spacing: -0.05em; line-height: 1;
  color: var(--accent);
  text-align: center;
}
.calc-mega .max {
  font-size: 24px; color: var(--fg-tertiary);
  margin-left: 16px;
  letter-spacing: 0;          /* parent의 -0.05em 차단 — 안 그러면 24px 글자에 -6.4px 띄어쓰기 적용되어 글자 겹침 */
  font-weight: 400;           /* parent weight 200(hairline) + 좁은 spacing 충돌 완화 */
  display: inline-block;
  vertical-align: baseline;
}
.calc-tier-badge {
  align-self: center;
  padding: 10px 24px; border-radius: var(--radius-pill);
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--glass-bg-strong);
  border: 1px solid currentColor;
}
.calc-range {
  text-align: center; color: var(--fg-secondary); font-size: 14px;
  padding: 16px; border-top: 1px solid var(--glass-border);
}
.calc-range strong { color: var(--fg-primary); display: block; font-size: 16px; margin-top: 4px; font-family: var(--display); font-weight: 500; }

/* ── Press — Glass Quote Cards ────────────────────── */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.press-card { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.press-source {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.press-en {
  font-family: var(--display); font-weight: 300; font-size: 19px;
  font-style: italic; letter-spacing: -0.01em; line-height: 1.4;
  color: var(--fg-primary);
}
.press-en::before { content: '"'; color: var(--accent); margin-right: 4px; }
.press-en::after  { content: '"'; color: var(--accent); margin-left: 4px; }
.press-ko {
  font-family: var(--korean); font-weight: 300; font-size: 14px;
  color: var(--fg-secondary); line-height: 1.55;
  padding-top: 12px; border-top: 1px solid var(--glass-border);
}

/* ── CTA ──────────────────────────────────────────── */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
.cta-cell { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label {
  display: block;
  font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.cta-submit {
  width: 100%; padding: 16px;
  background: var(--accent); color: var(--bg-base);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.cta-submit:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.cta-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary); text-align: center; margin-top: 8px; letter-spacing: 0.04em; }

.campus-card {
  padding: 18px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 4px;
  transition: background .2s, border-color .2s;
}
.campus-card:hover { background: var(--glass-bg); border-color: var(--glass-border-strong); }
.campus-name { font-family: var(--display); font-weight: 500; font-size: 16px; }
html[lang="ko"] .campus-name { font-family: var(--korean); font-weight: 600; }
.campus-line { font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary); }

/* ── Footer ───────────────────────────────────────── */
.footer {
  margin-top: 60px;
  padding: 40px 0;
  background: var(--glass-bg-soft);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
.footer h4 {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px; font-weight: 500;
}
.footer-list { display: flex; flex-direction: column; gap: 6px; }
.footer-list a { font-size: 14px; color: var(--fg-secondary); transition: color .2s; }
.footer-list a:hover { color: var(--accent); }
.footer-meta {
  max-width: 1280px; margin: 32px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary);
  letter-spacing: 0.04em;
}
.footer-brand { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.footer-manifesto { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Cursor Glass Halo ────────────────────────────── */
.cursor-halo {
  position: fixed; top: 0; left: 0;
  width: 80px; height: 80px;
  pointer-events: none; z-index: var(--z-cursor);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  transform: translate(-100px, -100px);
  transition: transform 0.06s linear, opacity .25s;
  mix-blend-mode: screen;
  opacity: 0.7;
  display: none;
}
@media (pointer: fine) { .cursor-halo { display: block; } }

/* ── Reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* drawer 열린 동안 nav-pill / lang-toggle 숨김 (그렇지 않으면 메뉴 위에 떠서 가림) */
body.drawer-open .nav-pill,
body.drawer-open .lang-toggle { display: none !important; }
body.drawer-open { overflow: hidden; } /* 배경 스크롤 잠금 */

/* ── Drawer ───────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0;
  width: min(360px, 88vw); height: 100vh; height: 100dvh;
  background: rgba(13,31,60,0.96);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  border-left: 1px solid var(--glass-border);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  padding: 80px 28px 28px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer a {
  font-family: var(--display); font-weight: 400; font-size: 22px;
  padding: 12px 0; border-bottom: 1px solid var(--glass-border);
}
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: calc(var(--z-drawer) - 1); opacity: 0; pointer-events: none;
  transition: opacity .35s;
  backdrop-filter: blur(6px);
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

/* Drawer X close (T4 frosted glass) — accent solid, banner-safe top */
.drawer-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--accent, #7dd3fc); color: #0d1f3c !important;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--text); font-size: 28px; font-weight: 700;
  line-height: 1; cursor: pointer;
  border: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform .2s, background .2s; z-index: 2;
}
body.has-banner .drawer-close { top: 24px; } /* drawer covers entire viewport now — no banner offset needed */
.drawer-close:hover { background: var(--accent-hover, #bae6fd); transform: rotate(90deg); }
.drawer-divider { width: 60%; height: 1px; background: var(--accent); opacity: 0.4; margin: 12px auto; }
.drawer-user-link { color: var(--accent) !important; padding: 12px 0 !important; font-size: 18px !important; font-weight: 500 !important; }

/* ── Mobile (1024 / 768 / 480) ─────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .sec-title { font-size: clamp(28px, 6vw, 44px); }
  .sec-sub { font-size: 15px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .schools-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .process-list, .alumni-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .curr-wrap { grid-template-columns: 1fr; gap: 20px; }
  .curr-tabs { flex-direction: row; position: static; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .calc-wrap, .press-grid, .cta-grid { grid-template-columns: 1fr; gap: 18px; }
  .subj-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-stack { padding: 110px 20px 70px; }
  .hero-headline { font-size: clamp(36px, 8vw, 56px); line-height: 1.1; }
  .hero-card[data-layer="front"] { width: 100%; padding: 28px 24px; }
  .hero-card[data-layer="mid"], .hero-card[data-layer="back"] { width: 100%; position: relative; top: auto; right: auto; bottom: auto; left: auto; margin-top: 14px; padding: 24px 22px; }
  .lang-toggle { padding: 6px 12px; font-size: 11px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-pill .nav-link, .nav-pill .nav-cta { display: none; }
  .nav-burger { display: inline-flex !important; }
  .nav-pill { padding: 6px 6px 6px 14px; }
  .hero-headline { font-size: clamp(32px, 9vw, 44px); }
  .hero-sub { font-size: 14px; }
  .schools-grid, .process-list, .alumni-grid, .subj-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { flex-direction: column; gap: 8px; text-align: center; }
  .sec-header { padding-bottom: 24px; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero-stack { padding-top: 100px; }
  .calc-mega { font-size: 56px !important; }
  .hero-card[data-layer="front"] { padding: 22px 18px; }
  input, select, textarea { font-size: 16px; padding: 12px 14px; } /* iOS zoom 방지 */
  .sec-title { font-size: clamp(24px, 7vw, 36px); }
}

/* ── Reduce motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .cursor-halo { display: none !important; }
}


/* ===========================================
   RETROFIT v1.27 — motionsites integration
   slug: glass-frost
   effects: N, S
   =========================================== */
/* === retrofit v1.27 motionsites liquid-glass (MIT) === */
.btn, .cta-btn, .nav-cta, [class*="-btn"], [class*="-cta"], button[type="submit"] {
  position: relative;
  overflow: hidden;
}
.btn::before, .cta-btn::before, .nav-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 50%, rgba(255,255,255,0.12));
  opacity: 0.7; border-radius: inherit;
  transition: opacity 0.3s;
}
.btn:hover::before, .cta-btn:hover::before, .nav-cta:hover::before { opacity: 1; }/* === retrofit v1.27 motionsites floating-pill-nav (MIT) === */
header.topbar, [class*="nav-"] {
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s;
}
header.topbar.rt-scrolled, [class*="nav-"].rt-scrolled {
  padding-top: 12px !important; padding-bottom: 12px !important;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(19,19,19,0.85) !important;
}