/* 현대하모니체 — 제목·브랜드 */
@font-face {
  font-family: "Hyundai Harmony";
  src: url("fonts/HyundaiHarmony-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hyundai Harmony";
  src: url("fonts/HyundaiHarmony-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hyundai Harmony";
  src: url("fonts/HyundaiHarmony-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 페이퍼로지체 — 본문·메뉴·버튼 */
@font-face {
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy-3Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy-5Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy-6SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy-8ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c1630;
  --ink-soft: #3d4a66;
  --paper: #f4f6fa;
  --paper-deep: #e6ebf4;
  --navy: #102a6a;
  --navy-deep: #0a1a45;
  --gold: #c5a059;
  --gold-bright: #d4af37;
  --line: rgba(16, 42, 106, 0.12);
  --header-h: 4.5rem;
  --font-display: "Hyundai Harmony", "Paperlogy", sans-serif;
  --font-body: "Paperlogy", "Hyundai Harmony", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(197, 160, 89, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(16, 42, 106, 0.08), transparent 50%),
    linear-gradient(180deg, #f8f9fc 0%, var(--paper) 40%, #eef1f7 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
.brand,
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin: 0.35em 0 0.45em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0.2em 0 0.5em;
}

h3 {
  font-size: 1.25rem;
  margin: 0.4em 0 0.35em;
}

p {
  margin: 0 0 1em;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.section-desc {
  max-width: 36rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(244, 246, 250, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 246, 250, 0.96);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(16, 42, 106, 0.18);
}

.logo-text {
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--navy);
  color: #f4f6fa !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4f6fa;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.05);
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 48, 0.28) 0%, rgba(8, 18, 48, 0.45) 40%, rgba(8, 18, 48, 0.9) 100%),
    linear-gradient(90deg, rgba(8, 18, 48, 0.62) 0%, rgba(8, 18, 48, 0.2) 55%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  animation: rise-in 1s var(--ease) both;
}

.brand {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  margin: 0;
  color: var(--gold-bright);
}

.lead {
  max-width: 32rem;
  font-size: 1.08rem;
  color: rgba(244, 246, 250, 0.88);
  margin-bottom: 1.25rem;
}

.hero-points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-width: 28rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(244, 246, 250, 0.9);
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold-bright);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #1a140c;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: #1a140c;
}

.btn-ghost {
  background: transparent;
  color: #f4f6fa;
  border-color: rgba(244, 246, 250, 0.55);
}

.btn-ghost:hover {
  background: rgba(244, 246, 250, 0.1);
  color: #fff;
}

.btn-on-dark {
  background: transparent;
  color: #f4f6fa;
  border-color: rgba(244, 246, 250, 0.5);
}

.btn-on-dark:hover {
  background: rgba(244, 246, 250, 0.12);
  color: #fff;
}

/* Compare + curriculum tables */
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  background: rgba(16, 42, 106, 0.04);
  white-space: nowrap;
}

.compare-table td {
  color: var(--ink-soft);
}

.compare-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.compare-table a {
  color: var(--ink);
  text-decoration: none;
}

.compare-table a:hover {
  color: var(--navy);
}

.compare-table a span {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.curriculum {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.curriculum h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.25rem;
}

.curriculum-table td:first-child {
  white-space: nowrap;
  color: var(--gold);
  font-family: var(--font-display);
}

/* Courses */
.course-block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.course-block:last-child {
  border-bottom: 1px solid var(--line);
}

.course-block-reverse .course-media {
  order: 2;
}

.course-block-reverse .course-copy {
  order: 1;
}

.course-media {
  overflow: hidden;
  min-height: 280px;
  background: #1a0f12;
  display: grid;
  place-items: center;
}

.course-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
}

#course-npl .course-media {
  background: #0b0d12;
}

#course-npl .course-media img {
  object-fit: cover;
  object-position: center 20%;
}

.course-code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.course-copy p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.course-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink) !important;
  font-size: 1.05rem;
  line-height: 1.5;
}

