:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1f2328;
  --muted: #656d76;
  --line: #0E98BA;
  --accent: #00008B;
  --accent-2: #00008B;
  --accent-3: #0E98BA;
  --soft: #0E98BA;
  --shadow: 0 18px 55px rgba(0, 0, 139, 0.12);
  --hover-surface: rgba(14, 152, 186, 0.34);
  --glow: rgba(14, 152, 186, 0.55);
}

:root.dark {
  color-scheme: dark;
  --bg: #050816;
  --paper: #090e24;
  --ink: #f7fbff;
  --muted: #b8c6d8;
  --line: #0E98BA;
  --accent: #0E98BA;
  --accent-2: #0E98BA;
  --accent-3: #0E98BA;
  --soft: #00008B;
  --shadow: 0 18px 55px rgba(0, 0, 139, 0.34);
  --hover-surface: rgba(14, 152, 186, 0.14);
  --glow: rgba(14, 152, 186, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, var(--glow), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--paper));
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

a:hover {
  color: var(--accent-2);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.page {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.site-header {
  padding-top: 10px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  position: relative;
  color: var(--muted);
  line-height: 1.8;
}

.top-nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.top-nav a:hover {
  color: var(--accent-2);
  text-decoration: none;
  transform: translateY(-1px);
}

.top-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent-2);
  box-shadow: 0 8px 24px rgba(0, 0, 139, 0.24);
  transform: translateY(-2px) rotate(8deg);
}

.theme-icon {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: inset -5px -3px 0 var(--paper);
}

:root.dark .theme-icon {
  box-shadow: inset -5px -3px 0 var(--paper);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 52px;
  align-items: center;
  padding: 76px 0 60px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 9vw, 76px);
  line-height: 0.98;
  font-weight: 600;
}

h2 {
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.3;
}

.lead {
  max-width: 650px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.intro-copy p:not(.eyebrow):not(.lead) {
  max-width: 660px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, var(--soft));
  color: var(--ink);
  font-size: 14px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.links a:hover {
  border-color: color-mix(in srgb, var(--accent-2) 78%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 18%, var(--paper));
  box-shadow: 0 10px 24px rgba(0, 0, 139, 0.2);
  color: var(--accent-2);
  text-decoration: none;
  transform: translateY(-3px);
}

.links .icon-link {
  width: 36px;
  padding: 5px;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-visual {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.portrait {
  display: block;
  width: 220px;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: 50% 34%;
  border: 3px solid var(--accent-2);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait:hover {
  border-color: color-mix(in srgb, var(--accent-2) 76%, var(--accent));
  box-shadow: 0 24px 65px rgba(0, 0, 139, 0.22);
  transform: translateY(-5px) rotate(1deg);
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.research-tags span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.research-tags span:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.section {
  padding: 30px 0 36px;
}

.timeline,
.stack,
.research-list {
  display: grid;
  gap: 18px;
}

.credential-list {
  display: grid;
  gap: 30px;
  max-width: 820px;
}

.credential {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.credential h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.38;
}

.credential p {
  margin: 0 0 6px;
  color: var(--muted);
}

.credential .institution {
  color: var(--ink);
  font-weight: 700;
}

.credential .period {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  font-size: 14px;
  font-style: italic;
}

.mark {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 139, 0.12);
}

.mark-umd {
  color: var(--accent-2);
  background:
    linear-gradient(135deg, rgba(14, 152, 186, 0.7), transparent 50%),
    var(--paper);
}

.mark-swell {
  color: var(--accent-2);
}

.mark-kusa {
  color: var(--accent-2);
  background:
    linear-gradient(135deg, rgba(14, 152, 186, 0.65), transparent 50%),
    var(--paper);
}

.mark-dev {
  border-radius: 8px;
  color: var(--accent);
}

.mark-service {
  color: var(--accent-3);
  background:
    linear-gradient(135deg, rgba(0, 0, 139, 0.18), transparent 50%),
    var(--paper);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  padding: 11px 12px;
  border-radius: 8px;
  margin: -11px -12px;
  transition: background-color 180ms ease, transform 200ms ease;
}

.timeline-item:hover {
  background: var(--hover-surface);
  transform: translateX(4px);
}

.timeline-item time {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
}

.timeline-item p,
.entry p,
.research-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.entry {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: 0;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 7px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.compact {
  padding-bottom: 0;
}

.research-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.research-card:last-child {
  border-bottom: 0;
}

.thumb {
  display: grid;
  place-items: center;
  width: 128px;
  aspect-ratio: 1.18;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  overflow: hidden;
}

.thumb-kv {
  background:
    linear-gradient(90deg, rgba(0, 0, 139, 0.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 139, 0.24) 1px, transparent 1px),
    color-mix(in srgb, var(--accent-2) 16%, var(--paper));
  background-size: 16px 16px;
}

.thumb-tiamat {
  background:
    linear-gradient(135deg, rgba(14, 152, 186, 0.55), transparent 42%),
    linear-gradient(45deg, transparent 36%, rgba(0, 0, 139, 0.24) 36% 54%, transparent 54%),
    color-mix(in srgb, var(--accent-3) 32%, var(--paper));
}

.thumb-morse {
  background:
    radial-gradient(circle at 35% 35%, rgba(0, 0, 139, 0.46), transparent 24%),
    radial-gradient(circle at 68% 63%, rgba(14, 152, 186, 0.62), transparent 27%),
    var(--soft);
}

.thumb-robot {
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(0, 0, 139, 0.26) 45% 48%, transparent 48%),
    color-mix(in srgb, var(--accent) 16%, var(--paper));
}

.venue {
  margin-bottom: 5px;
  color: var(--accent-2) !important;
  font-size: 13px;
  font-weight: 700;
}

.authors {
  margin-bottom: 8px !important;
  font-size: 14px;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 940px);
    padding-top: 20px;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 13px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 52px 0 34px;
  }

  .profile-visual {
    justify-items: start;
  }

  .portrait {
    width: min(220px, 70vw);
  }

  .timeline-item,
  .research-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .credential {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .mark {
    width: 56px;
    font-size: 12px;
  }

  .thumb {
    width: 100%;
    max-width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
