/* ==========================================================================
   hyunwoocho.com — Black & Light-Purple 3D theme
   ========================================================================== */

:root {
  --bg: #1e1b2e;
  --bg-2: #272239;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(196, 181, 253, 0.22);
  --border-strong: rgba(196, 181, 253, 0.45);
  --text: #f2f1f7;
  --text-dim: #c9c6da;
  --text-faint: #9d99b5;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --glow: rgba(167, 139, 250, 0.35);
  --radius: 18px;
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 92%); margin: 0 auto; }

::selection { background: var(--purple-500); color: #fff; }

/* ---------- animated 3D background scene ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(167, 139, 250, 0.13), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; top: -120px; right: -80px;
  background: radial-gradient(circle at 35% 35%, rgba(167,139,250,.5), rgba(124,58,237,.12) 70%); }
.orb-2 { width: 340px; height: 340px; bottom: 8%; left: -120px; animation-delay: -8s;
  background: radial-gradient(circle at 40% 40%, rgba(196,181,253,.35), rgba(139,92,246,.08) 70%); }
.orb-3 { width: 260px; height: 260px; top: 45%; left: 60%; animation-delay: -15s; opacity: .3;
  background: radial-gradient(circle at 40% 40%, rgba(221,214,254,.35), transparent 70%); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}
.grid-floor {
  position: absolute; left: -25%; right: -25%; bottom: -42%; height: 70%;
  background:
    linear-gradient(rgba(167,139,250,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,.14) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(600px) rotateX(62deg);
  mask-image: linear-gradient(to top, rgba(0,0,0,.55), transparent 75%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.55), transparent 75%);
}

/* ---------- navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(30, 27, 46, 0.66);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(30, 27, 46, 0.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.06rem;
  color: var(--text); text-decoration: none; letter-spacing: .01em;
}
.nav-brand:hover { color: var(--purple-300); }
.nav-menu { display: flex; gap: .25rem; list-style: none; }
.nav-link {
  display: block; padding: .5rem .85rem; border-radius: 10px;
  color: var(--text-dim); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--purple-200); background: rgba(167,139,250,.10); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px 0;
  background: var(--purple-200); border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 60px; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 320px minmax(0, 620px); gap: 3.2rem;
  align-items: center; justify-content: center;
}
.hero-photo-wrap { perspective: 900px; }
.hero-photo {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 24px 60px -18px rgba(124, 58, 237, 0.45),
    0 8px 28px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d; will-change: transform;
}
.hero-photo img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(196,181,253,.18) 0%, transparent 40%, rgba(124,58,237,.14) 100%);
}
.hero-badge {
  display: inline-block; padding: .38rem 1rem; margin-bottom: 1.1rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--purple-200); background: rgba(139, 92, 246, 0.14);
  border: 1px solid var(--border-strong); border-radius: 999px;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.22);
}
.hero-name {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 20%, var(--purple-300) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline {
  margin-top: .7rem; font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--purple-300); font-weight: 500; letter-spacing: .01em;
}
.hero-affil { margin-top: 1rem; color: var(--text-dim); font-size: .95rem; }
.hero-affil span { display: block; }
.hero-affil i { color: var(--purple-400); width: 1.2rem; }
.hero-about { margin-top: 1.3rem; display: grid; gap: .75rem; max-width: 640px; }
.hero-about p { color: var(--text-dim); font-size: .98rem; }
.hl { color: var(--purple-200); font-weight: 600; }
.hero-cta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--purple-300); opacity: .7; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.5rem; border-radius: 14px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  box-shadow: 0 10px 26px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--glow); }
.btn-ghost {
  color: var(--purple-200); background: rgba(139,92,246,.08); border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(139,92,246,.16); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: rgba(255,255,255,0.03); border-block: 1px solid rgba(196,181,253,.10); }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700;
  text-align: center; margin-bottom: 3rem; letter-spacing: -0.01em;
}
.section-title span { position: relative; padding-bottom: .6rem; }
.section-title span::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-300));
  box-shadow: 0 0 14px var(--glow);
}

/* ---------- news ---------- */
.section-news { padding: 72px 0; }
.news-list { max-width: 1000px; margin: 0 auto; display: grid; gap: .65rem; }
.news-item {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  padding: .85rem 1.15rem;
  background: linear-gradient(180deg, rgba(167,139,250,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 13px;
  transition: border-color .2s, background .2s;
}
.news-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.news-item.hidden-by-limit { display: none; }
.news-date {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--purple-300); letter-spacing: .02em;
}
.news-fresh {
  border-color: rgba(196, 181, 253, .45);
  background: linear-gradient(180deg, rgba(167,139,250,.11), rgba(255,255,255,.02));
}
.news-fresh .news-date {
  color: var(--purple-100);
  text-shadow: 0 0 12px var(--glow);
}
.news-fresh .news-text { color: var(--text); }
.news-text { flex: 1 1 260px; min-width: 0; font-size: .95rem; color: var(--text-dim); }
.news-text .hl { color: var(--purple-200); }
.news-link { color: var(--purple-300); font-size: .8rem; margin-left: .3rem; }
.news-link:hover { color: var(--purple-100); }

/* ---------- 3D card base ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }

.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; perspective: 1200px; }
.research-card {
  background: linear-gradient(180deg, rgba(167,139,250,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.8);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.research-card:hover {
  border-color: var(--border-strong); background: var(--surface-2);
  box-shadow: 0 26px 60px -24px rgba(124,58,237,.5);
}
.research-icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border-radius: 16px; font-size: 1.35rem; color: var(--purple-200);
  background: linear-gradient(150deg, rgba(139,92,246,.28), rgba(139,92,246,.06));
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 22px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateZ(30px);
}
.research-card h3 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: .3rem; transform: translateZ(20px); }
.research-sub { color: var(--purple-300); font-size: .84rem; margin-bottom: .9rem; }
.research-card ul { list-style: none; display: grid; gap: .55rem; }
.research-card li {
  position: relative; padding-left: 1.15rem; color: var(--text-dim); font-size: .93rem;
}
.research-card li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--purple-400); box-shadow: 0 0 8px var(--glow);
}

/* ---------- timeline ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; }
.col-title {
  font-family: var(--font-head); font-size: 1.18rem; margin-bottom: 1.4rem; color: var(--purple-200);
}
.col-title i { margin-right: .5rem; }
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--purple-500), rgba(139,92,246,.05));
}
.tl-item { position: relative; margin-bottom: 1.3rem; }
.tl-dot {
  position: absolute; left: -1.4rem; top: 14px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple-400); border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--glow); transform: translateX(0.5px);
}
.tl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem 1.25rem; transition: border-color .25s, box-shadow .25s;
}
.tl-card:hover { border-color: var(--border-strong); box-shadow: 0 18px 40px -20px rgba(124,58,237,.45); }
.tl-date {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--purple-200); background: rgba(139,92,246,.14); border: 1px solid var(--border);
  padding: .15rem .6rem; border-radius: 999px; margin-bottom: .5rem;
}
.tl-card h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: .35rem; }
.tl-lines { color: var(--text-dim); font-size: .92rem; }
.tl-thesis { margin-top: .5rem; color: var(--text-faint); font-size: .84rem; }
.tl-thesis i { color: var(--purple-400); margin-right: .3rem; }

/* ---------- publications ---------- */
.scholar-cta { text-align: center; margin-bottom: 2.6rem; }
.pub-group { margin-bottom: 3.2rem; }
.group-title {
  font-family: var(--font-head); font-size: 1.22rem; margin-bottom: 1.3rem; color: var(--text);
}
.group-title i { color: var(--purple-400); margin-right: .55rem; }
.group-note { color: var(--text-faint); font-size: .88rem; margin-top: .9rem; }
.group-note i { color: var(--purple-400); margin-right: .3rem; }

/* year-grouped compact lists */
.pub-year-group { margin-bottom: 1.6rem; }
.pub-year-group.hidden-by-limit { display: none; }
.year-heading {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--purple-300);
}
.year-heading::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.year-heading em {
  font-style: normal; font-size: .72rem; font-weight: 600; color: var(--text-faint);
  background: rgba(139,92,246,.10); border: 1px solid var(--border);
  padding: .05rem .5rem; border-radius: 999px;
}

.pubc {
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: .5rem;
  background: linear-gradient(180deg, rgba(167,139,250,.05), rgba(255,255,255,.02));
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.pubc:hover { border-color: var(--border-strong); background: var(--surface-2); }
.pubc.pub-lead { border-left: 3px solid var(--purple-400); }
.pubc summary {
  display: flex; align-items: center; gap: .8rem;
  padding: .68rem .95rem; cursor: pointer; list-style: none; user-select: none;
}
.pubc summary::-webkit-details-marker { display: none; }
.pubc-main { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.pubc-title { font-weight: 600; font-size: .95rem; line-height: 1.4; }
.pubc-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .8rem; color: var(--text-faint);
}
.pubc-meta em { font-style: italic; color: var(--text-dim); }
.pubc-chev { color: var(--purple-400); font-size: .75rem; transition: transform .25s; flex: 0 0 auto; }
.pubc[open] .pubc-chev { transform: rotate(180deg); }
.pubc-detail {
  padding: .2rem .95rem .85rem; border-top: 1px dashed var(--border);
  display: grid; gap: .3rem;
}
.pubc-detail .pub-authors { padding-top: .55rem; }
.pub-lead { border-left: 3px solid var(--purple-400); }
.pub-badges { display: flex; flex-wrap: wrap; gap: .45rem; }
.badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: .18rem .6rem; border-radius: 999px; border: 1px solid var(--border-strong);
  color: var(--purple-200); background: rgba(139,92,246,.10);
}
.badge-first { color: #fff; background: linear-gradient(135deg, var(--purple-500), var(--purple-600)); border-color: transparent; }
.badge-cofirst { color: var(--purple-100); background: rgba(139,92,246,.28); }
.badge-jcr { color: #fbdf9d; border-color: rgba(251,223,157,.4); background: rgba(251,223,157,.08); }
.badge-status { color: #9dd7fb; border-color: rgba(157,215,251,.4); background: rgba(157,215,251,.08); }
.pub-authors { color: var(--text-dim); font-size: .92rem; }
.pub-authors strong { color: var(--purple-200); }
.pub-title { font-family: var(--font-body); font-weight: 600; font-size: 1.0rem; margin: .3rem 0; line-height: 1.45; }
.pub-venue { color: var(--text-dim); font-size: .9rem; font-style: italic; }
.pub-venue i { color: var(--purple-400); margin-right: .3rem; font-style: normal; }
.pub-jcr { color: #d8b96a; font-size: .8rem; margin-top: .25rem; }
.pub-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .55rem; }
.pub-link { color: var(--purple-300); text-decoration: none; font-size: .87rem; font-weight: 600; }
.pub-link:hover { color: var(--purple-100); text-decoration: underline; }
.pub-note { color: var(--text-faint); font-size: .78rem; }

.conf-item {
  padding: .55rem .3rem .55rem .95rem; position: relative;
  border-bottom: 1px solid rgba(196,181,253,.10);
  transition: background .2s;
}
.conf-item::before {
  content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--purple-400); opacity: .7;
}
.conf-item:last-child { border-bottom: 0; }
.conf-item:hover { background: rgba(139,92,246,.06); border-radius: 10px; }
.conf-title { font-size: .92rem; color: var(--text); line-height: 1.45; }
.conf-title strong { color: var(--purple-200); }
.conf-venue { margin-top: .15rem; color: var(--text-faint); font-size: .82rem; }
.conf-venue i { color: var(--purple-400); margin-right: .3rem; }
.conf-type {
  display: inline-block; margin-left: .45rem; font-size: .68rem; font-weight: 600;
  padding: .08rem .5rem; border-radius: 999px; vertical-align: 1px;
}
.conf-type.oral { color: #86efac; background: rgba(134,239,172,.1); border: 1px solid rgba(134,239,172,.35); }
.conf-type.invited { color: var(--purple-200); background: rgba(139,92,246,.14); border: 1px solid var(--border-strong); }

.show-more-wrap { text-align: center; margin-top: 1.4rem; }
.show-more {
  padding: .6rem 1.6rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  color: var(--purple-200); background: rgba(139,92,246,.08); border: 1px solid var(--border-strong);
  transition: background .2s, transform .2s;
}
.show-more:hover { background: rgba(139,92,246,.18); transform: translateY(-2px); }
.show-more i { margin-left: .4rem; transition: transform .3s; }
.show-more.open i { transform: rotate(180deg); }

.pub-item.hidden-by-filter, .conf-item.hidden-by-filter,
.pub-item.hidden-by-limit, .conf-item.hidden-by-limit { display: none; }

/* ---------- awards ---------- */
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; perspective: 1200px; }
.award-card {
  position: relative; text-align: center; padding: 1.25rem 1.1rem 1.1rem;
  background: linear-gradient(180deg, rgba(167,139,250,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.award-card:hover {
  border-color: var(--border-strong); background: var(--surface-2);
  box-shadow: 0 24px 52px -26px rgba(124,58,237,.55);
}
.award-hl { border-color: rgba(196,181,253,.45); background: linear-gradient(170deg, rgba(139,92,246,.12), var(--surface)); }
.award-year {
  position: absolute; top: 14px; right: 16px; font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; color: var(--purple-300);
}
.award-icon {
  width: 44px; height: 44px; margin: 0 auto .7rem; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.05rem; color: var(--purple-200);
  background: linear-gradient(150deg, rgba(139,92,246,.3), rgba(139,92,246,.05));
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px -8px var(--glow); transform: translateZ(26px);
}
.award-title { font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
.award-org { color: var(--text-dim); font-size: .8rem; }

.service { margin-top: 2.4rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.service-item {
  display: flex; align-items: flex-start; gap: .6rem; padding: .5rem .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-dim); font-size: .91rem; transition: border-color .2s, background .2s;
}
.service-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.service-item i { color: var(--purple-400); margin-top: .2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; perspective: 1000px; }
.contact-card {
  text-align: center; padding: 1.5rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s;
}
.contact-card:hover { border-color: var(--border-strong); box-shadow: 0 20px 44px -24px rgba(124,58,237,.5); }
.contact-icon {
  width: 48px; height: 48px; margin: 0 auto .8rem; display: grid; place-items: center;
  border-radius: 14px; font-size: 1.15rem; color: var(--purple-200);
  background: linear-gradient(150deg, rgba(139,92,246,.28), rgba(139,92,246,.06));
  border: 1px solid var(--border-strong); transform: translateZ(22px);
}
.contact-card h3 { font-family: var(--font-head); font-size: .98rem; margin-bottom: .4rem; }
.contact-card p { font-size: .85rem; color: var(--text-dim); word-break: break-word; }
.contact-card a { color: var(--purple-300); text-decoration: none; }
.contact-card a:hover { color: var(--purple-100); text-decoration: underline; }

.contact-form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-form-card h3 { font-family: var(--font-head); margin-bottom: 1.2rem; }
.contact-form-card form { display: grid; gap: .9rem; }
.contact-form-card input, .contact-form-card textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: .93rem;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form-card input::placeholder, .contact-form-card textarea::placeholder { color: var(--text-faint); }
.contact-form-card input:focus, .contact-form-card textarea:focus {
  outline: none; border-color: var(--purple-400); box-shadow: 0 0 0 3px rgba(167,139,250,.18);
}
.form-status { font-size: .88rem; min-height: 1.2em; }
.form-status.ok { color: #86efac; }
.form-status.err { color: #fca5a5; }

/* ---------- footer / misc ---------- */
.footer {
  padding: 2.4rem 0 5rem; text-align: center; color: var(--text-faint); font-size: .88rem;
  border-top: 1px solid rgba(196,181,253,.08);
}
.footer-sub { margin-top: .3rem; font-size: .8rem; }

.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: .95rem;
  color: #fff; background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  border: 0; box-shadow: 0 10px 26px -8px var(--glow);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .hero-scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive — tablet & mobile
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 280px minmax(0, 520px); gap: 2.4rem; }
  .research-grid, .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0; padding: .6rem 4%;
    background: rgba(30,27,46,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-menu.open { max-height: 420px; }
  .nav-link { padding: .9rem .6rem; font-size: 1rem; }

  .hero { padding-top: 100px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; gap: 2.2rem; }
  .hero-photo-wrap { width: min(230px, 62vw); }
  .hero-about { text-align: center; }
  .hero-about p { max-width: 54ch; margin-inline: auto; }
  .hero-cta { justify-content: center; }

  .two-col { grid-template-columns: 1fr; gap: 2.6rem; }
  .col-title { text-align: center; }
  .timeline { padding-left: 0; max-width: 520px; margin: 0 auto; }
  .timeline::before { display: none; }
  .tl-dot { display: none; }
  .tl-card { text-align: center; }

  .section { padding: 72px 0; }
  /* research cards collapse to headers on mobile — tap to expand */
  .research-card { cursor: pointer; padding-bottom: 2.2rem; position: relative; }
  .research-card ul { display: none; margin-top: .4rem; }
  .research-card.open ul { display: grid; }
  .research-card::after {
    content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
    font-size: .7rem; color: var(--purple-400); transition: transform .25s;
  }
  .research-card.open::after { transform: translateX(-50%) rotate(180deg); }

  .show-more-wrap { text-align: center; }
  .group-title { text-align: center; }
  .group-note { text-align: center; }
  .scholar-cta .btn { width: 100%; justify-content: center; }
  .news-item { align-items: baseline; gap: .6rem; padding: .65rem .85rem; }
  .news-date { font-size: .76rem; }
  .news-text { font-size: .9rem; flex: 1 1 200px; text-align: left; }

  /* service: slim bullet rows instead of boxed cards */
  .service-grid { gap: 0; }
  .service-item {
    background: none; border: 0; border-bottom: 1px solid rgba(196,181,253,.10);
    border-radius: 0; padding: .45rem .2rem; justify-content: flex-start;
    font-size: .87rem;
  }
  .service-item:last-child { border-bottom: 0; }
  .service-item:hover { background: none; }
  .service-item i { font-size: .7rem; margin-top: .35rem; }
  .contact-form-card h3 { text-align: center; }
}

@media (max-width: 600px) {
  .research-grid, .awards-grid, .contact-cards, .service-grid { grid-template-columns: 1fr; }
  .research-card, .award-card { max-width: 460px; margin-inline: auto; width: 100%; }
  .research-card { text-align: center; }
  .research-icon { margin-inline: auto; }
  .research-card li { text-align: left; }
  .pubc summary { padding: .6rem .75rem; }
  .pubc-title { font-size: .9rem; }
  .conf-item { padding-left: .8rem; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-name { font-size: clamp(2rem, 9vw, 2.6rem); }
  .news-item { padding: .55rem .75rem; }
  .container { width: 94%; }
  .section-title { margin-bottom: 2.1rem; }
  .scroll-top { right: 14px; bottom: 14px; }
}
