:root {
  color-scheme: dark;
  --paper: #000;
  --surface: #101214;
  --surface-soft: #15181c;
  --glass: rgba(20, 23, 27, 0.38);
  --glass-strong: rgba(28, 31, 36, 0.48);
  --glass-hover: rgba(35, 39, 45, 0.62);
  --chrome: rgba(12, 14, 16, 0.38);
  --cell: rgba(255, 255, 255, 0.035);
  --journal-bg: rgba(31, 35, 41, 0.78);
  --quote-bg: rgba(29, 155, 240, 0.08);
  --legacy-header: rgba(10, 12, 14, 0.86);
  --ink: #f5f7f9;
  --muted: #a8b3bd;
  --subtle: #75808a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #1d9bf0;
  --accent-deep: #1284d6;
  --accent-soft: rgba(29, 155, 240, 0.14);
  --clay: #8abce7;
  --gold: #6ec7ff;
  --mist: #20262d;
  --pulse: #ff7aa2;
  --link-hover: #6ec7ff;
  --avatar-line: rgba(255, 255, 255, 0.14);
  --radius-card: 30px;
  --radius-panel: 36px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  --glass-shadow: 0 24px 72px rgba(0, 0, 0, 0.46),
    0 8px 28px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 8px rgba(0, 0, 0, 0.06);
  --glass-shadow-lift: 0 34px 96px rgba(0, 0, 0, 0.56),
    0 14px 36px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 8px rgba(0, 0, 0, 0.08);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    Inter, "Segoe UI", Arial, sans-serif;
  --font-text: var(--font-ui);
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #fff;
  --surface: #f7f9fa;
  --surface-soft: #eff3f4;
  --glass: rgba(255, 255, 255, 0.44);
  --glass-strong: rgba(255, 255, 255, 0.56);
  --glass-hover: rgba(247, 249, 250, 0.78);
  --chrome: rgba(255, 255, 255, 0.48);
  --cell: rgba(15, 20, 25, 0.035);
  --journal-bg: rgba(247, 249, 250, 0.94);
  --quote-bg: rgba(29, 155, 240, 0.1);
  --legacy-header: rgba(255, 255, 255, 0.9);
  --ink: #0f1419;
  --muted: #536471;
  --subtle: #657786;
  --line: rgba(15, 20, 25, 0.12);
  --line-strong: rgba(15, 20, 25, 0.2);
  --accent: #1d9bf0;
  --accent-deep: #0f7ec8;
  --accent-soft: rgba(29, 155, 240, 0.12);
  --clay: #3f7fac;
  --gold: #0f7ec8;
  --mist: #e6eef5;
  --pulse: #c74368;
  --link-hover: #0f7ec8;
  --avatar-line: rgba(15, 20, 25, 0.12);
  --shadow: 0 24px 70px rgba(15, 20, 25, 0.1);
  --glass-shadow: 0 24px 70px rgba(15, 20, 25, 0.1),
    0 8px 24px rgba(15, 20, 25, 0.08),
    inset 0 0 0 1px rgba(15, 20, 25, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(15, 20, 25, 0.05),
    inset 0 0 0 8px rgba(255, 255, 255, 0.7);
  --glass-shadow-lift: 0 32px 88px rgba(15, 20, 25, 0.14),
    0 12px 34px rgba(15, 20, 25, 0.1),
    inset 0 0 0 1px rgba(15, 20, 25, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(15, 20, 25, 0.07),
    inset 0 0 0 8px rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.58;
  background: var(--paper);
  transition: background-color 220ms ease, color 220ms ease;
}

a {
  color: inherit;
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

pre {
  overflow-x: auto;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-family: var(--font-ui);
  font-size: clamp(3.1rem, 5.6vw, 5.05rem);
  font-weight: 790;
  line-height: 0.96;
}

.hero-name-primary,
.hero-name-secondary {
  display: inline;
}

.hero-name-secondary {
  margin-left: 0.14em;
}

h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.45rem, 2.1vw, 2.3rem);
  font-weight: 760;
  line-height: 1.12;
}

h3 {
  font-family: var(--font-ui);
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
  font-weight: 740;
  line-height: 1.18;
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--chrome);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34),
    0 4px 14px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 6px rgba(0, 0, 0, 0.04);
}

.brand,
.site-nav,
.hero-actions,
.link-row,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--accent);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.42);
  box-shadow: var(--glass-shadow);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease,
    background-color 180ms ease;
}
.brand:hover .brand-mark {
  border-color: rgba(29, 155, 240, 0.46);
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-lift);
  transform: translateY(-1px);
}

.brand-text {
  white-space: nowrap;
  transition: color 180ms ease;
}
.brand:hover .brand-text {
  color: var(--accent);
}

