@font-face {
  font-family: "Pretendard";
  font-weight: 100 900;
  font-display: swap;
  src: local("Pretendard Variable"), url("../fonts/PretendardVariable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #fbfcff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(16, 31, 51, 0.12);
  --text: #121923;
  --muted: #627083;
  --accent: #04447c;
  --accent-2: #135fa0;
  --accent-3: #5095d2;
  --blue: #04447c;
  --shadow: 0 22px 70px rgba(28, 39, 58, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 10% 8%, rgba(4, 68, 124, 0.16), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(80, 149, 210, 0.18), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #f7f9fc 48%, #eef4f8 100%);
  color: var(--text);
  font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.aurora-field {
  pointer-events: none;
  position: fixed;
  inset: -24vh -18vw;
  z-index: -4;
  overflow: hidden;
  filter: blur(30px) saturate(118%);
}

.aurora {
  position: absolute;
  display: block;
  width: 78vw;
  height: 42vh;
  border-radius: 999px;
  opacity: 0.42;
  mix-blend-mode: multiply;
  transform-origin: center;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.aurora-one {
  top: 9vh;
  left: -12vw;
  background: linear-gradient(90deg, transparent 0%, rgba(4, 68, 124, 0.16) 18%, rgba(19, 95, 160, 0.34) 50%, rgba(158, 204, 243, 0.2) 78%, transparent 100%);
}

.aurora-two {
  top: 29vh;
  right: -22vw;
  height: 48vh;
  background: linear-gradient(110deg, transparent 0%, rgba(80, 149, 210, 0.22) 20%, rgba(4, 68, 124, 0.28) 56%, rgba(158, 204, 243, 0.18) 82%, transparent 100%);
  animation-delay: -7s;
  animation-duration: 23s;
}

.aurora-three {
  bottom: 0;
  left: 18vw;
  width: 62vw;
  height: 34vh;
  background: linear-gradient(100deg, transparent 0%, rgba(158, 204, 243, 0.18) 22%, rgba(19, 95, 160, 0.24) 58%, transparent 100%);
  animation-delay: -12s;
  animation-duration: 28s;
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-3vw, -2vh, 0) rotate(-7deg) scale(1);
  }
  45% {
    transform: translate3d(8vw, 3vh, 0) rotate(4deg) scale(1.14);
  }
  100% {
    transform: translate3d(-1vw, 8vh, 0) rotate(-2deg) scale(1.04);
  }
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#forensic-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(18, 25, 35, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 25, 35, 0.028) 1px, transparent 1px);
  background-size: 100% 6px, 42px 42px;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 10px;
  right: max(16px, calc((100vw - 1180px) / 2));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-group {
  position: relative;
}

.nav-links a,
.language-switch button,
.nav-toggle {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(4, 68, 124, 0.26);
  background: rgba(4, 68, 124, 0.08);
  color: var(--text);
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  justify-content: flex-start;
  text-transform: none;
  white-space: normal;
}

.language-switch {
  display: flex;
  padding: 2px;
  border: 1px solid rgba(124, 139, 157, 0.18);
  border-radius: 7px;
  background: rgba(18, 25, 35, 0.025);
}

.language-switch button {
  min-width: 38px;
  padding: 6px 8px;
  color: rgba(89, 102, 119, 0.72);
  cursor: pointer;
}

.language-switch button.active {
  border-color: rgba(4, 68, 124, 0.14);
  background: rgba(4, 68, 124, 0.11);
  color: rgba(4, 68, 124, 0.82);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--text), var(--text)) center calc(50% - 6px) / 18px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 18px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center calc(50% + 6px) / 18px 2px no-repeat,
    rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.nav-toggle span {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  width: min(1180px, calc(100% - 32px));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(108px, 12vh, 142px) 0 clamp(38px, 5.5vh, 58px);
}

.page-shell {
  min-height: calc(100svh - 126px);
}

.page-enter {
  animation: pageEnter 260ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.page-enter .content-band,
.page-enter .page-hero,
.page-enter .subnav {
  animation: sectionReveal 320ms cubic-bezier(.2, .8, .2, 1) both;
}

.page-enter .content-band:nth-of-type(2) {
  animation-delay: 40ms;
}

.page-enter .content-band:nth-of-type(3) {
  animation-delay: 80ms;
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::view-transition-old(root) {
  animation: 180ms ease both fadeOut;
}

::view-transition-new(root) {
  animation: 360ms cubic-bezier(.2, .8, .2, 1) both fadeInUp;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.loading-view,
.page-hero,
.content-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.loading-view {
  min-height: 54svh;
  padding: 120px 0 40px;
}

.seo-snapshot {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: 24px 0;
}

.seo-snapshot h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.seo-snapshot p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.loading-view h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1.04;
  text-wrap: balance;
}

.page-hero {
  padding: clamp(64px, 10vw, 110px) 0 28px;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 22px 0 0;
  color: #3f4d5d;
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
  line-height: 1.72;
}

.content-band {
  padding: clamp(34px, 5.5vw, 62px) 0 clamp(58px, 7vw, 86px);
}

.compact-band {
  padding-top: clamp(8px, 2.4vw, 24px);
}

.hero + .content-band {
  padding-top: clamp(20px, 3vw, 38px);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 8px;
  padding: 0 0 14px;
}

.subnav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-weight: 800;
}

.subnav a.active,
.subnav a:hover {
  border-color: rgba(4, 68, 124, 0.28);
  background: rgba(4, 68, 124, 0.08);
  color: var(--text);
}

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

.info-card,
.board-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.66)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.info-card {
  min-height: 210px;
  padding: 24px;
}

.info-card h3,
.board-item h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.36;
}

.info-card p,
.board-item p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.board-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.board-item time {
  color: var(--accent-2);
  font-weight: 800;
}

.hero-copy {
  position: relative;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: normal;
  text-shadow: 0 16px 42px rgba(23, 105, 170, 0.1);
}

.forensic-workbench {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.68)),
    radial-gradient(circle at 70% 16%, rgba(23, 105, 170, 0.12), transparent 18rem),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.forensic-workbench::before {
  content: "";
  position: absolute;
  inset: 78px 26px 170px;
  border: 1px solid rgba(23, 105, 170, 0.14);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.forensic-workbench::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -78px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 68, 124, 0.16), transparent 64%);
}

