:root,
[data-theme="light"] {
  color-scheme: light;
  --bg-color: #f7f8fa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-border: rgba(20, 32, 48, 0.1);
  --primary-color: #1d4e89;
  --primary-glow: rgba(29, 78, 137, 0.22);
  --secondary-color: #0d2644;
  --text-color: #1a2330;
  --muted-text: #5a6776;
  --accent-soft: #1d4e89;
  --heading-color: #121a24;
  --copy-color: #2a3544;
  --on-primary: #ffffff;
  --nav-scrolled: rgba(247, 248, 250, 0.96);
  --nav-mobile: #ffffff;
  --banner-bg: #ffffff;
  --footer-bg: #eef1f4;
  --bento-from: #eef1f6;
  --bento-to: #e6ebf2;
  --photo-from: #dce7ef;
  --photo-to: #e6edf4;
  --chip-bg: rgba(29, 78, 137, 0.1);
  --switch-border: rgba(18, 26, 36, 0.12);
  --switch-bg: #ffffff;
  --switch-fg: rgba(18, 26, 36, 0.5);
  --theme-primary-r: 29;
  --theme-primary-g: 78;
  --theme-primary-b: 137;
  --theme-secondary-r: 13;
  --theme-secondary-g: 38;
  --theme-secondary-b: 68;
  --icon-mix: #ffffff;
  --code-bg: #f3f5f8;
  --code-fg: #1a2330;
  --project-link-bg: rgba(214, 122, 40, 0.16);
  --project-link: #b65f12;
  --project-link-hover-bg: rgba(214, 122, 40, 0.28);
  --project-link-hover: #8f480c;
  --toolbar-bg: color-mix(in srgb, #fff 92%, transparent);
  --cursor-fill: #1d4e89;
  --cursor-stroke: #ffffff;
  --cursor-shadow: rgba(13, 38, 68, 0.35);
  --still-bg: #ffffff;
  --glow-a: 0.09;
  --glow-b: 0.08;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-color: #0d1622;
  --bg-elevated: #121a24;
  --surface: #121a24;
  --surface-border: rgba(158, 184, 208, 0.16);
  --primary-color: #6ea3d8;
  --primary-glow: rgba(110, 163, 216, 0.3);
  --secondary-color: #9bb8d4;
  --text-color: #e6edf4;
  --muted-text: #9bb0c0;
  --accent-soft: #8eb4dc;
  --heading-color: #f2f6fa;
  --copy-color: #d5dee8;
  --on-primary: #0d1622;
  --nav-scrolled: rgba(13, 22, 34, 0.94);
  --nav-mobile: #121a24;
  --banner-bg: #121a24;
  --footer-bg: #0a121b;
  --bento-from: #15202e;
  --bento-to: #121a24;
  --photo-from: #1a2d44;
  --photo-to: #182332;
  --chip-bg: rgba(110, 163, 216, 0.16);
  --switch-border: rgba(230, 237, 244, 0.14);
  --switch-bg: #182332;
  --switch-fg: rgba(230, 237, 244, 0.55);
  --theme-primary-r: 110;
  --theme-primary-g: 163;
  --theme-primary-b: 216;
  --theme-secondary-r: 155;
  --theme-secondary-g: 184;
  --theme-secondary-b: 212;
  --icon-mix: #182332;
  --code-bg: #0a121b;
  --code-fg: #e6edf4;
  --project-link-bg: rgba(224, 164, 88, 0.18);
  --project-link: #e0a458;
  --project-link-hover-bg: rgba(224, 164, 88, 0.3);
  --project-link-hover: #f0c27a;
  --toolbar-bg: color-mix(in srgb, #121a24 92%, transparent);
  --cursor-fill: #6ea3d8;
  --cursor-stroke: #0d1622;
  --cursor-shadow: rgba(0, 0, 0, 0.45);
  --still-bg: #121a24;
  --glow-a: 0.16;
  --glow-b: 0.14;
}

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

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(ellipse 70% 46% at 88% 6%, rgba(var(--theme-primary-r), var(--theme-primary-g), var(--theme-primary-b), var(--glow-a)), transparent 58%),
    radial-gradient(ellipse 58% 42% at 6% 94%, rgba(var(--theme-secondary-r), var(--theme-secondary-g), var(--theme-secondary-b), var(--glow-b)), transparent 52%),
    var(--bg-color);
}

::selection {
  background: color-mix(in srgb, var(--primary-color) 32%, transparent);
  color: var(--heading-color);
}

body {
  font-family: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--text-color);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  color: var(--heading-color);
}

