:root {
  --bg: #f4f2ec;
  --bg-soft: #ece9e1;
  --surface: #fffefb;
  --surface-strong: #ffffff;
  --ink: #13282d;
  --ink-strong: #081a1f;
  --muted: #647279;
  --muted-strong: #42565d;
  --line: rgba(18, 49, 57, 0.14);
  --line-strong: rgba(18, 49, 57, 0.25);
  --accent: #0d7181;
  --accent-strong: #075361;
  --accent-soft: #dff0ee;
  --accent-wash: rgba(18, 133, 143, 0.1);
  --warm: #e87452;
  --warm-soft: #fde7dd;
  --dark: #0b2931;
  --dark-2: #123d47;
  --shadow-sm: 0 10px 30px rgba(16, 38, 44, 0.07);
  --shadow-md: 0 22px 70px rgba(16, 38, 44, 0.12);
  --shadow-lg: 0 34px 110px rgba(7, 29, 35, 0.2);
  --radius-sm: 0.9rem;
  --radius-md: 1.35rem;
  --radius-lg: 2rem;
  --radius-xl: 2.75rem;
  --container: 1190px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
}

html[data-theme="dark"] {
  --bg: #0c171b;
  --bg-soft: #111f24;
  --surface: #132329;
  --surface-strong: #182b31;
  --ink: #dbe9e8;
  --ink-strong: #f5fbfa;
  --muted: #98aaad;
  --muted-strong: #c1d0d0;
  --line: rgba(210, 235, 233, 0.12);
  --line-strong: rgba(210, 235, 233, 0.23);
  --accent: #63c3c6;
  --accent-strong: #92e2df;
  --accent-soft: #19383d;
  --accent-wash: rgba(76, 190, 194, 0.12);
  --warm: #ff9a7b;
  --warm-soft: #3a2925;
  --dark: #081116;
  --dark-2: #0f3038;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 22px 70px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 34px 110px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--ink-strong);
  background: var(--accent-soft);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3,
h4 {
  color: var(--ink-strong);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 8.4vw, 7.65rem);
  line-height: 0.92;
  letter-spacing: -0.068em;
}

h1 span {
  display: inline-block;
  margin-left: 0.15em;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.29em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 0.45em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 650;
}

h4 {
  margin-bottom: 0.25rem;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p:last-child {
  margin-bottom: 0;
}

button,
.button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--dark);
  border-radius: 0.6rem;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.65rem;
  height: 1px;
  background: currentColor;
  content: "";
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 5.25rem;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(11, 33, 39, 0.04);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--ink-strong);
  font-weight: 740;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  color: #f5fffe;
  background: var(--dark);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .brand-mark {
  color: #092025;
  background: var(--accent);
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.65rem 0.82rem;
  color: var(--muted-strong);
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 620;
  transition: color 160ms ease, background 160ms ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--ink-strong);
  background: var(--accent-wash);
}

.nav-list .nav-cv {
  padding-inline: 1rem;
  margin-left: 0.35rem;
  color: #f7ffff;
  background: var(--dark);
}

.nav-list .nav-cv:hover {
  color: #fff;
  background: var(--accent-strong);
}

.theme-toggle {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  margin-left: 0.8rem;
  place-items: center;
  color: var(--ink-strong);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: rotate(8deg);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html[data-theme="light"] .moon-icon,
html[data-theme="dark"] .sun-icon {
  display: none;
}

.menu-toggle {
  display: none;
}

/* Hero */
.section-shell {
  position: relative;
  min-height: calc(100vh - 5.25rem);
  padding: clamp(4rem, 8vw, 7.2rem) 0 4.5rem;
  overflow: hidden;
}

.section-shell::before,
.section-shell::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  filter: blur(1px);
}

.section-shell::before {
  top: -18rem;
  right: -9rem;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 66%);
}

