/* ===== Apple-Style LSJ Academy ===== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --gold: #c4972a;
  --gold-light: #d4a94a;
  --pink: #F5457A;
  --frost: rgba(255, 255, 255, 0.72);
  --frost-border: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ===== Navbar ===== */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
  padding: 0 max(1.25rem, env(safe-area-inset-left));
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--frost);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--frost-border);
}

.navbar-brand { display: flex; align-items: center; }
.navbar-logo { height: 30px; width: auto; }

.navbar-links { display: flex; gap: 1.25rem; }

.navbar-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.navbar-link:hover { color: var(--text); }

/* ===== Hero ===== */

.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh;
  padding: 80px 1.5rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 28%, #FFF8EC 0%, transparent 50%),
    radial-gradient(ellipse at 28% 78%, rgba(236, 72, 153, 0.045) 0%, transparent 40%),
    var(--bg);
  overflow: hidden;
}

.hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ===== Hero Content Styles ===== */

.hero-content {
  position: relative; z-index: 15;
  display: flex; flex-direction: column; align-items: center;
}

/* Load sequence — children fade up in order */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content > .hero-logo-wrap { animation-delay: 0s; }
.hero-content > .hero-eyebrow   { animation-delay: 0.4s; }
.hero-content > h1              { animation-delay: 0.7s; }
.hero-content > .hero-stats     { animation-delay: 1.6s; }
.hero-content > .hero-disclaimer{ animation-delay: 2.5s; }
.hero-content > .scroll-indicator{ animation-delay: 2.8s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo float + glow */
.hero-logo-wrap {
  position: relative;
  margin-bottom: 1.25rem;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}
.hero-logo-wrap::after {
  content: '';
  position: absolute; inset: -22px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.32) 0%, transparent 70%);
  filter: blur(18px);
  z-index: -1;
  animation: heroLogoPulse 3s ease-in-out infinite;
}
.hero-logo {
  width: 80px; height: auto;
  transform: translate(var(--px, 0), calc(var(--py, 0) - 4px)) rotate(var(--rz, 0));
  animation: heroLogoFloat 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translate(var(--px, 0), calc(var(--py, 0) + 0px)) rotate(var(--rz, 0)); }
  50%      { transform: translate(var(--px, 0), calc(var(--py, 0) - 8px)) rotate(var(--rz, 0)); }
}
.hero-logo-wrap {
  transform: translateY(var(--sy, 0));
}
@keyframes heroLogoPulse {
  0%, 100% { opacity: 0.4; transform: scale(1);    }
  50%      { opacity: 0.85; transform: scale(1.18); }
}

.hero-eyebrow {
  font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.04em;
}

/* Char stagger for "최고를 만나야" */
.hl-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.2s ease;
}
.hl-char:hover { transform: translateY(-4px); }

/* "최상위가 된다" gold shine */
.hero h1 .hl-shine {
  font-weight: 700;
  background: linear-gradient(90deg, #BA7517 0%, #FAC775 30%, #FFE9B8 50%, #FAC775 70%, #BA7517 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShine 3s linear infinite;
}
@keyframes heroShine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center;  }
}

/* Hero Stats */

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-alt);
  border-radius: 999px;
}

.hero-stat {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.25rem 1rem;
  transition: transform 0.2s ease;
  cursor: default;
}
.hero-stat:hover { transform: translateY(-3px); }
.hero-stat:hover .hero-stat-num { color: var(--gold); }

/* Tooltip */
.hero-stat[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.35rem 0.65rem;
  background: var(--text); color: var(--bg);
  border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.hero-stat[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-stat--highlight .hero-stat-num {
  color: var(--gold);
  font-size: 1.7rem;
}

.hero-stat-num {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem; font-weight: 700;
  line-height: 1; color: var(--text);
  transition: color 0.2s ease;
}
.hero-stat-num.bounce {
  animation: heroStatBounce 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes heroStatBounce {
  0%   { transform: scale(1);    }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1);    }
}

.hero-stat-label {
  margin-top: 0.2rem;
  font-size: 0.6875rem; font-weight: 500;
  color: var(--text-secondary);
}

.hero-stat-divider {
  width: 1px; height: 28px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.hero-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

.scroll-indicator {
  margin-top: 2.5rem;
  width: 1px; height: 60px;
  background:
    linear-gradient(180deg, transparent 0%, #BA7517 45%, #FAC775 50%, #BA7517 55%, transparent 100%);
  background-size: 100% 220%;
  animation: heroScrollFlow 2s linear infinite;
}
@keyframes heroScrollFlow {
  0%   { background-position: 0 -110%; }
  100% { background-position: 0 110%;  }
}

/* Bottom dock — per-icon hover micro-interactions */
.dock-action--call:hover .icon-circle svg { animation: dockPhoneShake 0.5s ease-in-out infinite; }
.dock-action[href*="map"]:hover .icon-circle svg { animation: dockPinJump 0.6s ease-in-out infinite; }
.dock-action[href*="atedu"]:hover .icon-circle svg { animation: dockBlink 1s steps(2) infinite; }
.dock-action[href*="blog"]:hover .icon-circle svg { animation: dockPageFlip 0.8s ease-in-out infinite; }
.dock-action[href*="kakao"]:hover .icon-circle svg { animation: dockKakaoBounce 0.6s ease-in-out infinite; }
@keyframes dockKakaoBounce {
  0%, 100% { transform: scale(1)    rotate(0);    }
  50%      { transform: scale(1.12) rotate(-6deg); }
}

@keyframes dockPhoneShake {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-15deg); }
  75%      { transform: rotate(15deg);  }
}
@keyframes dockPinJump {
  0%, 100% { transform: translateY(0);    }
  50%      { transform: translateY(-4px); }
}
@keyframes dockBlink {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.45;}
}
@keyframes dockPageFlip {
  0%, 100% { transform: rotateY(0deg);  }
  50%      { transform: rotateY(-25deg);}
}

/* Reduced-motion: 핵심 브랜드 효과(로고 부유/글로우, 도크 펄스, 타이틀 샤인)는 유지하고 진입 시퀀스만 정지 */
@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .scroll-indicator,
  .hl-char {
    animation: none;
  }
  .hero-content > * { opacity: 1; transform: none; }
  .hl-char { opacity: 1; transform: none; }
}

/* ===== Section Common ===== */

.section { padding: 5rem 1.5rem; }
.section--alt { background: var(--bg-alt); }
.section-inner { max-width: 980px; margin: 0 auto; }

.section-heading {
  margin: 0 0 3rem;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 600; letter-spacing: -0.03em;
  text-align: center; line-height: 1.1;
}

/* ===== Section Logo (각 섹션 헤더 위 핑크 로고) ===== */

.section-logo {
  display: block;
  width: 44px; height: auto;
  margin: 0 auto 0.85rem;
  filter: drop-shadow(0 4px 14px rgba(236, 72, 153, 0.20));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-logo:hover { transform: translateY(-2px) scale(1.05); }

/* 다크 섹션(명예의전당)에서는 그림자/글로우 진하게 */
.section-logo--dark {
  filter:
    drop-shadow(0 0 14px rgba(236, 72, 153, 0.45))
    drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

@media (max-width: 600px) {
  .section-logo { width: 36px; margin-bottom: 0.65rem; }
}

/* ===== Reveal ===== */

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== Hall of Fame: Dark Luxury ===== */

.section--hall-dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at top, #2A2520 0%, #1A1612 50%, #0F0D0A 100%);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #BA7517 30%, #FAC775 50%, #BA7517 70%, transparent) 1;
  padding: 6rem 1.5rem 7rem;
}
.section--hall-dark .section-inner { position: relative; z-index: 5; }

/* Layer wrapper */
.hall-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}