button,
.tab-btn {
  font-family: inherit;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-section {
  position: relative;
  z-index: 2;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.16em;
  fill: none;
  stroke: currentColor;
}

.hidden-page {
  display: none !important;
}

.accent-text {
  color: var(--primary-color);
}

.small-text {
  font-size: 0.88rem;
  color: var(--muted-text);
}

.mt-2 { margin-top: 12px; }
.mt-5 { margin-top: 36px; }
.mt-30 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 24px; }
.my-40 { margin: 40px 0; }
.pt-50 { padding-top: 50px; }
.fw-500 { font-weight: 500; }
.ml-5 { margin-left: 6px; }
.cursor-pointer { cursor: pointer; }

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
}

#navbar.scrolled,
#navbar:has(.nav-panel.active) {
  background: var(--nav-scrolled);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(14px);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.chip-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--switch-border);
  border-radius: 999px;
  padding: 2px;
  background: var(--switch-bg);
}

.chip-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--switch-fg);
  font: 600 0.68rem/1 "Outfit", sans-serif;
  letter-spacing: .04em;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.chip-btn.active {
  background: var(--primary-color);
  color: var(--on-primary);
}

.theme-btn {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  color: var(--switch-fg);
}

.theme-btn.active {
  color: var(--on-primary);
}

.theme-btn .icon {
  width: 14px;
  height: 14px;
  vertical-align: top;
  color: inherit;
  stroke: currentColor;
}

.logo-header,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}

.logo-header {
  line-height: 1;
  font-size: 1.15rem;
}

.logo-mark {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  overflow: visible;
  color: var(--primary-color);
}

.logo-header .sail,
.footer-logo .sail {
  color: var(--primary-color);
}

.logo-header .lab,
.footer-logo .lab {
  color: var(--heading-color);
  font-weight: 600;
}

.univ-seal {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -5px;
  flex: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
  flex-wrap: nowrap;
}

.nav-links li a {
  position: relative;
  color: var(--muted-text);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--heading-color);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--heading-color);
  cursor: pointer;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}

.hamburger span {
  display: block;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger span:nth-child(1) { width: 18px; }
.hamburger span:nth-child(2) { width: 13px; }
.hamburger span:nth-child(3) { width: 9px; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  width: 18px;
  transform: translateY(6.6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 18px;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  width: 18px;
  transform: translateY(-6.6px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 120px 20px 48px;
}

.univ-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--muted-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.56rem;
}

html[data-lang="ko"] .univ-lockup {
  letter-spacing: 0.06em;
  text-transform: none;
}

.univ-lockup .univ-seal {
  width: 48px;
  height: 48px;
}

.hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--primary-color);
}

.hero h2 {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: var(--copy-color);
}

.hero h2 .highlight {
  color: var(--primary-color);
  font-weight: 700;
}

.kor-subtitle {
  margin-top: 10px;
  color: var(--muted-text);
}

.recruitment-banner {
  width: min(720px, 100%);
}

.banner-content {
  background: var(--banner-bg);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 28px 30px;
  text-align: center;
}

.banner-content-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.status-flag {
  flex: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  border: 1px solid color-mix(in srgb, var(--primary-color) 42%, transparent);
  border-radius: 4px;
  padding: 3px 7px;
}

.banner-title {
  font-size: 1.05rem;
}

.banner-desc {
  color: var(--muted-text);
  margin: 8px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--on-primary);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary .icon {
  width: 15px;
  height: 15px;
}

.scroll-indicator {
  display: block;
  margin: 48px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-text);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