.case-terminal {
  position: relative;
  z-index: 1;
  margin: 18px;
  overflow: hidden;
  border: 1px solid rgba(4, 68, 124, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(4, 68, 124, 0.035), transparent 26%),
    rgba(248, 251, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}

.case-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.case-terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #89b5df;
}

.case-terminal-bar span:first-child {
  background: #04447c;
}

.case-terminal-bar span:nth-child(2) {
  background: #5095d2;
}

.case-terminal-bar strong {
  margin-left: 6px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.case-stream-lines {
  display: grid;
  min-height: 180px;
  align-content: start;
  gap: 9px;
  padding: 16px 14px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  background-image: linear-gradient(rgba(4, 68, 124, 0.04) 1px, transparent 1px);
  background-size: 100% 28px;
}

.case-stream-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.case-stream-tick {
  color: var(--accent-2);
  font-weight: 800;
}

.case-stream-text {
  min-width: 0;
  color: #203546;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.case-stream-text[data-typing="true"]::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: cursorBlink 900ms steps(1) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.event-count {
  color: var(--accent);
  font-weight: 800;
}

.hero-summary {
  max-width: 720px;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  color: #3f4d5d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.2vw, 34px);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 800;
}

.primary-action {
  padding: 0 20px;
  background: var(--accent);
  color: #ffffff;
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid rgba(18, 25, 35, 0.14);
  background: rgba(255,255,255,0.68);
}

.forensic-terminal,
.person-card,
.publication-item,
.project-item,
.empty-state,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.64)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.forensic-terminal {
  overflow: hidden;
  min-width: 0;
  min-height: 430px;
  aspect-ratio: 0.86;
  position: relative;
}

.forensic-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(4, 68, 124, 0.08), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(23, 105, 170, 0.1), transparent 30%);
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 25, 35, 0.035);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-3);
}

.terminal-bar span:nth-child(2) {
  background: var(--accent-2);
}

.terminal-bar span:nth-child(3) {
  background: var(--accent);
}

.terminal-bar strong {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.terminal-lines {
  display: grid;
  gap: 10px;
  padding: 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  position: relative;
}

.terminal-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #26313f;
  overflow-wrap: anywhere;
}

.terminal-line span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.terminal-time {
  flex: 0 0 auto;
  color: var(--accent-2);
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  text-wrap: balance;
}

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

.person-card {
  min-width: 0;
  min-height: 250px;
  padding: 22px;
}

.person-photo {
  display: grid;
  width: min(72%, 260px);
  aspect-ratio: 4 / 3;
  place-items: center;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid rgba(4, 68, 124, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(4, 68, 124, 0.08), rgba(98, 168, 255, 0.14)),
    rgba(255, 255, 255, 0.72);
  color: rgba(4, 68, 124, 0.64);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 900;
}

.person-photo.placeholder {
  align-content: center;
  gap: 6px;
  text-align: center;
}

.person-photo.placeholder strong {
  display: block;
  color: rgba(4, 68, 124, 0.6);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1;
}