/* Spotlights */
.hall-spotlight {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.hall-spotlight--main {
  top: -150px; left: 50%;
  width: 800px; height: 1000px;
  background: radial-gradient(ellipse at top,
    rgba(250,199,117,0.18) 0%,
    rgba(250,199,117,0.06) 30%,
    transparent 70%);
  transform: translateX(-50%);
  animation: hallSway 8s ease-in-out infinite;
}
.hall-spotlight--left {
  top: -50px; left: 5%;
  width: 400px; height: 600px;
  background: radial-gradient(ellipse at top, rgba(250,199,117,0.08) 0%, transparent 60%);
  animation: hallSwayL 10s ease-in-out infinite;
}
.hall-spotlight--right {
  top: -50px; right: 5%;
  width: 400px; height: 600px;
  background: radial-gradient(ellipse at top, rgba(250,199,117,0.08) 0%, transparent 60%);
  animation: hallSwayR 12s ease-in-out infinite;
}
@keyframes hallSway {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  50%      { transform: translateX(-48%) rotate(2deg); }
}
@keyframes hallSwayL {
  0%, 100% { transform: rotate(2deg);  }
  50%      { transform: rotate(-2deg); }
}
@keyframes hallSwayR {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg);  }
}

/* Noise */
.hall-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Particles canvas */
.hall-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Corner ornaments */
.hall-corner {
  position: absolute;
  width: 40px; height: 40px;
  border-color: rgba(250, 199, 117, 0.4);
  border-style: solid; border-width: 0;
}
.hall-corner--tl { top: 24px;    left: 24px;  border-top-width: 1px;    border-left-width: 1px;  }
.hall-corner--tr { top: 24px;    right: 24px; border-top-width: 1px;    border-right-width: 1px; }
.hall-corner--bl { bottom: 24px; left: 24px;  border-bottom-width: 1px; border-left-width: 1px;  }
.hall-corner--br { bottom: 24px; right: 24px; border-bottom-width: 1px; border-right-width: 1px; }

/* Eyebrow + Title */
.hall-eyebrow {
  display: block; text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.32em;
  color: #FAC775;
  margin-bottom: 0.85rem;
}
.section--hall-dark .hall-title {
  font-family: "Noto Serif KR", "Pretendard", serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FAC775 0%, #FFE9B8 40%, #BA7517 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(250, 199, 117, 0.25);
  animation: hallTitleGlow 4s ease-in-out infinite;
  margin-bottom: 3rem;
}
@keyframes hallTitleGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(250, 199, 117, 0.2)); }
  50%      { filter: drop-shadow(0 0 40px rgba(250, 199, 117, 0.4)); }
}