#home-news,
#research-overview {
  scroll-margin-top: 88px;
}

.home-news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-news-more {
  color: var(--primary-color);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 2px;
}

.home-news-more:hover {
  text-decoration: underline;
}

#home-news .news-item {
  cursor: pointer;
}

.scroll-chevron {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  color: var(--primary-color);
  animation: drift 1.6s ease-in-out infinite;
}

.scroll-chevron .icon {
  width: 28px;
  height: 28px;
  vertical-align: top;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(7px); opacity: 1; }
}

.section {
  position: relative;
  z-index: 10;
  padding: 90px 0 70px;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 36px;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2rem);
  font-weight: 700;
}

.underline {
  width: 56px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 10px;
  border-radius: 3px;
}

.research-grid,
.details-grid,
.member-grid,
.robot-grid,
.lecture-grid,
.news-list {
  display: grid;
  gap: 18px;
}

.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-card,
.member-card,
.robot-card,
.lecture-card,
.news-item,
.profile-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.research-card h3,
.robot-card h3,
.lecture-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.research-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.research-index {
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}

.research-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary-color);
  transition: transform var(--transition), background var(--transition);
  background:
    radial-gradient(circle at 30% 28%, color-mix(in srgb, var(--primary-color) 22%, var(--icon-mix)), transparent 58%),
    var(--chip-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.research-icon-predict {
  color: var(--secondary-color);
  background:
    radial-gradient(circle at 70% 24%, color-mix(in srgb, var(--secondary-color) 20%, var(--icon-mix)), transparent 58%),
    var(--chip-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--secondary-color) 16%, transparent);
}

.research-icon .icon {
  width: 28px;
  height: 28px;
  vertical-align: top;
}

.research-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.research-card:hover:not(.selected) {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--surface-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.research-card.selected {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary-color) 26%, transparent),
    0 12px 28px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.research-card.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.research-card.selected .research-index {
  color: var(--primary-color);
}

.research-grid:has(.research-card:hover) .research-card:not(:hover):not(.selected),
.research-grid:has(.research-card.selected) .research-card:not(.selected):not(:hover) {
  opacity: 0.38;
}

.research-card:hover .research-icon {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 30% 28%, color-mix(in srgb, var(--primary-color) 30%, var(--icon-mix)), transparent 60%),
    color-mix(in srgb, var(--primary-color) 12%, var(--icon-mix));
}

.overview-videos {
  margin-top: 18px;
}

.overview-videos[hidden] {
  display: none;
}

#research-overview .video-stack {
  margin-top: 0;
}

.research-card:hover .research-icon-predict {
  background:
    radial-gradient(circle at 70% 24%, color-mix(in srgb, var(--secondary-color) 28%, var(--icon-mix)), transparent 60%),
    color-mix(in srgb, var(--secondary-color) 10%, var(--icon-mix));
}

.research-card ul,
.custom-bullet-list,
.pub-list,
.reviewer-list {
  list-style: none;
}

.research-card li,
.custom-bullet-list li {
  position: relative;
  color: var(--muted-text);
  margin: 7px 0;
  padding-left: 16px;
}

.research-card li::before,
.custom-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--primary-color);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.overview-copy,
.overview-copy p {
  margin-bottom: 16px;
  color: var(--copy-color);
  line-height: 1.7;
}

#research .overview-copy {
  max-width: 52rem;
}

.details-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

#professor .details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-list h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.details-list h3 .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--primary-color);
}

#lab-overview .details-list {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

#lab-overview .details-list:hover:not(.selected) {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--surface-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

#lab-overview .details-list.selected {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary-color) 26%, transparent),
    0 12px 28px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

#lab-overview .details-list.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

#lab-overview .details-grid:has(.details-list:hover) .details-list:not(:hover):not(.selected),
#lab-overview .details-grid:has(.details-list.selected) .details-list:not(.selected):not(:hover) {
  opacity: 0.38;
}

.disclaimer-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(94, 177, 255, 0.08);
  border: 1px solid rgba(94, 177, 255, 0.16);
  color: var(--copy-color);
  margin-bottom: 24px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

