/* MPL — Marine Prediction Lab
   Layout modelled on a classic research-group site: white header with
   uppercase dropdown nav, full-width hero, single 1200px column, banner
   on every sub-page. Edit the tokens below to re-skin the whole site. */

:root {
  --navy: #0c2136;
  --navy-2: #1b4a7a;
  --accent: #1d5fa6;
  --accent-dark: #164b85;
  --ink: #262b31;
  --muted: #68707a;
  --line: #e5e3de;
  --soft: #f6f5f1;
  --white: #fff;
  --w: 1200px;
  --header-h: 80px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
.w { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header .w { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 20px; letter-spacing: .04em; }
.brand-text span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 0 16px; line-height: var(--header-h);
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.nav > li > a:hover, .nav > li.current > a { color: var(--accent); }
.nav > li.current > a { box-shadow: inset 0 -3px 0 var(--accent); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 8px 0;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  box-shadow: 0 12px 28px rgba(10, 37, 64, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav > li:hover > .sub, .nav > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 18px; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.sub a:hover { background: var(--soft); color: var(--accent); }
/* Grouped dropdown (Research: by approach / by theme) */
.sub.mega { display: grid; grid-template-columns: auto auto; padding: 18px 8px 14px; }
.sub.mega > div + div { border-left: 1px solid var(--line); }
.sub.mega h5 { margin: 0 0 6px; padding: 0 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sub.mega ul { list-style: none; margin: 0; padding: 0; }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(78vh, 680px); min-height: 440px; background: var(--navy); overflow: hidden; }
.hero .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero .slide.on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 24, 44, .82) 0%, rgba(6, 24, 44, .45) 55%, rgba(6, 24, 44, .15) 100%);
}
.hero .content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero .kicker { color: #cfe8f7; border-left: 4px solid var(--accent); padding-left: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 14px; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 20px; }
.hero p { color: rgba(255, 255, 255, .88); font-size: clamp(16px, 1.6vw, 20px); max-width: 640px; margin-bottom: 32px; }
.hero .dots { position: absolute; z-index: 3; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero .dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; }
.hero .dots button.on { background: var(--accent); }

.btn {
  display: inline-block; padding: 13px 34px;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: var(--accent); border: 2px solid var(--accent);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.line:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin: 16px auto 0; }
.sec-head p { color: var(--muted); max-width: 720px; margin: 0 auto; }
.more { text-align: center; margin-top: 44px; }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about .img { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.about .img.has-video { aspect-ratio: auto; background: none !important; }
.about .img video { display: block; width: 100%; height: auto; }
.about .img .tag {
  position: absolute; left: -16px; bottom: 28px; background: var(--accent); color: var(--white);
  font-weight: 800; letter-spacing: .14em; padding: 10px 24px; font-size: 20px;
}
.about h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
.about h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: 16px; }

/* Research topic tiles (image with title overlay) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--navy); color: var(--white);
}
.tile .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 24, 44, .1) 20%, rgba(6, 24, 44, .8) 62%, rgba(6, 24, 44, .96) 100%); }
.tile:hover .bg { transform: scale(1.07); }
.tile .txt { position: relative; z-index: 2; padding: 16px 18px; }
.tile b { display: block; font-size: 18px; line-height: 1.25; }
.tile small { color: rgba(255, 255, 255, .75); font-size: 13px; }
.tile:hover { color: var(--white); }

.axis { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tiles + .axis { margin-top: 40px; }
.tiles.big { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tiles.big .tile { aspect-ratio: 16 / 10; }
.tiles.big .tile b { font-size: 24px; }
.tiles.small { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tiles.small .tile { aspect-ratio: 3 / 2; }
.tiles.small .tile b { font-size: 16px; }
.tiles.small .tile .txt { padding: 12px 14px; }

/* Method tags on cards and articles; two-row research filter */
.mtags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.mtags li { font-size: 12px; font-weight: 600; padding: 2px 9px; color: var(--navy); background: var(--soft); border: 1px solid var(--line); }
.article .meta .mtags { margin-top: 10px; padding: 0; }
.filter { display: grid; grid-template-columns: 96px 1fr; align-items: start; gap: 8px; margin-bottom: 12px; }
.filter > span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 9px; }
.filter .chips { margin: 0; }
.count { color: var(--muted); font-size: 14.5px; margin: 14px 0 24px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 32px rgba(10, 37, 64, .12); transform: translateY(-3px); color: var(--ink); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--soft) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 18px; margin: 0; }
.card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }

