:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --surface-strong: #eef3fb;
  --text: #101828;
  --text-muted: #475467;
  --text-soft: #667085;
  --border: #d9dee7;
  --border-strong: #c8d0dc;
  --accent: #175cd3;
  --accent-soft: #e8f0ff;
  --accent-contrast: #ffffff;
  --hero-chip-text: #1543a3;
  --table-head: #f7f9fc;
  --table-featured: rgba(23, 92, 211, 0.05);
  --header-bg: rgba(251, 251, 253, 0.88);
  --header-border: rgba(16, 24, 40, 0.06);
  --hero-glow: rgba(23, 92, 211, 0.06);
  --panel-border: rgba(16, 24, 40, 0.08);
  --soft-border: rgba(16, 24, 40, 0.1);
  --elevated-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
  --accent-shadow: 0 10px 24px rgba(23, 92, 211, 0.12);
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
  --body-gradient-start: #ffffff;
  --body-gradient-end: #fafbfc;
  --section-alt-bg: linear-gradient(180deg, rgba(243, 245, 249, 0.72), rgba(243, 245, 249, 0.44));
  --hero-image-bg: linear-gradient(180deg, #edf4ff 0%, #f7faff 100%);
  --media-frame-bg: #05070a;
  --code-bg: #0d1117;
  --code-text: #e6edf3;
  --footer-bg: transparent;
  --footer-text: #475467;
  --toggle-shell-bg: rgba(255, 255, 255, 0.78);
  --toggle-shell-border: rgba(16, 24, 40, 0.1);
  --toggle-shell-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
  --toggle-active-bg: #101828;
  --toggle-active-text: #ffffff;
  --toggle-hover-bg: rgba(23, 92, 211, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --bg-alt: var(--surface-strong);
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --line-strong: var(--border-strong);
}

html[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #111827;
  --surface-soft: #172033;
  --surface-strong: #0f172a;
  --text: #e5edf7;
  --text-muted: #c2cfdf;
  --text-soft: #9caec4;
  --border: #243247;
  --border-strong: #31425d;
  --accent: #7cb2ff;
  --accent-soft: rgba(124, 178, 255, 0.16);
  --accent-contrast: #08111f;
  --hero-chip-text: #cfe1ff;
  --table-head: #162033;
  --table-featured: rgba(124, 178, 255, 0.1);
  --header-bg: rgba(11, 16, 32, 0.82);
  --header-border: rgba(226, 232, 240, 0.08);
  --hero-glow: rgba(124, 178, 255, 0.09);
  --panel-border: rgba(226, 232, 240, 0.09);
  --soft-border: rgba(226, 232, 240, 0.12);
  --elevated-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
  --accent-shadow: 0 12px 28px rgba(124, 178, 255, 0.14);
  --shadow: 0 22px 50px rgba(2, 6, 23, 0.34);
  --body-gradient-start: #0f172a;
  --body-gradient-end: #020617;
  --section-alt-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(11, 16, 32, 0.68));
  --hero-image-bg: linear-gradient(180deg, #182338 0%, #111827 100%);
  --media-frame-bg: #020617;
  --code-bg: #09111f;
  --code-text: #dde8f5;
  --footer-bg: rgba(2, 6, 23, 0.4);
  --footer-text: #b8c7da;
  --toggle-shell-bg: rgba(17, 24, 39, 0.78);
  --toggle-shell-border: rgba(226, 232, 240, 0.11);
  --toggle-shell-shadow: 0 16px 34px rgba(2, 6, 23, 0.38);
  --toggle-active-bg: #7cb2ff;
  --toggle-active-text: #08111f;
  --toggle-hover-bg: rgba(124, 178, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body[data-theme="light"] {
  color-scheme: light;
}

body[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, var(--hero-glow), transparent 24%),
    linear-gradient(180deg, var(--body-gradient-start) 0%, var(--body-gradient-end) 100%);
  line-height: 1.7;
  transition: background-color 180ms ease, color 180ms ease, background 180ms ease;
}

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

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

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

.narrow {
  width: min(calc(100% - 3rem), 900px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.lab-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--soft-border);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.95rem 1.1rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.theme-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem;
  border: 1px solid var(--toggle-shell-border);
  border-radius: 999px;
  background: var(--toggle-shell-bg);
  box-shadow: var(--toggle-shell-shadow);
  backdrop-filter: blur(16px);
  flex-shrink: 0;
}

.theme-toggle {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.72rem 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--toggle-hover-bg);
  color: var(--text);
  outline: none;
}

.theme-toggle.active {
  background: var(--toggle-active-bg);
  color: var(--toggle-active-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav a:hover,
.nav a:focus-visible,
.resource-link:hover,
.resource-link:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  color: var(--accent);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 2.25rem;
  align-items: start;
}

.kicker,
.section-tag,
.video-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.contact-panel h2,
.info-card h3,
.feature-card h3,
.sensor-card h3,
.access-card h3,
.citation-card h3 {
  font-family: "Libre Baskerville", serif;
}

.hero h1 {
  margin: 0.7rem 0 1.1rem;
  font-size: clamp(2.05rem, 3.85vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 13.6ch;
}

.hero-subtitle {
  margin: 0;
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--text-muted);
}

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.hero-affiliations {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--elevated-shadow);
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: var(--accent-shadow);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.8rem;
  padding: 0;
  margin: 1.7rem 0 0;
  list-style: none;
  max-width: 100%;
  justify-content: start;
}

.hero-meta li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--hero-chip-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-figure {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--hero-image-bg);
}

