:root {
  --navy: #12263a;
  --navy-deep: #0b1826;
  --navy-mid: #1c3a56;
  --gold: #c4a056;
  --gold-soft: #e8d5a3;
  --ivory: #f7f3ea;
  --paper: #fffdf8;
  --ink: #2c2a26;
  --muted: #6b655c;
  --line: #e4dccb;
  --crimson: #7a2e38;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.75;
  font-weight: 400;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

h1,
h2,
h3,
.serif {
  font-family: "Batang", "Apple Myungjo", "Noto Serif KR", serif;
}

/* Top bar */
.topbar {
  background: var(--navy-deep);
  color: #d8d2c6;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* Masthead */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crest {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-text .ko {
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.logo-text .en {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.dept-mark {
  text-align: right;
  font-size: 13px;
  color: var(--navy-mid);
}

.dept-mark strong {
  display: block;
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  color: #f4efe4;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 24, 38, 0.88) 0%, rgba(11, 24, 38, 0.55) 48%, rgba(11, 24, 38, 0.28) 100%),
    radial-gradient(circle at 80% 20%, rgba(196, 160, 86, 0.18), transparent 42%),
    linear-gradient(180deg, #1a334c 0%, #0d1c2b 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 160, 86, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 160, 86, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000);
  pointer-events: none;
}

.campus-art {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: min(620px, 58vw);
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 92px 0 80px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.25;
  margin: 16px 0 18px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  max-width: 540px;
  font-size: 16px;
  font-weight: 300;
  color: #e6dfd2;
}

.gold-rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 18px 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
}

.hero-meta div span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.hero-meta div strong {
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 22px;
  font-weight: 600;
}

/* Stats */
.stats {
  background: var(--navy);
  color: #efe8d8;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid rgba(232, 213, 163, 0.14);
}

.stat:last-child {
  border-right: none;
}

.stat b {
  display: block;
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 28px;
  color: var(--gold-soft);
  font-weight: 600;
}

.stat span {
  font-size: 13px;
  color: #c9c2b4;
}

/* Sections */
section {
  padding: 84px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 32px;
  color: var(--navy);
  margin-top: 8px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.prose p + p {
  margin-top: 16px;
}

.quote-card {
  background: var(--navy);
  color: #f3ece0;
  padding: 36px 32px;
  position: relative;
}

.quote-card::before {
  content: "『";
  position: absolute;
  top: 12px;
  left: 18px;
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 42px;
  color: var(--gold);
  opacity: 0.7;
}

.quote-card p {
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.quote-card cite {
  font-style: normal;
  font-size: 13px;
  color: var(--gold-soft);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 22px;
  min-height: 210px;
}

.pillar .num {
  font-family: "Batang", "Apple Myungjo", serif;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.pillar h3 {
  font-size: 20px;
  margin: 12px 0 10px;
  color: var(--navy);
}

.pillar p {
  font-size: 14px;
  color: var(--muted);
}

/* Programs */
.bg-paper {
  background: var(--paper);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.program {
  border: 1px solid var(--line);
  padding: 30px 26px 28px;
  background: #fff;
  position: relative;
}

.program .bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.program h3 {
  font-size: 22px;
  color: var(--navy);
  margin: 8px 0 6px;
}

.program .degree {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--crimson);
  font-weight: 600;
}

.program ul {
  margin-top: 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.program li + li {
  margin-top: 6px;
}

/* Curriculum */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--navy);
  color: #f4eee3;
  font-weight: 500;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #fbf8f1;
}

.note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Faculty */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.avatar {
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px;
  color: #f7f1e4;
}

.avatar .initial {
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 42px;
  line-height: 1;
  opacity: 0.9;
}

.avatar .role {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.a1 { background: linear-gradient(145deg, #1c3a56, #12263a); }
.a2 { background: linear-gradient(145deg, #7a2e38, #4a1c24); }
.a3 { background: linear-gradient(145deg, #2f4a3a, #1a2c24); }
.a4 { background: linear-gradient(145deg, #3d3554, #241f33); }
.a5 { background: linear-gradient(145deg, #4a3a22, #2c2416); }
.a6 { background: linear-gradient(145deg, #1e4458, #102833); }

.card-body {
  padding: 20px 22px 24px;
}

.card-body h3 {
  font-size: 20px;
  color: var(--navy);
}

.card-body .field {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin: 4px 0 10px;
}

.card-body p {
  font-size: 14px;
  color: var(--muted);
}

/* Research */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--navy);
}

/* News */
.news-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item time {
  font-family: "Batang", "Apple Myungjo", serif;
  color: var(--gold);
  font-size: 14px;
}

.news-item h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}

.news-item p {
  font-size: 14px;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.info-block {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 30px;
}

.info-block h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.kv {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}

.kv dt {
  color: var(--muted);
}

.hours {
  background: var(--navy);
  color: #efe8d8;
  padding: 32px 30px;
}

.hours h3 {
  color: var(--gold-soft);
  margin-bottom: 14px;
  font-size: 20px;
}

.hours li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 213, 163, 0.16);
  font-size: 14px;
}

.hours li:last-child {
  border-bottom: none;
}

/* Footer */
footer {
  background: var(--navy-deep);
  color: #b9b2a6;
  padding: 36px 0 28px;
  font-size: 13px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

footer strong {
  color: #efe8d8;
  font-family: "Batang", "Apple Myungjo", serif;
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.no-link {
  pointer-events: none;
  user-select: text;
}

@media (max-width: 900px) {
  .stats .wrap,
  .pillars,
  .program-grid,
  .faculty-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .masthead .wrap,
  .topbar .wrap,
  footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .dept-mark {
    text-align: left;
  }

  .stats .wrap,
  .pillars,
  .program-grid,
  .faculty-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(232, 213, 163, 0.14);
  }

  section {
    padding: 64px 0;
  }

  .hero .wrap {
    padding: 64px 0 56px;
  }
}
