/* ============================================
   소마 이김수학학원 — Premium Landing Page
   ============================================ */

:root {
  --color-navy: #0f1a2e;
  --color-navy-light: #1a2d4a;
  --color-navy-muted: #2a3f5f;
  --color-gold: #c9a962;
  --color-gold-light: #dfc98a;
  --color-gold-dark: #a88b4a;
  --color-cream: #f8f6f2;
  --color-white: #ffffff;
  --color-text: #1e2a3a;
  --color-text-muted: #5a6578;
  --color-border: #e8e4dc;
  --color-kakao: #fee500;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 26, 46, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 26, 46, 0.1);
  --shadow-lg: 0 20px 60px rgba(15, 26, 46, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 104px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn--primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 169, 98, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--dark:hover {
  background: var(--color-navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn--block {
  width: 100%;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(15, 26, 46, 0.88);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(15, 26, 46, 0.97);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo--panel {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}

.logo--header {
  height: calc(var(--header-h) - 12px);
  padding: 4px 10px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo--header:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.logo__img--header {
  display: block;
  height: 100%;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
}

.logo__img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.logo__img--soma {
  height: 32px;
  max-width: 110px;
}

.logo__img--ikim {
  height: 34px;
  max-width: 120px;
}

.logo__img--ikim-only {
  height: 52px;
  max-width: 180px;
}

.logo__img--header {
  height: 44px;
  max-width: 220px;
}

.logo__divider {
  width: 1px;
  height: 26px;
  background: var(--color-border);
  flex-shrink: 0;
}

.logo--panel .logo__divider {
  background: #e0dcd4;
}

/* Brand lockup in About */
.brand-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  padding: 36px 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.brand-lockup__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.brand-lockup__logo-slot {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.brand-lockup__caption {
  width: 100%;
  max-width: 300px;
}

.brand-lockup__caption strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.55;
  margin-bottom: 6px;
}

.brand-lockup__caption span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.brand-lockup__hook {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: var(--color-navy);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.brand-lockup__soma {
  height: 68px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.brand-lockup__ikim {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.brand-lockup__plus {
  font-size: 28px;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition);
}

.nav a:hover { color: var(--color-white); }
.nav a:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 98, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 98, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(201, 169, 98, 0.12) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--color-gold);
  position: relative;
}

.hero__desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__desc-line {
  display: block;
}

.hero__desc-line--accent {
  margin-top: 6px;
  padding-top: 14px;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  color: var(--color-gold-light);
  border-top: 1px solid rgba(201, 169, 98, 0.35);
  letter-spacing: -0.01em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.stat__label small {
  font-size: 11px;
  opacity: 0.7;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--color-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.55;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 84px;
}

.trust-item__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-gold-dark);
}

.trust-item span {
  flex: 1;
  word-break: keep-all;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -1px;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 520px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin: 0 auto;
}

/* ---- About ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.about__text .lead {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--color-navy);
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.about__text p a {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about__points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--color-text);
}

.about__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
}

.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.about__card--main {
  grid-column: 1 / -1;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  padding: 36px;
}

.about__card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 16px;
}

.about__card--main blockquote {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.5px;
}

.about__card--main blockquote em {
  font-style: normal;
  color: var(--color-gold);
}

.about__card-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold-dark);
  display: block;
  margin-bottom: 8px;
}

.about__card--sub strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--color-navy);
}

.about__card--sub p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Programs ---- */
.programs {
  background: var(--color-white);
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.program-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-light);
}

.program-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.program-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.program-card__grade {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gold-dark);
  background: rgba(201, 169, 98, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.program-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn--program {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 14px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.btn--program:hover {
  background: var(--color-navy-light);
  transform: translateY(-1px);
}

.program-card {
  display: flex;
  flex-direction: column;
}

.program-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* ---- Director ---- */
.director {
  background: var(--color-white);
}

.director__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.director__photo {
  position: relative;
}

.director__photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #f5d4d8;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.director__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.director__badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 24px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.director__name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.director__name span {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  margin-left: 4px;
}

.director__title {
  font-size: 14px;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

.director__quote {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-navy);
  padding: 20px 24px;
  background: var(--color-cream);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.director__quote strong {
  color: var(--color-gold-dark);
  font-weight: 700;
}

.director__intro {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.director__intro strong {
  color: var(--color-navy);
  font-weight: 700;
}

.director__intro-closing {
  display: block;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.75;
}

.director__intro-closing strong {
  color: var(--color-gold-dark);
}

.director__tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.director__track {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-top: 3px solid var(--color-gold);
}

.director__track--elem {
  border-top-color: #5cb85c;
}

.director__track--mh {
  border-top-color: var(--color-navy);
}

.director__track-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 8px;
}

.director__track h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 14px;
  line-height: 1.5;
}

.director__track p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.director__track p a {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.director__track p strong {
  color: var(--color-navy);
  font-weight: 700;
}

.director__track ul {
  margin: 0;
  padding: 0;
}

.director__track li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
}

.director__track li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: 12px;
}

.director__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.value-card__icon {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.value-card strong {
  display: block;
  font-size: 14px;
  color: var(--color-navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.value-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---- Why ---- */
.why {
  background: var(--color-navy);
  color: var(--color-white);
}

.why .section-label { color: var(--color-gold); }
.why .section-title { color: var(--color-white); }

.why__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.why__intro p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  font-size: 16px;
}

.why__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 169, 98, 0.3);
}

.why-card__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ---- Campus ---- */
.campus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.campus-card {
  scroll-margin-top: calc(var(--header-h) + 24px);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.campus-card:hover {
  box-shadow: var(--shadow-md);
}

.campus-card__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.campus-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.campus-card__badge--gold {
  background: var(--color-gold);
  color: var(--color-navy);
}

.campus-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
}

.campus-card__address {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  padding-left: 2px;
}

.campus-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.campus-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: 13px;
}

/* ---- Gallery ---- */
.gallery {
  background: var(--color-white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(15, 26, 46, 0.8));
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
}

.gallery__note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.gallery__note a {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Reviews ---- */
.reviews {
  background: var(--color-cream);
}

.rv-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.rv-title {
  text-align: center;
  font-size: clamp(1.65rem, 4.2vw, 2.5rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.28;
}

.rv-title .accent {
  color: var(--color-gold-dark);
  position: relative;
  white-space: nowrap;
}

.rv-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.36em;
  background: rgba(201, 169, 98, 0.22);
  z-index: -1;
  border-radius: 2px;
}

.rv-sub {
  text-align: center;
  color: var(--color-text-muted);
  font-size: clamp(14px, 1.6vw, 16px);
  max-width: 620px;
  margin: 0 auto;
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 30px;
  flex-wrap: wrap;
  margin: 34px auto 50px;
  padding: 22px 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}

.trust-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-num {
  font-size: 46px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-stars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-stars .stars {
  color: var(--color-gold);
  font-size: 18px;
  letter-spacing: 2px;
}

.trust-meta {
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.verify {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #1f7d49;
  background: #eaf8ef;
  border: 1px solid #cdeed9;
  padding: 8px 14px;
  border-radius: 999px;
}

.ndot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #03c75a;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.rv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rv-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.rv-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--color-gold), var(--color-gold-dark));
  opacity: 0.85;
}

.rv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 8px;
}

.rv-stars {
  color: var(--color-gold);
  font-size: 14px;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.rv-topright {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rv-date {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #1f7d49;
  background: #eaf8ef;
  border: 1px solid #cdeed9;
  padding: 4px 9px;
  border-radius: 999px;
}

.rv-body {
  font-size: 14.7px;
  line-height: 1.72;
  color: var(--color-text);
  margin: 0 0 16px;
  flex: 1;
}

.rv-body .hl {
  background: linear-gradient(transparent 58%, rgba(251, 239, 196, 0.9) 58%);
  font-weight: 700;
  color: var(--color-navy);
  padding: 0 1px;
}

.rv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rv-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-navy-light);
  background: #f1f5fb;
  border: 1px solid #dee8f4;
  border-radius: 7px;
  padding: 5px 9px;
}

.rv-cta-wrap {
  text-align: center;
  margin-top: 44px;
}

.rv-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #03c75a;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 30px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(3, 199, 90, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.rv-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(3, 199, 90, 0.4);
}

.nlogo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  color: #03c75a;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rv-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--color-white);
}

.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  font-size: 16px;
}

.cta-section__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Contact ---- */
.contact__info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 48px;
  padding: 28px 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact__info-item strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 6px;
}