.figure-caption {
  padding: 1rem 1.15rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.figure-caption strong {
  color: var(--text);
}

.section {
  padding: 2.5rem 0 3.75rem;
}

.section-alt {
  background: var(--section-alt-bg);
  border-top: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  margin: 0.55rem 0 0.85rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.section-head-overview h2 {
  font-size: clamp(2.35rem, 3.8vw, 3.3rem);
  line-height: 1.12;
}

.section-head p,
.abstract,
.info-card p,
.feature-card p,
.sensor-card p,
.sensor-spec-card p,
.access-card p,
.contact-panel p,
.contact-note,
.video-copy p,
.citation-card {
  color: var(--text-muted);
}

.abstract {
  margin: 0 auto;
  font-size: 1.04rem;
  text-align: center;
  max-width: 75ch;
}

.overview-grid,
.card-grid {
  display: grid;
  gap: 1.2rem;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

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

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

.card-grid-2,
.access-grid,
.annotation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.info-card,
.feature-card,
.sensor-card,
.sensor-spec-card,
.access-card {
  padding: 1.35rem;
}

.stat-label,
.card-index {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong,
.sensor-spec-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.comparison-panel {
  padding: 1rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: calc(var(--radius-lg) - 6px);
}

.comparison-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
}

.comparison-table th,
.comparison-table td {
  padding: 0.82rem 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--table-head);
  font-size: 0.82rem;
  font-weight: 700;
}

.comparison-table__featured {
  background: var(--table-featured);
}

.media-panel {
  overflow: hidden;
}

.media-panel img {
  width: 100%;
  height: auto;
}

.annotation-grid {
  margin-top: 1.4rem;
}

.info-card h3,
.feature-card h3,
.sensor-card h3,
.access-card h3 {
  margin: 0.6rem 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.info-card ul,
.sensor-card ul,
.access-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-card,
.sensor-card,
.access-card,
.info-card {
  height: 100%;
}

.video-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 1.25rem;
  padding: 1.25rem;
  align-items: start;
}

.video-copy {
  padding: 0.35rem;
}

.video-copy p {
  font-size: 1.14rem;
  line-height: 1.8;
}

.video-copy .video-kicker {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
}

.video-frame video {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--media-frame-bg);
}

.sensor-spec-grid {
  margin-bottom: 1.25rem;
}

.sensor-layout {
  display: block;
}

.sensor-metrics {
  font-weight: 600;
}

.sensor-figure {
  align-self: stretch;
}

.sensor-figure-full {
  margin-top: 1.4rem;
}

.sensor-figure-full img {
  width: 100%;
}

.sensor-figure-full .figure-caption {
  font-size: 1rem;
}

.stack-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
}

.citation-card {
  padding: 1.25rem;
}

.citation-card pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.citation-card .inline-link {
  display: inline-block;
  margin-top: 1rem;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
}

.contact-panel h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.25;
}

.contact-details {
  min-width: 250px;
}

.contact-details a {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
}

.site-footer {
  padding: 1.3rem 0 2.2rem;
  background: var(--footer-bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--footer-text);
  font-size: 0.94rem;
}

@media (max-width: 1100px) {
  .hero-layout,
  .video-panel {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }
}

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

  .header-inner,
  .contact-panel,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .theme-switcher {
    align-self: center;
  }

  .theme-toggle {
    padding: 0.68rem 0.82rem;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.65rem);
    max-width: 100%;
  }

  .resource-row,
  .hero-meta {
    gap: 0.7rem;
  }

  .hero-meta {
    display: flex;
    flex-wrap: wrap;
  }

  .card-grid-4,
  .card-grid-3,
  .card-grid-2,
  .access-grid,
  .annotation-grid {
    grid-template-columns: 1fr;
  }

  .comparison-panel,
  .video-panel,
  .citation-card,
  .contact-panel {
    padding: 1rem;
  }

  .section {
    padding: 2rem 0 3rem;
  }
}