.course-quote {
  margin-top: 1rem !important;
  font-family: var(--font-display);
  font-style: normal;
  color: var(--navy) !important;
  font-weight: 600;
}

.course-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-copy li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  color: var(--ink);
  font-weight: 500;
  border-top: 1px solid var(--line);
}

.course-copy li:last-child {
  border-bottom: 1px solid var(--line);
}

.course-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--navy);
}

/* Instructors */
.instructor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.instructor-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.instructor-card {
  margin: 0;
}

.instructor-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  background: #1a0f12;
}

.instructor-card:last-child img {
  background: #0b0d12;
  object-fit: cover;
  object-position: center 20%;
}

.instructor-card figcaption {
  padding: 1rem 0 0;
  display: grid;
  gap: 0.25rem;
}

.instructor-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.instructor-card span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  background: linear-gradient(180deg, transparent, rgba(230, 235, 244, 0.55));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  margin: 0;
  grid-column: span 2;
}

.gallery-item:first-child {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.gallery-item:first-child img {
  min-height: 420px;
}

.gallery-item figcaption {
  padding-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Info list */
.info-list {
  font-style: normal;
  color: var(--ink-soft);
  margin: 1.25rem 0 1.75rem;
}

.info-list p {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.info-list p:last-of-type {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.info-list strong {
  display: inline-block;
  min-width: 7.5rem;
  color: var(--ink);
  font-weight: 600;
}

.info-list a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.info-list .note {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Why */
.why {
  background:
    linear-gradient(135deg, rgba(16, 42, 106, 0.05), transparent 40%),
    linear-gradient(180deg, transparent, rgba(230, 235, 244, 0.7));
}

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: end;
}

.why-copy p {
  color: var(--ink-soft);
  max-width: 34rem;
}

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
}

.why-panel {
  background: var(--navy-deep);
  color: #f4f6fa;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.why-logo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.1rem;
  margin-bottom: 1.5rem;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.why-panel dl {
  margin: 0;
  display: grid;
  gap: 1.35rem;
}

.why-panel dl > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(244, 246, 250, 0.18);
}

.why-panel dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.why-panel dt {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.why-panel dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Voices */
.voices .section-inner {
  max-width: 720px;
}

.quote {
  margin: 0 0 1.5rem;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 3px solid var(--gold);
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.location-copy .btn-ghost {
  color: var(--ink);
  border-color: rgba(12, 22, 48, 0.35);
}

.location-copy .btn-ghost:hover {
  background: rgba(12, 22, 48, 0.06);
  color: var(--ink);
}

.location-visual {
  overflow: hidden;
  min-height: 320px;
}

.location-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(160deg, #132a66 0%, var(--navy-deep) 55%, #07122f 100%);
  color: #f4f6fa;
  padding: clamp(4rem, 9vw, 6rem) 0;
}

.cta-band-inner {
  text-align: center;
}

.cta-logo {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.15rem;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cta-band h2 {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  color: rgba(244, 246, 250, 0.78);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: #07122f;
  color: rgba(244, 246, 250, 0.72);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}

.site-footer strong {
  display: block;
  font-family: var(--font-display);
  color: #f4f6fa;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #f4f6fa;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.copyright {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 246, 250, 0.12);
  font-size: 0.82rem;
  opacity: 0.7;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    z-index: 60;
  }

  .logo-text {
    font-size: 0.92rem;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(244, 246, 250, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--navy) !important;
  }

  .course-block,
  .course-block-reverse,
  .instructor-grid,
  .instructor-grid-3,
  .gallery-grid,
  .why-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .course-block-reverse .course-media,
  .course-block-reverse .course-copy {
    order: initial;
  }

  .course-media img {
    min-height: 220px;
  }

  .gallery-item,
  .gallery-item:first-child,
  .gallery-item:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item img,
  .gallery-item:first-child img {
    min-height: 220px;
  }

  .info-list strong {
    display: block;
    min-width: 0;
    margin-bottom: 0.15rem;
  }

  .location-visual img {
    min-height: 240px;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .hero-media img {
    object-position: 70% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