.contact__info-item a,
.contact__info-item span {
  font-size: 15px;
  color: var(--color-navy);
  font-weight: 500;
}

.contact__info-item a:hover {
  color: var(--color-gold-dark);
}

.contact__campuses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact__campus h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.contact__campus h3 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.contact__address {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.contact__map-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact__map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact__map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 120px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact__map-btn:hover {
  border-color: var(--color-gold);
  background: rgba(201, 169, 98, 0.08);
  color: var(--color-gold-dark);
}

/* ---- Consult ---- */
.consult {
  background: var(--color-cream);
}

.consult__required {
  color: var(--color-gold-dark);
  font-weight: 700;
}

.consult__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.consult__intro .section-title {
  margin-bottom: 20px;
}

.consult__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 440px;
}

.consult__channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consult__channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.consult__channel:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.consult__channel-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.consult__channel-text span {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.consult__channel-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold-dark);
}

.consult__form-card {
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.consult__form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.consult__field {
  margin-bottom: 16px;
}

.consult__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.consult__field input,
.consult__field select,
.consult__field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.consult__field input:focus,
.consult__field select:focus,
.consult__field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.consult__field textarea {
  resize: vertical;
  min-height: 108px;
}

.consult__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.consult__actions .btn {
  width: 100%;
  padding: 14px 16px;
}

.consult__actions--single {
  grid-template-columns: 1fr;
}

.consult__form-note.is-error {
  color: #c0392b;
  font-weight: 600;
}

.consult__form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
}