#research .section-container {
  max-width: 1180px;
}

#research .bento-grid {
  grid-template-columns: 1fr;
}

#research .bento-wrapper,
#research .bento-item,
#research .project-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.bento-wide {
  grid-column: 1 / -1;
}

.bento-item {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--primary-color) 22%, transparent), transparent 32%),
    linear-gradient(160deg, var(--bento-from), var(--bento-to));
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.bento-item:hover:not(.expanded):not(.project-card) {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--surface-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.bento-item.expanded {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary-color) 26%, transparent),
    0 12px 28px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.bento-item.expanded::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.bento-grid:has(.bento-wrapper.expanded) .bento-wrapper:not(.expanded):not(:hover) .bento-item,
.bento-grid:has(.bento-item:hover:not(.project-card)) .bento-wrapper:not(:hover):not(.expanded) .bento-item {
  opacity: 0.38;
}

.bento-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-primary);
  background: var(--primary-color);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-badge.ongoing { background: #5eb1ff; color: #062033; }
.bento-badge.completed { background: #94a3b8; color: #0b1220; }

.bento-content h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
}

.bento-content p {
  color: var(--muted-text);
  margin-top: 8px;
  max-width: 72ch;
  line-height: 1.55;
}

.bento-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent-soft);
  font-size: 0.88rem;
}

.bento-action .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.bento-wrapper.expanded .bento-action {
  color: var(--primary-color);
  font-weight: 700;
}

.bento-wrapper.expanded .bento-action .icon {
  transform: rotate(180deg);
}

.bento-wrapper.expanded .details-inner {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--surface-border));
}

.bento-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.details-inner {
  margin-top: 12px;
}

.topic-intro-title {
  display: block;
  margin-bottom: 12px;
  color: var(--heading-color);
  font-weight: 600;
}

.grant-list li,
.ack-list li {
  margin: 10px 0;
  color: var(--copy-color);
}

.ack-list {
  margin-top: 16px;
  font-size: 0.44rem;
  line-height: 1.45;
  color: var(--muted-text);
}

.ack-list li {
  margin: 6px 0;
  color: var(--muted-text);
}

.video-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.video-stack:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.video-stack:has(> :only-child) > *,
.video-stack > :last-child:nth-child(odd) {
  width: 100%;
  max-width: calc(50% - 8px);
}

.video-stack > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

.video-item {
  margin: 0;
  max-width: none;
}

a.project-page {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: 0.08em;
  background: var(--project-link-bg);
  color: var(--project-link);
}

a.project-page:hover {
  background: var(--project-link-hover-bg);
  color: var(--project-link-hover);
}

#research .bento-content h3,
#research .bento-content p,
#research .pub-list {
  overflow-wrap: break-word;
}

.rep-pub-title {
  margin: 22px 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
}

.collab-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 12px;
  margin: 0 0 8px;
}

.collab-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
}

.collab-card:hover {
  border-color: color-mix(in srgb, var(--primary-color) 40%, var(--surface-border));
}

.collab-logo {
  width: 88px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  flex: none;
}

.collab-logo-hust {
  width: 44px;
  height: 56px;
  object-fit: contain;
  object-position: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 8px;
}

.project-card,
.project-card.bento-item {
  cursor: pointer;
  min-height: 0;
}

.project-card:hover:not(.selected) {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--surface-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.project-card.selected {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary-color) 26%, transparent),
    0 12px 28px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.project-card.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.project-grid:has(.project-card:hover) .project-card:not(:hover):not(.selected),
.project-grid:has(.project-card.selected) .project-card:not(.selected):not(:hover) {
  opacity: 0.38;
}

.project-card .bento-content {
  min-height: 180px;
  justify-content: flex-start;
}

.project-hint {
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent-soft);
  font-size: 0.88rem;
}

.project-card.selected .project-hint {
  display: none;
}

.project-team {
  display: none;
  margin-top: auto;
  padding-top: 14px;
  flex-direction: column;
  gap: 10px;
}