/* News list */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); align-items: center; }
.news-item .thumb { aspect-ratio: 3 / 2; background: var(--soft) center / cover no-repeat; }
.news-item time { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .06em; }
.news-item h3 { font-size: 19px; margin: 4px 0 6px; }
.news-item p { margin: 0; color: var(--muted); font-size: 15px; }
.news-item:hover h3 { color: var(--accent); }

/* Call to action */
.cta { position: relative; padding: 96px 0; text-align: center; background: var(--navy) center / cover no-repeat; color: var(--white); }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(6, 24, 44, .78); }
.cta .w { position: relative; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 680px; margin: 0 auto 30px; }
.cta .btn-row { justify-content: center; }

/* ---------- Sub-page banner ---------- */
.banner { position: relative; padding: 72px 0 60px; background: var(--navy) center / cover no-repeat; color: var(--white); }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 24, 44, .88), rgba(6, 24, 44, .55)); }
.banner .w { position: relative; }
.banner h1 { color: var(--white); font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; margin: 0 0 10px; }
.crumb { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.crumb a { color: rgba(255, 255, 255, .75); }
.crumb a:hover { color: var(--accent); }
.crumb i { margin: 0 8px; font-style: normal; color: var(--accent); }

.page { padding: 64px 0 88px; }
.page h2 { font-size: 28px; font-weight: 800; margin: 56px 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); display: flex; align-items: baseline; gap: 12px; }
.page h2:first-child { margin-top: 0; }
.page h2 .n { font-size: 14px; font-weight: 600; color: var(--muted); }
.lead { font-size: 19px; color: var(--ink); max-width: 860px; }