/* === Override hall-perfect (수능만점 블록) for dark === */
.section--hall-dark .hall-perfect {
  background:
    linear-gradient(180deg, rgba(250,199,117,0.12) 0%, rgba(255,248,236,0.04) 100%);
  border: 1px solid rgba(250, 199, 117, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.section--hall-dark .hall-perfect-title {
  background: linear-gradient(90deg, #FAC775 0%, #FFE9B8 50%, #FAC775 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section--hall-dark .hp-name { color: #FAC775; }
.section--hall-dark .hp-dept-univ { color: #fff; }
.section--hall-dark .hp-dept { color: rgba(255,255,255,0.6); }

/* === Override hall-rows + hall-row + hr-item for dark === */
.section--hall-dark .hall-row {
  background: rgba(35, 30, 25, 0.55);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.section--hall-dark .hall-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(250, 199, 117, 0.3);
}
.section--hall-dark .hall-row-head {
  border-right-color: rgba(255, 255, 255, 0.08);
}
.section--hall-dark .hall-row-name { color: #fff; letter-spacing: 0.03em; }

/* New brand color shades for dark bg */
.section--hall-dark .hall-row--accent { --row-color: #F09595; --row-color-light: #ffd0c5; }
.section--hall-dark .hall-row--snu    { --row-color: #85B7EB; --row-color-light: #c1dcff; }
.section--hall-dark .hall-row--yonsei { --row-color: #AFA9EC; --row-color-light: #d6d2ff; }
.section--hall-dark .hall-row--korea  { --row-color: #F0997B; --row-color-light: #ffcfbe; }
.section--hall-dark .hall-row--accent .hall-row-name { color: #F09595; }
.section--hall-dark .hall-row--snu    .hall-row-name { color: #85B7EB; }
.section--hall-dark .hall-row--yonsei .hall-row-name { color: #AFA9EC; }
.section--hall-dark .hall-row--korea  .hall-row-name { color: #F0997B; }

/* hr-item on dark */
.section--hall-dark .hr-item { color: rgba(255,255,255,0.55); }
.section--hall-dark .hr-item b { color: #fff; }
.section--hall-dark .hr-item:hover {
  color: #fff;
  background: rgba(250, 199, 117, 0.1);
}
.section--hall-dark .hr-item--dasan b { color: #FAC775; }

/* Marquee mask edges over dark bg */
.section--hall-dark .hall-row-marquee {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hall-spotlight, .section--hall-dark .hall-title { animation: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .section--hall-dark { padding: 4rem 1rem 4.5rem; }
  .section--hall-dark .hall-title { font-size: clamp(2rem, 8vw, 2.6rem); margin-bottom: 2rem; }
  .hall-spotlight--main { width: 480px; height: 600px; }
  .hall-spotlight--left, .hall-spotlight--right { width: 240px; height: 360px; }
  .hall-corner { width: 28px; height: 28px; }
  .hall-corner--tl, .hall-corner--tr { top: 14px; }
  .hall-corner--bl, .hall-corner--br { bottom: 14px; }
  .hall-corner--tl, .hall-corner--bl { left: 14px; }
  .hall-corner--tr, .hall-corner--br { right: 14px; }
}

.hall-highlight {
  text-align: center;
  font-size: 1.0625rem; font-weight: 600;
  color: var(--gold);
  margin: -1.5rem 0 2rem;
  letter-spacing: 0.02em;
}

/* ===== Hall: 전과목 수능만점 강조 블록 ===== */

.hall-perfect {
  position: relative;
  margin: -0.5rem 0 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top, rgba(196,151,42,0.12) 0%, rgba(255,255,255,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23c4972a' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(196,151,42,0.07) 0%, rgba(196,151,42,0.02) 100%);
  border: 1px solid rgba(196,151,42,0.25);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hall-perfect-intro {
  display: flex;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0.25rem 0.5rem;
  border-right: 1px solid rgba(186, 117, 23, 0.18);
}

.hall-perfect-title {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.25;
  background: linear-gradient(90deg, var(--gold) 0%, #f4d27a 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hpShine 3s linear infinite;
  filter: drop-shadow(0 2px 5px rgba(186, 117, 23, 0.18));
  word-break: keep-all;
}
.hall-perfect-title em {
  position: relative;
  display: inline-block;
  font-style: normal; font-weight: 800;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 0 0.18em;
  vertical-align: -0.06em;
  letter-spacing: -0.04em;
  /* 부모의 transparent text-fill 덮고 밝은 크림 + 골드 stroke + 골드 글로우 */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #FFF6DC;
  color: #FFF6DC;
  -webkit-text-stroke: 1.4px #BA7517;
  text-shadow:
    0 2px 0 rgba(133, 79, 11, 0.55),
    0 0 14px rgba(255, 220, 130, 1),
    0 0 28px rgba(250, 199, 117, 0.7),
    0 4px 12px rgba(186, 117, 23, 0.45);
  animation: hpEmPulse 2.4s ease-in-out infinite;
}
@keyframes hpShine {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes hpEmPulse {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.08); }
}

.hp-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0.25rem;
  display: flex; flex-direction: row; align-items: center;
  gap: 0.85rem;
  text-align: left;
  height: 100%;
}

.hp-crest {
  flex-shrink: 0;
  width: clamp(56px, 6vw, 76px);
  height: clamp(56px, 6vw, 76px);
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(31, 60, 138, 0.18));
}

.hp-info {
  display: flex; flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
@keyframes hpPulse {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%      { transform: scale(1.06); opacity: 0;   }
}
/* hp-card 펄스, "전 과목 수능 만점 2명 배출" em 골드 샤인은 브랜드 효과로 유지 */

.hp-name {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 0.3rem;
}

.hp-dept-univ {
  font-size: clamp(0.78rem, 0.95vw, 0.875rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.005em;
}
.hp-dept {
  font-size: clamp(0.78rem, 0.95vw, 0.875rem);
  font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .hall-perfect {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.4rem 1rem 1.3rem;
  }
  .hall-perfect-intro {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid rgba(186, 117, 23, 0.18);
    padding-bottom: 0.85rem;
  }
  .hall-perfect-title { font-size: clamp(1.05rem, 4vw, 1.35rem); }
  .hall-perfect-title em { font-size: clamp(1.45rem, 6vw, 1.95rem); }
}

@media (max-width: 480px) {
  .hp-card { padding: 0.35rem 0.1rem; gap: 0.55rem; }
  .hp-crest { width: 44px; height: 44px; }
  .hp-name { font-size: 1.15rem; }
  .hp-dept-univ, .hp-dept { font-size: 0.72rem; }
}

.stat-number {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 700; line-height: 1;
  color: var(--text);
}
.stat-number--accent { color: var(--gold); }

.stat-label {
  display: block; margin-top: 0.5rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-secondary);
}

/* ===== Hall Rows (4 stacked wide marquee cards) ===== */

.hall-rows {
  display: flex; flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.hall-row {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid; grid-template-columns: auto 1fr;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hall-row::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--row-color, var(--gold));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s ease-out;
}
.hall-row:hover::before { transform: scaleY(1); }

/* Brand colors per row */
.hall-row--accent { --row-color: #c4972a; --row-color-light: #f4d27a; }
.hall-row--snu    { --row-color: #003876; --row-color-light: #4a7cc1; }
.hall-row--yonsei { --row-color: #00295c; --row-color-light: #3e6dab; }
.hall-row--korea  { --row-color: #862633; --row-color-light: #c45a6c; }

.hall-row--accent .hall-row-num,
.hall-row--snu .hall-row-num,
.hall-row--yonsei .hall-row-num,
.hall-row--korea .hall-row-num {
  background: linear-gradient(90deg, var(--row-color) 0%, var(--row-color-light) 50%, var(--row-color) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hpShine 4s linear infinite;
}
.hall-row--accent .hall-row-name,
.hall-row--snu .hall-row-name,
.hall-row--yonsei .hall-row-name,
.hall-row--korea .hall-row-name {
  color: var(--row-color);
  letter-spacing: 0.03em;
  font-weight: 700;
}

.hall-row--snu:hover    { box-shadow: 0 10px 28px rgba(0,56,118,0.18), var(--shadow-card); }
.hall-row--yonsei:hover { box-shadow: 0 10px 28px rgba(0,41,92,0.18), var(--shadow-card); }
.hall-row--korea:hover  { box-shadow: 0 10px 28px rgba(134,38,51,0.18), var(--shadow-card); }
.hall-row--accent:hover { box-shadow: 0 10px 28px rgba(196,151,42,0.22), var(--shadow-card); }

.hall-row { transition: box-shadow 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .hall-row--accent .hall-row-num,
  .hall-row--snu .hall-row-num,
  .hall-row--yonsei .hall-row-num,
  .hall-row--korea .hall-row-num {
    animation: none;
  }
}

.hall-rows.revealed .hall-row {
  opacity: 1;
  transform: translateY(0);
}
.hall-rows.revealed .hall-row:nth-child(1) { transition-delay: 0.05s; }
.hall-rows.revealed .hall-row:nth-child(2) { transition-delay: 0.15s; }
.hall-rows.revealed .hall-row:nth-child(3) { transition-delay: 0.25s; }
.hall-rows.revealed .hall-row:nth-child(4) { transition-delay: 0.35s; }

.hall-row-head {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem;
  min-width: 9rem;
}

.hall-row-head:has(.hall-row-crest) {
  flex-direction: row;
  text-align: left;
  gap: 0.85rem;
  min-width: 11.5rem;
}
.hall-row-head-text {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.25rem;
}
.hall-row-crest {
  flex-shrink: 0;
  width: clamp(44px, 4.5vw, 56px);
  height: clamp(44px, 4.5vw, 56px);
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(31, 60, 138, 0.2));
}
.hall-row-crest[src*="medical"] {
  filter: drop-shadow(0 2px 6px rgba(196, 151, 42, 0.35));
}

.hall-row-num {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.hall-row-name {
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.hall-row--accent .hall-row-name { color: var(--gold); }

.hall-row-marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.hall-row-track {
  display: inline-flex;
  gap: 2.25rem;
  padding-left: 2.25rem;
  white-space: nowrap;
  animation: hrScroll 60s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease-out 0.3s;
}
.hall-rows.revealed .hall-row-track { opacity: 1; }
.hall-row-marquee:hover .hall-row-track { animation-play-state: paused; }

@keyframes hrScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hr-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  padding: 0.2rem 0.5rem;
  margin: -0.2rem -0.5rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hr-item:hover {
  color: var(--text);
  background: rgba(196, 151, 42, 0.08);
  transform: translateY(-2px);
}
.hr-item b {
  font-weight: 700; color: var(--text);
  margin-right: 0.4rem;
}
.hr-item--dasan b { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .hall-row-track { animation: none; }
}

/* ===== Results Card Grid ===== */

.results-sub {
  text-align: center;
  font-size: 0.875rem; color: var(--text-secondary);
  margin: -1.5rem 0 2.5rem;
}

/* ===== Results: warm background + tiered hierarchy ===== */

.section--results {
  background:
    radial-gradient(ellipse at 50% 0%, #FFF8EC 0%, transparent 45%),
    #FAFAF7;
}

.section--results .section-heading { margin-bottom: 2.25rem; }

/* Tier blocks */
.results-tier { margin-bottom: 2.25rem; }
.results-tier:last-of-type { margin-bottom: 0; }

.tier-head {
  display: flex; align-items: baseline; gap: 0.9rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.tier-bar {
  flex-shrink: 0;
  align-self: center;
  width: 28px; height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.tier-name {
  flex: 1;
  font-size: 1.0625rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.005em;
}
.results-tier--2 .tier-bar { background: rgba(0,0,0,0.4); }

/* Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* Base card */
.r-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1rem 1.1rem 0.85rem;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.r-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Tier 1 — 의약학 (gold accent + larger + badge) */
.r-card--med {
  background: linear-gradient(135deg, #FFF8EC 0%, #FFFFFF 60%);
  border: 1px solid rgba(186, 117, 23, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1rem;
  overflow: hidden;
}
.r-card--med::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #FAC775, #BA7517);
}
.r-card--med:hover {
  border-color: rgba(186, 117, 23, 0.5);
  box-shadow: 0 10px 24px rgba(186, 117, 23, 0.15);
}
.r-card--med .r-univ { color: var(--gold); }
.r-card--med .r-dept { font-size: 1.0625rem; }

/* Top-tier card (post-merge) — school-color left bar (3px) */
.r-card--top { border-left: 3px solid #1a1a1a; }

/* Multi-card schools — strong distinct hues */
.r-card--top[data-school="yonsei"]    { border-left-color: #003876; } /* 연세 navy */
.r-card--top[data-school="korea"]     { border-left-color: #862633; } /* 고려 crimson */
.r-card--top[data-school="skku"]      { border-left-color: #1F4E8C; } /* 성균관 blue */
.r-card--top[data-school="hanyang"]   { border-left-color: #0E4D92; } /* 한양 navy */
.r-card--top[data-school="unist"]     { border-left-color: #1A6B3A; } /* UNIST green */
.r-card--top[data-school="cau"]       { border-left-color: #034EA2; } /* 중앙 royal blue */
.r-card--top[data-school="khu"]       { border-left-color: #9b1c2e; } /* 경희 crimson */
.r-card--top[data-school="ewha"]      { border-left-color: #00583B; } /* 이화 deep green */
.r-card--top[data-school="konkuk"]    { border-left-color: #056838; } /* 건국 green */

/* Single-card schools */
.r-card--top[data-school="sookmyung"] { border-left-color: #B62E70; } /* 숙명 magenta */
.r-card--top[data-school="soongsil"]  { border-left-color: #2B3B7C; } /* 숭실 navy */
.r-card--top[data-school="hongik"]    { border-left-color: #00467F; } /* 홍익 deep blue */
.r-card--top[data-school="dongguk"]   { border-left-color: #E66B0A; } /* 동국 saffron */
.r-card--top[data-school="kookmin"]   { border-left-color: #002F6C; } /* 국민 navy */
.r-card--top[data-school="seoultech"] { border-left-color: #1B458F; } /* 서울과기 royal */
.r-card--top[data-school="sejong"]    { border-left-color: #BC0019; } /* 세종 red */
.r-card--top[data-school="cnue"]      { border-left-color: #006A4E; } /* 춘천교대 teal */
.r-card--top[data-school="sungshin"]  { border-left-color: #93268F; } /* 성신 purple */
.r-card--top[data-school="swu"]       { border-left-color: #00529B; } /* 서울여대 blue */
.r-card--top[data-school="duksung"]   { border-left-color: #E07700; } /* 덕성 orange */

/* Information hierarchy — dept dominant */
.r-univ {
  display: block;
  font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.r-card--top .r-univ { color: var(--text); }

.r-dept {
  display: block;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.r-name {
  display: block;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  margin-top: auto;
  letter-spacing: -0.005em;
}

.results-more {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ===== Curriculum / Roadmap ===== */

.section--curriculum {
  background:
    radial-gradient(ellipse at 50% 0%, #FFF8EC 0%, transparent 45%),
    #FAFAF7;
}

.cur-sub {
  text-align: center;
  font-size: 0.95rem; line-height: 1.75;
  color: #5F5E5A;
  margin: 0 auto 2.5rem;
  max-width: 620px;
}
.cur-sub strong {
  font-weight: 600;
  color: var(--text);
}

/* Step indicator (numbered circles + dotted lines) */
.step-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.step-pip {
  display: flex; flex-direction: column; align-items: center;
  width: 64px; flex-shrink: 0;
}
.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FAC775, #BA7517);
  color: #FFF8EC;
  font-family: "Montserrat", sans-serif;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(186, 117, 23, 0.25);
}
.step-pip-label {
  margin-top: 0.55rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em;
  color: #BA7517;
}
.step-line {
  flex: 1; max-width: 140px;
  height: 2px;
  margin-top: 19px; /* aligns to circle vertical center */
  background-image:
    repeating-linear-gradient(90deg, rgba(186,117,23,0.45) 0 6px, transparent 6px 12px);
  background-size: 200% 100%;
}

/* Step cards */
.step-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(186, 117, 23, 0.2);
}

/* Goal card (STEP 3) */
.step-card--goal {
  background: linear-gradient(180deg, #FFF8EC 0%, #fff 50%);
  border-color: rgba(186, 117, 23, 0.25);
}
.step-card--goal:hover {
  box-shadow: 0 16px 40px rgba(186, 117, 23, 0.15);
  border-color: rgba(186, 117, 23, 0.45);
}
.step-goal-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: linear-gradient(135deg, #BA7517, #854F0B);
  color: #FFF8EC;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(186, 117, 23, 0.3);
}

.step-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em;
  color: #BA7517;
  margin-bottom: 0.75rem;
}

/* Step marker inside card (circle + STEP label) */
.step-marker {
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.step-marker-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FAC775, #BA7517);
  color: #FFF8EC;
  font-family: "Montserrat", sans-serif;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(186, 117, 23, 0.25);
}
.step-marker-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em;
  color: #BA7517;
}

.step-grade {
  margin: 0 0 0.3rem;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step-name {
  margin: 0 0 0.25rem;
  font-size: 1rem; font-weight: 600;
  color: #BA7517;
}
.step-tag {
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(186, 117, 23, 0.15);
  font-size: 0.82rem; font-weight: 400;
  color: #5F5E5A;
}

.step-points {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 1.1rem;
}
.step-points > li { position: relative; padding-left: 1.05rem; }
.step-points > li::before {
  content: '▸';
  position: absolute; left: 0; top: 0;
  color: #BA7517; font-size: 0.85rem;
}
.step-points > li > strong {
  display: block;
  font-size: 0.875rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.005em;
  margin-bottom: 0.3rem;
}
.step-points > li > p {
  margin: 0;
  font-size: 0.8125rem; line-height: 1.7;
  color: #444441;
  font-weight: 400;
}

/* Stagger entry */
.step-cards .step-card { animation-delay: calc(var(--sc-i, 0) * 0.2s); }

/* ===== Schedule (수강 신청) ===== */

.section--schedule {
  background:
    radial-gradient(ellipse at 50% 0%, #FFF8EC 0%, transparent 45%),
    #FAFAF7;
}
.sched-sub {
  text-align: center;
  font-size: 0.95rem; color: #5F5E5A;
  margin: 0 auto 2rem;
}

/* Filters */
.sched-filters {
  display: flex; flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem;
}
.filter-group { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.filter-label {
  flex-shrink: 0;
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.filter-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.chip {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #5F5E5A;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: rgba(186,117,23,0.4); color: var(--text); }
.chip.is-active {
  background: linear-gradient(135deg, #BA7517, #854F0B);
  color: #FFF8EC;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(186,117,23,0.25);
}

/* Filter dropdown */
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23BA7517' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat right 0.85rem center;
  background-size: 12px 8px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
  padding: 0.45rem 2.2rem 0.45rem 1rem;
  min-width: 12rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-select:hover { border-color: rgba(186,117,23,0.5); }
.filter-select:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(186,117,23,0.18);
}

/* Meta row */
.sched-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin: 0 0.25rem 1rem;
}
.sched-count { font-size: 0.85rem; color: #5F5E5A; }
.sched-count strong { font-family: "Montserrat", sans-serif; color: var(--gold); margin-right: 0.15rem; font-weight: 800; font-size: 1.05rem; }
.sched-legend {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  font-size: 0.75rem; color: #5F5E5A;
}
.sched-legend li { display: inline-flex; align-items: center; gap: 0.3rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot--open   { background: #16A34A; }
.dot--soon   { background: #EAB308; }
.dot--closed { background: #9CA3AF; }

/* Schedule groups (grade-tt sections) */
.sched-grid {
  display: flex; flex-direction: column;
  gap: 1.5rem;
}

.grade-tt {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 6px 18px rgba(0,0,0,0.04);
}
.grade-tt-head {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.grade-tt-tag {
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.grade-tt-title {
  flex: 1;
  margin: 0;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.grade-tt-count {
  font-size: 0.78rem; color: var(--text-secondary);
  font-weight: 500;
}

/* Horizontal scroll wrapper for narrow screens */
.grade-tt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.4rem;
  padding: 0 0.4rem;
}

.grade-tt-grid {
  display: grid;
  grid-template-columns: 56px repeat(var(--cols, 7), minmax(110px, 1fr));
  gap: 1px;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  overflow: hidden;
  min-width: max-content;
}

/* Header row */
.tt-h {
  background: linear-gradient(180deg, #FFF8EC, #FFFFFF);
  padding: 0.65rem 0.45rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: -0.005em;
}
.tt-h--corner { background: #FAFAF7; }

/* Time column */
.tt-time {
  background: #FAFAF7;
  padding: 0.6rem 0.4rem;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem; font-weight: 600;
  color: #5F5E5A;
  display: flex; align-items: center; justify-content: center;
}

/* Body cells */
.tt-cell {
  background: #fff;
  padding: 0.4rem;
  min-height: 64px;
  display: flex; flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}
.tt-cell--empty { background: #FAFAF7; opacity: 0.5; }

/* Class block inside cell */
.tt-class {
  display: block;
  position: relative;
  background: rgba(186,117,23,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.74rem; line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tt-class:hover {
  background: rgba(186,117,23,0.16);
  transform: translateY(-1px);
}
.tt-class strong {
  display: block;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.tt-teacher {
  display: block;
  color: #6E6B68;
  font-size: 0.68rem;
  font-weight: 500;
}
.tt-end {
  display: block;
  font-family: "Montserrat", sans-serif;
  color: #8B6017;
  font-size: 0.65rem;
  margin-top: 0.15rem;
}
.tt-class[data-status="closed"] {
  background: rgba(0,0,0,0.04);
  border-left-color: #9CA3AF;
  color: #9CA3AF;
}
.tt-class[data-status="closed"]:hover {
  background: rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
  .grade-tt { padding: 1rem 0.85rem 1.1rem; }
  .grade-tt-grid {
    grid-template-columns: 48px repeat(var(--cols, 7), minmax(86px, 1fr));
  }
  .tt-h { font-size: 0.78rem; padding: 0.5rem 0.3rem; }
  .tt-time { font-size: 0.7rem; padding: 0.5rem 0.3rem; }
  .tt-cell { min-height: 56px; padding: 0.3rem; }
  .tt-class { padding: 0.35rem 0.4rem; font-size: 0.68rem; }
  .tt-teacher { font-size: 0.62rem; }
  .grade-tt-title { font-size: 0.95rem; }
  .grade-tt-count { font-size: 0.72rem; }
}

.cls-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cls-card:hover {
  transform: translateY(-3px);
  border-color: rgba(186,117,23,0.3);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.cls-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.85rem;
}

/* Grade tags — distinct soft colors */
.cls-grade-tag {
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.g-elem  { background: #FFF3D9; color: #8A6A1B; }
.g-m1    { background: #DCFCE7; color: #15803D; }
.g-m2    { background: #DBEAFE; color: #1D4ED8; }
.g-m3    { background: #EDE9FE; color: #6D28D9; }
.g-h1    { background: #FFEDD5; color: #C2410C; }
.g-h2    { background: #FEE2E2; color: #B91C1C; }
.g-h3    { background: #FEF3C7; color: #B45309; }
.g-focus { background: #292524; color: #FAC775; }

/* Status */
.cls-status {
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.cls-status.s-open   { background: rgba(22,163,74,0.1);  color: #15803D; }
.cls-status.s-soon   {
  background: rgba(234,179,8,0.12); color: #92400E;
  animation: clsPulse 2s ease-in-out infinite;
}
.cls-status.s-closed { background: rgba(156,163,175,0.18); color: #4B5563; }
@keyframes clsPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.cls-body {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.cls-info { flex: 1; min-width: 0; }
.cls-school {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  word-break: keep-all;
}
.cls-teacher {
  font-size: 0.78rem; font-weight: 500;
  color: #5F5E5A;
}
.cls-when {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(186, 117, 23, 0.18);
}
.cls-day {
  font-size: 1.15rem; font-weight: 700;
  color: var(--gold); letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.cls-hour {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.cls-cta {
  display: block; text-align: center;
  margin-top: auto;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #D4892C, #A66514);
  color: #FFF8EC;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cls-cta:hover {
  box-shadow: 0 8px 18px rgba(186,117,23,0.32);
  transform: translateY(-1px);
}
.cls-cta--disabled {
  background: #E5E5E5; color: #9CA3AF;
  cursor: default; pointer-events: none;
}

.sched-empty {
  text-align: center; padding: 2rem 1rem;
  font-size: 0.9rem; color: #5F5E5A;
  background: #fff; border-radius: 14px;
  border: 1px dashed rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .sched-filters { padding: 1rem; gap: 0.65rem; }
  .filter-group { gap: 0.55rem; }
  .filter-label { font-size: 0.72rem; }
  .chip { font-size: 0.72rem; padding: 0.32rem 0.7rem; }
  .sched-grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .cls-card { padding: 0.95rem 0.95rem 0.85rem; }
  .cls-school { font-size: 0.95rem; }
  .cls-teacher { font-size: 0.72rem; }
  .cls-day { font-size: 1rem; }
  .cls-hour { font-size: 1rem; }
  .cls-body { gap: 0.5rem; }
  .cls-when { padding-left: 0.4rem; }
  .sched-sub { font-size: 0.85rem; margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cls-status.s-soon { animation: none; }
}

/* ===== Reasons section — 이수정국어학원을 선택하는 당연한 이유 ===== */

.section--reasons {
  background:
    radial-gradient(ellipse at 50% 0%, #FFF8EC 0%, transparent 45%),
    #FAFAF7;
}

.reasons-eyebrow {
  display: block; text-align: center;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em;
  color: #BA7517;
  margin-bottom: 1rem;
}

.reasons-title {
  margin-bottom: 1rem !important;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #1A1A1A;
  text-align: center;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.06))
    drop-shadow(0 6px 14px rgba(186, 117, 23, 0.18));
}
/* "이수정국어 하는구나" — 메인 히어로 "최상위가 된다"와 동일한 골드 샤인 */
.reasons-title-gold {
  font-weight: 700;
  background: linear-gradient(90deg, #BA7517 0%, #FAC775 30%, #FFE9B8 50%, #FAC775 70%, #BA7517 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShine 3s linear infinite;
}

/* "아, 이래서" 진입 모션 (유지) */
.reasons-line1 {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reasons-title.revealed .reasons-line1 {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reasons-sub {
  text-align: center;
  margin: 0 0 3rem;
  font-size: 1rem; font-weight: 400;
  color: #5F5E5A;
}

.reasons-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.reason-card {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) padding-box,
    linear-gradient(180deg, rgba(250, 199, 117, 0.55), rgba(186, 117, 23, 0.18) 60%, rgba(0, 0, 0, 0.06)) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
  display: flex; flex-direction: column;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(186, 117, 23, 0.05),
    0 14px 28px rgba(186, 117, 23, 0.06);
}
.reason-card:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 10px 20px rgba(186, 117, 23, 0.12),
    0 28px 48px rgba(186, 117, 23, 0.18);
}
.reason-card::before {
  content: '';
  position: absolute;
  left: 0; top: 2rem; bottom: 2rem;
  width: 3px;
  background: linear-gradient(180deg, #FAC775, #BA7517);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s ease;
}
.reason-card:hover::before { transform: scaleY(1); }
.reason-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at top, rgba(250, 199, 117, 0.16), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.reason-card:hover::after { opacity: 1; }
.reason-card > * { position: relative; z-index: 1; }

.rc-num {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem; font-weight: 700;
  background: linear-gradient(135deg, #FAC775 0%, #BA7517 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.rc-label {
  margin: 0 0 0.5rem;
  font-size: 1.125rem; font-weight: 600;
  color: #1A1A1A; letter-spacing: -0.01em;
}

.rc-tag {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(186, 117, 23, 0.18);
  font-size: 0.8125rem; font-weight: 500;
  color: #BA7517;
  letter-spacing: 0.005em;
}

.rc-body {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 0.6rem;
}
.rc-body li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.8125rem; font-weight: 400;
  color: #444441; line-height: 1.6;
}
.rc-body li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: #BA7517; font-weight: 700;
  font-size: 0.85rem;
}

/* Stagger entry */
.reasons-grid.revealed .reason-card {
  animation: rcFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--rc-i, 0) * 0.15s);
}
.reasons-grid:not(.revealed) .reason-card { opacity: 0; transform: translateY(30px); }
@keyframes rcFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reasons-grid.revealed .reason-card { animation: none; }
  .reasons-grid:not(.revealed) .reason-card { opacity: 1; transform: none; }
}

/* ===== Academy Intro ===== */

.intro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.intro-card {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.intro-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }

.intro-card-number {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--gold); margin-bottom: 0.75rem;
}
.intro-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.3;
}
.intro-card p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--text-secondary); }

/* ===== Team ===== */

.team-sub {
  text-align: center;
  font-size: 1rem; line-height: 1.5;
  color: var(--text-secondary);
  margin: -1.5rem auto 2.5rem;
}
.team-sub strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 700; color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.team-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.team-photo-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px);
}

.team-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.team-info {
  padding: 0.75rem 0.75rem 1rem;
  text-align: center;
}

.team-info h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.team-role {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-secondary);
}

.team-role--leader {
  background: rgba(245, 69, 122, 0.12);
  color: var(--pink);
}

.team-role--gold {
  background: rgba(196, 151, 42, 0.12);
  color: var(--gold);
}

/* ===== Footer ===== */

.footer { padding: 3rem 1.5rem; text-align: center; background: var(--bg); }
.footer-logo { width: 32px; height: auto; margin-bottom: 0.75rem; opacity: 0.4; }
.footer-brand { font-size: 0.875rem; color: var(--text-secondary); }
.footer-phones {
  display: flex; justify-content: center; align-items: center;
  gap: 0.75rem; margin-top: 0.5rem;
  font-size: 0.8125rem; color: var(--text-secondary);
}
.footer-phones a { color: var(--text); font-weight: 500; }
.footer-phones span { color: rgba(0,0,0,0.2); }

.footer-copy { margin-top: 0.5rem; font-size: 0.75rem; color: rgba(0, 0, 0, 0.3); }

/* ===== Bottom Dock ===== */

.bottom-dock {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 15;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.15rem;
  padding: 0.45rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.dock-action {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.32rem; padding: 0.2rem 0.15rem;
  text-align: center; font-size: 0.7rem; font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #5A5754;
  transition: transform 0.3s ease, color 0.3s ease;
  border-radius: 12px;
  text-decoration: none;
}
.dock-action:hover { color: #1A1A1A; }
.dock-action:hover { transform: translateY(-3px); }
.dock-action:active { transform: translateY(-1px) scale(0.97); }

/* Icon circle (default = white circle for 4 secondary buttons) */
.icon-circle {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #FAFAFA 100%);
  border: 1.25px solid rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 10px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.icon-circle svg {
  width: 20px; height: 20px;
  stroke: #3C2A1E; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

/* Per-button brand rings (idle) — 4% tint + brand border, ambient shadow tinted */
.dock-action[href*="kakao"]  .icon-circle {
  background: linear-gradient(180deg, #fff 0%, rgba(254, 229, 0, 0.06) 100%);
  border-color: rgba(254, 229, 0, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(254, 229, 0, 0.18);
}
.dock-action[href*="kakao"]  .icon-circle svg { stroke: #A88A00; }

.dock-action[href*="map"]    .icon-circle {
  background: linear-gradient(180deg, #fff 0%, rgba(37, 99, 235, 0.05) 100%);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(37, 99, 235, 0.16);
}
.dock-action[href*="map"]    .icon-circle svg { stroke: #1E40AF; }

.dock-action[href*="atedu"]  .icon-circle {
  background: linear-gradient(180deg, #fff 0%, rgba(26, 26, 26, 0.04) 100%);
  border-color: rgba(26, 26, 26, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.10);
}
.dock-action[href*="atedu"]  .icon-circle svg { stroke: #1A1A1A; }

.dock-action[href*="blog"]   .icon-circle {
  background: linear-gradient(180deg, #fff 0%, rgba(3, 199, 90, 0.05) 100%);
  border-color: rgba(3, 199, 90, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(3, 199, 90, 0.16);
}
.dock-action[href*="blog"]   .icon-circle svg { stroke: #00863F; }

/* Hover: shadow grows (color stays restrained), micro-scale */
.dock-action:not(.dock-action--call):hover .icon-circle { transform: scale(1.04); }
.dock-action[href*="kakao"]:hover  .icon-circle {
  border-color: #FEE500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 10px 24px rgba(254, 229, 0, 0.32);
}
.dock-action[href*="map"]:hover    .icon-circle {
  border-color: #2563EB;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 10px 24px rgba(37, 99, 235, 0.30);
}
.dock-action[href*="atedu"]:hover  .icon-circle {
  border-color: #1A1A1A;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
}
.dock-action[href*="blog"]:hover   .icon-circle {
  border-color: #03C75A;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 10px 24px rgba(3, 199, 90, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .dock-action:not(.dock-action--call):hover .icon-circle { transform: none; }
}

/* Primary — 전화하기 */
.dock-action--call { color: #1A1A1A; font-weight: 500; }
.dock-action--call .icon-circle {
  background: linear-gradient(135deg, #D4892C 0%, #A66514 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 6px 14px rgba(186, 117, 23, 0.28);
}
.dock-action--call .icon-circle svg { stroke: #FFF8EC; }
.dock-action--call:hover .icon-circle {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(186, 117, 23, 0.42);
}

/* Pulse ring (primary only) — softer, longer cycle */
.pulse-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(186, 117, 23, 0.22);
  pointer-events: none;
  animation: dockRingPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: -1;
}
@keyframes dockRingPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0;    }
}

/* dock 호버 transition만 reduced-motion에서 끔. 펄스는 유지 (브랜드 효과) */
@media (prefers-reduced-motion: reduce) {
  .dock-action { transition: none; }
}


/* ===== Welcome Popup ===== */

/* ===== Welcome Popup (Light theme — 합격 발표) ===== */

.welcome-popup {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.welcome-popup.show { opacity: 1; visibility: visible; }

.welcome-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.welcome-card {
  position: relative;
  width: calc(100% - 2rem); max-width: 560px;
  max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top, #FFF8EC 0%, #FFFFFF 40%),
    #FFFFFF;
  border: 1px solid rgba(186, 117, 23, 0.18);
  color: #1A1A1A;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: scale(0.95) translateY(18px);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  text-align: left;
  padding: 0;
}
.welcome-popup.show .welcome-card { transform: scale(1) translateY(0); }

.welcome-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #5F5E5A;
  font-size: 1.05rem; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}
.welcome-close:hover { background: rgba(0, 0, 0, 0.1); color: #1A1A1A; }

/* Header */
.popup-header {
  text-align: center;
  padding: 36px 24px 18px;
}
.welcome-card .welcome-logo-wrap {
  display: flex; justify-content: center;
  margin-bottom: 14px;
}
.welcome-card .welcome-logo {
  width: 56px; height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: drop-shadow(0 4px 14px rgba(236, 72, 153, 0.25));
}
.year-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 600;
  color: #BA7517;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.year-label i {
  display: inline-block;
  width: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, #BA7517);
}
.year-label i:last-child {
  background: linear-gradient(90deg, #BA7517, transparent);
}

.main-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 1.85rem); font-weight: 700;
  color: #1A1A1A; letter-spacing: -0.02em;
  line-height: 1.25;
}
.main-title .accent {
  background: linear-gradient(135deg, #FAC775 0%, #BA7517 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.subtitle {
  margin: 0;
  font-size: 0.85rem; color: #5F5E5A; line-height: 1.6;
}
.subtitle strong {
  font-weight: 700; color: #BA7517;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
}

/* Stats bar */
.welcome-card .stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(186, 117, 23, 0.18);
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 24px 4px;
}
.welcome-card .stats-bar--two {
  grid-template-columns: 0.7fr 1.3fr;
}
.stat-item {
  background: #FFF8EC;
  padding: 14px 6px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.stat-item .stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 1.65rem; font-weight: 800;
  background: linear-gradient(135deg, #FAC775, #BA7517);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1; margin-bottom: 4px;
}
.stat-item .stat-label {
  font-size: 0.68rem; font-weight: 600; color: #5F5E5A;
  letter-spacing: 0.01em;
}
.stat-item--medical .stat-number { background: linear-gradient(135deg, #FAC775, #BA7517); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Group blocks */
.popup-group { padding: 0; }

.group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.popup-group:first-of-type .group-header { border-top: none; margin-top: 16px; }

.group-title-wrap {
  display: flex; align-items: center; gap: 12px;
  position: relative;
  padding-left: 14px;
}
.group-title-wrap::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FAC775 0%, #BA7517 100%);
}
.popup-group[data-group="top"] .group-title-wrap::before {
  background: linear-gradient(180deg, #BA7517 0%, #854F0B 100%);
}
.group-title { display: flex; flex-direction: column; line-height: 1.2; }
.group-name {
  font-size: 0.92rem; font-weight: 700; color: #1A1A1A;
  letter-spacing: -0.005em;
  word-break: keep-all;
}
.group-sub {
  font-size: 0.68rem; color: #888780;
  margin-top: 2px;
  word-break: keep-all;
}
.group-count {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem; font-weight: 800; color: #BA7517;
}
.group-count-label { font-size: 0.7rem; color: #888780; margin-left: 2px; }
.popup-group[data-group="medical"] .group-count { color: #BA7517; }
.popup-group[data-group="top"] .group-count { color: #BA7517; }

/* Result rows */
.result-list { padding-bottom: 4px; }
.result-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  padding: 9px 24px;
  font-size: 0.85rem;
  align-items: center;
  transition: background 0.2s ease;
}
.result-row:hover { background: rgba(186, 117, 23, 0.04); }
.result-row .school {
  font-weight: 700;
  color: #BA7517;
}
.popup-group[data-group="medical"] .result-row .school { color: #BA7517; }
.popup-group[data-group="top"] .result-row .school { color: #BA7517; }
.result-row .major {
  color: #1A1A1A; font-weight: 500;
  letter-spacing: -0.005em;
}
.result-row .student {
  font-size: 0.72rem; color: #888780;
  text-align: right; white-space: nowrap;
}

.popup-more {
  text-align: center;
  margin: 10px 0 0;
  padding: 16px 24px 4px;
  font-size: 0.78rem; font-weight: 500; color: #888780;
  letter-spacing: 0.02em;
}

/* CTA section */
.cta-section {
  background: linear-gradient(180deg, #FFF8EC 0%, #FFE9B8 100%);
  padding: 28px 24px 30px;
  text-align: center;
  border-radius: 0 0 24px 24px;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
}
.cta-headline {
  margin: 0 0 4px;
  font-size: 0.95rem; font-weight: 700;
  color: #412402;
  letter-spacing: -0.005em;
}
.cta-sub {
  margin: 0 0 16px;
  font-size: 0.78rem; color: #854F0B;
}
.cta-button {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #BA7517, #854F0B);
  color: #FFF8EC;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.005em;
  box-shadow: 0 6px 18px rgba(186, 117, 23, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(186, 117, 23, 0.4);
}
.cta-button::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 999px;
  background: rgba(186, 117, 23, 0.25);
  z-index: -1;
  animation: ctaPulseRing 2.4s ease-out infinite;
}
@keyframes ctaPulseRing {
  0%   { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0;   }
}

/* Stagger entry on rows when popup shows */
.welcome-popup.show .result-row {
  opacity: 0;
  animation: rowFadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rowFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile — bottom sheet */
@media (max-width: 480px) {
  /* Bottom-sheet 패턴 */
  .welcome-popup { align-items: flex-end; }
  .welcome-card {
    width: 100%; max-width: none;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .welcome-popup.show .welcome-card { transform: translateY(0); }

  /* Header */
  .popup-header { padding: 26px 18px 12px; }
  .welcome-card .welcome-logo { width: 46px; }
  .year-label { font-size: 0.62rem; letter-spacing: 0.16em; }
  .year-label i { width: 10px; }
  .main-title { font-size: 1.35rem; }
  .welcome-close { width: 32px; height: 32px; top: 10px; right: 10px; font-size: 0.95rem; }

  /* Stats bar */
  .welcome-card .stats-bar { margin: 6px 16px 4px; border-radius: 12px; }
  .welcome-card .stats-bar--two { grid-template-columns: 1fr 1.6fr; }
  .stat-item { padding: 11px 6px; }
  .stat-item .stat-number { font-size: 1.4rem; }
  .stat-item .stat-label { font-size: 0.6rem; line-height: 1.25; word-break: keep-all; }

  /* Group header */
  .group-header { padding: 14px 16px 8px; gap: 0.5rem; }
  .group-title-wrap { padding-left: 10px; gap: 8px; }
  .group-title-wrap::before { width: 2.5px; height: 22px; }
  .group-name { font-size: 0.83rem; }
  .group-sub { font-size: 0.6rem; }
  .group-count { font-size: 1.05rem; }

  /* Result rows: 2단 스택 */
  .result-row {
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 10px 16px;
  }
  .result-row .school { grid-row: 1; grid-column: 1; font-size: 0.78rem; }
  .result-row .major  { grid-row: 1; grid-column: 2; font-size: 0.76rem; text-align: right; }
  .result-row .student {
    grid-row: 2; grid-column: 1 / span 2;
    text-align: left; font-size: 0.66rem;
  }

  /* More note */
  .popup-more { padding: 12px 16px 0; font-size: 0.72rem; }

  /* CTA */
  .cta-section { padding: 22px 16px 26px; border-radius: 0; margin-top: 12px; }
  .cta-headline { font-size: 0.88rem; }
  .cta-sub { font-size: 0.72rem; margin-bottom: 12px; }
  .cta-button { padding: 11px 22px; font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .welcome-card .stats-bar--two { grid-template-columns: 1fr 1.7fr; }
  .stat-item .stat-label { font-size: 0.55rem; }
  .stat-item .stat-number { font-size: 1.25rem; }
  .main-title { font-size: 1.2rem; }
  .group-name { font-size: 0.78rem; }
  .group-sub { display: none; }
  .result-row .school { font-size: 0.75rem; }
  .result-row .major  { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-popup.show .result-row { opacity: 1; animation: none; }
  .cta-button::before { animation: none; }
}

/* ===== Focus ===== */

.navbar-brand:focus-visible,
.dock-action:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ===== Responsive: Tablet ===== */

@media (min-width: 734px) {
  .section { padding: 6rem 2rem; }

  .hero-logo { width: 100px; }

  .bottom-dock {
    position: fixed; right: 50%; bottom: 0.75rem; left: auto;
    transform: translateX(50%);
    width: fit-content; min-width: 460px; max-width: 580px;
    padding: 0.4rem 0.75rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--frost-border);
    box-shadow: var(--shadow-elevated);
    gap: 0.25rem;
  }
  .dock-action { padding: 0.3rem 0.45rem; border-radius: 14px; gap: 0.3rem; font-size: 0.7rem; }
  .icon-circle { width: 50px; height: 50px; }
  .icon-circle svg { width: 22px; height: 22px; }

  .welcome-card { max-width: 480px; }
}

/* ===== Responsive: Desktop ===== */

@media (min-width: 1068px) {
  .navbar { height: 48px; padding: 0 max(2rem, calc((100% - 980px) / 2)); }
  .section { padding: 7rem 2rem; }
}

/* Tablet — reasons 2-column */
@media (max-width: 920px) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ===== Responsive: Mobile compression — fit each section in roughly one viewport ===== */

@media (max-width: 600px) {
  /* Global: tighter section padding + smaller headings */
  .section { padding: 2.25rem 1rem 2.5rem; }
  .section-heading { font-size: clamp(1.55rem, 5.8vw, 2rem); }
  .reveal { transform: translateY(20px); }

  /* Hero: smaller stats, eyebrow, h1 already responsive via clamp */
  .hero { min-height: 100dvh; padding: 64px 1rem 2rem; }
  .hero-stats {
    border-radius: 14px;
    padding: 0.55rem 0.6rem;
    gap: 0;
  }
  .hero-stat { padding: 0.15rem 0.45rem; }
  .hero-stat-num { font-size: 1.15rem; }
  .hero-stat-label { font-size: 0.6rem; margin-top: 0.1rem; }
  .hero-stat-divider { height: 20px; }
  .hero-eyebrow { font-size: 0.95rem; margin-bottom: 0.6rem; }
  .scroll-indicator { margin-top: 1.5rem; height: 40px; }
  .hero-disclaimer { margin-top: 0.4rem; }

  /* Hall: aggressive compression */
  .section--hall-dark { padding: 2.5rem 0.85rem 3rem; }
  .section--hall-dark .hall-title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); margin-bottom: 1rem; }
  .hall-eyebrow { font-size: 0.62rem; letter-spacing: 0.2em; margin-bottom: 0.5rem; }

  /* Hall Perfect score block — tighter */
  .hall-perfect { padding: 1rem 0.75rem; gap: 0.75rem; margin: 0 0 0.75rem; }
  .hall-perfect-intro { padding: 0.25rem 0; }
  .hall-perfect-title { font-size: 1.05rem; line-height: 1.3; }
  .hall-perfect-title em { font-size: 1.45rem; margin: 0 0.1rem; }
  .hall-perfect-cards { gap: 0.5rem; }
  .hp-card { padding: 0.35rem 0.1rem; gap: 0.55rem; }
  .hp-crest { width: 38px; height: 38px; }
  .hp-name { font-size: 1.1rem; margin-bottom: 0.15rem; }
  .hp-dept-univ, .hp-dept { font-size: 0.7rem; }

  /* Hall rows — single col head, slim */
  .hall-rows { gap: 0.55rem; margin-top: 0.85rem; }
  .hall-row { grid-template-columns: 1fr; }
  .hall-row-head {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-direction: row; gap: 0.55rem;
    padding: 0.55rem 0.85rem; min-width: 0;
  }
  .section--hall-dark .hall-row-head { border-bottom-color: rgba(255,255,255,0.08); }
  .hall-row-head:has(.hall-row-crest) { gap: 0.6rem; min-width: 0; padding: 0.5rem 0.85rem; }
  .hall-row-crest { width: 32px; height: 32px; }
  .hall-row-num { font-size: 1.35rem; }
  .hall-row-name { font-size: 0.78rem; }
  .hall-row-marquee { padding: 0.55rem 0; }
  .hr-item { font-size: 0.72rem; padding: 0.15rem 0.35rem; margin: -0.15rem -0.35rem; }
  .hall-row-track { gap: 1.5rem; padding-left: 1.5rem; }

  /* Results — tier blocks compact, 2 cols */
  .results-tier { margin-bottom: 1.5rem; }
  .tier-head { gap: 0.6rem; margin-bottom: 0.75rem; padding-bottom: 0.6rem; }
  .tier-bar { width: 22px; }
  .tier-name { font-size: 0.95rem; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .r-card { padding: 0.75rem 0.75rem 0.65rem; border-radius: 10px; }
  .r-card--med { padding: 0.85rem 0.75rem 0.7rem; }
  .r-card .r-univ { font-size: 0.78rem; }
  .r-card .r-dept { font-size: 0.85rem; }
  .r-card--med .r-dept { font-size: 0.9rem; }
  .r-card .r-name { font-size: 0.75rem; }
  .results-more { font-size: 0.78rem; margin-top: 1rem; }

  /* Curriculum / Roadmap */
  .step-cards { grid-template-columns: 1fr; gap: 1rem; }
  .step-card { padding: 1.5rem 1.25rem; }
  .step-card--goal { margin-top: 0.5rem; }
  .step-goal-badge { font-size: 0.62rem; padding: 0.3rem 0.7rem; left: 16px; }
  .step-grade { font-size: 1.2rem; }
  .step-name { font-size: 0.95rem; }
  .step-tag { font-size: 0.78rem; margin-bottom: 1rem; padding-bottom: 0.85rem; }
  .step-points { gap: 0.85rem; }
  .step-points > li > strong { font-size: 0.85rem; }
  .step-points > li > p { font-size: 0.78rem; }
  .cur-sub { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .cur-sub br { display: inline; }
  /* Standalone indicator hidden on mobile (circles are inside each card now) */
  .step-indicator { display: none; }
  /* Card markers slightly smaller on mobile */
  .step-marker-num { width: 28px; height: 28px; font-size: 0.78rem; }
  .step-marker-label { font-size: 0.62rem; }
  /* Reasons mobile: 1 column */
  .reasons-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .reason-card { padding: 1.25rem 1.1rem; }
  .rc-num { font-size: 2.6rem; margin-bottom: 0.75rem; }
  .rc-label { font-size: 1rem; }
  .rc-tag { font-size: 0.78rem; margin-bottom: 0.85rem; padding-bottom: 0.85rem; }
  .rc-body { gap: 0.45rem; }
  .rc-body li { font-size: 0.78rem; }
  .reasons-sub { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .reasons-eyebrow { font-size: 0.65rem; margin-bottom: 0.6rem; }

  /* Team — 3 cols at 600px↓ stays, smaller card */
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  /* Welcome popup list */
  .wl-univ { min-width: 3.8rem; font-size: 0.625rem; }
  .wl-dept { font-size: 0.75rem; }
  .wl-name { font-size: 0.625rem; }

  /* Intro cards (orphan but harmless) */
  .intro-cards { grid-template-columns: 1fr; }
}

/* Below 420px — extra tight */
@media (max-width: 420px) {
  .section { padding: 2rem 0.85rem 2.25rem; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .hall-row-crest { width: 30px; height: 30px; }
  .hall-row-num { font-size: 1.2rem; }
  .hall-row-name { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .bottom-dock { gap: 0.1rem; padding: 0.4rem 0.3rem calc(0.35rem + env(safe-area-inset-bottom)); }
  .dock-action { font-size: 0.65rem; gap: 0.25rem; padding: 0.15rem 0.05rem; }
  .icon-circle { width: 40px; height: 40px; }
  .icon-circle svg { width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  .dock-action { font-size: 0.6rem; }
  .icon-circle { width: 36px; height: 36px; }
  .icon-circle svg { width: 17px; height: 17px; }
}

/* ===== Dock Spacer ===== */

.dock-spacer { height: calc(5rem + env(safe-area-inset-bottom)); }
@media (min-width: 734px) { .dock-spacer { height: 5.25rem; } }
@media (max-width: 480px) { .dock-spacer { height: calc(4.5rem + env(safe-area-inset-bottom)); } }
@media (max-width: 360px) { .dock-spacer { height: calc(4.1rem + env(safe-area-inset-bottom)); } }

/* ===== Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