.project-card.selected .project-team {
  display: flex;
}

.project-person {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.project-person:hover .member-name {
  color: var(--primary-color);
}

.project-person-photo,
.project-person-photo.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--photo-from), var(--photo-to));
  color: var(--primary-color);
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.project-person .member-kor {
  font-size: 0.75rem;
}

.project-person .member-role {
  font-size: 0.75rem;
}

.video-item figcaption {
  margin-top: 8px;
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--photo-to);
}

.video-embed iframe,
.video-embed video,
.video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-embed img.media-still {
  object-fit: contain;
  background: var(--still-bg);
}

.yt-lite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}

.yt-lite-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--primary-color);
  pointer-events: none;
}

.yt-lite-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--on-primary);
  transform: translate(-50%, -50%);
}

.yt-lite:hover .yt-lite-play {
  filter: brightness(1.08);
}

.video-pending {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--muted-text);
  font-size: 0.86rem;
  text-align: center;
  padding: 16px;
}

.bento-badge.plan {
  background: #7c6cf0;
  color: #f4f2ff;
}

.bento-badge.application {
  background: var(--secondary-color);
}

.bento-badge.interest {
  background: #2a6f7a;
  color: #f3fafb;
}

#research-interest .bento-item {
  cursor: default;
}

#research-interest .bento-content {
  justify-content: flex-start;
}

.robot-grid {
  grid-template-columns: 1fr;
}

.robot-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.robot-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--secondary-color) 20%, transparent), transparent 40%),
    var(--photo-to);
  color: var(--secondary-color);
}

.robot-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.robot-visual .icon {
  width: 64px;
  height: 40px;
  vertical-align: top;
}

.robot-media .video-embed {
  margin: 0;
}

.profile-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--photo-from), var(--photo-to));
  color: var(--primary-color);
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.profile-photo.avatar-fallback {
  font-size: 2.4rem;
}

.profile-photo.avatar-fallback .avatar-icon {
  width: 46%;
  height: 46%;
}

.page-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-color);
  font-size: 0.88rem;
  font-weight: 600;
}

.section-title .member-kor {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--muted-text);
}

.profile-card h2 {
  font-family: "Outfit", sans-serif;
}

.contact-mini {
  margin-top: 14px;
  color: var(--muted-text);
}

.contact-mini p {
  margin: 6px 0;
}

.contact-mini a:hover {
  color: var(--primary-color);
}

.subsection-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: color-mix(in srgb, var(--primary-color) 28%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}

.timeline-content {
  padding: 18px 20px;
}