/* Jump links / filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.chips a, .chips button {
  display: inline-block; padding: 7px 16px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--navy); background: var(--white); border: 1px solid var(--line); cursor: pointer;
}
.chips a:hover, .chips button:hover { border-color: var(--accent); color: var(--accent); }
.chips button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chips .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chips button.on .n { color: rgba(255, 255, 255, .7); }

/* ---------- People ---------- */
.pi { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.pi img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pi h3 { font-size: 30px; margin-bottom: 4px; }
.pi .role { color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; margin-bottom: 18px; }
.pi h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 5px 0; }
.facts li b { display: inline-block; min-width: 96px; color: var(--navy); }
.plain { margin: 0; padding-left: 20px; }
.plain li { margin-bottom: 6px; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.person { border: 1px solid var(--line); background: var(--white); }
.person .ph { aspect-ratio: 1 / 1; background: var(--soft) center top / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; color: #c3ccd6; }
.person .body { padding: 18px 20px 20px; }
.person h3 { font-size: 19px; margin: 0 0 2px; }
.person .ko { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.person .aff { font-size: 14px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.person .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.person .tags li { font-size: 12.5px; padding: 2px 9px; background: var(--soft); border: 1px solid var(--line); color: var(--navy); }
.person .mail { font-size: 14px; word-break: break-all; }
.alumni { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 36px; list-style: none; margin: 0; padding: 0; }
.alumni li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.alumni b { color: var(--navy); }
.alumni span { display: block; font-size: 14.5px; color: var(--muted); }

/* ---------- Publications ---------- */
.year { font-size: 20px; font-weight: 800; color: var(--accent); margin: 36px 0 8px; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 14px 0 14px 20px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.pubs li:hover { border-left-color: var(--accent); background: var(--soft); }
.pubs .t { display: block; font-weight: 700; color: var(--navy); }
.pubs .a { display: block; font-size: 15.5px; }
.pubs .v { display: block; font-size: 15px; color: var(--muted); font-style: italic; }
.pubs .v a { font-style: normal; font-weight: 600; margin-left: 6px; }

/* ---------- Article (research / news detail) ---------- */
.article { max-width: 880px; margin: 0 auto; }
.article .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article .meta b { color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-right: 12px; }
.article img { margin: 28px auto 10px; border: 1px solid var(--line); }
.article .cap { text-align: center; font-size: 14.5px; color: var(--muted); margin-bottom: 24px; }
.article ul { padding-left: 22px; margin: 0 0 1.2em; }
.article ul.key { list-style: none; padding: 20px 24px; background: var(--soft); border-left: 4px solid var(--accent); }
.article ul.key li { margin: 4px 0; font-weight: 500; color: var(--navy); }
.article h3 { margin-top: 32px; }
.article .embed { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; }
.article .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.backlink { display: inline-block; margin-top: 44px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.hide { display: none !important; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact iframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.contact dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; row-gap: 12px; }
.contact dt { font-weight: 700; color: var(--navy); }
.contact dd { margin: 0; }
.note { padding: 22px 26px; background: var(--soft); border-left: 4px solid var(--accent); margin-top: 32px; }
.note h3 { font-size: 19px; margin-bottom: 8px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; padding: 44px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer .logo { height: 44px; width: auto; margin-bottom: 14px; }
.footer .copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav > li > a { padding: 0 11px; font-size: 13px; }
  .brand-text span { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 0 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s;
  }
  body.menu-open .nav { transform: none; }
  body.menu-open { overflow: hidden; }
  .nav > li > a { line-height: 1.4; padding: 14px 24px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav > li.current > a { box-shadow: inset 4px 0 0 var(--accent); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 4px 0 8px; background: var(--soft); }
  .sub a { padding: 8px 40px; white-space: normal; }
  .sub.mega { display: block; padding: 8px 0; }
  .sub.mega > div + div { border-left: 0; margin-top: 8px; }
  .sub.mega h5 { padding: 6px 40px 2px; }
  .section { padding: 60px 0; }
  .about, .pi, .contact { grid-template-columns: 1fr; gap: 32px; }
  .about .img .tag { left: 0; }
  .pi img { max-width: 260px; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .news-item { grid-template-columns: 104px 1fr; gap: 16px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .tiles.big { grid-template-columns: 1fr; }
  .tiles.big .tile { aspect-ratio: 16 / 7; }
  .tiles.small { grid-template-columns: repeat(2, 1fr); }
  .filter { grid-template-columns: 1fr; gap: 4px; }
  .filter > span { padding-top: 0; }
}
@media (max-width: 520px) {
  .w { padding: 0 16px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile b { font-size: 15px; }
  .people { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person .body { padding: 12px; }
  .person .tags { display: none; }
  .contact dl { grid-template-columns: 1fr; row-gap: 2px; }
  .contact dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   Refined look (overrides the base rules above)
   Lighter type, sentence-case labels, hairlines instead of heavy bars.
   ========================================================================== */
h1, h2, h3, h4 { letter-spacing: -.015em; }
.nav > li > a { text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 500; }
.nav > li.current > a { box-shadow: inset 0 -2px 0 var(--accent); }
.sub { border-top-width: 2px; border-radius: 0 0 8px 8px; }

.btn { text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 600; padding: 12px 28px; border-radius: 999px; border-width: 1.5px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Hero: text anchored to the bottom, quieter overlay */
.hero { height: min(52vh, 460px); min-height: 340px; }
.hero .slide { filter: saturate(.7); }
.hero::after { background: linear-gradient(180deg, rgba(12, 33, 54, .42) 0%, rgba(12, 33, 54, .3) 40%, rgba(12, 33, 54, .88) 100%); }
.hero .content { justify-content: flex-end; padding-bottom: 56px; }
.hero .kicker { color: rgba(255, 255, 255, .82); border: 0; padding: 0; font-weight: 500; letter-spacing: .16em; font-size: 13px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; margin-bottom: 18px; }
.hero p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 600px; margin: 0; color: rgba(255, 255, 255, .86); }
.hero .dots { justify-content: flex-end; max-width: var(--w); margin: 0 auto; padding: 0 24px; bottom: 28px; gap: 8px; }
.hero .dots button { width: 28px; height: 2px; }
.hero .dots button.on { background: var(--white); }

/* Sections */
.section { padding: 104px 0; }
.section.tight { padding-top: 0; }
.sec-head { text-align: left; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.025em; margin: 0; }
.sec-head h2::after { display: none; }
.more-link { font-weight: 600; font-size: 15.5px; white-space: nowrap; color: var(--navy); padding-bottom: 6px; }
.more-link i, .rows i, .approach .go i { font-style: normal; display: inline-block; transition: transform .2s; }
.more-link:hover i { transform: translateX(4px); }

/* About */
.about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
.about .media video, .about .media img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 60px -24px rgba(10, 37, 64, .35); }
.about .statement { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.42; letter-spacing: -.015em; color: var(--navy); font-weight: 500; margin-bottom: 26px; }
.about p { color: var(--muted); }
.about p.statement { color: var(--navy); }

/* Research block (class name kept as "dark"; it is now a light, paper-toned band) */
.section.dark { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.approach { display: flex; flex-direction: column; color: var(--muted); }
.fig { display: block; background: #fff center / contain no-repeat; border: 1px solid var(--line); border-radius: 10px; }
.fig.cover { background-size: cover; }
.approach .fig { aspect-ratio: 16 / 10; margin-bottom: 26px; transition: transform .25s, box-shadow .25s; }
.approach .fig:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(12, 33, 54, .35); }
.approach .no { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.approach h3 { font-size: 27px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.approach p { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.approach .feat { display: block; margin-bottom: 22px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--navy); }
.approach .feat small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.approach .feat:hover { border-left-color: var(--accent); color: var(--accent); }
.approach .go { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--navy); }
.approach .go:hover { color: var(--accent); }
.approach .go:hover i { transform: translateX(5px); }
.themes-label { margin: 64px 0 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.theme { display: block; color: var(--navy); }
.theme .fig { aspect-ratio: 4 / 3; margin-bottom: 12px; transition: transform .25s, box-shadow .25s; }
.theme b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.theme small { font-size: 13.5px; color: var(--muted); }
.theme:hover { color: var(--accent); }
.theme:hover .fig { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(12, 33, 54, .35); }

/* Cards: no boxes, rounded image */
.cards { gap: 40px 32px; }
.card { border: 0; background: none; }
.card:hover { box-shadow: none; transform: none; }
.card .thumb { border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 3 / 2; transition: box-shadow .25s, transform .25s; }
.card:hover .thumb { box-shadow: 0 18px 40px -18px rgba(10, 37, 64, .35); transform: translateY(-3px); }
.card .body { padding: 20px 2px 0; }
.card .cat { letter-spacing: .12em; font-weight: 600; }
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.32; }
.card:hover h3 { color: var(--accent); }
.mtags li { border-radius: 999px; background: none; font-weight: 500; color: var(--muted); }

/* News rows */
.rows { border-top: 1px solid var(--line); }
.rows .row { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--navy); transition: padding .2s, background .2s; }
.rows time { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows span { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.rows i { color: var(--muted); }
.rows .row:hover { color: var(--accent); background: var(--soft); padding-left: 14px; padding-right: 14px; }
.rows .row:hover i { transform: translateX(4px); color: var(--accent); }

/* Join band */
.cta { padding: 72px 0; text-align: left; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.cta::before { display: none; }
.cta .w { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { color: var(--navy); text-transform: none; letter-spacing: -.025em; font-weight: 600; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta p { color: var(--muted); max-width: 720px; margin: 0; }
.cta .btn { flex: none; }
.footer { background: var(--soft); }

/* Shared chips / tags follow the rounder shape */
.chips a, .chips button { border-radius: 999px; }
.person, .person .tags li { border-radius: 10px; }
.person { overflow: hidden; }
.person .tags li { border-radius: 999px; }

@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .hero .content { padding-bottom: 44px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .approaches { grid-template-columns: 1fr; gap: 48px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .sec-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 32px; }
  .rows .row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .rows time { grid-column: 1 / -1; }
  .cta .w { flex-direction: column; align-items: flex-start; gap: 24px; }
}


/* ==========================================================================
   Ocean feel: wave edges, ripple lines, deep-water Join band
   ========================================================================== */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 84px; overflow: hidden; z-index: 2; pointer-events: none; }
.waves svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: drift 38s linear infinite; }
.waves .l1 { fill: rgba(255, 255, 255, .22); animation-duration: 52s; }
.waves .l2 { fill: rgba(255, 255, 255, .45); animation-duration: 38s; animation-direction: reverse; }
.waves .l3 { fill: var(--white); animation-duration: 26s; }
@keyframes drift { to { transform: translateX(-50%); } }

/* Hero: leave room for the waves, deeper water tone at the bottom */
.hero { height: min(58vh, 520px); }
.hero .content { padding-bottom: 116px; }
.hero::after { background: linear-gradient(180deg, rgba(12, 33, 54, .38) 0%, rgba(12, 44, 70, .3) 40%, rgba(10, 52, 82, .9) 100%); }

/* Research band: faint ripple lines, like the lines on a nautical chart */
.section.dark { background-color: var(--soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='40' viewBox='0 0 720 40'%3E%3Cpath d='M0,20 C120,6 240,34 360,20 C480,6 600,34 720,20' fill='none' stroke='%231d5fa6' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"); background-size: 720px 40px; border-top: 0; }

/* Join band: the page ends in deep water */
.cta { position: relative; padding: 148px 0 84px; background: linear-gradient(180deg, #14507a 0%, #0e3557 45%, var(--navy) 100%); color: rgba(255, 255, 255, .8); border-top: 0; overflow: hidden; }
.cta .w { position: relative; z-index: 3; }
.cta h2 { color: var(--white); }
.cta p { color: rgba(255, 255, 255, .78); }
.cta .btn { background: var(--white); border-color: var(--white); color: var(--navy); }
.cta .btn:hover { background: #dcebf7; border-color: #dcebf7; color: var(--navy); }
.waves.top { top: -1px; bottom: auto; transform: scaleY(-1); height: 72px; }
.footer { border-top: 0; }

@media (max-width: 900px) {
  .waves { height: 52px; }
  .hero .content { padding-bottom: 84px; }
  .cta { padding: 112px 0 64px; }
}
@media (prefers-reduced-motion: reduce) { .waves svg { animation: none; } }

/* PDF download link in the publication list */
.pubs .v a.pdf { display: inline-block; margin-left: 10px; padding: 1px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; vertical-align: 1px; }
.pubs .v a.pdf:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Language switch (last item of the nav) and Korean typography */
.nav > li.lang { margin-left: 10px; }
.nav > li.lang > a { line-height: 1; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; }
.nav > li.lang > a:hover { border-color: var(--accent); color: var(--accent); }
html[lang="ko"] body { font-family: "Inter", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { letter-spacing: -.03em; }
html[lang="ko"] .hero h1 { font-size: clamp(34px, 5vw, 64px); }
html[lang="ko"] .eyebrow, html[lang="ko"] .axis, html[lang="ko"] .filter > span { letter-spacing: .04em; }
@media (max-width: 900px) {
  .nav > li.lang { margin: 16px 24px 0; }
  .nav > li.lang > a { display: inline-block; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Home research block, editorial layout: one row per approach
   (figure | name + description | featured study), themes as a quiet strip.
   ========================================================================== */
.section.dark { background-image: none; background-color: var(--white); border: 0; padding-top: 24px; }
.section.dark .sec-head { margin-bottom: 28px; }
.approaches { display: block; border-bottom: 1px solid var(--line); }
.approach {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px;
  grid-template-areas: "fig no feat" "fig h3 feat" "fig p feat" "fig go go2";
  align-items: start; padding: 36px 0; border-top: 1px solid var(--line);
}
.approach .fig { grid-area: fig; aspect-ratio: 4 / 3; margin: 0; border-radius: 6px; }
.approach .no { grid-area: no; margin: 2px 0 8px; font-size: 13px; }
.approach h3 { grid-area: h3; font-size: 30px; margin: 0 0 12px; }
.approach p { grid-area: p; margin: 0 0 18px; font-size: 16.5px; max-width: 38ch; }
.approach .go { grid-area: go; margin: 0; align-self: end; }
.approach .feat { grid-area: feat; margin: 6px 0 0; padding: 0; border: 0; font-size: 17px; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.approach .feat small { margin-bottom: 8px; font-weight: 600; }
.approach .feat::after { content: " →"; color: var(--muted); }
.approach .feat:hover::after { color: var(--accent); }

.themes-label { margin: 56px 0 20px; padding: 0; border: 0; }
/* Themes keep the figure-card grid defined earlier (figure on top, name and count below). */

@media (max-width: 900px) {
  .approach { grid-template-columns: 1fr; grid-template-areas: "fig" "no" "h3" "p" "feat" "go"; row-gap: 0; padding: 28px 0; }
  .approach .fig { max-width: 420px; margin-bottom: 20px; }
  .approach .feat { margin: 0 0 18px; }
}

/* "Approaches" label above the rows, matching the "Themes" label */
.approaches-label { margin: 0 0 18px; }
.section.dark .sec-head { margin-bottom: 40px; }

/* About: the animation fills the height of the text beside it (sides are cropped, not stretched) */
@media (min-width: 901px) {
  .about { align-items: stretch; }
  .about .media { position: relative; min-height: 420px; }
  .about .media video, .about .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* Home: the lab statement sits on the hero; the About text keeps only the body, with key terms in bold */
.hero p { max-width: 720px; }
.about p strong, .page p.lead strong { color: var(--navy); font-weight: 600; }

/* About: same heading style as the other home sections */
.about-body p { font-size: 17px; line-height: 1.75; }
.about-body p:last-child { margin-bottom: 0; }

/* About Us: partners */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 56px; }
.partner { display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.partner:hover { border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(10, 37, 64, .35); transform: translateY(-2px); }
.partner h3 { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--navy); margin: 0 0 8px; }
.partner .org { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--accent); margin-bottom: 14px; }
.partner p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.partner .go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr; } }

/* Partner cards with a photo behind the text */
.partner.has-img { position: relative; overflow: hidden; isolation: isolate; min-height: 500px; justify-content: flex-end; border: 0; background-color: var(--navy); background-size: 100% auto; background-repeat: no-repeat; background-position: top center; }
.partner.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 33, 54, 0) 0%, rgba(12, 33, 54, .05) 34%, rgba(12, 33, 54, .97) 50%, rgba(12, 33, 54, 1) 100%); transition: background-color .2s; }
.partner.has-img:hover::before { background-color: rgba(12, 33, 54, .18); }
.partner.has-img h3 { color: #fff; }
.partner.has-img .org { color: #a9cdf2; }
.partner.has-img p { color: rgba(255, 255, 255, .86); }
.partner.has-img .go { margin-top: 0; color: #fff; }

/* Tighter vertical rhythm on the home page */
.section { padding: 68px 0; }
.section.dark { padding-top: 8px; }
.sec-head { margin-bottom: 30px; }
.section.dark .sec-head { margin-bottom: 26px; }
.approach { padding: 26px 0; }
.themes-label { margin: 34px 0 16px; }
.news-rows a, .rows a { padding-top: 14px; padding-bottom: 14px; }
.cta { padding: 118px 0 60px; }
@media (max-width: 900px) {
  .section { padding: 48px 0; }
  .approach { padding: 22px 0; }
  .cta { padding: 96px 0 48px; }
}

/* About: show the whole animation at its own ratio (no cropping), centred beside the text */
@media (min-width: 901px) {
  .about { align-items: center; }
  .about .media { position: static; min-height: 0; }
  .about .media video, .about .media img { position: static; width: 100%; height: auto; object-fit: contain; }
}

/* Jump links (menu items such as Partners, Ph.D. Students): stop below the fixed header, not under it */
html { scroll-padding-top: 108px; }
@media (max-width: 900px) { html { scroll-padding-top: 88px; } }

/* Alumni split by degree */
.alumni-head { margin: 26px 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.alumni-head .n { margin-left: 8px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.alumni + .alumni-head { margin-top: 44px; }
html[lang="ko"] .alumni-head { letter-spacing: .04em; font-size: 15px; }

/* Publications: poster preview on conference presentations */
.pubs li.has-poster { position: relative; min-height: 132px; padding-right: 112px; }
.pubs a.poster { position: absolute; top: 14px; right: 8px; width: 80px; height: 104px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pubs a.poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pubs a.poster:hover { border-color: var(--accent); box-shadow: 0 10px 24px -14px rgba(10, 37, 64, .5); transform: translateY(-2px); }
@media (max-width: 900px) {
  .pubs li.has-poster { min-height: 108px; padding-right: 84px; }
  .pubs a.poster { width: 62px; height: 80px; right: 4px; }
}

/* Research post: funded project box */
.article dl.project { margin: 44px 0 8px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.article dl.project > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 6px 0; }
.article dl.project dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent); padding-top: 2px; }
.article dl.project dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--navy); }
@media (max-width: 900px) { .article dl.project > div { grid-template-columns: 1fr; gap: 2px; } }

/* Publications: slide decks (landscape first page) */
.pubs li.has-poster:has(a.poster.wide) { min-height: 104px; padding-right: 168px; }
.pubs a.poster.wide { width: 136px; height: 77px; }
@media (max-width: 900px) {
  .pubs li.has-poster:has(a.poster.wide) { min-height: 86px; padding-right: 112px; }
  .pubs a.poster.wide { width: 92px; height: 52px; }
}

/* Publications: text on the left, download button in one aligned column on the right */
.pubs li, .pubs li.has-poster { display: flex; align-items: center; gap: 28px; min-height: 0; padding-right: 8px; }
.pubs .pt { flex: 1 1 auto; min-width: 0; }
.pubs .pa { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.pubs .pa a.pdf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 96px; padding: 9px 16px; font-size: 14px; font-weight: 600; font-style: normal; letter-spacing: .03em; line-height: 1.2; white-space: nowrap; color: var(--accent); background: #fff; border: 1px solid currentColor; border-radius: 6px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.pubs .pa a.pdf .ar { font-weight: 400; transition: transform .2s; }
.pubs .pa a.pdf:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pubs .pa a.pdf:hover .ar { transform: translateX(3px); }
.pubs.talks .pa a.pdf { min-width: 148px; }
.pubs .pa .slot { display: flex; align-items: center; justify-content: center; width: 124px; }
.pubs .pa a.poster, .pubs .pa a.poster.wide { position: static; width: 66px; height: 88px; }
.pubs .pa a.poster.wide { width: 124px; height: 70px; }
@media (max-width: 900px) {
  .pubs li, .pubs li.has-poster { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 0; }
  .pubs .pa { justify-content: flex-start; gap: 14px; }
  .pubs .pa .slot { width: auto; }
  .pubs .pa a.poster { width: 54px; height: 72px; }
  .pubs .pa a.poster.wide { width: 100px; height: 56px; }
  .pubs .pa a.pdf, .pubs.talks .pa a.pdf { min-width: 0; padding: 8px 14px; }
}

/* Publications: tabs + sticky bar with year links (classes set by site.js) */
.pubnav .years { display: none; }
.pubtabs .pubsec { display: none; }
.pubtabs .pubsec.on { display: block; }
.pubtabs .pubsec > h2 { display: none; }
.pubtabs .pubnav { position: sticky; top: var(--header-h); z-index: 20; margin: -16px 0 8px; padding: 16px 0 12px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.pubtabs .pubnav .chips { margin: 0 0 12px; }
.pubtabs .pubnav .chips a { padding: 9px 18px; font-size: 15px; font-weight: 600; }
.pubtabs .pubnav .chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pubtabs .pubnav .chips a.on .n { color: rgba(255, 255, 255, .7); }
.pubtabs .pubnav .years { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.pubtabs .pubnav .years a { padding: 3px 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-radius: 4px; text-decoration: none; }
.pubtabs .pubnav .years a:hover { color: var(--accent); background: var(--soft); }
.pubtabs .pubsec .year { scroll-margin-top: calc(var(--header-h) + 124px); }
.pubtabs .pubsec .year:first-of-type { margin-top: 24px; }
@media (max-width: 900px) {
  .pubtabs .pubnav { padding: 12px 0 8px; }
  .pubtabs .pubnav .chips { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 8px; }
  .pubtabs .pubnav .chips a { white-space: nowrap; padding: 7px 14px; font-size: 14px; }
  .pubtabs .pubnav .years { flex-wrap: nowrap; overflow-x: auto; }
  .pubtabs .pubsec .year { scroll-margin-top: calc(var(--header-h) + 104px); }
}

/* Back-to-top button */
.totop { position: fixed; right: 28px; bottom: 28px; z-index: 40; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 10px 28px -12px rgba(10, 37, 64, .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s, background .2s, color .2s; }
.totop.on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 900px) { .totop { right: 16px; bottom: 16px; width: 42px; height: 42px; } }
.pubtabs .pubsec { scroll-margin-top: calc(var(--header-h) + 130px); }

/* News: year tabs reuse the Publications tab bar */
.pubtabs .pubsec .news-list { border-top: 0; }
.pubtabs .pubnav .years:empty { display: none; }
.pubtabs .pubnav:has(.years:empty) .chips { margin-bottom: 4px; }