.consult__form-note.is-success {
  color: var(--color-gold-dark);
  font-weight: 600;
}

/* ---- Modal ---- */
.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open,
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop,
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 46, 0.75);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-navy);
  transition: var(--transition);
}

.modal__close:hover {
  background: var(--color-gold);
}

.modal__header {
  padding: 32px 32px 0;
}

.modal__grade {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gold-dark);
  background: rgba(201, 169, 98, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.modal__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.5px;
}

.modal__body {
  padding: 24px 32px;
}

.modal__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.modal__gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.modal__gallery img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.modal__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.modal__subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.modal__features {
  margin-bottom: 24px;
}

.modal__features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.modal__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold-dark);
  font-weight: 700;
}

.modal__approach {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  padding: 16px;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-gold);
}

.modal__footer {
  padding: 0 32px 32px;
}

.modal__footer .btn {
  width: 100%;
}

/* ---- Lightbox ---- */
.lightbox__content {
  position: relative;
  max-width: 900px;
  width: 100%;
  z-index: 1;
}

.lightbox__img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav--prev { left: -64px; }
.lightbox__nav--next { right: -64px; }

.lightbox__caption {
  text-align: center;
  color: var(--color-white);
  margin-top: 16px;
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logos {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: fit-content;
}

.footer__logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer__logo--soma {
  height: 42px;
  max-width: 240px;
}

.footer__logo--ikim {
  height: 48px;
  max-width: 160px;
}

.footer__brand p {
  font-size: 13px;
  max-width: 320px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  transition: var(--transition);
}

.footer__links a:hover { color: var(--color-gold); }

.footer__copy {
  grid-column: 1 / -1;
  font-size: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 8px;
}

/* ---- Floating Kakao ---- */
.float-kakao {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
  height: 64px;
  background: var(--color-kakao);
  color: #3c1e1e;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  justify-content: center;
}

.float-kakao span {
  font-size: 10px;
  font-weight: 700;
}

.float-kakao:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  .rv-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 40px; }
  .why__layout { grid-template-columns: 1fr; gap: 40px; }
  .director__grid { grid-template-columns: 300px 1fr; gap: 40px; }
  .director__tracks { grid-template-columns: 1fr; }
  .director__values { grid-template-columns: 1fr; }
  .contact__info-bar { grid-template-columns: repeat(2, 1fr); }
  .consult__grid { grid-template-columns: 1fr; gap: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 768px) {
  :root { --header-h: 88px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-toggle { display: flex; }

  .header__actions .btn--sm { display: none; }

  .logo--panel { padding: 6px 12px; }
  .logo--header { height: calc(var(--header-h) - 10px); padding: 4px 8px; }
  .logo__img--header { max-width: 220px; }
  .logo__img--header { height: 38px; max-width: 190px; }
  .logo__img--ikim-only { height: 42px; max-width: 150px; }

  .brand-lockup {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px;
  }
  .brand-lockup__plus { display: none; }
  .brand-lockup__logo-slot { height: 72px; margin-bottom: 12px; }
  .brand-lockup__soma { height: 60px; max-width: 180px; }
  .brand-lockup__hook { font-size: 12px; margin-top: 8px; padding-top: 8px; }
  .brand-lockup__ikim { height: 44px; }
  .brand-lockup__caption { max-width: none; }

  .director__tracks { grid-template-columns: 1fr; }

  .footer__logos.logo--panel { padding: 10px 14px; }
  .footer__logo--ikim { height: 36px; }

  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }

  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: none;
  }

  .trust-item {
    padding: 16px;
    min-height: 76px;
    font-size: 13px;
  }

  .trust-item__icon {
    width: 28px;
    height: 28px;
  }

  .rv-grid,
  .about__grid,
  .campus__grid,
  .director__grid,
  .contact__campuses,
  .consult__grid,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .trust {
    gap: 12px 18px;
    padding: 18px;
  }

  .trust-num {
    font-size: 40px;
  }

  .gallery__item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .contact__info-bar {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .modal__gallery {
    grid-template-columns: 1fr;
  }

  .about__visual {
    grid-template-columns: 1fr;
  }

  .programs__grid { grid-template-columns: 1fr; }

  .why__cards { grid-template-columns: 1fr; }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__links { margin-top: 8px; }

  .section { padding: 72px 0; }

  .float-kakao {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .trust-bar__inner { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .logo--header { height: calc(var(--header-h) - 10px); padding: 3px 6px; }
  .logo__img--header { max-width: 180px; }
  .logo__img--header { height: 34px; max-width: 168px; }
  .logo__img--ikim-only { height: 36px; max-width: 132px; }
}