.timeline-date {
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.member-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.member-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

a.member-card {
  color: inherit;
}

.member-card,
.news-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.member-card:hover:not(.selected),
.news-item:hover:not(.selected) {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--surface-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.member-card.selected,
.news-item.selected {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary-color) 26%, transparent),
    0 12px 28px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.member-card.selected::before,
.news-item.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

#members:has(.member-card:hover) .member-card:not(:hover):not(.selected),
#members:has(.member-card.selected) .member-card:not(.selected):not(:hover),
.news-list:has(.news-item:hover) .news-item:not(:hover):not(.selected),
.news-list:has(.news-item.selected) .news-item:not(.selected):not(:hover) {
  opacity: 0.38;
}

.lecture-sim-btn {
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 0.8rem;
}

.member-photo,
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--photo-from), var(--photo-to));
  color: var(--primary-color);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.avatar-icon {
  width: 54%;
  height: 54%;
  display: block;
  fill: currentColor;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.member-name { font-weight: 700; }
.member-kor { opacity: 0.55; font-size: 0.85rem; margin-left: 6px; }
.member-role { color: var(--primary-color); font-size: 0.88rem; margin-top: 2px; }
.collab-card .member-role {
  margin-top: 8px;
  white-space: nowrap;
}
.member-desc { color: var(--muted-text); font-size: 0.86rem; }
.member-recruit { color: var(--muted-text); opacity: 0.7; }

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

.news-date {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.88rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--muted-text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--on-primary);
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.pub-list li {
  margin: 12px 0;
  color: var(--copy-color);
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.pub-list a {
  color: var(--copy-color);
  border-bottom: 1px solid color-mix(in srgb, var(--secondary-color) 35%, transparent);
}

.pub-list a:hover {
  color: var(--primary-color);
}

.pub-list em,
.news-item em {
  font-style: italic;
  font-weight: 700;
  color: var(--primary-color);
}

.author-legend,
.update-note {
  color: var(--muted-text);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.venue-note {
  color: var(--muted-text);
}

.major-block {
  margin-bottom: 22px;
}

.major-block h4 {
  font-family: "Outfit", sans-serif;
  margin-bottom: 8px;
}

.jcr-pill {
  display: inline-block;
  vertical-align: 0.12em;
  margin-left: 0.4em;
  padding: 0.12em 0.58em;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 38%, transparent);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--primary-color);
  font-family: "Outfit", sans-serif;
  font-size: 0.68em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.lecture-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.lecture-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.lecture-card:hover:not(.selected) {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--surface-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.lecture-card.selected {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary-color) 26%, transparent),
    0 12px 28px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.lecture-card.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

#lecture:has(.lecture-card:hover) .lecture-card:not(:hover):not(.selected),
#lecture:has(.lecture-card.selected) .lecture-card:not(.selected):not(:hover) {
  opacity: 0.38;
}

.lecture-year + .lecture-year {
  margin-top: 8px;
}

.course-wrap {
  max-width: 640px;
}

.course-wrap-wide {
  max-width: 1120px;
}

.note-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.note-step h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  margin: 10px 0 8px;
}

.note-step p {
  color: var(--copy-color);
  font-size: 0.95rem;
}

.note-step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--primary-color);
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.note-math .note-math-obj,
.note-article > .note-math-obj {
  font-size: 1.12rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.note-math .note-math-st {
  color: var(--muted-text);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.note-math ul {
  margin: 0 0 16px 1.15em;
  color: var(--copy-color);
}

.note-math p {
  color: var(--copy-color);
  margin-bottom: 12px;
}

.note-math p:last-child {
  margin-bottom: 0;
}

.note-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.note-split h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.note-refs {
  margin-top: 8px;
}

.note-host {
  margin-top: 4px;
}

.note-host[hidden] {
  display: none;
}

.sim-block > #sim-mppi {
  margin-top: 8px;
}

.note-article > p {
  color: var(--copy-color);
  margin-bottom: 14px;
  line-height: 1.7;
}

.note-article h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.12rem;
  margin: 28px 0 12px;
}

.note-article h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  margin: 20px 0 10px;
}

.note-article .note-steps,
.note-article .note-split {
  margin-top: 8px;
  margin-bottom: 8px;
}

.note-callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--surface-border));
  background: color-mix(in srgb, var(--primary-color) 7%, var(--surface));
  color: var(--copy-color);
  line-height: 1.65;
}

.note-callout p {
  margin-bottom: 10px;
}

.note-callout p:last-child {
  margin-bottom: 0;
}

.note-assume {
  margin: 0 0 12px;
}

.note-assume h4 {
  margin: 0 0 8px;
  color: var(--primary-color);
}

.note-assume p {
  color: var(--copy-color);
  margin-bottom: 8px;
}

.note-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}

.note-tools h4 {
  margin: 0 0 8px;
}

.note-tools p {
  color: var(--muted-text);
  font-size: 0.92rem;
  margin: 0;
}

.note-ol {
  margin: 0 0 16px 1.2em;
  color: var(--copy-color);
}

.note-ol li {
  margin: 8px 0;
}

.note-code {
  display: block;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--code-bg);
  color: var(--code-fg);
  font: 0.82rem/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.note-host .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 12px 0 16px;
}

.note-host .note-math {
  margin-bottom: 16px;
}

.note-figure {
  margin: 16px 0 20px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.note-figure img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
}

.note-figure figcaption {
  padding: 10px 14px 12px;
  color: var(--muted-text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.note-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 0.92rem;
}

.note-table th,
.note-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--copy-color);
  vertical-align: top;
}