.person-photo.placeholder span,
.person-photo.placeholder small {
  display: block;
  color: rgba(71, 88, 108, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.person-photo.placeholder small {
  color: rgba(71, 88, 108, 0.62);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

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

.person-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.person-card p,
.contact-card p {
  line-height: 1.68;
}

.person-card h3,
.contact-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.role {
  margin: 8px 0 14px;
  color: var(--accent-2);
  font-weight: 800;
}

.person-email {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.professor-page {
  width: min(1040px, calc(100% - 32px));
  margin-top: clamp(34px, 6vw, 72px);
  margin-bottom: clamp(58px, 7vw, 86px);
  padding: clamp(58px, 7vw, 86px) clamp(24px, 4.8vw, 58px) clamp(54px, 6vw, 76px);
  border: 1px solid rgba(16, 31, 51, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.94)),
    #ffffff;
  box-shadow: 0 28px 90px rgba(28, 39, 58, 0.11);
  backdrop-filter: blur(14px);
}

.professor-page-title {
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(4, 68, 124, 0.76);
}

.professor-page-title h1 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.04;
}

.professor-profile {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  padding: 0 0 58px;
}

.professor-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 25, 35, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(28, 39, 58, 0.08);
}

.professor-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.22;
  object-fit: cover;
}

.professor-summary h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4.4vw, 3.45rem);
  line-height: 1.08;
}

.professor-position {
  margin: 16px 0 22px;
  color: var(--accent);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 900;
}

.professor-contact {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #405269;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.55;
}

.professor-interest {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 25, 35, 0.14);
  color: #405269;
  font-weight: 700;
  line-height: 1.55;
}

.professor-interest strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.professor-sections {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(18, 25, 35, 0.16);
}

.professor-section {
  min-width: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  padding: 42px 0;
  border-bottom: 1px solid rgba(18, 25, 35, 0.13);
  background: transparent;
}

.professor-section h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}

.professor-history {
  display: grid;
  gap: 0;
}

.professor-history-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(140px, 0.32fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(18, 25, 35, 0.08);
  color: #506177;
  line-height: 1.55;
}

.professor-history-row:last-child {
  border-bottom: 0;
}

.professor-history-row time {
  color: var(--accent);
  font-weight: 900;
}

.professor-history-row p {
  margin: 0;
  font-weight: 700;
}

.professor-history-row span {
  color: var(--muted);
  font-weight: 650;
}

.meta-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  border: 1px solid rgba(4, 68, 124, 0.24);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(4, 68, 124, 0.07);
  color: #04447c;
  font-size: 0.78rem;
  line-height: 1.2;
}

.tag.cohort-tag {
  border-color: rgba(0, 132, 128, 0.38);
  background: rgba(0, 132, 128, 0.12);
  color: #006b67;
  font-weight: 800;
}

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

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  border-color: rgba(4, 68, 124, 0.38);
  background: rgba(4, 68, 124, 0.1);
  color: var(--text);
}

.publication-sections {
  display: grid;
  gap: 46px;
}

.publication-section {
  min-width: 0;
}

.publication-section h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(4, 68, 124, 0.24);
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication-item,
.project-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.publication-item > div,
.project-item > div {
  min-width: 0;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.empty-state p {
  margin: 0;
}

.pub-year {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 7px;
  background: rgba(98, 168, 255, 0.14);
  color: var(--blue);
  font-weight: 800;
}

.publication-item h3,
.project-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.42;
}

.publication-item p,
.project-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.project-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.project-meta div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
}

.project-meta dt {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
  color: #324459;
}

.publication-authors {
  color: #253649;
  font-weight: 750;
}

