:root {
  color-scheme: light;
  --ink: #111;
  --paper: #fff;
  --soft: #f5f5f3;
  --line: #d6d6d2;
  --muted: #5e5e5b;
  --pknu-navy: #004b8b;
  --pknu-cyan: #00aadd;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--pknu-navy); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 112px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; line-height: 1; flex: none; }
.brand img { width: 265px; height: auto; }
.site-nav { display: flex; align-items: center; justify-self: center; gap: clamp(.65rem, 1.15vw, 1.25rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 112px; border-bottom: 2px solid transparent; font-size: .94rem; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--pknu-navy); color: var(--pknu-navy); }
.language-switch { position: relative; justify-self: end; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-family: Arial, "Noto Sans KR", sans-serif; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.language-switch summary { display: flex; align-items: center; gap: .45rem; padding: .35rem .55rem; list-style: none; cursor: pointer; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::after { width: .35rem; height: .35rem; margin-left: .1rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(45deg); }
.language-switch[open] summary::after { transform: rotate(225deg); }
.language-switch strong { color: var(--pknu-navy); }
.language-options { position: absolute; z-index: 30; top: calc(100% + .3rem); right: -1px; min-width: calc(100% + 2px); padding: .2rem; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
.language-options a { display: block; padding: .35rem .55rem; }
.language-options a:hover, .language-options a[aria-current="page"] { background: #f1f4f6; color: var(--pknu-navy); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; content: ""; position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.eyebrow { margin: 0 0 1.3rem; font-family: Arial, sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: var(--pknu-cyan); }
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-inner { padding-block: clamp(6rem, 11vw, 10rem); }
.hero h1 { margin: 0; max-width: 1100px; font-size: clamp(2.7rem, 5.5vw, 5.5rem); line-height: 1.18; font-weight: 750; letter-spacing: -.07em; }
.hero h1 span { display: block; }
.hero-accent { color: var(--pknu-cyan); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.3rem; border: 1px solid var(--ink); font-size: .92rem; font-weight: 700; transition: background .2s, color .2s; }
.button:hover { background: #444; color: #fff; }
.button.inverse { border-color: #fff; background: #fff; color: var(--ink); }
.button.inverse:hover { border-color: var(--pknu-cyan); background: var(--pknu-cyan); color: var(--ink); }
.button.outline-light { border-color: #999; color: #fff; }
.button.outline-light:hover { border-color: #fff; background: #fff; color: var(--ink); }

.section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.section.soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-head h2, .section-title { margin: 0; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.25; letter-spacing: -.065em; font-weight: 750; }
.section-head h2::before, .section-title::before { display: block; width: 48px; height: 3px; margin-bottom: 1.2rem; background: var(--pknu-cyan); content: ""; }
.text-link { display: inline-flex; align-items: center; padding-bottom: .2rem; border-bottom: 1px solid var(--pknu-navy); color: var(--pknu-navy); font-size: .94rem; font-weight: 700; white-space: nowrap; }
.text-link:hover { opacity: .6; }
.intro-grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.intro-copy { max-width: 700px; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.85; letter-spacing: -.025em; }
.rule-list { border-top: 1px solid var(--ink); }
.rule-list .row { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding-block: 1.15rem; }
.rule-list strong { align-self: center; color: var(--pknu-navy); font-size: .92rem; }
.rule-list span { color: var(--muted); }
.rule-list a { color: var(--pknu-navy); font-size: .94rem; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }

.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--pknu-navy); border-left: 1px solid var(--line); }
.research-card { min-height: 110px; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.research-card:hover { background: #f1f4f6; color: var(--pknu-navy); }
.research-card h3 { margin: 0; font-size: 1.45rem; line-height: 1.35; letter-spacing: -.045em; }
.research-card .card-corner { color: var(--pknu-navy); font-size: 1.25rem; line-height: 1; }

.page-hero { border-bottom: 1px solid var(--ink); }
.page-hero .container { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.page-hero h1 { margin: 0; font-size: clamp(3.1rem, 6.5vw, 6rem); line-height: 1.14; letter-spacing: -.075em; }
.page-hero h1::before { display: block; width: 54px; height: 4px; margin-bottom: 1.5rem; background: var(--pknu-cyan); content: ""; }
.page-hero p:not(.eyebrow) { max-width: 670px; margin: 1.3rem 0 0; color: var(--muted); font-size: 1.08rem; }
.section-divider { position: relative; border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.section-divider::before { position: absolute; top: -1px; left: 0; width: 54px; height: 3px; background: var(--pknu-cyan); content: ""; }
.subsection-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-bottom: 1.8rem; }
.subsection-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.06em; }

.professor-layout { display: grid; grid-template-columns: minmax(280px, 410px) 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.professor-photo { margin: 0; }
.professor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: var(--soft); }
.professor-info h2 { margin: .4rem 0 0; color: var(--pknu-navy); font-size: clamp(3rem, 5vw, 5rem); line-height: 1.15; letter-spacing: -.08em; }
.professor-info .romanized { margin: .3rem 0 1.8rem; color: var(--muted); font-family: Arial, sans-serif; font-size: 1.2rem; }
.detail-list { margin: 0; border-top: 1px solid var(--ink); }
.detail-list div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0; color: var(--muted); }
.email-copy { padding: 0; border: 0; background: none; color: var(--pknu-navy); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; cursor: pointer; }
.email-copy:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.copy-feedback:not(:empty) { margin-left: .5rem; color: var(--pknu-navy); font-size: .85em; }
.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.timeline-item .date { color: var(--pknu-navy); font-family: Arial, sans-serif; font-weight: 700; letter-spacing: .02em; }
.timeline-item p { margin: 0; }
.timeline-item strong { display: block; }
.timeline-item span { color: var(--muted); }

.placeholder { min-height: 330px; display: grid; place-items: center; padding: 2.5rem; border: 1px solid var(--line); background: var(--soft); text-align: center; }
.placeholder-inner { max-width: 370px; }
.placeholder-symbol { width: 49px; height: 49px; display: grid; place-items: center; margin: 0 auto 1.3rem; border: 1px solid #999; border-radius: 50%; color: #777; font-family: Arial, sans-serif; font-size: 1.35rem; }
.placeholder h3 { margin: 0 0 .5rem; font-size: 1.25rem; letter-spacing: -.035em; }
.placeholder p { margin: 0; color: var(--muted); font-size: .93rem; }
.placeholder.compact { min-height: 235px; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.member-card { display: grid; grid-template-columns: 42% 1fr; border: 1px solid var(--line); background: var(--paper); }
.member-card .photo-placeholder { min-height: 280px; display: grid; place-items: center; background: var(--soft); border-right: 1px dashed var(--line); color: #777; text-align: center; font-size: .9rem; }
.member-card > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.member-card .card-body { min-width: 0; padding: 1.4rem; }
.member-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.member-name-row { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .4rem; }
.member-name-row h3 { margin: 0; white-space: nowrap; }
.member-card .member-role { white-space: nowrap; }
.member-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.member-card .romanized { margin: -.2rem 0 .75rem; font-family: Arial, sans-serif; font-size: .9rem; }
.member-card dl { margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.member-card dl div { display: flex; gap: .65rem; justify-content: space-between; padding-top: .55rem; font-size: .9rem; }
.member-card dt { flex: none; font-weight: 700; white-space: nowrap; }
.member-card dd { min-width: 0; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.member-interests span { display: block; }
.member-card dd a { color: var(--pknu-navy); text-decoration: underline; text-underline-offset: .2em; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-card { min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--paper); }
.gallery-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper); }
.gallery-card figcaption { padding: .6rem .9rem; border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .94rem; font-weight: 700; line-height: 1.5; text-align: center; }

.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--pknu-navy); border-bottom: 1px solid var(--line); }
.field-card { min-width: 0; padding: 1.4rem; border-left: 1px solid var(--line); }
.field-card:last-child { border-right: 1px solid var(--line); }
.field-figure { margin: 0; border: 1px solid var(--line); background: var(--soft); }
.field-figure img { width: 100%; height: auto; }
.field-copy h3 { min-height: 2.8em; margin: 1.4rem 0 1rem; color: var(--pknu-navy); font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.4; letter-spacing: -.045em; text-align: center; }
.field-copy ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.field-copy li + li { margin-top: .8rem; }
.field-copy li::marker { color: var(--pknu-cyan); }
.paper-list { border-top: 1px solid var(--ink); }
.paper-item { display: grid; grid-template-columns: 72px 1fr; gap: 1.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.paper-year { color: var(--pknu-navy); font-family: Arial, sans-serif; font-weight: 800; }
.paper-item h3 { margin: 0 0 .35rem; font-size: 1.08rem; font-weight: 700; line-height: 1.5; word-break: normal; overflow-wrap: anywhere; }
.paper-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.alumni-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--pknu-navy); border-left: 1px solid var(--line); list-style: none; }
.alumni-grid li { min-height: 125px; display: flex; align-items: center; padding: 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -.045em; }
.alumni-grid small { display: block; margin-top: .2rem; color: var(--muted); font-size: .9rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere; }

.site-footer { border-top: 4px solid var(--pknu-navy); background: var(--ink); color: var(--paper); }
.footer-inner { padding-block: 4rem 3rem; }
.footer-brand { font-family: Arial, sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.footer-title { margin: .85rem 0 0; color: #bcbcbc; font-size: .95rem; white-space: nowrap; }
.footer-contact { margin: 1.2rem 0 0; color: #bcbcbc; font-size: .9rem; font-style: normal; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid #444; color: #a9a9a9; font-family: Arial, sans-serif; font-size: .78rem; }

@media (max-width: 1200px) {
  .brand img { width: 205px; }
}

@media (max-width: 1090px) {
  .header-inner { min-height: 84px; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
  .site-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; width: 100%; justify-self: stretch; padding: .5rem 1.5rem 1.4rem; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 18px 25px rgba(0,0,0,.06); }
  .site-nav.open { display: grid; gap: 0; }
  .site-nav a { min-height: 52px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .intro-grid, .professor-layout { grid-template-columns: 1fr; }
  .professor-photo { max-width: 410px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .member-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .field-card:last-child { border-bottom: 0; }
  .field-figure { max-width: 640px; }
  .field-copy h3 { min-height: 0; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 2rem), var(--max)); }
  .brand img { width: clamp(140px, 38vw, 180px); }
  .language-switch .language-label { display: none; }
  .hero-inner { padding-block: 6rem 5rem; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 3.5rem); }
  html[lang="en"] .hero-inner { padding-block: 4.5rem 4rem; }
  html[lang="en"] .hero h1 { font-size: clamp(1.95rem, 8vw, 2.8rem); letter-spacing: -.055em; }
  .section-head, .subsection-head { display: block; }
  .section-head .text-link { margin-top: 1.3rem; }
  .research-grid, .member-grid, .alumni-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 0; padding: 1.1rem 1.25rem; }
  .member-card { grid-template-columns: 38% 1fr; }
  .member-card .photo-placeholder { min-height: 230px; }
  .member-card > img { min-height: 230px; }
  html[lang="en"] .member-name-row { display: block; }
  html[lang="en"] .member-card .member-role { white-space: normal; }
  .member-card dl div { display: block; }
  .member-card dt { margin-bottom: .1rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .3rem; }
  .footer-bottom { display: block; }
  .footer-title { white-space: normal; }
  .footer-bottom > span { display: block; margin-bottom: .4rem; }
}

@media (max-width: 480px) {
  .header-inner { gap: .4rem; }
  .language-switch summary { padding: .25rem .3rem; }
  .member-card { grid-template-columns: 35% 1fr; }
  .member-card .card-body { padding: 1rem; }
  .member-card .member-interests { font-size: .75rem; letter-spacing: -.01em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