.note-table th {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 800px) {
  .note-steps,
  .note-split {
    grid-template-columns: 1fr;
  }
}

.sim-lec-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.sim-lec-btn {
  appearance: none;
  display: inline-block;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--copy-color);
  font: 600 0.8rem/1.3 "Outfit", "Apple SD Gothic Neo", sans-serif;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
}

.sim-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 12px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
}

@media (min-width: 900px) {
  .sim-nav:not(.sim-nav-dense) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sim-nav-dense {
  margin-top: 10px;
}

.sim-nav.is-empty {
  display: none;
}

.sim-nav-btn,
.sim-pick-btn {
  appearance: none;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: transparent;
  color: var(--copy-color);
  font: 600 0.86rem/1.35 "Outfit", "Apple SD Gothic Neo", sans-serif;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}

.sim-nav-btn:hover,
.sim-nav-btn.active,
.sim-lec-btn:hover,
.sim-lec-btn.active,
.sim-pick-btn:hover,
.sim-pick-btn.active {
  color: var(--on-primary);
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.sim-block {
  margin-top: 20px;
}

.sim-block.is-hidden {
  display: none;
}

.sim-block .small-text {
  margin: -8px 0 12px;
}

.course-frame,
.course-embed > .course-frame {
  width: 100%;
  height: min(88vh, 820px);
  min-height: 640px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
}

.course-embed {
  --bg: transparent;
  --accent: var(--primary-color);
  --accent-ink: var(--on-primary);
  --text: var(--copy-color);
  --muted: var(--muted-text);
  margin-top: 8px;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  color: var(--copy-color);
  font-family: inherit;
}

.course-embed header,
.course-embed .hero,
.course-embed footer,
.course-embed .theme-btn,
.course-embed [id$="themeBtn"],
.course-embed .container > h1,
.course-embed .container > .subtitle,
.course-embed .container > .tag,
.course-embed .container > div:has(> .tag) {
  display: none !important;
}

.course-embed .wrap,
.course-embed .wrap.wide,
.course-embed .container {
  max-width: none;
  margin: 0;
  padding: 0;
}

.course-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: color-mix(in srgb, var(--primary-color) 8%, var(--surface));
  color: var(--copy-color);
  font-size: 0.88rem;
  line-height: 1.55;
}

.course-hint b {
  color: var(--primary-color);
}

.course-embed canvas {
  max-width: 100%;
  display: block;
}

.course-embed .demo-stage-canvas {
  position: relative;
}

.course-embed .demo-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  padding: 10px 0 0;
}

.course-embed .demo-toolbar.has-3 {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.course-embed .demo-toolbar button {
  min-height: 46px;
  width: 100%;
}

@media (min-width: 900px) {
  .course-embed .demo-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    width: auto;
    grid-template-columns: none;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--toolbar-bg);
    box-shadow: 0 4px 16px rgba(18, 26, 36, 0.12);
  }
  .course-embed .demo-toolbar button,
  .course-embed .demo-toolbar .btn {
    min-height: 36px;
    min-width: 88px;
    width: auto;
    flex: none;
    padding: 7px 14px;
    font-size: 14px;
  }
}

.demo-app {
  margin-top: 8px;
}

html[data-theme="dark"] .demo-app {
  --ink: #0d1622;
  --ink-2: #121a24;
  --ink-3: #182332;
  --ink-4: #1a2d44;
  --rule: #2a3848;
  --rule-2: #3a4d62;
  --text: #e6edf4;
  --text-2: #9bb0c0;
  --text-3: #7d90a0;
  --accent: #6ea3d8;
  --accent-deep: #6ea3d8;
  --accent-on: #0d1622;
  --grid: #1a2533;
  --grid-major: #243344;
  --track: #5eb1ff;
  --mark: #e0a458;
  --hull: #5cc793;
  --sight: #8bc34a;
  --devi: #f09289;
  --course: #9bb8d4;
  --rock: #c4b07a;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.demo-app .demo-layout {
  display: flex;
  flex-direction: column;
}

