.hero {
      position: relative; height: 42vh; min-height: 340px; overflow: hidden; isolation: isolate;
      display: flex; align-items: center; justify-content: center; text-align: center;
    }

.hero-bg {
      position: absolute; inset: 0; z-index: -2;
      background-image: url('/images/logo/Korea_University_Main_Hall.jpg');
      background-size: cover; background-position: center 38%;
      animation: heroKenBurns 28s ease-in-out infinite alternate;
    }

@keyframes heroKenBurns {
      0%   { transform: scale(1.05) translate(0%, 0%); }
      50%  { transform: scale(1.12) translate(-1.5%, -1%); }
      100% { transform: scale(1.05) translate(1.5%, 0.8%); }
    }

.hero::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.72) 100%);
    }

.hero-content { color: white; padding: 0 32px; max-width: 920px; }

.hero-eyebrow {
      display: inline-flex; align-items: center; gap: 12px;
      font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.78);
      margin-bottom: 24px;
    }

.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 32px; height: 1px; background: rgba(255,255,255,0.55); }

.wordmark {
      font-family: 'Montserrat', sans-serif; font-weight: 700;
      font-size: clamp(48px, 7vw, 100px); line-height: 1; letter-spacing: -0.022em;
      color: white; margin-bottom: 18px;
      white-space: nowrap;
      text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.30);
      opacity: 0; transform: translateY(10px); filter: blur(16px);
      animation: heroIn 1.4s cubic-bezier(.16,.7,.2,1) 0.3s forwards;
    }

@keyframes heroIn {
      to { opacity: 1; transform: translateY(0); filter: blur(0); letter-spacing: -0.025em; }
    }

.wordmark .dot { color: var(--crimson-3); display: inline-block; animation: dotBreath 4s ease-in-out 1.8s infinite; }

@keyframes dotBreath {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%      { opacity: 0.78; transform: scale(0.94); }
    }

.wordmark-sub {
      font-family: 'Montserrat', sans-serif; font-weight: 500;
      font-size: clamp(14px, 1.5vw, 18px); letter-spacing: 0.12em; text-transform: uppercase;
      color: rgba(255,255,255,0.85); margin-bottom: 0;
      text-shadow: 0 1px 8px rgba(0,0,0,0.35);
      opacity: 0; transform: translateY(8px);
      animation: heroSubIn 1s cubic-bezier(.16,.7,.2,1) 1.0s forwards;
    }

@keyframes heroSubIn { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .wordmark, .wordmark-sub { animation: none; opacity: 1; transform: none; filter: none; letter-spacing: -0.025em; }
  .wordmark .dot { animation: none; }
}

section { padding: 44px 0; }

.section-head {
      display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
      margin-bottom: 40px; flex-wrap: wrap;
      padding-bottom: 22px; border-bottom: 1px solid var(--line);
    }

.section-head h2 {
      font-family: 'Fraunces', serif; font-weight: 400;
      font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.015em;
      color: var(--text-0);
    }

.section-head .count {
      font-family: 'JetBrains Mono', monospace; font-size: 12px;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
      padding-bottom: 4px;
    }

.prof-card {
      display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: stretch;
      padding: 32px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px;
      transition: transform 0.3s cubic-bezier(.2,.7,.2,1), border-color 0.25s ease, box-shadow 0.3s ease;
    }

.prof-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 28px rgba(20,18,12,0.10); }

.prof-card .prof-photo { aspect-ratio: auto; min-height: 300px; }

.prof-photo {
      aspect-ratio: 4/5; border-radius: 10px;
      background-size: cover; background-position: center top;
      background-color: var(--bg-2);
    }

.prof-info { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }

.prof-info h3 {
      font-family: 'Fraunces', serif; font-weight: 500;
      font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.015em;
    }

.prof-name-kr {
      font-family: 'Inter', sans-serif; font-size: 23px; font-weight: 600;
      color: var(--text-1); letter-spacing: 0.02em;
      margin-top: -2px;
    }

.prof-role {
      display: inline-block;
      font-family: 'Inter'; font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
      text-transform: uppercase; color: var(--crimson);
      padding: 5px 12px; border: 1px solid var(--crimson); border-radius: 999px;
      width: fit-content; margin-top: 4px;
    }

.prof-affil { font-size: 15px; color: var(--text-1); line-height: 1.55; }

.prof-meta {
      display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
      padding-top: 18px; border-top: 1px solid var(--line);
    }

.prof-meta div { display: flex; align-items: baseline; gap: 14px; font-size: 14px; }

.prof-meta .label {
      font-family: 'JetBrains Mono', monospace; font-size: 11px;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
      width: 72px; flex-shrink: 0;
    }

.prof-meta a { color: var(--accent); border-bottom: 1px solid transparent; transition: all 0.2s ease; }

.prof-meta a:hover { border-bottom-color: var(--accent); }

.prof-meta a.github {
      display: inline-flex; align-items: center; gap: 8px;
      border-bottom: none; color: var(--text-0);
    }

.prof-meta a.github .gh-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-0); transition: color 0.2s ease; }

.prof-meta a.github .gh-handle { border-bottom: 1px solid transparent; transition: all 0.2s ease; }

.prof-meta a.github:hover { border-bottom: none; }

