:root {
  --navy: #0d2845;
  --navy-2: #143a5e;
  --ink: #183044;
  --sky: #2b9deb;
  --blue: #176fb8;
  --green: #64a84c;
  --lime: #b8db66;
  --cream: #f3f0df;
  --paper: #fffdf5;
  --white: #ffffff;
  --line: rgba(13, 40, 69, 0.16);
  --shadow: 0 22px 70px rgba(13, 40, 69, 0.14);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; background: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }


/* ==============================
   Spline 3D Intro
================================ */

.spline-intro {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  background: #081d32;
}

.spline-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spline-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  /* iframe 조작을 방해하지 않도록 설정 */
  pointer-events: none;
}

.spline-title {
  position: absolute;
  top: 42px;
  left: 48px;
  color: white;
  pointer-events: none;
}

.spline-title span {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.spline-title p {
  margin: 5px 0 0;
  font-size: 13px;
  opacity: 0.72;
  letter-spacing: 0.04em;
}

.spline-enter-button {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;

  color: white;
  background: rgba(8, 29, 50, 0.35);
  backdrop-filter: blur(10px);

  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;

  pointer-events: auto;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.spline-enter-button:hover {
  background: var(--lime);
  color: var(--navy);
  transform: translateX(-50%) translateY(-4px);
}

.spline-enter-button span {
  font-size: 17px;
  animation: spline-arrow 1.5s infinite;
}

@keyframes spline-arrow {
  50% {
    transform: translateY(5px);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  /* 처음에는 화면 위쪽으로 숨김 */
  transform: translateY(-100%);

  background: rgba(13, 40, 69, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

  transition: transform 0.35s ease;
}

/* 메인 영역에 도달하면 표시 */
.site-header.visible {
  transform: translateY(0);
}
.site-header.scrolled {
  background: rgba(13, 40, 69, .88);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: white; font-weight: 900; letter-spacing: .06em; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 35px; background: var(--lime); color: var(--navy); box-shadow: 4px 4px 0 var(--navy); font-size: 14px; }
.brand-text { font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: white; font-size: 14px; font-weight: 700; }
.nav-links a { opacity: .88; transition: opacity .2s, transform .2s; }
.nav-links a:hover { opacity: 1; transform: translateY(-2px); }
.nav-contact { border: 1px solid rgba(255,255,255,.6); padding: 9px 15px; border-radius: 99px; }
.menu-button { display: none; background: transparent; border: 0; padding: 8px; }
.menu-button span:not(.sr-only) { width: 24px; height: 2px; margin: 5px 0; display: block; background: white; }

.hero { position: relative; min-height: 760px; height: 100vh; display: flex; padding-top: 85px; overflow: hidden; background: #269ce8; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; image-rendering: pixelated; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,55,.83) 0%, rgba(7,31,55,.51) 36%, rgba(7,31,55,.03) 73%), linear-gradient(0deg, rgba(7,31,55,.22), transparent 45%); }
.hero-content {
    position: relative;
    z-index: 2;
    color: white;

}.eyebrow, .section-label { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 900; }
.eyebrow { color: #e6f8b5; }
.eyebrow span{ color: #e6f8b5;  margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 21px); }
.hero h1 { margin: 0; max-width: 850px; font-size: clamp(52px, 6.7vw, 104px); line-height: .96; letter-spacing: -.055em; text-shadow: 0 5px 0 rgba(0,0,0,.14); }
.hero h1 span { color: var(--lime); }
.hero-copy { max-width: 620px; margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 21px); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 23px; border-radius: 8px; font-weight: 850; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--lime); color: var(--navy); box-shadow: 5px 5px 0 var(--navy); }
.button-ghost { border: 1px solid rgba(255,255,255,.7); color: white; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); color: white; border: 1px solid rgba(255,255,255,.55); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; animation: bob 1.8s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

.intro { background: var(--cream); }
.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.section-label { color: var(--blue); }
h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -.05em; color: var(--navy); }
.lead { margin-top: 0; font-size: 25px; line-height: 1.45; color: var(--navy); font-weight: 650; }
.intro-copy > p:not(.lead) { font-size: 17px; }
.stats { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats strong { display: block; font-size: 25px; color: var(--navy); }
.stats span { display: block; font-size: 12px; margin-top: 4px; color: #617181; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.section-heading > p { max-width: 390px; margin: 0; color: #627486; }
.research { background: var(--paper); }
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.research-card { position: relative; min-height: 335px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.research-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.research-card.featured { background: var(--navy); color: white; }
.research-card.featured h3 { color: white; }
.card-number { position: absolute; top: 25px; right: 27px; color: #8392a0; font: 800 12px/1 ui-monospace, monospace; }
.pixel-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 45px; background: var(--lime); color: var(--navy); font-size: 29px; box-shadow: 5px 5px 0 rgba(13,40,69,.18); }
.research-card.featured .pixel-icon { box-shadow: 5px 5px 0 rgba(255,255,255,.18); }
.research-card h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; color: var(--navy); }
.research-card p { margin: 0; color: #66798a; }
.research-card.featured p { color: rgba(255,255,255,.72); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tags span { border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; font-size: 11px; font-weight: 800; }
.featured .tags span { border-color: rgba(255,255,255,.25); }

/* ==============================
   01 · About
================================ */

.intro {
  background: var(--cream);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}


/* About Image */

.intro-visual {
  position: relative;
  overflow: hidden;

  width: 100%;

  border: 1px solid rgba(13, 40, 69, 0.14);
  border-radius: var(--radius);

  background: white;

  box-shadow:
    0 22px 65px rgba(13, 40, 69, 0.14),
    0 4px 0 rgba(13, 40, 69, 0.06);
}

.intro-visual img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;

  filter:
    brightness(1.04)
    contrast(0.97)
    saturate(1.06);

  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.intro-visual:hover img {
  transform: scale(1.015);

  filter:
    brightness(1.07)
    contrast(0.99)
    saturate(1.1);
}


/* About Text */

.section-label {
  color: var(--blue);
}

h2 {
  margin: 0;

  color: var(--navy);

  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.lead {
  margin-top: 0;

  color: var(--navy);

  font-size: 25px;
  font-weight: 650;
  line-height: 1.45;
}

.intro-copy > p:not(.lead) {
  font-size: 17px;
}


/* About Statistics */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;

  margin-top: 42px;
  padding-top: 32px;

  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;

  color: var(--navy);

  font-size: 25px;
}

.stats span {
  display: block;

  margin-top: 4px;

  color: #617181;

  font-size: 12px;
}


/* ==============================
   About Responsive
================================ */

@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .intro-visual {
    width: min(100%, 760px);
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .split-grid {
    gap: 32px;
  }

  .intro-visual {
    border-radius: 12px;
  }

  .lead {
    font-size: 21px;
  }

  .intro-copy > p:not(.lead) {
    font-size: 15px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 18px;

    margin-top: 30px;
    padding-top: 25px;
  }

  .stats strong {
    font-size: 21px;
  }
}
/* ==============================
   02 · Research
================================ */

.research-explorer {
  display: grid;
  gap: 14px;
}


/* ==============================
   Research Topic Card
================================ */

.research-topic {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.research-topic:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(13, 40, 69, 0.1);
}

.research-topic[open] {
  border-color: rgba(23, 111, 184, 0.34);
  box-shadow: var(--shadow);
}


/* ==============================
   Research Summary
================================ */

.research-topic summary {
  position: relative;

  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 46px;
  gap: 26px;
  align-items: center;

  min-height: 175px;
  padding: 22px 25px;

  cursor: pointer;
  list-style: none;
}

.research-topic summary::-webkit-details-marker {
  display: none;
}

.research-topic summary::marker {
  content: "";
}


/* ==============================
   Research Thumbnail
================================ */

.research-thumb {
  position: relative;

  display: grid;
  place-items: center;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;
  border: 1px solid rgba(13, 40, 69, 0.12);
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(43, 157, 235, 0.18),
      rgba(184, 219, 102, 0.35)
    );
}

.research-thumb img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    brightness(1.0)
    contrast(0.96)
    saturate(1.0);
}

.research-thumb span {
  color: rgba(13, 40, 69, 0.48);

  font:
    900 11px/1
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  letter-spacing: 0.13em;
}


/* ==============================
   Research Text
================================ */

.research-summary {
  min-width: 0;
}

.research-index {
  display: block;

  margin-bottom: 8px;

  color: var(--blue);

  font:
    900 10px/1.4
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  letter-spacing: 0.14em;
}

.research-summary h3 {
  margin: 0 0 9px;

  color: var(--navy);

  font-size: clamp(24px, 2.5vw, 33px);
  line-height: 1.2;
}

.research-summary p {
  max-width: 720px;
  margin: 0;

  color: #66798a;

  font-size: 15px;
}


/* ==============================
   Open / Close Button
================================ */

.research-toggle {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  color: var(--navy);
  background: var(--lime);

  font-size: 12px;
  font-weight: 1000;

  transition: transform 0.25s ease;
}

.research-topic[open] .research-toggle {
  transform: rotate(405deg);
}


/* ==============================
   Research Detail Tree
================================ */

.research-detail {
  padding: 0 25px 28px 201px;
}

.research-tree {
  padding: 25px;

  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;

  background: #f7f9f3;
}

.tree-root {
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 38px;
  padding: 0 14px;

  border-radius: 7px;

  color: white;
  background: var(--navy);

  font-size: 13px;
  font-weight: 850;
}

.research-tree ul {
  position: relative;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;

  margin: 20px 0 0;
  padding: 0 0 0 28px;

  list-style: none;
}

/* 세로 연결선 */
.research-tree ul::before {
  content: "";

  position: absolute;
  top: -20px;
  bottom: 23px;
  left: 8px;

  width: 1px;

  background: rgba(13, 40, 69, 0.22);
}

.research-tree li {
  position: relative;

  min-width: 0;
  padding: 15px 17px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: white;
}

/* 가로 연결선 */
.research-tree li::before {
  content: "";

  position: absolute;
  top: 25px;
  right: 100%;

  width: 20px;
  height: 1px;

  background: rgba(13, 40, 69, 0.22);
}

.research-tree li strong {
  display: block;

  color: var(--navy);

  font-size: 15px;
}

.research-tree li span {
  display: block;

  margin-top: 5px;

  color: #6c7f8e;

  font-size: 12px;
  line-height: 1.55;
}


/* ==============================
   Research Overview Image
================================ */

.research-overview {
  position: relative;

  margin: 0 0 48px;

  overflow: hidden;
  border-radius: var(--radius);
}

.research-overview a {
  display: block;

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: white;
  box-shadow: 0 18px 55px rgba(13, 40, 69, 0.11);

  cursor: zoom-in;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.research-overview a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.research-overview img {
  display: block;

  width: 100%;
  height: auto;

  filter:
    brightness(1.0)
    contrast(0.96)
    saturate(1.0);

  transition: filter 0.35s ease;
}

/* 살짝 뽀샤시한 밝은 레이어 */
.research-overview::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    radial-gradient(
      circle at 20% 12%,
      rgba(255, 255, 255, 0.2),
      transparent 42%
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    );

  pointer-events: none;
}

.research-overview:hover img {
  filter:
  brightness(1.05)
  contrast(0.96)
  saturate(1.0);
}

.research-overview figcaption {
  position: relative;
  z-index: 2;

  margin-top: 12px;

  color: #70808e;

  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}


/* ==============================
   Tablet
================================ */

@media (max-width: 900px) {
  .research-topic summary {
    grid-template-columns: 125px minmax(0, 1fr) 42px;
    gap: 20px;
  }

  .research-detail {
    padding-left: 170px;
  }

  .research-tree ul {
    grid-template-columns: 1fr;
  }
}


/* ==============================
   Mobile
================================ */

@media (max-width: 768px) {
  .research-overview {
    margin-bottom: 36px;
    border-radius: 12px;
  }

  .research-overview a {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }

  .research-overview img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }

  .research-overview figcaption {
    font-size: 11px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .research-topic summary {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;

    min-height: auto;
    padding: 18px;
  }

  .research-thumb {
    align-self: start;
  }

  .research-summary {
    padding-right: 25px;
  }

  .research-summary h3 {
    font-size: 21px;
  }

  .research-summary p {
    font-size: 13px;
  }

  .research-index {
    padding-right: 22px;

    font-size: 8px;
  }

  .research-toggle {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 32px;
    height: 32px;

    font-size: 10px;
  }

  .research-detail {
    padding: 0 18px 18px;
  }

  .research-tree {
    padding: 20px 16px;
  }

  .research-tree ul {
    padding-left: 24px;
  }
}

/* 03 */
.professor { background: #d7e9f5; }
.professor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 84px; align-items: center; }
.portrait-placeholder { aspect-ratio: 4 / 5; border-radius: 16px; background: linear-gradient(145deg, #83b7d6, #aecfe2); display: grid; place-content: center; text-align: center; color: var(--navy); border: 8px solid white; box-shadow: var(--shadow); }
.portrait-placeholder span { font-size: 54px; font-weight: 950; letter-spacing: -.06em; opacity: .55; }
.portrait-placeholder small { margin-top: 10px; }
.professor-role { font-weight: 750; color: var(--blue); font-size: 18px; }
.profile-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-weight: 850; color: var(--navy); }
.edit-note { margin-top: 28px; padding: 12px 14px; border-left: 4px solid var(--green); background: rgba(255,255,255,.55); font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.portrait-placeholder {
  width: 100%;
  max-width: 380px;      /* 원하는 크기 */
  aspect-ratio: 3 / 4;   /* 사진 비율 */
  overflow: hidden;
  border-radius: 12px;   /* 둥근 모서리 (선택) */
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 사진이 꽉 차게 */
  display: block;
}

.publications { background: var(--paper); }
.text-link { color: var(--blue); font-weight: 850; }
.publication-list { border-top: 2px solid var(--navy); }
.publication-list article { display: grid; grid-template-columns: 110px 1fr; gap: 25px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.publication-list time { font: 900 14px/1 ui-monospace, monospace; color: var(--blue); padding-top: 8px; }
.publication-list h3 { margin: 0; font-size: 22px; color: var(--navy); line-height: 1.35; }
.publication-list p { margin: 9px 0 0; color: #6a7d8e; }
.paper-links { display: flex; gap: 12px; margin-top: 14px; }
.paper-links a { font-size: 12px; font-weight: 850; border-bottom: 1px solid currentColor; }




/* 05 */
.people { background: var(--navy); color: white; }
.people .section-label { color: var(--lime); }
.people h2 { color: white; }
.people .section-heading > p { color: rgba(255,255,255,.62); }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person-card { background: rgba(255,255,255,.08); padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); }
.avatar { aspect-ratio: 1; display: grid; place-items: center; background: rgba(255,255,255,.1); border-radius: 10px; font-size: 34px; font-weight: 950; color: var(--lime); }
.avatar-one { background: linear-gradient(135deg, var(--sky), var(--green)); color: white; }
.person-card h3 { margin: 22px 0 4px; font-size: 21px; }
.person-card p { margin: 0; color: var(--lime); font-weight: 800; }
.person-card small { display: block; margin-top: 10px; color: rgba(255,255,255,.55); }
.open-position { border-style: dashed; }

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}


/* 사각형 전체 */
.avatar-two {

  overflow: hidden;
  border-radius: 20px;   /* 살짝 둥근 사각형 */
}

.avatar-two img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.news { background: var(--cream); }
.news-list { border-top: 2px solid var(--navy); }
.news-list article { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--blue); font: 850 13px/1.6 ui-monospace, monospace; }
.news-list p { margin: 0; }


/* 07 */

.resources { background: var(--paper); }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.resource-grid a { display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; column-gap: 16px; padding: 25px; border: 1px solid var(--line); border-radius: 12px; transition: background .2s, transform .2s; }
.resource-grid a:hover { background: #edf6df; transform: translateY(-4px); }
.resource-grid span { grid-row: 1 / 3; font: 900 12px/1 ui-monospace, monospace; color: var(--green); padding-top: 7px; }
.resource-grid strong { font-size: 19px; color: var(--navy); }
.resource-grid small { color: #70808e; }
.resource-grid b { grid-column: 3; grid-row: 1 / 3; align-self: center; }

.resource {
  background: var(--paper);
}

.resources-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

@media (max-width:1200px){
  .resource-grid{
      grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:768px){
  .resource-grid{
      grid-template-columns:1fr;
  }
}
.resource-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background .2s, transform .2s;
}

.resource-card:hover {
  background: #edf6df;
  transform: translateY(-4px);
}

.resource-card span {
  grid-row: 1 / 3;
  font: 900 12px/1 ui-monospace, monospace;
  color: var(--green);
  padding-top: 7px;
}

.resource-card strong {
  font-size: 19px;
  color: var(--navy);
}

.resource-card small {
  color: #70808e;
}

.contact { background: #2c91cf; color: white; }
.contact .section-label { color: #e6f8b5; }
.contact h2 { color: white; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 78px; align-items: start; }
.contact-grid > div:first-child > p:not(.section-label) { max-width: 630px; font-size: 18px; color: rgba(255,255,255,.82); }
.contact .button { margin-top: 20px; }
.contact-card { border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); padding: 28px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.contact-card > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.contact-card > div:last-child { border-bottom: 0; }
.contact-card span { font: 900 11px/1.5 ui-monospace, monospace; color: #e6f8b5; }
.contact-card p { margin: 0; }

footer { background: #081d32; color: rgba(255,255,255,.7); padding: 30px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 13px; }
.footer-brand { color: white; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section { padding: 82px 0; }
  .menu-button { display: block; z-index: 2; }
  .nav-links { position: fixed; inset: 0 0 auto 0; background: var(--navy); min-height: 100vh; padding: 105px 30px 40px; flex-direction: column; align-items: flex-start; font-size: 21px; transform: translateY(-105%); transition: transform .3s ease; }
  .nav-links.open { transform: translateY(0); }
  .hero { min-height: 720px; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,31,55,.82), rgba(7,31,55,.35)), linear-gradient(0deg, rgba(7,31,55,.25), transparent); }
  .hero-bg { object-position: 64% center; }
  .hero h1 { font-size: clamp(49px, 12vw, 80px); }
  .split-grid, .professor-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .research-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 5px;
    align-items: start;
  }

  /* 번호는 왼쪽에서 두 줄 높이를 모두 차지 */
  .resource-card > span {
    grid-column: 1;
    grid-row: 1 / 3;
    padding-top: 2px;
  }

  /* 과목명 */
  .resource-card > strong {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;

    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.35;
  }

  /* 과목 설명 */
  .resource-card > small {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;

    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
  }

}

@media (max-width: 600px) {
  .spline-title {
    top: 25px;
    left: 22px;
  }
  
  .spline-title span {
    font-size: 17px;
  }
  
  .spline-title p {
    max-width: 230px;
    font-size: 11px;
  }
  
  .spline-enter-button {
    bottom: 28px;
  }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero-content { padding-top: 35px; }
  .hero-copy { font-size: 16px; }
  .button { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .people-grid, .resources-grid { grid-template-columns: 1fr; }
  .publication-list article, .news-list article { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { flex-direction: column; text-align: center; }
  .portrait-placeholder { max-width: 430px; }
  .resource-card {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    padding: 22px 18px;
  }

  .resource-card > strong {
    font-size: 17px;
  }

  .resource-card > small {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==============================
   Scroll Progress Bar
================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  z-index: 2000;
  background: rgba(255, 255, 255, 0.15);
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;

  background: var(--lime);
  transition: width 0.05s linear;
}
/* ==============================
   Responsive Additions
   기존 디자인 유지 / Web · Tablet · Mobile
================================ */

/* 기본적인 가로 넘침 방지 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

/* ------------------------------
   Tablet / Small Desktop
------------------------------ */
@media (max-width: 1200px) {
  .container {
    width: min(calc(100% - 48px), var(--max));
  }

  .section {
    padding: 96px 0;
  }

  .split-grid,
  .professor-grid,
  .contact-grid {
    gap: 56px;
  }

  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-grid,
  .people-grid,
  .resource-grid {
    min-width: 0;
  }
}

/* ------------------------------
   Tablet
------------------------------ */
@media (max-width: 900px) {
  .nav {
    height: 70px;
  }

  .brand-text {
    font-size: 14px;
  }

  .hero {
    height: auto;
    min-height: 720px;
    padding-top: 90px;
  }

  .hero-content {
    width: 100%;
    padding-bottom: 90px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .split-grid,
  .professor-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .research-grid,
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portrait-placeholder {
    margin-inline: auto;
  }

  .publication-list article,
  .news-list article {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 20px;
  }

  .contact-card {
    width: 100%;
  }
}

/* ------------------------------
   Mobile
------------------------------ */
@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .section {
    padding: 72px 0;
  }

  .spline-intro {
    min-height: 560px;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  h2 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .lead {
    font-size: 21px;
  }

  .research-grid,
  .people-grid,
  .resource-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .research-card,
  .person-card,
  .resource-card,
  .resource-grid a,
  .contact-card {
    min-width: 0;
  }

  .research-card {
    min-height: auto;
  }

  .publication-list article,
  .news-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-card > div {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

/* ------------------------------
   Small Mobile
------------------------------ */
@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    height: 64px;
  }

  .brand-mark {
    width: 40px;
    height: 32px;
  }

  .nav-links {
    padding-inline: 22px;
  }

  .hero {
    min-height: 640px;
    padding-top: 76px;
  }

  .hero-content {
    padding-top: 24px;
    padding-bottom: 82px;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 34px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .research-card,
  .person-card,
  .resource-card,
  .resource-grid a,
  .contact-card {
    padding: 22px;
  }

  .resource-card,
  .resource-grid a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    column-gap: 12px;
  }

  .contact-card > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* 긴 텍스트와 링크가 카드 밖으로 나가지 않도록 처리 */
.research-card,
.person-card,
.resource-card,
.resource-grid a,
.contact-card,
.publication-list article,
.news-list article {
  overflow-wrap: anywhere;
}

/* ==============================
   Floating Music Player
================================ */

.mini-music-player {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;

  display: flex;
  align-items: center;
  gap: 7px;

  width: 120px;
  height: 48px;
  padding: 6px 8px 6px 10px;

  color: white;
  background: rgba(80, 87, 92, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.music-main-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  object-fit: contain;
  opacity:0.55;
  transition:opacity .2s ease, transform .2s ease;
}
.mini-music-button img{
  opacity:0.55;
  transition:opacity .2s ease, transform .2s ease;
}

.mini-music-info {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.mini-music-info strong,
.mini-music-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-music-info strong {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.94);
}

.mini-music-info small {
  margin-top: 2px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.58);
}

.mini-music-button {
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;
  padding: 5px;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mini-music-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.music-main-icon:hover,
.mini-music-button:hover img{
    opacity:0.9;
}

@media (max-width: 600px) {
  .mini-music-player {
    right: 12px;
    bottom: 12px;
    width: 205px;
    height: 46px;
  }
}

/* Tablet */
@media (max-width:900px){

  .mini-music-player{
      width:105px;
      height:42px;
      right:16px;
      bottom:16px;
  }

  .music-main-icon{
      width:22px;
      height:22px;
  }

  .mini-music-button{
      width:24px;
      height:24px;
      padding:4px;
  }

}


/* Mobile */
@media (max-width:600px){

  .mini-music-player{
      width:90px;
      height:36px;
      right:10px;
      bottom:10px;
      padding:4px 6px;
  }

  .music-main-icon{
      width:18px;
      height:18px;
  }

  .mini-music-button{
      width:20px;
      height:20px;
      padding:3px;
  }

}

/* ==============================
   09 · Game Zone
================================ */

.game-zone {
  position: relative;
  min-height: 850px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: #348ed8;
}

.game-zone-background {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("assets/game-zone-bg3.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  image-rendering: pixelated;
  transform: scale(1.00);
}

.game-zone-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(13, 40, 69, 0.12) 0%,
      rgba(13, 40, 69, 0.05) 35%,
      rgba(13, 40, 69, 0.42) 100%
    ),
    linear-gradient(
      90deg,
      rgba(35, 113, 184, 0.2),
      rgba(96, 171, 228, 0.04),
      rgba(35, 113, 184, 0.2)
    );
}

.game-zone-container {
  position: relative;
  z-index: 2;
}


.game-zone-heading > p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(13, 40, 69, 0.25);
}

.game-zone .section-label {
  color: #e6f8b5;
  text-shadow: 0 2px 12px rgba(13, 40, 69, 0.25);
}

.game-zone h2 {
  color: white;
  text-shadow:
    0 5px 0 rgba(40, 84, 160, 0.2),
    0 14px 35px rgba(13, 40, 69, 0.18);
}

.game-zone-heading > p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(13, 40, 69, 0.25);
}

.game-zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-zone-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.26),
      rgba(255, 255, 255, 0.1)
    );

  box-shadow:
    0 24px 60px rgba(19, 61, 123, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.game-zone-card:hover {
  transform: translateY(-8px);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.15)
    );

  box-shadow:
    0 30px 70px rgba(19, 61, 123, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.game-zone-number {
  position: absolute;
  top: 26px;
  right: 27px;

  color: rgba(255, 255, 255, 0.72);
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.game-zone-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;

  color: var(--navy);
  background: rgba(230, 248, 181, 0.95);

  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    5px 5px 0 rgba(38, 77, 154, 0.3),
    0 10px 25px rgba(13, 40, 69, 0.12);

  font-size: 28px;
  font-weight: 900;
}

.game-zone-card-content {
  flex: 1;
}

.game-zone-category {
  margin: 0 0 8px;

  color: #e6f8b5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.game-zone-card h3 {
  margin: 0 0 12px;

  color: white;
  font-size: 27px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(13, 40, 69, 0.18);
}

.game-zone-card-content > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

/* 공통 디자인 */
.game-zone-status,
.game-zone-play-button,
.game-frame-size-button,
.game-close-button {
  padding: 7px 12px;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;

  color: white;
  background: rgba(13, 40, 69, 0.18);

  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 카드 안의 상태 및 PLAY 버튼에만 적용 */
.game-zone-status,
.game-zone-play-button {
  align-self: flex-start;
  margin-top: 28px;
}

/* 실제 button 요소의 기본 스타일 정리 */
.game-zone-play-button,
.game-frame-size-button,
.game-close-button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* 마우스를 올렸을 때 */
.game-zone-play-button:hover,
.game-frame-size-button:hover,
.game-close-button:hover {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
  transform: translateY(-4px);
}

/* 클릭할 때 살짝 내려오기 */
.game-zone-play-button:active,
.game-frame-size-button:active,
.game-close-button:active {
  transform: translateY(-1px);
}

/* 키보드 접근성 */
.game-zone-play-button:focus-visible,
.game-frame-size-button:focus-visible,
.game-close-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* 게임 플레이 영역 크기 */
.game-frame-shell {
  width: min(100%, 1080px);
  margin: 42px auto 0;
}

.game-frame-stage {
  width: 100%;
}

.game-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 590px;
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
}
/* Tablet */

@media (max-width: 900px) {
  .game-zone {
    min-height: auto;
  }

  .game-zone-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
  }

  .game-zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-zone-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .game-zone-background {
    background-position: center center;
  }

  .game-zone-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(35, 113, 184, 0.16),
        rgba(13, 40, 69, 0.48)
      );
  }

  .game-zone-grid {
    grid-template-columns: 1fr;
  }

  .game-zone-card,
  .game-zone-card:last-child {
    grid-column: auto;
  }

  .game-zone-card {
    min-height: 315px;
    padding: 26px 22px;
  }

  .game-zone-icon {
    margin-bottom: 38px;
  }

  .game-zone-card h3 {
    font-size: 24px;
  }
}

.game-zone-card:nth-child(3) .game-zone-icon{
  font-size:32px;
  background:#e6f8b5;
}