.section-shell::after {
  bottom: -25rem;
  left: -14rem;
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--warm) 10%, transparent), transparent 66%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.72fr);
  gap: clamp(3.5rem, 8vw, 7.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 48rem;
}

.hero-role {
  max-width: 44rem;
  margin-bottom: 1.25rem;
  color: var(--ink-strong);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.hero-intro {
  max-width: 44rem;
  margin-bottom: 1.55rem;
  color: var(--muted-strong);
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
}

.current-role {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 43rem;
  padding-top: 1.4rem;
  margin-bottom: 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}

.status-dot {
  position: relative;
  flex: 0 0 auto;
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.45rem;
  background: #2f9b70;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 155, 112, 0.12);
}

.status-dot::after {
  position: absolute;
  inset: 0;
  border: 1px solid #2f9b70;
  border-radius: inherit;
  content: "";
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.75; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(2.25); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.82rem 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 720;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: #f6ffff;
  background: var(--dark);
  box-shadow: 0 12px 30px rgba(10, 41, 49, 0.18);
}

.button-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 16px 40px rgba(10, 81, 94, 0.22);
}

.button-secondary {
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.profile-links a {
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 680;
}

.profile-links a span {
  display: inline-block;
  margin-left: 0.12rem;
  color: var(--accent);
  transition: transform 160ms ease;
}

.profile-links a:hover {
  color: var(--accent-strong);
}

.profile-links a:hover span {
  transform: translate(2px, -2px);
}

.hero-visual {
  position: relative;
  width: min(100%, 29rem);
  justify-self: end;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 0.78;
  padding: 0.6rem;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.portrait-frame::before {
  position: absolute;
  z-index: 2;
  inset: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: calc(var(--radius-xl) - 0.5rem);
  pointer-events: none;
  content: "";
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 51%;
  border-radius: calc(var(--radius-xl) - 0.5rem);
  filter: saturate(0.83) contrast(1.02);
}

.portrait-wash {
  position: absolute;
  inset: 0.6rem;
  background: linear-gradient(180deg, rgba(5, 30, 36, 0.01) 40%, rgba(4, 28, 34, 0.24) 100%);
  border-radius: calc(var(--radius-xl) - 0.5rem);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  z-index: 4;
  min-width: 10rem;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 60%, var(--line));
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(15px) saturate(130%);
  backdrop-filter: blur(15px) saturate(130%);
}

.floating-card-top {
  top: 9%;
  left: -3.9rem;
}

.floating-card-bottom {
  right: -2rem;
  bottom: 9%;
}

.floating-card span,
.floating-card strong {
  display: block;
}

.floating-label {
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-card strong {
  color: var(--ink-strong);
  font-size: 0.92rem;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::after {
  position: absolute;
  width: 0.68rem;
  height: 0.68rem;
  background: var(--warm);
  border: 4px solid var(--bg);
  border-radius: 50%;
  content: "";
}

.orbit-one {
  top: -2.5rem;
  right: -4.7rem;
  width: 13rem;
  height: 13rem;
}

.orbit-one::after {
  top: 50%;
  right: -0.45rem;
}

.orbit-two {
  bottom: -3.5rem;
  left: -4rem;
  width: 10rem;
  height: 10rem;
}

.orbit-two::after {
  top: 0.7rem;
  left: 1rem;
  background: var(--accent);
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4rem, 8vw, 7rem);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.45rem 1.65rem;
  align-items: center;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric strong {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.metric span {
  max-width: 13rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

/* About and news */
.about-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 8rem;
}

.section-heading h2 {
  max-width: 9.5em;
}

.about-copy {
  max-width: 49rem;
  padding-top: 1.3rem;
}

.about-copy p {
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.about-copy .lede {
  margin-bottom: 1.3rem;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.55vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.7rem;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.focus-list span,
.tag-row span {
  padding: 0.5rem 0.74rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.news-panel {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(5rem, 9vw, 8rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.news-title h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.news-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list li:first-child {
  padding-top: 0;
}

.news-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-list time {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.news-list p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.93rem;
}

.news-list strong {
  color: var(--ink-strong);
}

/* Shared section heading */
.section-header {
  display: grid;
  grid-template-columns: 1fr minmax(17rem, 30rem);
  gap: 2.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: end;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header > p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-link {
  justify-self: end;
  margin-bottom: 0.6rem;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 720;
}

.section-link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.section-link:hover span {
  transform: translate(2px, -2px);
}

/* Research */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.research-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.research-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.research-card-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  grid-column: 1 / -1;
}

.research-visual {
  position: relative;
  min-height: 20.5rem;
  overflow: hidden;
  color: #eafdfb;
  background: var(--dark);
}

.research-card:not(.research-card-wide) .research-visual {
  min-height: 17.5rem;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 93%);
}

.visual-kicker {
  position: absolute;
  z-index: 3;
  top: 1.35rem;
  left: 1.45rem;
  color: rgba(232, 255, 252, 0.68);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visual-stat {
  position: absolute;
  z-index: 5;
  right: 1.2rem;
  bottom: 1.2rem;
  min-width: 7rem;
  padding: 0.78rem 0.9rem;
  background: rgba(5, 28, 34, 0.75);
  border: 1px solid rgba(217, 252, 250, 0.18);
  border-radius: 0.9rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.visual-stat strong,
.visual-stat span {
  display: block;
}

.visual-stat strong {
  color: #f6fffe;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.visual-stat span {
  margin-top: 0.25rem;
  color: rgba(228, 253, 250, 0.65);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kv-visual {
  display: flex;
  padding: 4rem 1.6rem 2rem;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 75% 20%, rgba(37, 178, 183, 0.23), transparent 35%), linear-gradient(145deg, #0a2730, #0e3640 65%, #0b222a);
}

.kv-lane {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr) auto;
  gap: 0;
  align-items: center;
}

.kv-lane-bottom {
  width: 76%;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr) auto;
  margin-top: 2.8rem;
}

.kv-node {
  position: relative;
  z-index: 2;
  padding: 0.65rem 0.72rem;
  color: #dff9f6;
  background: rgba(10, 58, 68, 0.9);
  border: 1px solid rgba(188, 238, 235, 0.23);
  border-radius: 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.kv-node.active {
  color: #062a30;
  background: #8be0da;
  border-color: #8be0da;
  box-shadow: 0 0 0 6px rgba(139, 224, 218, 0.1), 0 10px 35px rgba(32, 202, 192, 0.18);
}

.kv-node.join {
  color: #fff9f6;
  background: var(--warm);
  border-color: var(--warm);
}

.kv-node.subtle {
  color: rgba(226, 250, 248, 0.72);
  background: rgba(9, 43, 51, 0.6);
  border-style: dashed;
}

.kv-line {
  position: relative;
  height: 1px;
  background: rgba(198, 242, 239, 0.36);
}

.kv-line::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0.35rem;
  height: 0.35rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: rgba(198, 242, 239, 0.55);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.kv-line.accent {
  background: linear-gradient(90deg, #8be0da, var(--warm));
}

.kv-line.moving {
  overflow: hidden;
  background: rgba(198, 242, 239, 0.18);
}

.kv-line.moving::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(139, 224, 218, 0.9), transparent);
  content: "";
  animation: flow 2.1s linear infinite;
}

@keyframes flow {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.kv-arrow {
  color: var(--warm);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.beta-visual {
  padding: 4rem 1.4rem 1.7rem;
  background: radial-gradient(circle at 18% 10%, rgba(232, 116, 82, 0.25), transparent 36%), linear-gradient(145deg, #142830, #0d3941);
}

.reward-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.76rem;
  width: calc(100% - 6.2rem);
  margin-top: 0.7rem;
}

.reward-row {
  display: grid;
  grid-template-columns: 4.7rem 1fr 1.5rem;
  gap: 0.65rem;
  align-items: center;
  color: rgba(231, 252, 249, 0.78);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 650;
}

.reward-row i {
  position: relative;
  height: 0.48rem;
  overflow: hidden;
  background: rgba(210, 247, 243, 0.12);
  border-radius: 999px;
}

.reward-row i::after {
  display: block;
  width: var(--weight);
  height: 100%;
  background: linear-gradient(90deg, #65d5cf, #e87452);
  border-radius: inherit;
  content: "";
  box-shadow: 0 0 17px rgba(101, 213, 207, 0.32);
}

.reward-row b {
  color: #8be0da;
  font-size: 0.7rem;
  font-weight: 720;
}

.simplex-pill {
  position: absolute;
  z-index: 3;
  left: 1.4rem;
  bottom: 1.5rem;
  padding: 0.55rem 0.72rem;
  color: #ffe6dd;
  background: rgba(232, 116, 82, 0.14);
  border: 1px solid rgba(255, 173, 148, 0.24);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 650;
}

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

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 28, 37, 0.03), rgba(4, 24, 31, 0.75));
}

.market-chart {
  position: absolute;
  z-index: 3;
  right: 1.25rem;
  bottom: 4.6rem;
  left: 1.25rem;
  height: 5.2rem;
  opacity: 0.92;
}

.market-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.market-chart path {
  fill: none;
  stroke: #f58b67;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 5px 10px rgba(245, 139, 103, 0.3));
}

.research-content {
  display: flex;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  flex: 1;
  flex-direction: column;
}

.card-meta {
  display: flex;
  gap: 0.6rem 1rem;
  margin-bottom: 1rem;
  justify-content: space-between;
  color: var(--accent-strong);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.card-meta span:last-child {
  color: var(--muted);
  text-align: right;
}

.research-content h3 {
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
}

.research-card-wide .research-content h3 {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
}

.research-content > p {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.result-list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0.85rem 0 1.2rem;
  color: var(--muted-strong);
  list-style: none;
}

.result-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.83rem;
}

.result-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--warm);
  border-radius: 50%;
  content: "";
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: auto;
  padding-top: 1rem;
}

.tag-row span {
  padding: 0.43rem 0.62rem;
  font-size: 0.66rem;
}

.text-link,
.muted-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.3rem;
  color: var(--accent-strong) !important;
  font-size: 0.82rem !important;
  font-weight: 760;
}

.text-link span {
  margin-left: 0.25rem;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.muted-link {
  color: var(--muted) !important;
  font-weight: 650;
}

/* Publications */
.publication-list {
  border-top: 1px solid var(--line-strong);
}

.publication {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.25rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line-strong);
  align-items: center;
}

.publication-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.publication-thumb::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.publication-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 450ms ease;
}

.publication:nth-child(1) .publication-thumb img {
  object-position: 78% 50%;
}

.publication-thumb:hover img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.035);
}

.venue-badge {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  padding: 0.52rem 0.7rem;
  color: #f5ffff;
  background: rgba(6, 31, 38, 0.78);
  border: 1px solid rgba(226, 252, 249, 0.2);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.publication-type {
  margin-bottom: 0.65rem;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-body h3 {
  max-width: 28em;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.2;
}

.authors {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.authors strong {
  color: var(--ink-strong);
  font-weight: 760;
}

.publication-summary {
  max-width: 48rem;
  margin-bottom: 1.2rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.paper-links {
  display: flex;
  gap: 1rem;
}

.paper-links a {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 760;
}

.paper-links a span {
  display: inline-block;
  transition: transform 160ms ease;
}

.paper-links a:hover span {
  transform: translate(2px, -2px);
}

.spectrum-thumb {
  background: radial-gradient(circle at 15% 15%, rgba(81, 189, 190, 0.22), transparent 30%), linear-gradient(145deg, #0c2831, #102229);
}

.spectrum-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 34px;
}

.spectrum-svg {
  position: absolute;
  right: 1rem;
  bottom: 1.1rem;
  left: 1rem;
  width: calc(100% - 2rem);
  height: 67%;
  overflow: visible;
}

.spectrum-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spectrum-a { stroke: #62d0cc; }
.spectrum-b { stroke: #ef8e6e; opacity: 0.88; }
.spectrum-c { stroke: #f2d27a; opacity: 0.72; }

.spectrum-label {
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  color: rgba(227, 252, 249, 0.45);
  font-size: 0.58rem;
  font-weight: 650;
}

.rank-pills {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  gap: 0.28rem;
}

.rank-pills span {
  padding: 0.35rem 0.42rem;
  color: rgba(228, 252, 249, 0.68);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  font-size: 0.55rem;
  font-weight: 700;
}

/* Experience */
.background-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.25rem;
  align-items: start;
}

.timeline-panel {
  padding: clamp(1.5rem, 3.5vw, 2.7rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0.25rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
}

.panel-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.85rem 1fr;
  gap: 1rem;
  padding: 1.55rem 0;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
}

.timeline-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: var(--muted-strong);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.timeline-item.current .timeline-mark {
  color: #f3ffff;
  background: var(--dark);
  border-color: var(--dark);
}

html[data-theme="dark"] .timeline-item.current .timeline-mark {
  color: #092329;
  background: var(--accent);
  border-color: var(--accent);
}

.timeline-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.timeline-top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.organization {
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 760;
}

.timeline-item > div:last-child > p:last-child {
  color: var(--muted);
  font-size: 0.82rem;
}

.education-timeline .timeline-item:last-child {
  padding-bottom: 1.2rem;
}

.skills-block {
  padding-top: 1.8rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.skills-block h3 {
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.skill-group {
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.skill-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.skill-group span {
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-weight: 760;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Contact and footer */
.contact-section {
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 3rem;
  padding: clamp(2.2rem, 6vw, 5.5rem);
  overflow: hidden;
  color: rgba(229, 247, 246, 0.78);
  background: radial-gradient(circle at 88% 10%, rgba(70, 190, 193, 0.2), transparent 32%), linear-gradient(135deg, var(--dark), var(--dark-2));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  align-items: end;
}

.contact-card::before {
  position: absolute;
  top: -8rem;
  right: 5rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(178, 236, 233, 0.12);
  border-radius: 50%;
  content: "";
}

.contact-card::after {
  position: absolute;
  right: 2.5rem;
  bottom: -9rem;
  width: 17rem;
  height: 17rem;
  border: 1px solid rgba(232, 116, 82, 0.25);
  border-radius: 50%;
  content: "";
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

.contact-card .eyebrow {
  color: #81d8d4;
}

.contact-card h2 {
  max-width: 11em;
  margin-bottom: 1rem;
  color: #f3ffff;
  font-size: clamp(2.5rem, 5.1vw, 4.8rem);
}

.contact-card p:last-child {
  max-width: 44rem;
  font-size: 0.94rem;
}

.contact-actions {
  display: flex;
  gap: 0.7rem;
  flex-direction: column;
  align-items: stretch;
}

.button-light {
  color: #0b2a30;
  background: #e7fbf8;
}

.button-light:hover {
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.button-ghost-light {
  color: #e5f8f6;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(225, 249, 247, 0.25);
}

.button-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(225, 249, 247, 0.5);
}

.site-footer {
  padding: 3.25rem 0 2.4rem;
  background: color-mix(in srgb, var(--bg-soft) 65%, var(--bg));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  margin-bottom: 0.85rem;
}

.footer-grid > div:first-child p {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin: 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

/* Reveal motion */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.62fr);
    gap: 4rem;
  }

  .floating-card-top {
    left: -2rem;
  }

  .floating-card-bottom {
    right: -1rem;
  }

  .metric {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .research-card-wide {
    grid-template-columns: 1fr;
  }

  .research-card-wide .research-visual {
    min-height: 19rem;
  }

  .publication {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
    gap: 2.4rem;
  }

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

@media (max-width: 840px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .site-header {
    height: 4.6rem;
  }

  html {
    scroll-padding-top: 4.8rem;
  }

  .menu-toggle {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    place-content: center;
    gap: 0.36rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 1rem;
    height: 1px;
    background: var(--ink-strong);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(0.2rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-0.2rem) rotate(-45deg);
  }

  .nav-list {
    position: fixed;
    z-index: 110;
    top: 5.2rem;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
    visibility: hidden;
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.98);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .nav-list.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .nav-list a {
    padding: 0.9rem 1rem;
  }

  .nav-list .nav-cv {
    margin: 0.25rem 0 0;
    text-align: center;
  }

  .theme-toggle {
    margin-left: 0.5rem;
  }

  .section-shell {
    min-height: 0;
    padding-top: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    width: min(86%, 28rem);
    margin-right: 3%;
    justify-self: center;
  }

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

  .metric {
    grid-template-columns: 8.5rem 1fr;
  }

  .metric + .metric {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading {
    position: static;
  }

  .about-copy {
    padding-top: 0;
  }

  .news-panel {
    grid-template-columns: 1fr;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-link {
    justify-self: start;
    margin: 0;
  }

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

  .research-card-wide {
    grid-column: auto;
  }

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

  .publication-thumb {
    max-width: 36rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    max-width: 27rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  h1 span {
    display: block;
    margin: 0.7rem 0 0;
    font-size: 0.24em;
    vertical-align: initial;
  }

  h2 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .brand-name {
    display: none;
  }

  .hero-role {
    font-size: 1.28rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding-inline: 1rem;
  }

  .profile-links {
    gap: 0.8rem 1rem;
  }

  .hero-visual {
    width: calc(100% - 1.5rem);
    margin: 0;
  }

  .floating-card {
    min-width: 8.7rem;
    padding: 0.7rem 0.8rem;
  }

  .floating-card-top {
    top: 8%;
    left: -0.75rem;
  }

  .floating-card-bottom {
    right: -0.75rem;
  }

  .orbit-one {
    right: -3.2rem;
  }

  .metric {
    grid-template-columns: 6.7rem 1fr;
    padding: 1.2rem;
  }

  .metric span {
    font-size: 0.73rem;
  }

  .news-panel {
    padding: 1.4rem;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .research-card,
  .timeline-panel {
    border-radius: 1.35rem;
  }

  .research-visual,
  .research-card:not(.research-card-wide) .research-visual,
  .research-card-wide .research-visual {
    min-height: 16.5rem;
  }

  .kv-visual {
    padding-inline: 1rem;
  }

  .kv-lane {
    grid-template-columns: auto 0.6rem auto 0.6rem auto;
  }

  .kv-lane .kv-node:nth-of-type(4),
  .kv-lane .kv-line:nth-of-type(3) {
    display: none;
  }

  .kv-node {
    padding: 0.55rem 0.42rem;
    font-size: 0.55rem;
  }

  .kv-lane-bottom {
    width: 90%;
    grid-template-columns: auto 0.8rem auto 0.8rem auto;
  }

  .reward-stack {
    width: calc(100% - 4.7rem);
  }

  .reward-row {
    grid-template-columns: 4rem 1fr 1.2rem;
    gap: 0.45rem;
  }

  .card-meta {
    display: grid;
  }

  .card-meta span:last-child {
    text-align: left;
  }

  .publication {
    padding: 2.5rem 0;
  }

  .timeline-panel {
    padding: 1.3rem;
  }

  .timeline-item {
    grid-template-columns: 2.35rem 1fr;
    gap: 0.8rem;
  }

  .timeline-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .timeline-top {
    display: block;
  }

  .timeline-top time {
    display: block;
    margin-top: 0.25rem;
  }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-card {
    padding: 2rem 1.35rem;
    border-radius: 1.7rem;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