.site-nav {
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.96rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  position: relative;
  padding: 7px 10px;
  border-radius: 999px;
}

.site-nav a,
.button,
.link-row a,
.contact-links a,
.banner a,
.article-list a,
.header a,
footer a,
.categories a,
.active a,
.comments a {
  text-decoration: none;
}

.site-nav a:hover,
.link-row a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.site-nav a:hover {
  background: rgba(29, 155, 240, 0.12);
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.18);
}

.theme-toggle {
  width: 88px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 720;
  cursor: pointer;
  position: relative;
  transition: border-color 180ms ease, background-color 180ms ease,
    color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(29, 155, 240, 0.46);
  background: var(--glass-hover);
  transform: translateY(-1px);
}

.theme-toggle-knob {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(29, 155, 240, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  z-index: 2;
  transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] .theme-toggle-knob {
  left: 52px;
}

.theme-toggle-text {
  min-width: 34px;
  text-align: center;
  z-index: 1;
  transition: margin 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 22px;
  margin-right: 0;
}

:root[data-theme="light"] .theme-toggle-text {
  margin-left: 0;
  margin-right: 22px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after {
  opacity: 0.58;
  transform: scaleX(1);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.38fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding: 46px 0 84px;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow,
.section-label,
.publication-status,
.work-meta,
.field-card span {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.62;
}

.identity-strip {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.34);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.identity-strip div {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.identity-strip div:last-child {
  border-right: none;
}

.identity-strip dt,
.identity-strip dd {
  margin: 0;
}

.identity-strip dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.identity-strip dd {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.24;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  font-weight: 720;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease,
    background-color 180ms ease;
}

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 40px rgba(29, 155, 240, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.button.quiet {
  color: var(--muted);
}

.button:hover {
  border-color: rgba(29, 155, 240, 0.52);
  background: var(--glass-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.button.primary:hover {
  color: var(--ink);
}

.lab-console,
.profile-panel {
  align-self: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.42);
  box-shadow: var(--glass-shadow);
}

.lab-console {
  display: grid;
  gap: 12px;
}

.avatar {
  width: 100%;
  aspect-ratio: 1.04;
  display: block;
  border: 1px solid var(--avatar-line);
  border-radius: calc(var(--radius-card) - 6px);
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--cell);
  font-size: 0.82rem;
  font-weight: 700;
}

.leader-badge {
  display: grid;
  gap: 8px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.leader-badge span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leader-badge strong {
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.2;
}

.leader-badge small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
  line-height: 1.35;
}

.section {
  scroll-margin-top: 104px;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 960px;
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.section-heading.compact {
  margin-bottom: 0;
}

.crew-heading {
  margin-bottom: 24px;
}

.crew-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

.section-link {
  width: fit-content;
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
}

.signature {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.signature p:not(.section-label) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-group-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-group-label:first-child {
  margin-top: 0;
}

.work-group-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.38);
  box-shadow: var(--glass-shadow);
}

.work-item.highlight {
  border-color: rgba(29, 155, 240, 0.32);
  background: var(--glass-strong);
}

.work-meta {
  display: grid;
  gap: 8px;
  align-content: start;
  color: var(--clay);
}

.work-meta span:last-child {
  color: var(--subtle);
}

.publication-status {
  color: var(--gold);
}

.work-content .authors,
.work-content p {
  margin: 0;
}

.work-content .authors {
  margin: 10px 0 14px;
  color: var(--ink);
  font-weight: 720;
}

.work-content p:not(.publication-status):not(.authors) {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.62;
}

.link-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.link-row a {
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 720;
}

.project-links a {
  display: inline-block;
}

.link-row a:hover,
.post-card a:hover,
.section-link:hover {
  color: var(--link-hover);
}

.research-grid .section-heading {
  margin-bottom: 28px;
}

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

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

.crew-card {
  min-height: 260px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.38);
  box-shadow: var(--glass-shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.crew-card.featured {
  grid-column: span 3;
  border-color: rgba(29, 155, 240, 0.34);
  background: var(--glass-strong);
}

.crew-card:nth-child(2) {
  grid-column: span 3;
}

.crew-card h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
}

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

.crew-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--cell);
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.crew-card:hover .crew-avatar {
  animation: avatar-float 2.8s ease-in-out infinite;
}

.crew-card p {
  margin: 0;
}

.crew-card > p:not(.crew-role) {
  color: var(--muted);
  line-height: 1.6;
}

.crew-role {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crew-card:hover {
  border-color: rgba(29, 155, 240, 0.34);
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-lift);
  transform: translateY(-2px);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  list-style: none;
  box-shadow: var(--glass-shadow);
}

.workflow-steps li {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
  background: var(--cell);
}

.workflow-steps span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.workflow-steps h3 {
  font-size: 1.18rem;
}

.workflow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.54;
}

@keyframes avatar-drift {
  0%,
  100% {
    transform: translate3d(-2px, -1px, 0) scale(1);
  }

  50% {
    transform: translate3d(3px, 2px, 0) scale(1.04);
  }
}

@keyframes avatar-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.field-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.38);
  box-shadow: var(--glass-shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.field-card span {
  color: var(--clay);
}

.field-card p {
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.field-card:hover,
.work-item:hover,
.post-card:hover {
  border-color: rgba(29, 155, 240, 0.34);
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-lift);
  transform: translateY(-2px);
}

.contact-section {
  padding-bottom: 54px;
}

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

.post-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.38);
  box-shadow: var(--glass-shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.journal-card {
  background: var(--journal-bg);
}

.post-type {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card p:not(.post-type) {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.journal-card h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.58rem);
  font-weight: 700;
}

.journal-card .post-type {
  color: var(--pulse);
}

.journal-card p:not(.post-type) {
  color: var(--muted);
}

.post-card a {
  width: fit-content;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.contact-button {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.38);
  box-shadow: var(--glass-shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.contact-button:hover {
  border-color: rgba(29, 155, 240, 0.38);
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-lift);
  transform: translateY(-1px);
}

.contact-button span {
  font-weight: 760;
}

.contact-button small {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.contact-email {
  grid-column: span 2;
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--subtle);
  font-size: 0.94rem;
}

/* Compatibility for existing Hugo-generated list and article pages. */
.header div,
.container,
.copyright,
.menu {
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}

.header {
  padding: 28px 0 18px;
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: var(--legacy-header);
  text-align: center;
}

.banner {
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1;
}

.banner .text {
  font-size: 0;
}

.banner .text::after {
  content: "Lingfeng He's One Person Lab";
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(1.65rem, 5vw, 3rem);
  font-weight: 760;
  letter-spacing: 0;
}

.head-meta,
.menu,
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.head-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.container {
  padding-top: 28px;
  hyphens: auto;
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}

.list section,
article:not(.work-item):not(.field-card):not(.post-card) {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.38);
  box-shadow: var(--glass-shadow);
}

.article-list h1,
.title {
  line-height: 1.2;
}

.article-meta {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
}

.thumbnail {
  width: 6.8em;
  height: 5.1em;
  float: left;
  overflow: hidden;
  margin: 5px 12px 5px 0;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

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

blockquote {
  margin-left: 0;
  padding: 8px 18px;
  border-left: 4px solid var(--accent);
  background: var(--quote-bg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.menu {
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}

.menu li,
.pagination li,
.terms li {
  display: inline-block;
}

.pagination,
.terms,
.comments {
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 10px;
    gap: 10px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 24px;
    min-height: 0;
    background: rgba(12, 14, 16, 0.48);
    backdrop-filter: blur(32px) saturate(1.5);
    -webkit-backdrop-filter: blur(32px) saturate(1.5);
  }
  :root[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.6);
  }

  .brand-text {
    display: none;
  }

  .site-nav {
    flex: 1;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 0.85rem;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex-shrink: 0;
    padding: 6px 12px;
    white-space: nowrap;
  }

  .header-actions {
    flex: 1;
    gap: 8px;
    min-width: 0;
  }

  .theme-toggle {
    flex-shrink: 0;
  }

  .hero,
  .signature,
  .split-section,
  .contact-section,
  .work-item,
  .cards,
  .crew-grid,
  .workflow-steps,
  .post-gallery,
  .identity-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 72px;
  }

  .lab-console,
  .profile-panel {
    max-width: 360px;
    align-self: start;
  }

  .crew-card,
  .crew-card.featured,
  .crew-card:nth-child(2) {
    grid-column: auto;
  }

  .workflow-steps li {
    min-height: 0;
  }

	  .identity-strip div {
	    min-height: 64px;
	    border-right: none;
	    border-bottom: 1px solid var(--line);
	  }

	  .identity-strip div:last-child {
	    border-bottom: none;
	  }

}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 36px, 1160px);
  }

  h1 {
    font-size: 3rem;
  }

  .hero-name-primary,
  .hero-name-secondary {
    display: block;
  }

  .hero-name-secondary {
    margin-left: 0;
    margin-top: -0.08em;
  }

  h2 {
    font-size: 2.05rem;
  }

  .section {
    padding: 62px 0;
  }

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

  .hero-actions .button {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero-actions .button.primary {
    grid-column: span 2;
  }

  .work-item,
  .field-card,
  .crew-card,
  .workflow-steps li {
    padding: 20px;
  }

  .crew-card {
    min-height: 220px;
  }

  .profile-panel {
    width: 100%;
  }

  .lab-console {
    width: 100%;
    max-width: none;
  }

  .hero-intro {
    text-align: left;
  }

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