.prof-meta a.github:hover .gh-icon { color: var(--accent); }

.prof-meta a.github:hover .gh-handle { color: var(--accent); border-bottom-color: var(--accent); }

.prof-meta div.links-row { align-items: center; }

.prof-social { display: inline-flex; align-items: center; gap: 16px; }

.prof-meta a.gs { border-bottom: none; color: var(--text-0); display: inline-flex; align-items: center; }

.prof-meta a.gs .gs-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-0); transition: color 0.2s ease; }

.prof-meta a.gs:hover { border-bottom: none; }

.prof-meta a.gs:hover .gs-icon { color: var(--accent); }

.prof-meta a.hp { border-bottom: none; color: var(--text-0); display: inline-flex; align-items: center; }

.prof-meta a.hp .hp-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-0); transition: color 0.2s ease; }

.prof-meta a.hp:hover { border-bottom: none; }

.prof-meta a.hp:hover .hp-icon { color: var(--accent); }

.member-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }

.member-card {
      background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px;
      overflow: hidden; transition: all 0.3s cubic-bezier(.2,.7,.2,1);
      display: flex; flex-direction: column;
    }

.member-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 28px rgba(20,18,12,0.10); }

.member-card.has-site { cursor: pointer; }

.member-photo {
      aspect-ratio: 3/4;   
      background-size: cover; background-position: center 22%;
      background-color: var(--bg-2);
    }

.member-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }

.member-body h3 {
      font-family: 'Fraunces', serif; font-weight: 500;
      font-size: 15px; line-height: 1.2; letter-spacing: -0.005em;
      color: var(--text-0);
    }

.member-name-kr { font-size: 14px; font-weight: 500; color: var(--text-1); margin-bottom: 6px; letter-spacing: 0.01em; }

.member-role {
      font-family: 'Inter'; font-weight: 500; font-size: 10.5px;
      color: var(--accent); letter-spacing: 0.04em;
      margin-bottom: 8px;
    }

.member-meta { margin-top: auto; display: flex; flex-direction: column; gap: 3px; font-size: 11px; }

.member-meta a { color: var(--text-1); border-bottom: 1px solid transparent; transition: all 0.2s ease; }

.member-meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.member-meta a.email { word-break: break-all; }

.member-year {
      font-family: 'JetBrains Mono', monospace; font-size: 10px;
      letter-spacing: 0.06em; color: var(--text-2);
      padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 5px;
    }

.advisor-card {
      display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
      padding: 32px 40px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px;
      max-width: 720px;
    }

.advisor-logo {
      aspect-ratio: 1/1; border-radius: 10px;
      background-size: 70% auto; background-repeat: no-repeat; background-position: center;
      background-color: var(--bg-0); border: 1px solid var(--line);
    }

.advisor-info { display: flex; flex-direction: column; gap: 10px; }

.advisor-info h3 {
      font-family: 'Fraunces', serif; font-weight: 500; font-size: 28px; line-height: 1.1;
    }

.advisor-info .role {
      font-family: 'Inter'; font-size: 13px; color: var(--text-1); line-height: 1.7;
      display: flex; flex-direction: column; gap: 4px;
    }

.advisor-info .role .row {
      display: flex; align-items: baseline; gap: 8px;
    }

.advisor-info .role .row .bullet { color: var(--accent); flex-shrink: 0; }

.advisor-info a.site {
      color: var(--accent); border-bottom: 1px solid var(--accent);
      padding-bottom: 1px; display: inline-flex; align-items: center; gap: 6px;
      width: fit-content; margin-top: 6px; font-size: 13.5px;
      transition: all 0.2s ease;
    }

.advisor-info a.site:hover { color: var(--crimson-2); border-color: var(--crimson-2); }

.alumni-section { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.alumni-grid {
      display: grid; grid-template-columns: repeat(2, 1fr);
      gap: 0 56px;
    }

.alumni-row {
      display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px;
      padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline;
    }

.alumni-row:last-of-type { border-bottom: none; }

.alumni-row h4 {
      font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; line-height: 1.2;
    }

.alumni-row .where { font-size: 13.5px; color: var(--text-1); line-height: 1.4; }

.alumni-row .when {
      font-family: 'JetBrains Mono', monospace; font-size: 11px;
      color: var(--text-2); letter-spacing: 0.04em; margin-top: 2px;
    }

@media (max-width: 1280px) {
  .member-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1100px) {
  .member-grid { grid-template-columns: repeat(4, 1fr); }
  .alumni-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 900px) {
  #theme-btn { margin-left: auto; }
}

@media (max-width: 880px) {
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .prof-card { grid-template-columns: 240px 1fr; gap: 36px; padding: 30px; }
  .prof-card .prof-photo { aspect-ratio: 4/5; min-height: 0; align-self: start; }
}

@media (max-width: 768px) {
  .prof-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .prof-card .prof-photo { width: 100%; max-width: 260px; aspect-ratio: 4/5; min-height: 0; margin: 0 auto; align-self: start; }
  .advisor-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .advisor-logo { max-width: 140px; margin: 0 auto; }
  .alumni-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hero { height: 36vh; min-height: 280px; }
  .prof-meta .label { width: auto; }
  .prof-meta div { flex-wrap: wrap; gap: 6px; }
}