.publication-affiliation {
  font-size: 0.94rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.contact-card {
  min-width: 0;
  padding: 22px;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-links a,
.contact-links span {
  overflow-wrap: anywhere;
  color: #154d72;
}

.site-footer {
  display: block;
  text-align: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .site-header {
    position: fixed;
    top: 12px;
    right: 12px;
    left: auto;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-color: rgba(4, 68, 124, 0.24);
    border-radius: 12px;
    background:
      linear-gradient(var(--text), var(--text)) center calc(50% - 6px) / 18px 2px no-repeat,
      linear-gradient(var(--text), var(--text)) center / 18px 2px no-repeat,
      linear-gradient(var(--text), var(--text)) center calc(50% + 6px) / 18px 2px no-repeat,
      rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 38px rgba(28, 39, 58, 0.2);
    backdrop-filter: blur(14px);
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 0;
    left: 0;
    width: calc(100vw - 24px);
    max-width: 420px;
    max-height: calc(100svh - 84px);
    margin: 0 12px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 26px 80px rgba(28, 39, 58, 0.2);
    backdrop-filter: blur(18px);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .nav-links {
    display: grid;
    justify-content: stretch;
    gap: 5px;
  }

  .nav-group {
    display: grid;
  }

  .nav-links a {
    min-height: 40px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 0.82rem;
    text-transform: none;
  }

  .submenu {
    position: static;
    display: grid;
    min-width: 0;
    gap: 3px;
    margin: 0 0 6px 10px;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .submenu a {
    min-height: 34px;
    padding-left: 12px;
    color: rgba(89, 102, 119, 0.86);
    font-size: 0.78rem;
  }

  .language-switch {
    align-self: stretch;
    justify-content: flex-end;
    margin-top: 4px;
    background: rgba(18, 25, 35, 0.035);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 82px;
  }

  .forensic-workbench {
    min-height: 0;
  }

  .forensic-terminal {
    min-height: 320px;
    aspect-ratio: auto;
  }

  .about-grid,
  .contact-grid,
  .professor-profile,
  .professor-section,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .professor-history-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .board-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    overflow-x: clip;
  }

  .page-enter {
    animation: mobilePageEnter 220ms ease-out;
  }

  @keyframes mobilePageEnter {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero,
  .section-block,
  .site-footer,
  .page-hero,
  .content-band,
  .loading-view,
  .subnav {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .site-header .nav-toggle {
    display: flex;
  }

  .page-hero {
    padding: 96px 0 18px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.6vw, 2.45rem);
    line-height: 1.12;
    text-wrap: auto;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .loading-view h1,
  .page-hero h1 {
    max-width: 340px;
    font-size: clamp(2.45rem, 12.5vw, 3.35rem);
    line-height: 1.08;
  }

  .subnav {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-bottom: 18px;
    padding: 0 0 10px;
    scrollbar-width: none;
  }

  .subnav::-webkit-scrollbar {
    display: none;
  }

  .subnav a {
    flex: 0 0 auto;
    min-height: 40px;
    border-radius: 10px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .content-band {
    padding-top: 22px;
    padding-bottom: 58px;
    overflow: clip;
  }

  .professor-page {
    margin-top: 78px;
    padding: 26px 24px 46px;
  }

  .hero-actions a {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .publication-item,
  .project-item {
    box-sizing: border-box;
    inline-size: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px 14px;
  }

  .publication-item p,
  .project-item p,
  .info-card p,
  .person-card p,
  .contact-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .publication-list,
  .publication-sections,
  .publication-section,
  .project-meta,
  .project-item > div,
  .publication-item > div,
  .info-card,
  .person-card,
  .contact-card {
    min-width: 0;
    inline-size: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .project-item p,
  .publication-item p,
  .project-meta,
  .tag-row {
    max-inline-size: 100%;
  }

  .tag-row {
    max-width: 100%;
    overflow: hidden;
  }

  .tag {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.35;
  }

  .pub-year {
    width: max-content;
    min-width: 72px;
    height: 38px;
    padding: 0 12px;
  }

  .forensic-workbench {
    min-height: auto;
  }

  .forensic-terminal {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .forensic-terminal::before {
    display: none;
  }

  .case-terminal {
    margin: 0;
    border: 1px solid rgba(4, 68, 124, 0.18);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92)),
      rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(28, 39, 58, 0.12);
  }

  .case-terminal-bar {
    min-width: 0;
    padding: 12px 13px;
    border-bottom-color: rgba(4, 68, 124, 0.14);
    border-radius: 11px 11px 0 0;
    background: rgba(255, 255, 255, 0.9);
  }

  .case-terminal-bar span {
    flex: 0 0 auto;
  }

  .case-terminal-bar strong {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .case-stream-lines {
    min-height: 230px;
    padding: 14px 13px;
    font-size: 0.74rem;
    line-height: 1.55;
    border-radius: 0 0 11px 11px;
  }

  .case-stream-line {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }

  .info-grid,
  .about-grid,
  .contact-grid {
    gap: 14px;
  }

  .info-card,
  .person-card,
  .contact-card,
  .empty-state {
    padding: 18px;
  }

  .person-photo {
    width: min(230px, 78%);
    margin-inline: auto;
  }

  .person-card h3,
  .info-card h3,
  .project-item h3,
  .publication-item h3 {
    font-size: 1.06rem;
    line-height: 1.36;
  }

  .project-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    overflow-wrap: anywhere;
    word-break: break-all;
    padding-bottom: 30px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #forensic-canvas {
    display: none;
  }

  .aurora {
    animation: none !important;
    transform: none !important;
  }

  .case-stream-text[data-typing="true"]::after {
    content: none;
  }
}