.demo-app .stage-canvas {
  position: relative;
}

.demo-app .demo-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}

.demo-app .demo-toolbar button {
  min-height: 46px;
  width: 100%;
}

@media (min-width: 900px) {
  .demo-app .demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 16px;
    align-items: start;
  }
  .demo-app .demo-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    width: auto;
    grid-template-columns: none;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--rule, var(--surface-border));
    border-radius: 12px;
    background: var(--toolbar-bg);
    box-shadow: 0 4px 16px rgba(18, 26, 36, 0.12);
  }
  .demo-app .demo-toolbar button {
    min-height: 36px;
    min-width: 88px;
    width: auto;
    padding: 7px 14px;
    font-size: 14px;
  }
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  justify-items: center;
  align-items: center;
}

.gallery-grid:has(> :only-child) .gallery-slot {
  grid-column: 2;
}

.gallery-slot {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--photo-to);
}

.gallery-slot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.lecture-term {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-container {
  max-width: 640px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-logo .footer-sail-mark {
  display: block;
  width: auto;
  height: 2.4em;
  max-width: none;
  aspect-ratio: 338 / 632;
  object-fit: contain;
  flex: none;
}

html[data-theme="dark"] .univ-seal {
  filter: brightness(1.18) contrast(1.04);
}

html[data-theme="dark"] .footer-sail-mark {
  filter: brightness(1.4);
}

.footer-credit .univ-seal {
  width: 18px;
  height: 18px;
  margin: 0 4px 0 2px;
  vertical-align: -4px;
}

.contact-details {
  margin-top: 18px;
}

.contact-details h3 {
  margin-bottom: 10px;
}

.contact-details p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  color: var(--copy-color);
}

.contact-details .icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  margin-top: 0.28em;
  color: var(--primary-color);
}

.contact-details a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted-text);
  font-size: 0.82rem;
}

.reviewer-list li {
  margin: 6px 0;
}

@media (max-width: 992px) {
  .research-grid,
  .details-grid,
  .profile-wrap,
  .robot-grid,
  .news-item,
  .bento-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .hamburger { display: flex; }
  .nav-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--nav-mobile);
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--surface-border);
  }
  .nav-panel.active {
    max-height: 520px;
    padding: 12px 24px 20px;
    opacity: 1;
  }
  .nav-links {
    display: block;
  }
  .nav-links li { margin: 10px 0; }
  .nav-links li a::after { display: none; }
  .nav-tools {
    flex-wrap: wrap;
    padding-top: 8px;
  }
}

@media (max-width: 768px) {
  .nav-container { padding: 12px 16px; gap: 10px; }
  .chip-btn { padding: 5px 7px; }
  .hero { padding: 108px 16px 40px; }
  .hero h1 { font-size: 2.4rem; }
  .hero h2 { font-size: 1.05rem; }
  .logo-header { font-size: 1.05rem; }
  .logo-header .logo-mark { width: 18px; height: 18px; }
  .section { padding: 72px 0 56px; }
  .glass-panel { padding: 22px; }
  .banner-content { padding: 22px 18px; }
  .video-stack { grid-template-columns: 1fr; }
  .video-stack:has(> :only-child) > *,
  .video-stack > :last-child:nth-child(odd) { max-width: 100%; }
  .robot-media { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid:has(> :only-child) .gallery-slot { grid-column: auto; }
  .collab-card .member-role {
    white-space: normal;
  }
}

html.has-sail-cursor,
html.has-sail-cursor * {
  cursor: none !important;
}

html.has-sail-cursor iframe,
html.has-sail-cursor input,
html.has-sail-cursor textarea {
  cursor: auto !important;
}

.sail-cursor {
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sail-cursor.is-on { opacity: 1; }

.sail-cursor-pointer {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  overflow: visible;
  filter: drop-shadow(0 1px 1px var(--cursor-shadow));
  will-change: transform;
}

.sail-cursor-pointer path,
#sail-cursor-pointer path {
  fill: var(--cursor-fill);
  stroke: var(--cursor-stroke);
  stroke-width: 1.6;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
