/* Base design tokens. A later visual-depth token block intentionally overrides
   selected colors and shadows for the current public theme. */
:root {
  --color-bg: #05070d;
  --color-bg-elevated: #0a0f18;
  --color-panel: rgba(10, 16, 28, 0.9);
  --color-panel-strong: rgba(12, 20, 36, 0.94);
  --color-panel-soft: rgba(12, 20, 36, 0.72);
  --color-surface: rgba(255, 255, 255, 0.035);
  --color-surface-strong: rgba(255, 255, 255, 0.055);
  --color-line: rgba(138, 166, 255, 0.16);
  --color-line-strong: rgba(138, 166, 255, 0.28);
  --color-text: #ecf1fb;
  --color-text-muted: #aeb8cc;
  --color-text-soft: rgba(236, 241, 251, 0.68);
  --color-accent: #4a7dff;
  --color-accent-soft: rgba(74, 125, 255, 0.14);
  --color-accent-strong: #7ea4ff;
  --color-success: #88c5ff;
  --radius-sm: 0.9rem;
  --radius-md: 1rem;
  --radius-lg: 1.22rem;
  --radius-pill: 999px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-section: clamp(2.65rem, 5.2vw, 4.35rem);
  --container: min(1180px, calc(100vw - 2rem));
  --shadow-panel:
    0 0 0 1px rgba(122, 154, 255, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  --shadow-glow:
    0 0 0 1px rgba(122, 154, 255, 0.18),
    0 16px 42px rgba(5, 10, 24, 0.5),
    0 0 36px rgba(74, 125, 255, 0.18);
  --shadow-button:
    0 0 0 1px rgba(126, 164, 255, 0.34),
    0 8px 20px rgba(41, 91, 214, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 160ms var(--ease-standard);
  --transition-base: 240ms var(--ease-standard);
  --transition-slow: 420ms var(--ease-standard);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(16, 26, 52, 0.75), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(54, 93, 196, 0.18), transparent 24%),
    linear-gradient(180deg, #04070d 0%, #060912 48%, #04070d 100%);
  color: var(--color-text);
  font-family: "Aptos", "Segoe UI", "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
}

body.is-scroll-locked {
  overflow: hidden;
}

.lang-zh {
  display: none !important;
}

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

a,
button {
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-base),
    transform var(--transition-base),
    opacity var(--transition-fast);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(126, 164, 255, 0.95),
    0 0 0 5px rgba(5, 7, 13, 0.96);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--space-4);
  z-index: 100;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid,
.ambient-noise {
  position: absolute;
  inset: 0;
}

.ambient-grid {
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 88%);
}

.ambient-noise {
  opacity: 0.025;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
}

.ambient-blob-primary {
  top: -16rem;
  left: 50%;
  width: 40rem;
  height: 32rem;
  transform: translateX(-50%);
  background: rgba(54, 104, 255, 0.18);
  animation: drift-primary 32s ease-in-out infinite;
}

.ambient-blob-secondary {
  top: 24rem;
  right: -10rem;
  width: 22rem;
  height: 22rem;
  background: rgba(72, 104, 208, 0.14);
  animation: drift-secondary 28s ease-in-out infinite;
}

.ambient-blob-tertiary {
  bottom: -14rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(54, 92, 192, 0.12);
  animation: drift-secondary 24s ease-in-out infinite reverse;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: var(--space-section) 0;
}

#notes.section,
#about.section {
  padding-top: calc(var(--space-section) * 0.82);
  padding-bottom: calc(var(--space-section) * 0.82);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(138, 166, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 18, 30, 0.88), rgba(6, 10, 18, 0.78)),
    rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.85rem, 2vw, var(--space-5));
  min-height: 4.35rem;
}

.site-header__cluster,
.header-controls {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.25vw, var(--space-4));
}

.brand {
  display: inline-grid;
  gap: 0.18rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-sub {
  color: var(--color-text-soft);
  font-size: clamp(0.72rem, 0.78vw, 0.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.16rem;
  white-space: nowrap;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.54rem 0.68rem;
  color: var(--color-text-muted);
  font-size: clamp(0.82rem, 0.88vw, 0.94rem);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: rgba(138, 166, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(138, 166, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle__line {
  width: 1.1rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
  transform: translateY(3.7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-3.7px) rotate(-45deg);
}

.mobile-menu-wrap {
  position: relative;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav {
  display: grid;
  gap: 0.3rem;
  margin-bottom: var(--space-4);
}

.mobile-nav a {
  border-radius: var(--radius-sm);
  padding: 0.82rem 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.mobile-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.mobile-menu__cta {
  width: 100%;
}

.surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0.72;
}

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

.section-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    var(--color-panel);
}

.section-panel::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(90deg, rgba(126, 164, 255, 0.16), transparent 38%, transparent 62%, rgba(126, 164, 255, 0.14));
}

.section-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.022);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center;
  mask-image: radial-gradient(circle at center, transparent 18%, black 52%, transparent 92%);
  opacity: 0.26;
  pointer-events: none;
}

.surface-glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--color-panel-soft);
}

.surface-hero {
  background:
    radial-gradient(circle at 80% 26%, rgba(74, 125, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--color-panel-strong);
}

.surface-interactive:hover,
.surface-interactive:focus-within {
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(
      200px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(74, 125, 255, 0.12),
      transparent 72%
    );
  opacity: 0;
  transition: opacity var(--transition-base);
}

[data-spotlight].is-spotlight-active::after,
[data-spotlight]:hover::after,
[data-spotlight]:focus-within::after {
  opacity: 1;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.eyebrow,
.surface-label {
  margin: 0;
  color: var(--color-accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  border-radius: 0.92rem;
  border: 1px solid transparent;
  padding: 0.84rem 1.2rem;
  font-weight: 600;
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
}

.button:active {
  transform: scale(0.99);
}

.button-primary {
  background: linear-gradient(180deg, rgba(80, 130, 255, 1), rgba(56, 105, 220, 1));
  color: #fff;
  box-shadow: var(--shadow-button);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, rgba(95, 143, 255, 1), rgba(67, 114, 226, 1));
}

.button-secondary {
  border-color: rgba(138, 166, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(138, 166, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero-section {
  padding-top: clamp(4rem, 6vw, 5rem);
}

.hero-panel,
.section-panel {
  padding: clamp(0.85rem, 1.6vw, 1.02rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 0.68rem;
  align-items: stretch;
  position: relative;
}

.hero-grid::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: calc(45.8% + 0.2rem);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(138, 166, 255, 0.12), transparent);
  pointer-events: none;
}

.panel-chrome {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.15rem;
  margin: -0.85rem -0.85rem 0.82rem;
  padding: 0.46rem 0.82rem;
  border-bottom: 1px solid rgba(138, 166, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(5, 9, 17, 0.78);
}

.panel-chrome-dots {
  display: inline-flex;
  gap: 0.28rem;
}

.panel-chrome-dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(236, 241, 251, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.panel-chrome-dots span:nth-child(3) {
  background: rgba(126, 164, 255, 0.58);
}

.panel-chrome-label {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy,
.hero-visual,
.research-card,
.project-card,
.stream-card,
.about-panel,
.article-card {
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  transform: translateY(var(--hero-copy-translate, 0px));
  transition: transform 100ms linear;
}

.hero-title,
.section-title,
.article-title,
.article-subtitle,
.research-card h3,
.project-card h3,
.stream-card h3,
.about-panel h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-title {
  max-width: 12.5ch;
  font-size: clamp(2.35rem, 4.5vw, 4.3rem);
}

.hero-title-zh {
  margin: -0.2rem 0 0;
  color: var(--color-accent-strong);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-lead,
.section-copy,
.card-copy,
.project-copy,
.stream-copy,
.article-lead,
.article-body p,
.article-list,
.footer-inner,
.fact-list span {
  margin: 0;
  color: var(--color-text-muted);
}

.hero-lead {
  max-width: 52ch;
  font-size: 0.98rem;
}

.hero-lead-zh,
.section-copy-zh,
.card-copy-zh,
.project-copy-zh,
.stream-copy-zh,
.article-lead-zh,
.about-summary-zh {
  color: var(--color-text-soft);
}

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

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.55rem;
  align-items: center;
}

.hero-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  gap: 0.4rem;
  border: 1px solid rgba(138, 166, 255, 0.08);
  border-radius: 999px;
  padding: 0.38rem 0.66rem;
  background: rgba(255, 255, 255, 0.008);
  text-decoration: none;
}

.hero-shortcut:hover,
.hero-shortcut:focus-visible {
  border-color: rgba(138, 166, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.hero-shortcut--lab {
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.012);
}

.hero-shortcut--lab:hover,
.hero-shortcut--lab:focus-visible {
  border-color: rgba(139, 226, 214, 0.16);
  background: rgba(139, 226, 214, 0.028);
  box-shadow: none;
  transform: none;
}

.hero-shortcut-label {
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-shortcut--lab .hero-shortcut-label {
  color: var(--color-text-muted);
}

.hero-shortcut-note {
  display: none;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-copy > .hero-strip {
  display: none;
}

.hero-strip-panel {
  margin-top: 0.56rem;
  padding: 0.18rem;
  border: 1px solid rgba(138, 166, 255, 0.1);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    rgba(7, 11, 19, 0.82);
}

.hero-strip-item {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 4.2rem;
  border: 1px solid rgba(138, 166, 255, 0.12);
  border-radius: 0.95rem;
  padding: 0.72rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.015);
}

.hero-strip-panel .hero-strip {
  gap: 0;
}

.hero-strip-panel .hero-strip-item {
  min-height: 4.2rem;
  border: none;
  border-right: 1px solid rgba(138, 166, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.hero-strip-panel .hero-strip-item:last-child {
  border-right: none;
}

.hero-strip-item img {
  width: 2rem;
  height: 2rem;
}

.hero-strip-item strong,
.hero-strip-item span {
  display: block;
}

.hero-strip-item strong {
  font-size: 0.88rem;
  color: var(--color-text);
}

.hero-strip-item span {
  margin-top: 0.15rem;
  color: var(--color-text-soft);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  display: grid;
  align-items: stretch;
  padding: clamp(0.7rem, 1.1vw, 0.9rem);
  border: 1px solid rgba(138, 166, 255, 0.14);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 74% 18%, rgba(74, 125, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    rgba(6, 10, 18, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 46px rgba(0, 0, 0, 0.34);
  transform: translateY(var(--hero-panel-translate, 0px));
  transition: transform 100ms linear;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 90%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 74%, rgba(90, 136, 255, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.02), rgba(5, 8, 16, 0.3));
  border-radius: inherit;
  pointer-events: none;
}

.hero-illustration {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
}

.hero-visual-note {
  position: absolute;
  right: 1rem;
  bottom: 1.35rem;
  display: grid;
  gap: 0.15rem;
  max-width: 15rem;
  border: 1px solid rgba(138, 166, 255, 0.16);
  border-radius: 0.92rem;
  padding: 0.65rem 0.8rem;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(12px);
}

.hero-visual-note p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.72rem;
}

.module-head > div {
  max-width: 42rem;
}

.module-button {
  flex: none;
}

.section-title {
  max-width: 18ch;
  font-size: clamp(1.6rem, 2.7vw, 2.45rem);
}

.section-copy {
  max-width: 60ch;
  font-size: 0.95rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.research-card {
  display: grid;
  gap: 0.72rem;
  padding: 0.92rem;
  min-height: 22.5rem;
  align-content: start;
  background:
    radial-gradient(circle at 78% 16%, rgba(74, 125, 255, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(10, 16, 28, 0.88);
}

.research-icon {
  width: 100%;
  height: 9rem;
  padding: 1.35rem;
  border: 1px solid rgba(138, 166, 255, 0.12);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 125, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.018);
  object-fit: contain;
}

.card-copy,
.project-copy,
.stream-copy {
  font-size: 0.96rem;
}

.card-hint {
  color: var(--color-accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.research-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(138, 166, 255, 0.1);
}

.research-card-action {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.research-card-kicker {
  color: rgba(236, 241, 251, 0.48);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.research-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--color-text-soft);
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.8;
  text-decoration: none;
}

.research-card .surface-label {
  color: var(--color-text-soft);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.research-card-link::after,
.stream-link::after,
.project-repo-link::after {
  content: "↗";
  margin-left: 0.35rem;
  color: var(--color-accent-strong);
  font-size: 0.82em;
}

.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.84fr) minmax(0, 0.84fr);
  gap: 0.64rem;
}

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

.project-group-head {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0 0.72rem;
}

.project-group-head .article-subtitle {
  max-width: 24ch;
}

.project-card {
  display: grid;
  gap: 0.56rem;
  padding: 0.96rem;
  min-height: 16rem;
}

.project-card-featured {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 31.5rem;
  padding: 1.28rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(74, 125, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(11, 18, 32, 0.94);
  box-shadow:
    0 0 0 1px rgba(122, 154, 255, 0.16),
    0 22px 56px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(74, 125, 255, 0.12);
}

.project-card-compact {
  min-height: 12.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(9, 14, 24, 0.9);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-card-featured .project-topline {
  margin-bottom: 0.18rem;
}

.project-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.project-badge,
.note-status {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(138, 166, 255, 0.2);
  padding: 0.38rem 0.7rem;
  background: rgba(74, 125, 255, 0.12);
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-status {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(138, 166, 255, 0.16);
  padding: 0.34rem 0.68rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-status-live {
  border-color: rgba(126, 164, 255, 0.24);
  background: rgba(74, 125, 255, 0.14);
  color: var(--color-accent-strong);
}

.project-status-docs {
  border-color: rgba(136, 197, 255, 0.2);
  background: rgba(136, 197, 255, 0.1);
  color: #9bcfff;
}

.project-status-system {
  border-color: rgba(139, 226, 214, 0.22);
  background: rgba(139, 226, 214, 0.1);
  color: #a9efe8;
}

.project-status-route {
  border-color: rgba(214, 190, 126, 0.22);
  background: rgba(214, 190, 126, 0.1);
  color: #eed79a;
}

.project-status-repo,
.project-status-concept,
.project-status-experiment,
.project-status-system,
.project-status-route {
  margin-top: -0.05rem;
}

.note-status-muted {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
}

.project-mark {
  width: 3rem;
  height: 3rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(138, 166, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.6rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--color-text-soft);
  font-size: 0.78rem;
}

.project-why {
  display: grid;
  gap: 0.22rem;
}

.project-why-label {
  margin: 0;
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-why-copy {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.project-evidence-list {
  display: grid;
  gap: 0.44rem;
  margin: 0;
  padding: 0;
}

.project-evidence-list div {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
  padding: 0.58rem 0.64rem;
  border: 1px solid rgba(138, 166, 255, 0.1);
  border-radius: 0.68rem;
  background: rgba(255, 255, 255, 0.022);
}

.project-evidence-list dt,
.project-evidence-list dd {
  margin: 0;
}

.project-evidence-list dt {
  color: var(--color-accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.24;
}

.project-evidence-list dd {
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.project-card-featured .project-evidence-list dd {
  color: var(--color-text-soft);
}

.project-flow {
  counter-reset: project-flow;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
  margin: 0.08rem 0 0;
  padding: 0;
  list-style: none;
}

.project-flow li {
  counter-increment: project-flow;
  position: relative;
  display: grid;
  min-height: 2.42rem;
  align-content: center;
  padding: 0.46rem 0.5rem 0.46rem 1.72rem;
  border: 1px solid rgba(138, 166, 255, 0.1);
  border-radius: 0.68rem;
  background:
    radial-gradient(circle at 12% 50%, rgba(123, 132, 232, 0.14), transparent 1.5rem),
    rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  color: var(--color-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.18;
}

.project-flow li::before {
  content: "0" counter(project-flow);
  position: absolute;
  left: 0.48rem;
  top: 50%;
  display: grid;
  width: 0.84rem;
  height: 0.84rem;
  place-items: center;
  border: 1px solid rgba(123, 132, 232, 0.22);
  border-radius: 50%;
  background: rgba(123, 132, 232, 0.15);
  box-shadow: 0 0 14px rgba(123, 132, 232, 0.2);
  color: rgba(223, 226, 255, 0.92);
  font-size: 0.52rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.project-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.42rem;
  top: 50%;
  width: 0.42rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 132, 232, 0.36), transparent);
}

.project-card-featured .project-flow li {
  border-color: rgba(138, 166, 255, 0.15);
  background:
    radial-gradient(circle at 12% 50%, rgba(123, 132, 232, 0.2), transparent 1.7rem),
    rgba(255, 255, 255, 0.028);
  color: var(--color-text);
}

.project-card-featured .project-copy,
.project-card-featured .project-copy-zh,
.project-card-featured .project-why-copy {
  max-width: 35ch;
}

.supporting-projects {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.9rem;
  margin-top: 0.7rem;
  padding: 0.96rem;
}

.supporting-projects-copy,
.supporting-project-list,
.supporting-project-card {
  min-width: 0;
}

.supporting-projects-copy {
  display: grid;
  gap: 0.38rem;
  align-content: start;
}

.supporting-projects-copy h3,
.supporting-projects-copy p {
  margin: 0;
}

.supporting-projects-copy h3 {
  line-height: 1.15;
}

.supporting-projects-copy p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.supporting-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.supporting-project-card {
  display: grid;
  gap: 0.34rem;
  border: 1px solid rgba(138, 166, 255, 0.1);
  border-radius: 0.9rem;
  padding: 0.78rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  color: inherit;
  text-decoration: none;
}

.supporting-project-card:hover,
.supporting-project-card:focus-visible {
  border-color: rgba(138, 166, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.028);
  transform: translateY(-1px);
}

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

.supporting-project-card strong {
  color: var(--color-text);
}

.supporting-project-card > span:last-child {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.project-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  align-items: center;
}

.project-card-compact .project-cta-group {
  padding-top: 0.72rem;
  border-top: 1px solid rgba(138, 166, 255, 0.1);
}

.project-card-featured .project-cta-group {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(138, 166, 255, 0.1);
}

.button-compact {
  min-height: 2.7rem;
  padding: 0.72rem 0.98rem;
  font-size: 0.9rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.project-link::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--color-accent-strong);
  box-shadow: 0 0 0 0.25rem rgba(74, 125, 255, 0.12);
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--color-accent-strong);
}

.project-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.5rem;
  padding: 0.28rem 0;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.project-repo-link::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.08);
}

.project-repo-link:hover,
.project-repo-link:focus-visible {
  color: var(--color-accent-strong);
}

.stream-list {
  display: grid;
  gap: 0.58rem;
}

.stream-card {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr) minmax(10.8rem, auto);
  gap: 0.85rem;
  align-items: center;
  min-height: 0;
  padding: 0.74rem 0.84rem;
}

.stream-card-featured {
  background:
    radial-gradient(circle at 90% 50%, rgba(74, 125, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(10, 16, 28, 0.94);
}

.stream-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(138, 166, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.018);
}

.stream-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.stream-main {
  display: grid;
  gap: 0.18rem;
}

.stream-detail {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.stream-detail a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--color-text);
  font-weight: 700;
  text-decoration-color: rgba(123, 132, 232, 0.48);
  text-underline-offset: 0.2em;
}

.stream-detail a:hover,
.stream-detail a:focus-visible {
  color: var(--color-accent-strong);
}

.stream-meta {
  display: grid;
  min-width: 10.8rem;
  justify-items: end;
  gap: 0.28rem;
}

.stream-count {
  color: var(--color-text-soft);
  font-size: 0.74rem;
}

.stream-link {
  margin-top: 0;
  min-height: 2.5rem;
}

.module-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.82rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.08fr) minmax(280px, 0.9fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(138, 166, 255, 0.12);
  border-radius: 1.18rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(8, 13, 24, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 38px rgba(0, 0, 0, 0.22);
}

.about-panel {
  display: grid;
  gap: 0.6rem;
  padding: 0.88rem;
}

.about-grid > .about-panel {
  min-height: 15rem;
  border: none;
  border-right: 1px solid rgba(138, 166, 255, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-grid > .about-panel:last-child {
  border-right: none;
}

.about-panel-visual {
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 125, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(10, 16, 28, 0.78);
}

.about-orbit {
  width: min(14rem, 100%);
  aspect-ratio: 1;
}

.about-summary {
  color: var(--color-accent-strong);
  font-size: 0.92rem;
}

.fact-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: grid;
  gap: 0.16rem;
  padding-bottom: 0.52rem;
  border-bottom: 1px solid rgba(138, 166, 255, 0.08);
}

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

.fact-list strong {
  color: var(--color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-list span {
  font-size: 0.88rem;
}

.about-routes {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.18rem;
}

.about-routes .surface-label {
  margin-bottom: 0.04rem;
}

.about-routes a {
  position: relative;
  display: grid;
  gap: 0.24rem;
  overflow: hidden;
  border: 1px solid rgba(138, 166, 255, 0.11);
  border-radius: 0.72rem;
  padding: 0.62rem 0.7rem;
  background:
    radial-gradient(circle at 92% 10%, rgba(123, 132, 232, 0.14), transparent 4.8rem),
    rgba(255, 255, 255, 0.018);
  color: var(--color-text);
  text-decoration: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.about-routes a:hover,
.about-routes a:focus-visible {
  border-color: rgba(138, 166, 255, 0.24);
  background:
    radial-gradient(circle at 92% 10%, rgba(123, 132, 232, 0.2), transparent 4.8rem),
    rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.about-routes strong,
.about-routes span {
  position: relative;
  z-index: 1;
}

.about-routes strong {
  font-size: 0.86rem;
}

.about-routes span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.fact-button {
  margin-top: auto;
  width: 100%;
}

.site-footer {
  padding: 0 0 calc(var(--space-8) - 0.4rem);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(138, 166, 255, 0.08);
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-text);
}

.article-section {
  padding-top: clamp(4rem, 6vw, 5rem);
}

.article-shell {
  display: grid;
  gap: 0.9rem;
  max-width: 52rem;
}

.notes-hub-shell {
  max-width: 62rem;
}

.article-nav {
  display: flex;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(138, 166, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--color-text-muted);
  text-decoration: none;
}

.article-back::before {
  content: "←";
  color: var(--color-accent-strong);
}

.article-back:hover,
.article-back:focus-visible {
  color: var(--color-text);
  border-color: rgba(138, 166, 255, 0.28);
}

.article-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.2rem, 2.8vw, 1.75rem);
}

.article-title {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.article-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.article-lead {
  max-width: 60ch;
  font-size: 1rem;
}

.article-status {
  margin-top: 0.05rem;
}

.article-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem;
  margin: 0.2rem 0 0.3rem;
}

.article-meta-list div {
  min-width: 0;
  border: 1px solid rgba(138, 166, 255, 0.1);
  border-radius: 0.8rem;
  padding: 0.68rem;
  background: rgba(255, 255, 255, 0.018);
}

.article-meta-list dt,
.article-meta-list dd {
  margin: 0;
}

.article-meta-list dt {
  color: var(--color-accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta-list dd {
  margin-top: 0.24rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.note-trail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.15rem 0 0.05rem;
  padding: 0;
  list-style: none;
}

.note-trail li {
  position: relative;
  display: grid;
  gap: 0.32rem;
  min-height: 5.25rem;
  overflow: hidden;
  border: 1px solid rgba(138, 166, 255, 0.12);
  border-radius: 0.78rem;
  padding: 0.72rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(123, 132, 232, 0.15), transparent 4.8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.note-trail li::after {
  content: "";
  position: absolute;
  right: -1.6rem;
  bottom: -1.7rem;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(123, 132, 232, 0.18);
  border-radius: 50%;
}

.note-trail span,
.note-trail strong {
  position: relative;
  z-index: 1;
}

.note-trail span {
  color: var(--color-accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-trail strong {
  color: var(--color-text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.article-body {
  display: grid;
  gap: 1rem;
}

.article-block {
  display: grid;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 166, 255, 0.1);
}

.article-block:first-child {
  padding-top: 0;
  border-top: none;
}

.article-list {
  padding-left: 1.15rem;
}

.article-list li + li {
  margin-top: 0.5rem;
}

.article-next {
  display: grid;
  gap: 0.78rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 166, 255, 0.12);
}

.article-next-kicker {
  margin: 0;
  color: var(--color-accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.notes-hero-card {
  gap: 0.65rem;
}

[aria-current="page"] {
  color: var(--color-text);
}

@keyframes drift-primary {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes drift-secondary {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid::after {
    display: none;
  }

  .hero-title,
  .section-title,
  .article-title {
    max-width: none;
  }

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

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

  .panel-chrome {
    margin: -0.85rem -0.85rem 0.9rem;
  }

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

  .project-card,
  .project-card-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .about-panel-visual {
    min-height: 14rem;
  }

  .about-grid > .about-panel {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(138, 166, 255, 0.1);
  }

  .about-grid > .about-panel:last-child {
    border-bottom: none;
  }
}

@media (max-width: 900px) {
  .research-grid {
    grid-template-columns: 1fr;
  }

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

  .stream-meta {
    grid-column: 1 / -1;
    min-width: 0;
    justify-items: start;
    padding-left: 3.4rem;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100vw - 1.25rem, 1180px);
  }

  .site-header__inner {
    min-height: 4.1rem;
  }

  .hero-copy,
  .hero-visual,
  .research-card,
  .project-card,
  .stream-card,
  .about-panel,
  .article-card {
    padding: 1rem;
  }

  .research-card,
  .project-card,
  .project-card-compact {
    min-height: 0;
  }

  .supporting-projects,
  .supporting-project-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-cta-group {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .project-repo-link {
    width: 100%;
    justify-content: flex-start;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stream-meta {
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  .brand-sub {
    font-size: 0.74rem;
  }

  .hero-title {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-title-zh {
    font-size: 0.98rem;
  }

  .hero-copy,
  .hero-visual,
  .research-card,
  .project-card,
  .stream-card,
  .about-panel,
  .article-card {
    padding: 0.9rem;
  }

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

  .stream-icon-wrap {
    width: 2.85rem;
    height: 2.85rem;
  }

  .tag-list li,
  .project-flow li,
  .project-status,
  .project-badge,
  .note-status {
    font-size: 0.74rem;
  }

  .project-flow {
    grid-template-columns: 1fr;
  }

  .project-flow li {
    min-height: 2.2rem;
  }

  .project-flow li:not(:last-child)::after {
    display: none;
  }

  .card-copy,
  .project-copy,
  .stream-copy,
  .section-copy,
  .hero-lead {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100vw - 1rem, 1180px);
  }

  .site-header__inner {
    min-height: 4rem;
    gap: 0.75rem;
  }

  .brand-mark {
    font-size: 0.92rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  .nav-toggle {
    width: 2.7rem;
    height: 2.7rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }

  .hero-shortcut {
    padding: 0.66rem 0.72rem;
  }

  .hero-strip-item {
    min-height: 0;
    padding: 0.68rem;
  }

  .project-card,
  .research-card,
  .stream-card,
  .about-panel {
    gap: 0.55rem;
  }

  .project-cta-group {
    gap: 0.5rem;
  }

  .button,
  .button-compact {
    min-height: 2.6rem;
    padding-inline: 0.85rem;
    font-size: 0.88rem;
  }

  .module-head {
    gap: 0.75rem;
  }

  .footer-inner {
    gap: 0.5rem;
    font-size: 0.84rem;
  }
}

/* Active public theme tokens from the visual depth pass. Keep these overrides
   synchronized with DESIGN_SYSTEM.md before changing the site-wide palette. */
:root {
  --color-bg: #050506;
  --color-bg-elevated: #0a0a0c;
  --color-panel: rgba(10, 10, 14, 0.9);
  --color-panel-strong: rgba(11, 11, 16, 0.94);
  --color-panel-soft: rgba(12, 12, 18, 0.74);
  --color-line: rgba(255, 255, 255, 0.075);
  --color-line-strong: rgba(255, 255, 255, 0.14);
  --color-text: #ededf0;
  --color-text-muted: #9aa1ad;
  --color-text-soft: rgba(237, 237, 240, 0.64);
  --color-accent: #5e6ad2;
  --color-accent-soft: rgba(94, 106, 210, 0.16);
  --color-accent-strong: #7b84e8;
  --color-success: #93c5fd;
  --shadow-panel:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 22px 60px rgba(0, 0, 0, 0.46),
    0 0 80px rgba(94, 106, 210, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 56px rgba(0, 0, 0, 0.52),
    0 0 84px rgba(94, 106, 210, 0.12);
  --shadow-button:
    0 0 0 1px rgba(94, 106, 210, 0.52),
    0 8px 24px rgba(94, 106, 210, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background: #020203;
}

body {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(94, 106, 210, 0.26), transparent 34rem),
    radial-gradient(ellipse at 85% 18%, rgba(60, 90, 170, 0.12), transparent 28rem),
    radial-gradient(ellipse at 10% 42%, rgba(113, 71, 190, 0.08), transparent 32rem),
    linear-gradient(180deg, #050506 0%, #07080c 45%, #020203 100%);
  font-family: "Inter", "Geist Sans", "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.ambient-grid {
  opacity: 0.2;
  background-size: 64px 64px;
}

.ambient-noise {
  opacity: 0.018;
}

.ambient-blob {
  border-radius: 45%;
  filter: blur(150px);
}

.ambient-blob-primary {
  top: -24rem;
  width: 64rem;
  height: 44rem;
  background: rgba(94, 106, 210, 0.18);
}

.ambient-blob-secondary {
  top: 18rem;
  right: -24rem;
  width: 42rem;
  height: 34rem;
  background: rgba(104, 114, 217, 0.1);
}

.ambient-blob-tertiary {
  left: -20rem;
  bottom: -22rem;
  width: 40rem;
  height: 32rem;
  background: rgba(75, 85, 180, 0.1);
}

.site-header {
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0.92), rgba(5, 5, 8, 0.82)),
    rgba(5, 5, 6, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.surface {
  border-color: var(--color-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--color-panel);
}

.surface-hero {
  background:
    radial-gradient(circle at 76% 22%, rgba(94, 106, 210, 0.18), transparent 24rem),
    radial-gradient(circle at 28% 88%, rgba(104, 114, 217, 0.08), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.016)),
    var(--color-panel-strong);
}

.button-primary {
  background: linear-gradient(180deg, #6872d9, #535ec7);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #747dea, #5e6ad2);
}

.hero-title,
.section-title,
.article-title,
.article-subtitle,
.research-card h3,
.project-card h3,
.stream-card h3,
.about-panel h3 {
  letter-spacing: 0;
}

.hero-title {
  max-width: min(100%, 12.8ch);
  font-size: 4.35rem;
  line-height: 0.98;
  background: linear-gradient(180deg, #ffffff 0%, #ededf0 58%, rgba(237, 237, 240, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title span {
  display: block;
}

.hero-focus-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.15rem 0 0;
}

.hero-focus-line span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.64rem;
  border: 1px solid rgba(123, 132, 232, 0.22);
  border-radius: 999px;
  color: #dfe2ff;
  background:
    radial-gradient(circle at 15% 50%, rgba(123, 132, 232, 0.2), transparent 4rem),
    rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-title {
  font-size: 2.35rem;
}

.article-title {
  font-size: 3.05rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 1rem;
}

.hero-copy {
  align-content: center;
  min-height: 34rem;
  min-width: 0;
  overflow: hidden;
}

.hero-visual {
  min-height: 34rem;
  background:
    radial-gradient(circle at 62% 70%, rgba(94, 106, 210, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(5, 6, 10, 0.78);
}

.hero-illustration {
  min-height: 0;
}

.hero-lab-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 32rem;
  overflow: hidden;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 64% 70%, rgba(104, 114, 217, 0.38), transparent 14rem),
    radial-gradient(circle at 28% 20%, rgba(126, 95, 255, 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006)),
    #05060a;
}

.hero-lab-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 58% 52%, black, transparent 82%);
  opacity: 0.38;
}

.hero-lab-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 6, 10, 0.36) 100%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.1), transparent 12rem);
  pointer-events: none;
}

.lab-aura,
.lab-wave,
.lab-slide,
.lab-microscope,
.lab-bench,
.lab-source,
.lab-mono,
.lab-cell,
.lab-stop,
.lab-detector,
.lab-beam,
.lab-spectrum-card,
.lab-spectrum-line,
.lab-spectrum-bars,
.lab-spectrum-bars span,
.lab-nodes,
.lab-nodes span {
  position: absolute;
  display: block;
}

.lab-aura {
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.82;
}

.lab-aura-primary {
  right: 20%;
  bottom: 18%;
  width: 18rem;
  height: 10rem;
  background: rgba(94, 106, 210, 0.42);
}

.lab-aura-secondary {
  left: 18%;
  top: 14%;
  width: 9rem;
  height: 5rem;
  background: rgba(122, 132, 232, 0.18);
}

.lab-bench {
  left: 7%;
  right: 8%;
  top: 54%;
  height: 0.28rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(217, 224, 255, 0.28), rgba(217, 224, 255, 0.18), transparent),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(77, 237, 207, 0.12);
  transform: perspective(700px) rotateX(58deg) rotateZ(-7deg);
  transform-origin: center;
  z-index: 2;
}

.lab-source,
.lab-mono,
.lab-cell,
.lab-stop,
.lab-detector {
  z-index: 4;
  border: 1px solid rgba(237, 237, 240, 0.2);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(9, 12, 22, 0.82);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.lab-source {
  left: 9%;
  top: 44%;
  width: 3.25rem;
  height: 4.5rem;
  border-radius: 0.8rem;
}

.lab-source::before {
  content: "";
  position: absolute;
  inset: 0.95rem 0.72rem auto;
  height: 1.25rem;
  border-radius: 50%;
  background: #f4f7ff;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.65),
    0 0 34px rgba(98, 126, 255, 0.42);
}

.lab-mono {
  width: 5.2rem;
  height: 4.1rem;
  border-radius: 0.72rem;
}

.lab-mono::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  width: 2.4rem;
  height: 1.36rem;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 22% 100%);
  background:
    linear-gradient(110deg, rgba(111, 136, 255, 0.7), rgba(82, 240, 211, 0.22)),
    rgba(255, 255, 255, 0.08);
}

.lab-mono::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0.84rem;
  height: 0.16rem;
  border-radius: 999px;
  background: rgba(216, 255, 248, 0.54);
}

.lab-mono-ex {
  left: 24%;
  top: 43%;
}

.lab-mono-em {
  left: 53%;
  top: 29%;
}

.lab-cell {
  left: 43%;
  top: 38%;
  width: 3.75rem;
  height: 5.9rem;
  border-radius: 0.95rem;
}

.lab-cell::before {
  content: "";
  position: absolute;
  inset: 0.86rem 1rem;
  border-radius: 0.55rem;
  background:
    radial-gradient(circle at 50% 56%, rgba(216, 255, 248, 0.9), rgba(82, 240, 211, 0.42) 22%, transparent 58%),
    rgba(82, 240, 211, 0.09);
  box-shadow: 0 0 30px rgba(82, 240, 211, 0.4);
}

.lab-stop {
  left: 61%;
  top: 51%;
  width: 2.6rem;
  height: 3rem;
  border-radius: 0.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 9px),
    rgba(9, 10, 15, 0.95);
}

.lab-detector {
  left: 75%;
  top: 30%;
  width: 4.25rem;
  height: 4.9rem;
  border-radius: 0.9rem;
}

.lab-detector::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(216, 255, 248, 0.45);
  background: radial-gradient(circle, rgba(216, 255, 248, 0.2), rgba(255, 255, 255, 0.035));
}

.lab-beam {
  z-index: 3;
  height: 0.2rem;
  border-radius: 999px;
  transform-origin: left center;
  filter: drop-shadow(0 0 12px currentColor);
}

.lab-beam-ex {
  left: 15%;
  top: 50.5%;
  width: 30%;
  color: rgba(111, 136, 255, 0.95);
  background: linear-gradient(90deg, transparent, rgba(111, 136, 255, 0.95), rgba(151, 174, 255, 0.7));
}

.lab-beam-residual {
  left: 48%;
  top: 50.5%;
  width: 13%;
  color: rgba(111, 136, 255, 0.44);
  background: linear-gradient(90deg, rgba(111, 136, 255, 0.45), transparent);
}

.lab-beam-em {
  left: 46.2%;
  top: 43%;
  width: 31%;
  color: rgba(82, 240, 211, 0.86);
  background: linear-gradient(90deg, rgba(82, 240, 211, 0.7), rgba(154, 242, 111, 0.72));
  transform: rotate(-34deg);
}

.lab-spectrum-card {
  right: 7%;
  bottom: 8%;
  z-index: 5;
  width: 12.5rem;
  height: 6.7rem;
  border: 1px solid rgba(216, 255, 248, 0.18);
  border-radius: 0.86rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
    rgba(4, 8, 18, 0.82);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lab-spectrum-line {
  left: 1rem;
  right: 1rem;
  bottom: 1.2rem;
  height: 3.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.lab-spectrum-line::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.3rem;
  bottom: 0.35rem;
  height: 2.9rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) left bottom / 100% 1px no-repeat,
    linear-gradient(105deg, transparent 0 15%, rgba(111, 136, 255, 0.85) 27%, transparent 42%),
    linear-gradient(72deg, transparent 0 44%, rgba(82, 240, 211, 0.95) 55%, transparent 70%),
    linear-gradient(110deg, transparent 0 68%, rgba(240, 205, 116, 0.82) 78%, transparent 90%);
  clip-path: polygon(0 88%, 15% 82%, 28% 20%, 41% 84%, 51% 73%, 59% 10%, 70% 82%, 79% 48%, 88% 76%, 100% 62%, 100% 100%, 0 100%);
  opacity: 0.95;
}

.lab-spectrum-bars {
  left: 1rem;
  top: 0.75rem;
  display: flex;
  gap: 0.25rem;
}

.lab-spectrum-bars span {
  position: static;
  width: 1.15rem;
  height: 0.18rem;
  border-radius: 999px;
}

.lab-spectrum-bars span:nth-child(1) {
  background: #6f88ff;
}

.lab-spectrum-bars span:nth-child(2) {
  background: #52f0d3;
}

.lab-spectrum-bars span:nth-child(3) {
  background: #9af26f;
}

.lab-spectrum-bars span:nth-child(4) {
  background: #f0cd74;
}

.lab-wave {
  left: 10%;
  width: 34%;
  height: 5rem;
  border-top: 2px solid rgba(123, 132, 232, 0.72);
  border-radius: 50%;
  transform: skewX(-14deg);
  opacity: 0.82;
}

.lab-wave-one {
  top: 34%;
  opacity: 0.38;
}

.lab-wave-two {
  top: 43%;
  border-color: rgba(123, 132, 232, 0.38);
  transform: skewX(12deg) scaleY(0.74);
  opacity: 0.26;
}

.lab-slide {
  right: 7%;
  bottom: 19%;
  width: 58%;
  height: 28%;
  border: 1px solid rgba(237, 237, 240, 0.28);
  border-radius: 0.6rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 44%),
    rgba(12, 14, 24, 0.68);
  box-shadow:
    0 0 0 1px rgba(94, 106, 210, 0.18),
    0 20px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: perspective(720px) rotateX(58deg) rotateZ(-8deg);
  opacity: 0.38;
}

.lab-sample {
  position: absolute;
  left: 38%;
  top: 30%;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(123, 132, 232, 0.5) 18%, transparent 56%);
  box-shadow: 0 0 46px rgba(123, 132, 232, 0.72);
}

.lab-microscope {
  right: 17%;
  top: 7%;
  width: 17rem;
  height: 15rem;
  transform: rotate(-14deg);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.46));
  opacity: 0.34;
}

.scope-body {
  right: 2rem;
  top: 1.2rem;
  width: 10rem;
  height: 4.2rem;
  border: 1px solid rgba(237, 237, 240, 0.28);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(237, 237, 240, 0.18), rgba(94, 106, 210, 0.18)),
    #0b0d16;
}

.scope-arm {
  right: 6.1rem;
  top: 4.4rem;
  width: 5.8rem;
  height: 8rem;
  border-left: 1.1rem solid rgba(123, 132, 232, 0.6);
  border-bottom: 1.1rem solid rgba(123, 132, 232, 0.42);
  border-radius: 0 0 0 4rem;
}

.scope-lens {
  bottom: 0.4rem;
  width: 3.3rem;
  height: 4.2rem;
  border-radius: 0.8rem 0.8rem 1.4rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(237, 237, 240, 0.16), rgba(94, 106, 210, 0.35)),
    #0c0f1b;
  border: 1px solid rgba(237, 237, 240, 0.24);
}

.scope-lens-one {
  right: 5.2rem;
}

.scope-lens-two {
  right: 1.3rem;
}

.lab-nodes {
  right: 8%;
  top: 54%;
  width: 11rem;
  height: 8rem;
}

.lab-nodes span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #c7ccff;
  box-shadow: 0 0 18px rgba(123, 132, 232, 0.78);
}

.lab-nodes span:nth-child(1) {
  left: 1.2rem;
  top: 1rem;
}

.lab-nodes span:nth-child(2) {
  right: 2.2rem;
  top: 2rem;
}

.lab-nodes span:nth-child(3) {
  left: 3.8rem;
  bottom: 1.1rem;
}

.lab-nodes span:nth-child(4) {
  right: 0.6rem;
  bottom: 0.5rem;
}

.visual-token {
  position: relative;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(123, 132, 232, 0.4), transparent 58%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.visual-token::before,
.visual-token::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(237, 237, 240, 0.62);
  border-radius: inherit;
}

.visual-token-network::before {
  border-radius: 50%;
}

.visual-token-network::after {
  inset: 0.82rem;
  border-radius: 50%;
  background: rgba(237, 237, 240, 0.7);
}

.visual-token-instrument::before {
  inset: 0.52rem 0.7rem;
  border-radius: 0.2rem 0.2rem 0.55rem 0.55rem;
}

.visual-token-notes::before {
  inset: 0.46rem 0.6rem;
  border-radius: 0.16rem;
}

.visual-token-notes::after {
  inset: 0.78rem 0.86rem;
  border-width: 1px 0 0;
  border-radius: 0;
}

.research-visual,
.project-visual,
.stream-thumb,
.about-orbit-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 50% 52%, rgba(94, 106, 210, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.research-visual {
  height: 9.5rem;
  border-radius: 0.9rem;
}

.research-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
}

.research-visual span {
  position: absolute;
  display: block;
}

.research-visual-signal span {
  left: 12%;
  right: 12%;
  height: 2.4rem;
  border-top: 2px solid rgba(123, 132, 232, 0.72);
  border-radius: 50%;
}

.research-visual-signal span:nth-child(1) {
  top: 34%;
  transform: skewX(-12deg);
}

.research-visual-signal span:nth-child(2) {
  top: 48%;
  transform: skewX(16deg) scaleY(0.72);
  opacity: 0.54;
}

.research-visual-signal span:nth-child(3) {
  left: 48%;
  top: 42%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #dfe2ff;
  box-shadow: 0 0 28px rgba(123, 132, 232, 0.8);
}

.research-visual-network span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #dfe2ff;
  box-shadow: 0 0 20px rgba(123, 132, 232, 0.8);
}

.research-visual-network span:nth-child(1) {
  left: 24%;
  top: 30%;
}

.research-visual-network span:nth-child(2) {
  left: 52%;
  top: 54%;
}

.research-visual-network span:nth-child(3) {
  right: 22%;
  top: 28%;
}

.research-visual-network::after {
  content: "";
  position: absolute;
  inset: 28% 22%;
  border: 1px solid rgba(123, 132, 232, 0.55);
  transform: skewY(18deg);
}

.research-visual-instrument span:nth-child(1) {
  left: 22%;
  bottom: 24%;
  width: 56%;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(237, 237, 240, 0.14);
}

.research-visual-instrument span:nth-child(2) {
  left: 43%;
  top: 24%;
  width: 3rem;
  height: 4.4rem;
  border: 1px solid rgba(237, 237, 240, 0.42);
  border-radius: 0.75rem;
  background: rgba(94, 106, 210, 0.18);
}

.research-visual-instrument span:nth-child(3) {
  right: 24%;
  top: 28%;
  width: 4rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(237, 237, 240, 0.2);
  transform: rotate(-18deg);
}

.project-visual {
  min-height: 8rem;
  border-radius: 0.86rem;
}

.project-card-featured .project-visual {
  min-height: 12rem;
}

.project-visual span {
  position: absolute;
  display: block;
}

.project-visual-answerlens span:nth-child(1) {
  inset: 24% 34%;
  border: 2px solid rgba(123, 132, 232, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 38px rgba(123, 132, 232, 0.42);
}

.project-visual-answerlens span:nth-child(2) {
  inset: 34% 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 237, 240, 0.82), rgba(94, 106, 210, 0.12) 48%, transparent 72%);
}

.project-visual-answerlens span:nth-child(3) {
  right: 21%;
  bottom: 22%;
  width: 19%;
  height: 1px;
  background: rgba(237, 237, 240, 0.42);
  transform: rotate(-32deg);
}

.project-visual-phone span:nth-child(1) {
  right: 16%;
  top: 12%;
  width: 34%;
  height: 76%;
  border: 1px solid rgba(237, 237, 240, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(94, 106, 210, 0.14));
  transform: rotate(-10deg);
}

.project-visual-phone span:nth-child(2),
.project-visual-phone span:nth-child(3) {
  left: 18%;
  right: 48%;
  height: 1px;
  background: rgba(123, 132, 232, 0.72);
}

.project-visual-phone span:nth-child(2) {
  top: 38%;
}

.project-visual-phone span:nth-child(3) {
  top: 56%;
  opacity: 0.5;
}

.project-visual-lattice span:nth-child(1) {
  inset: 18% 26%;
  border: 1px solid rgba(123, 132, 232, 0.58);
  transform: rotate(45deg);
}

.project-visual-lattice span:nth-child(2) {
  inset: 28% 36%;
  border: 1px solid rgba(237, 237, 240, 0.36);
  transform: rotate(45deg);
}

.project-visual-lattice span:nth-child(3) {
  left: 50%;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #dfe2ff;
  box-shadow: 0 0 32px rgba(123, 132, 232, 0.9);
  transform: translate(-50%, -50%);
}

.project-visual-mirror span {
  left: 12%;
  right: 12%;
  border-top: 1px solid rgba(123, 132, 232, 0.7);
  border-radius: 50%;
}

.project-visual-mirror span:nth-child(1) {
  top: 36%;
  height: 3.8rem;
  transform: skewX(-18deg);
}

.project-visual-mirror span:nth-child(2) {
  top: 46%;
  height: 2.8rem;
  transform: skewX(18deg);
  opacity: 0.6;
}

.project-visual-mirror span:nth-child(3) {
  top: 54%;
  height: 2rem;
  opacity: 0.36;
}

.project-visual-double span {
  width: 4.6rem;
  height: 5.6rem;
  border: 1px solid rgba(237, 237, 240, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.project-visual-double span:nth-child(1) {
  left: 20%;
  top: 22%;
  transform: rotate(-10deg);
}

.project-visual-double span:nth-child(2) {
  left: 36%;
  top: 16%;
}

.project-visual-double span:nth-child(3) {
  right: 20%;
  top: 24%;
  transform: rotate(10deg);
}

.project-visual-chronicle span:nth-child(1) {
  left: 16%;
  top: 22%;
  width: 68%;
  height: 56%;
  border: 1px solid rgba(139, 226, 214, 0.34);
  border-radius: 0.82rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.project-visual-chronicle span:nth-child(2) {
  left: 25%;
  right: 25%;
  top: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 226, 214, 0.8), transparent);
}

.project-visual-chronicle span:nth-child(3) {
  left: 46%;
  top: 34%;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: #a9efe8;
  box-shadow: 0 0 28px rgba(139, 226, 214, 0.52);
}

.project-visual-loop span:nth-child(1) {
  left: 22%;
  top: 24%;
  width: 56%;
  height: 56%;
  border: 1px solid rgba(123, 132, 232, 0.54);
  border-radius: 50%;
}

.project-visual-loop span:nth-child(2) {
  left: 32%;
  top: 34%;
  width: 36%;
  height: 36%;
  border: 1px solid rgba(139, 226, 214, 0.46);
  border-radius: 50%;
}

.project-visual-loop span:nth-child(3) {
  right: 24%;
  top: 30%;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #dfe2ff;
  box-shadow: 0 0 24px rgba(123, 132, 232, 0.72);
}

.project-visual-instrument span:nth-child(1) {
  left: 18%;
  right: 18%;
  top: 56%;
  height: 1px;
  background: rgba(237, 237, 240, 0.34);
}

.project-visual-instrument span:nth-child(2) {
  left: 34%;
  top: 28%;
  width: 2.8rem;
  height: 3.8rem;
  border: 1px solid rgba(237, 237, 240, 0.28);
  border-radius: 0.72rem;
  background: rgba(214, 190, 126, 0.12);
}

.project-visual-instrument span:nth-child(3) {
  right: 25%;
  top: 36%;
  width: 3.4rem;
  height: 0.92rem;
  border-radius: 999px;
  background: rgba(214, 190, 126, 0.24);
  transform: rotate(-18deg);
}

.project-visual-source span:nth-child(1) {
  left: 18%;
  top: 26%;
  width: 64%;
  height: 48%;
  border: 1px solid rgba(138, 166, 255, 0.26);
  border-radius: 0.75rem;
}

.project-visual-source span:nth-child(2),
.project-visual-source span:nth-child(3) {
  left: 28%;
  right: 28%;
  height: 1px;
  background: rgba(237, 237, 240, 0.42);
}

.project-visual-source span:nth-child(2) {
  top: 42%;
}

.project-visual-source span:nth-child(3) {
  top: 54%;
  opacity: 0.58;
}

.project-mark {
  position: relative;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: radial-gradient(circle, rgba(123, 132, 232, 0.35), rgba(255, 255, 255, 0.035));
}

.project-mark::before,
.project-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.project-mark::before {
  inset: 0.72rem;
  border: 1px solid rgba(237, 237, 240, 0.58);
}

.project-mark::after {
  left: 50%;
  top: 50%;
  width: 0.46rem;
  height: 0.46rem;
  background: #dfe2ff;
  transform: translate(-50%, -50%);
}

.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-proof-row li {
  position: relative;
  min-width: 0;
  min-height: 7.1rem;
  overflow: hidden;
  padding: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.86rem;
  background:
    radial-gradient(circle at 84% 8%, rgba(94, 106, 210, 0.18), transparent 5.5rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-proof-row li::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.16;
}

.hero-proof-row li::after {
  content: "";
  position: absolute;
  right: 0.72rem;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(147, 157, 255, 0.56);
  box-shadow: 0 0 18px rgba(123, 132, 232, 0.36);
}

.hero-proof-row span,
.hero-proof-row strong,
.hero-proof-row em {
  position: relative;
  z-index: 1;
  display: block;
  overflow-wrap: anywhere;
}

.hero-proof-row span {
  margin-bottom: 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-proof-row strong {
  color: var(--color-text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-proof-row em {
  margin-top: 0.28rem;
  color: rgba(220, 226, 255, 0.72);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.45;
}

.workflow-panel {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem;
}

.workflow-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 0 0 1.1rem;
}

.workflow-panel .workflow-map {
  margin-bottom: 0;
}

.workflow-map-compact {
  gap: 0.6rem;
}

.workflow-step {
  position: relative;
  min-height: 6.4rem;
  overflow: hidden;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 78% 6%, rgba(94, 106, 210, 0.18), transparent 6rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.016);
}

.workflow-step::after {
  content: "";
  position: absolute;
  right: -1.6rem;
  bottom: -1.8rem;
  width: 5.4rem;
  height: 5.4rem;
  border: 1px solid rgba(123, 132, 232, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 132, 232, 0.2), transparent 62%);
}

.workflow-index {
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.42rem;
  place-items: center;
  border: 1px solid rgba(123, 132, 232, 0.28);
  border-radius: 50%;
  color: #dfe2ff;
  background: rgba(94, 106, 210, 0.14);
  font-size: 0.72rem;
  font-weight: 800;
}

.workflow-step h3 {
  margin: 0 0 0.46rem;
  color: var(--color-text);
  font-size: 0.96rem;
  line-height: 1.25;
}

.workflow-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.58;
}

.stream-card {
  grid-template-columns: minmax(7.4rem, 10.5rem) minmax(0, 1fr) minmax(10.8rem, auto);
  align-items: stretch;
  padding: 0.84rem;
}

.stream-thumb {
  min-height: 6.2rem;
  border-radius: 0.84rem;
}

.stream-thumb::before,
.stream-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
}

.stream-thumb::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.22;
}

.stream-thumb span {
  position: absolute;
  display: block;
}

.stream-thumb-notes::after {
  inset: 26% 30%;
  border: 1px solid rgba(237, 237, 240, 0.34);
  border-radius: 0.42rem;
  background:
    linear-gradient(rgba(237, 237, 240, 0.22) 1px, transparent 1px) 0 32% / 100% 0.8rem,
    linear-gradient(180deg, rgba(237, 237, 240, 0.1), rgba(94, 106, 210, 0.13));
  box-shadow:
    0 0 34px rgba(123, 132, 232, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stream-thumb-notes span:nth-child(1) {
  left: 30%;
  top: 22%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 132, 232, 0.76), transparent);
}

.stream-thumb-notes span:nth-child(2) {
  left: 38%;
  top: 48%;
  width: 24%;
  height: 1px;
  background: rgba(237, 237, 240, 0.28);
  box-shadow:
    0 0.7rem 0 rgba(237, 237, 240, 0.2),
    0 1.4rem 0 rgba(237, 237, 240, 0.14);
}

.stream-thumb-notes span:nth-child(3) {
  right: 24%;
  bottom: 24%;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 237, 240, 0.84), rgba(123, 132, 232, 0.22) 58%, transparent 72%);
}

.stream-thumb-signal::after {
  inset: 18% 14% 24%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, rgba(123, 132, 232, 0.4), transparent 22%),
    conic-gradient(from 210deg, transparent 0 18%, rgba(123, 132, 232, 0.78) 24%, transparent 42% 100%);
  opacity: 0.88;
  transform: skewX(-10deg);
  mask-image: radial-gradient(ellipse at center, transparent 45%, black 46%, black 54%, transparent 55%);
}

.stream-thumb-signal span:nth-child(1) {
  left: 19%;
  right: 19%;
  top: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 237, 240, 0.26), transparent);
}

.stream-thumb-signal span:nth-child(2),
.stream-thumb-signal span:nth-child(3) {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: rgba(237, 237, 240, 0.7);
  box-shadow: 0 0 18px rgba(123, 132, 232, 0.72);
}

.stream-thumb-signal span:nth-child(2) {
  left: 32%;
  top: 43%;
}

.stream-thumb-signal span:nth-child(3) {
  right: 31%;
  top: 43%;
}

.stream-thumb-method::after {
  inset: 24% 22%;
  border: 1px solid rgba(123, 132, 232, 0.62);
  border-radius: 50%;
  box-shadow:
    2rem 1.15rem 0 -0.24rem rgba(123, 132, 232, 0.34),
    -1.5rem 2rem 0 -0.26rem rgba(237, 237, 240, 0.22);
}

.stream-thumb-method span:nth-child(1) {
  left: 29%;
  top: 37%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 237, 240, 0.4), transparent);
  transform: rotate(-12deg);
}

.stream-thumb-method span:nth-child(2) {
  left: 34%;
  top: 33%;
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: rgba(237, 237, 240, 0.72);
  box-shadow: 0 0 18px rgba(123, 132, 232, 0.68);
}

.stream-thumb-method span:nth-child(3) {
  right: 30%;
  bottom: 30%;
  width: 2.8rem;
  height: 1px;
  background: rgba(123, 132, 232, 0.5);
  transform: rotate(18deg);
}

.about-orbit-visual {
  width: min(14rem, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(237, 237, 240, 0.86), rgba(123, 132, 232, 0.34) 18%, transparent 46%),
    conic-gradient(from 140deg, transparent, rgba(123, 132, 232, 0.56), transparent 42%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    0 0 60px rgba(94, 106, 210, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-hub-shell,
.notes-hub-shell {
  max-width: 74rem;
}

.projects-hero-card,
.notes-hero-card {
  min-height: auto;
  background:
    radial-gradient(circle at 72% 32%, rgba(94, 106, 210, 0.15), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    var(--color-panel-soft);
}

.notes-hero-card {
  grid-template-columns: minmax(0, 0.72fr) minmax(14rem, 0.28fr);
  align-items: center;
  min-height: 15.5rem;
}

.notes-hero-card .eyebrow,
.notes-hero-card .article-title,
.notes-hero-card .article-lead {
  grid-column: 1;
}

.notes-hero-card .article-title {
  max-width: 16ch;
  font-size: clamp(2.15rem, 3.2vw, 2.8rem);
  line-height: 1.04;
}

.notes-hero-card .article-lead {
  max-width: 46rem;
}

.notes-hero-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  min-height: 11rem;
  overflow: hidden;
  border: 1px solid rgba(138, 166, 255, 0.12);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 54%, rgba(123, 132, 232, 0.32), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(7, 12, 23, 0.52);
  background-size: auto, 32px 32px, 32px 32px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.notes-hero-visual span {
  position: absolute;
  display: block;
}

.notes-hero-visual span:nth-child(1) {
  left: 16%;
  right: 16%;
  top: 31%;
  height: 4.4rem;
  border: 1px solid rgba(123, 132, 232, 0.52);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(94, 106, 210, 0.18);
}

.notes-hero-visual span:nth-child(2) {
  left: 28%;
  right: 28%;
  top: 43%;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(237, 237, 240, 0.72), transparent);
}

.notes-hero-visual span:nth-child(3) {
  left: 24%;
  right: 18%;
  bottom: 20%;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 132, 232, 0.72), rgba(139, 226, 214, 0.38), transparent);
  transform: rotate(-7deg);
}

.project-hub-shell .article-section,
.article-section {
  padding-top: 3.25rem;
}

.project-hub-shell .build-grid {
  margin-top: 0.1rem;
}

.article-section [data-reveal] {
  opacity: 1;
  transform: none;
}

section[id] {
  scroll-margin-top: 5.2rem;
}

.hero-mobile-visual {
  display: none;
}

@media (max-width: 1100px) {
  .hero-title {
    font-size: 3.8rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .article-title {
    font-size: 2.7rem;
  }

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

  .hero-copy {
    min-height: 0;
  }

  .hero-visual,
  .hero-lab-visual {
    min-height: 24rem;
  }

  .stream-card {
    grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  }

  .stream-meta {
    grid-column: 2;
    padding-left: 0;
  }

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

@media (max-width: 780px) {
  .article-section {
    padding-top: 1.6rem;
  }

  .article-shell {
    gap: 0.72rem;
  }

  .article-back {
    padding: 0.46rem 0.68rem;
    font-size: 0.86rem;
  }

  .article-nav {
    display: none;
  }

  .article-card,
  .projects-hero-card,
  .notes-hero-card {
    gap: 0.58rem;
    padding: 0.95rem;
  }

  .notes-hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .notes-hero-card .eyebrow,
  .notes-hero-card .article-title,
  .notes-hero-card .article-lead,
  .notes-hero-visual {
    grid-column: 1;
  }

  .notes-hero-card .article-title {
    max-width: 14ch;
    font-size: 1.95rem;
  }

  .notes-hero-visual {
    grid-row: auto;
    min-height: 7.2rem;
    margin-top: 0.24rem;
  }

  .note-trail {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .article-meta-list {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .note-trail li {
    min-height: 0;
    padding: 0.68rem;
  }

  .hero-section {
    padding-top: 2.25rem;
  }

  .hero-panel,
  .section-panel {
    padding: 0.72rem;
  }

  .module-head {
    align-items: stretch;
    flex-direction: column;
  }

  .module-button {
    justify-content: center;
    width: 100%;
  }

  .hero-title {
    max-width: 12.5ch;
    font-size: 2.65rem;
  }

  .section-title,
  .article-title {
    font-size: 2.05rem;
  }

  .article-title {
    max-width: none;
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .article-lead {
    font-size: 0.92rem;
  }

  .hero-copy {
    gap: 0.74rem;
  }

  .hero-copy > .eyebrow {
    order: 1;
  }

  .hero-title {
    order: 2;
  }

  .hero-title-zh {
    order: 3;
  }

  .hero-mobile-visual {
    position: relative;
    order: 7;
    display: block;
    min-height: 6.6rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.9rem;
    background:
      radial-gradient(circle at 68% 58%, rgba(82, 240, 211, 0.18), transparent 7rem),
      radial-gradient(circle at 18% 46%, rgba(123, 132, 232, 0.26), transparent 5rem),
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
      #07080d;
  }

  .hero-mobile-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.28;
  }

  .hero-mobile-visual span {
    position: absolute;
    display: block;
  }

  .hero-mobile-visual span:nth-child(1) {
    left: 8%;
    right: 32%;
    top: 48%;
    height: 0.18rem;
    border-radius: 999px;
    background:
      linear-gradient(90deg, transparent, rgba(111, 136, 255, 0.95) 24%, rgba(82, 240, 211, 0.76) 72%, transparent);
    box-shadow:
      0 0 16px rgba(111, 136, 255, 0.48),
      0 0 24px rgba(82, 240, 211, 0.18);
  }

  .hero-mobile-visual span:nth-child(2) {
    left: 12%;
    top: 30%;
    width: 55%;
    height: 2.65rem;
    border: 1px solid rgba(237, 237, 240, 0.18);
    border-radius: 0.72rem;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 9%, transparent 9% 26%, rgba(255, 255, 255, 0.12) 26% 39%, transparent 39% 58%, rgba(255, 255, 255, 0.12) 58% 70%, transparent 70%),
      rgba(8, 12, 22, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .hero-mobile-visual span:nth-child(3) {
    right: 8%;
    top: 18%;
    width: 6.6rem;
    height: 4.1rem;
    border: 1px solid rgba(216, 255, 248, 0.18);
    border-radius: 0.62rem;
    background:
      linear-gradient(108deg, transparent 0 16%, rgba(111, 136, 255, 0.8) 28%, transparent 42%),
      linear-gradient(72deg, transparent 0 44%, rgba(82, 240, 211, 0.9) 56%, transparent 72%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
      rgba(4, 8, 18, 0.84);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow:
      0 14px 26px rgba(0, 0, 0, 0.28),
      inset 0 -1.2rem 0 rgba(0, 0, 0, 0.18);
  }

  .hero-actions {
    order: 6;
  }

  .hero-lead {
    order: 4;
  }

  .hero-lead-zh {
    order: 5;
  }

  .hero-shortcuts {
    order: 8;
  }

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

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

  .workflow-panel {
    padding: 0.95rem;
  }

  .workflow-map {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
  }

  .workflow-step {
    min-height: 0;
    padding: 0.78rem;
  }

  .hero-shortcut,
  .button,
  .button-compact {
    max-width: 100%;
  }

  .hero-visual,
  .hero-lab-visual {
    display: none;
  }

  .lab-microscope {
    right: 7%;
    top: 4%;
    transform: rotate(-13deg) scale(0.72);
    transform-origin: top right;
  }

  .lab-slide {
    right: -2%;
    bottom: 12%;
    width: 68%;
  }

  .lab-wave {
    left: 8%;
    width: 40%;
  }

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

  .hero-strip-panel .hero-strip-item,
  .hero-strip-item {
    border-right: none;
    border-radius: 0.8rem;
  }

  .project-card-featured,
  .project-card-compact {
    min-height: 0;
  }

  .project-visual,
  .project-card-featured .project-visual {
    min-height: 8.2rem;
  }

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

  .stream-thumb {
    min-height: 7rem;
  }

  .stream-meta {
    grid-column: auto;
    justify-items: start;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100vw - 1rem, 1180px);
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark,
  .brand-sub,
  .hero-shortcut-label,
  .project-repo-link,
  .button {
    overflow-wrap: anywhere;
  }

  .hero-visual,
  .hero-lab-visual {
    min-height: 15.5rem;
  }

  .hero-visual-note {
    right: 0.65rem;
    bottom: 0.65rem;
    max-width: calc(100% - 1.3rem);
  }

  .project-visual,
  .stream-thumb {
    min-height: 6.5rem;
  }
}

/* Instrument Lab concept demo. */
.instrument-page {
  --beam-intensity: 0.82;
  --emission-intensity: 0.72;
  --signal-intensity: 0.56;
  --excitation-color: #6f88ff;
  --emission-color: #52f0d3;
}

.instrument-shell {
  max-width: 76rem;
}

.instrument-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.42fr);
  gap: 1rem;
  align-items: end;
  padding-block: clamp(1.1rem, 2.4vw, 1.7rem);
  background:
    radial-gradient(circle at 78% 28%, rgba(77, 237, 207, 0.12), transparent 18rem),
    radial-gradient(circle at 22% 18%, rgba(94, 106, 210, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.014)),
    var(--color-panel-soft);
}

.instrument-hero-card > * {
  min-width: 0;
}

.instrument-page .instrument-hero-card .article-title {
  max-width: 30rem;
  font-size: clamp(2rem, 3.45vw, 3.1rem);
  line-height: 1.05;
}

.instrument-title-zh {
  max-width: 34rem;
  margin: 0.14rem 0 0;
  color: rgba(237, 237, 240, 0.92);
  font-size: clamp(1.28rem, 2.25vw, 1.92rem);
  font-weight: 850;
  line-height: 1.06;
}

.instrument-page .instrument-hero-card .article-lead {
  max-width: 46rem;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
}

.instrument-disclaimer {
  margin: 0;
  border: 1px solid rgba(77, 237, 207, 0.18);
  border-radius: 0.5rem;
  padding: 0.84rem 0.94rem;
  color: #d8fff8;
  background:
    radial-gradient(circle at 12% 20%, rgba(77, 237, 207, 0.16), transparent 7rem),
    rgba(255, 255, 255, 0.035);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.instrument-disclaimer-small {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.76rem;
  font-weight: 600;
}

.instrument-workstation {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(22.5rem, 0.84fr);
  gap: 0.72rem;
  align-items: start;
}

.instrument-onboarding {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.instrument-onboarding p {
  margin: 0;
  border: 1px solid rgba(77, 237, 207, 0.12);
  border-radius: 0.5rem;
  padding: 0.68rem 0.76rem;
  color: var(--color-text-muted);
  background:
    radial-gradient(circle at 12% 10%, rgba(77, 237, 207, 0.11), transparent 6rem),
    rgba(255, 255, 255, 0.018);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.instrument-onboarding strong {
  display: block;
  margin-bottom: 0.14rem;
  color: #d8fff8;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.instrument-onboarding span,
.instrument-principle-strip span {
  display: block;
  margin-top: 0.18rem;
  color: rgba(198, 224, 255, 0.76);
  font-weight: 560;
  line-height: 1.55;
  text-transform: none;
}

.instrument-model-panel,
.instrument-control-panel,
.part-panel,
.diagnostics-panel,
.spectrum-panel,
.instrument-noscript {
  padding: 1rem;
}

.instrument-model-panel {
  position: sticky;
  top: 5.15rem;
  align-self: start;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(94, 106, 210, 0.18), transparent 24rem),
    radial-gradient(circle at 62% 55%, rgba(77, 237, 207, 0.1), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(5, 7, 11, 0.9);
}

.instrument-stage {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(94, 106, 210, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    #05070d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.32);
}

.instrument-stage-3d {
  display: none;
  min-height: 34rem;
  isolation: isolate;
}

.instrument-page.has-webgl-scene .instrument-stage-3d {
  display: block;
}

.instrument-page.has-webgl-scene .instrument-2d-fallback {
  display: none;
}

.instrument-page.has-2d-fallback .instrument-stage-3d {
  display: none;
}

.instrument-scene-host {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.instrument-scene-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.instrument-scene-host canvas:active {
  cursor: grabbing;
}

.instrument-scene-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  max-width: min(25rem, calc(100% - 2rem));
  pointer-events: none;
}

.instrument-scene-overlay p {
  margin: 0;
  color: rgba(237, 237, 239, 0.72);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.instrument-scene-overlay p + p {
  margin-top: 0.3rem;
  color: rgba(184, 195, 218, 0.76);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  overflow-wrap: anywhere;
}

.instrument-page[data-active-part="detector"] .instrument-scene-overlay p + p {
  color: rgba(216, 255, 248, 0.82);
}

.instrument-view-toolbar {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.instrument-view-toolbar button,
.instrument-view-toolbar span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.64rem;
  color: var(--color-text-muted);
  background: rgba(5, 7, 13, 0.72);
  font-size: 0.72rem;
  font-weight: 750;
  max-width: 100%;
  white-space: normal;
  backdrop-filter: blur(14px);
}

.instrument-view-toolbar button {
  color: #d8fff8;
  cursor: pointer;
  pointer-events: auto;
}

.instrument-view-toolbar button:hover,
.instrument-view-toolbar button:focus-visible {
  border-color: rgba(77, 237, 207, 0.35);
  color: var(--color-text);
  background: rgba(77, 237, 207, 0.1);
}

.instrument-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  pointer-events: none;
}

.instrument-operability-note {
  margin: 0.72rem 0 0;
  border: 1px solid rgba(77, 237, 207, 0.14);
  border-radius: 0.5rem;
  padding: 0.64rem 0.74rem;
  color: rgba(216, 255, 248, 0.84);
  background:
    radial-gradient(circle at 8% 20%, rgba(77, 237, 207, 0.1), transparent 8rem),
    rgba(255, 255, 255, 0.022);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.5;
}

.instrument-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.instrument-grid-bg {
  fill: rgba(255, 255, 255, 0.012);
  stroke: rgba(255, 255, 255, 0.08);
}

.instrument-rail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-linecap: round;
  stroke-width: 8;
}

.instrument-rail-emission {
  stroke: rgba(77, 237, 207, 0.16);
}

.instrument-angle-guide {
  fill: none;
  stroke: rgba(77, 237, 207, 0.36);
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.instrument-node rect,
.instrument-sample > rect,
.instrument-screen rect,
.instrument-guard rect {
  fill: url("#instrumentBody");
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.2;
}

.instrument-page[data-scan-mode="excitation"] .instrument-node-excitation rect,
.instrument-page[data-scan-mode="emission"] .instrument-node-emission rect,
.instrument-page[data-scan-mode="time"] .instrument-node-excitation rect,
.instrument-page[data-scan-mode="time"] .instrument-node-emission rect,
.instrument-page[data-scan-mode="single"] .instrument-node-excitation rect,
.instrument-page[data-scan-mode="single"] .instrument-node-emission rect {
  stroke: rgba(77, 237, 207, 0.38);
  filter: drop-shadow(0 0 16px rgba(77, 237, 207, 0.16));
}

.instrument-node circle,
.instrument-sample circle {
  fill: rgba(237, 237, 240, 0.16);
  stroke: rgba(237, 237, 240, 0.36);
  stroke-width: 1.2;
}

.instrument-node path,
.instrument-sample path,
.instrument-guard path {
  fill: none;
  stroke: rgba(237, 237, 240, 0.36);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.instrument-monochromator {
  --mono-frame-opacity: 0.54;
  --mono-fan-opacity: 0.2;
  --mono-selected-opacity: 0.44;
  --mono-ray-opacity: 0.48;
  --mono-grating-opacity: 0.78;
}

.instrument-page[data-scan-mode="excitation"] .instrument-node-excitation,
.instrument-page[data-scan-mode="emission"] .instrument-node-emission,
.instrument-page[data-scan-mode="time"] .instrument-node-excitation,
.instrument-page[data-scan-mode="time"] .instrument-node-emission,
.instrument-page[data-scan-mode="single"] .instrument-node-excitation,
.instrument-page[data-scan-mode="single"] .instrument-node-emission {
  --mono-frame-opacity: 0.72;
  --mono-fan-opacity: 0.34;
  --mono-selected-opacity: 0.86;
  --mono-ray-opacity: 0.72;
  --mono-grating-opacity: 0.98;
}

.instrument-monochromator .mono-real-assembly {
  overflow: visible;
}

.mono-module-plane {
  fill: rgba(5, 8, 14, var(--mono-frame-opacity, 0.54));
  stroke: rgba(176, 186, 206, 0.2);
  stroke-width: 1.2;
}

.mono-axis-line,
.mono-normal-line,
.mono-rotation-arc {
  fill: none;
  stroke: rgba(176, 186, 206, 0.24);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono-axis-line {
  stroke-dasharray: 5 5;
  stroke-width: 1.2;
}

.mono-normal-line {
  stroke-dasharray: 3 6;
  stroke-width: 1;
}

.mono-rotation-arc {
  stroke: rgba(216, 255, 248, 0.26);
  stroke-width: 1.3;
}

.mono-slit {
  fill: rgba(216, 255, 248, 0.64);
  stroke: rgba(5, 7, 13, 0.74);
  stroke-width: 1;
}

.mono-slit-entry {
  fill: rgba(115, 167, 255, 0.64);
}

.mono-slit-exit {
  fill: rgba(216, 255, 248, 0.7);
}

.mono-internal-ray,
.mono-spectrum-ray,
.mono-selected-band {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono-internal-ray {
  stroke: rgba(111, 136, 255, var(--mono-ray-opacity, 0.42));
  stroke-width: 3;
}

.mono-dispersion-fan {
  fill: url("#monoDispersionFan");
  opacity: var(--mono-fan-opacity, 0.24);
}

.mono-spectrum-ray {
  stroke-width: 1.9;
  opacity: calc(var(--mono-fan-opacity, 0.2) + 0.2);
}

.mono-spectrum-violet {
  stroke: rgba(119, 107, 255, 0.64);
}

.mono-spectrum-cyan {
  stroke: rgba(82, 240, 211, 0.72);
}

.mono-spectrum-amber {
  stroke: rgba(255, 209, 102, 0.6);
}

.mono-selected-band {
  stroke: rgba(216, 255, 248, var(--mono-selected-opacity, 0.42));
  stroke-width: 3.6;
  filter: url("#monoFineGlow");
}

.mono-grating-symbol {
  opacity: var(--mono-grating-opacity, 0.78);
}

.mono-grating-face {
  fill: url("#monoGratingFace");
  stroke: rgba(216, 255, 248, 0.62);
  stroke-width: 1.2;
}

.mono-grooves {
  fill: none;
  stroke: rgba(5, 20, 20, 0.56);
  stroke-linecap: round;
  stroke-width: 1;
}

.mono-pivot {
  fill: rgba(237, 237, 240, 0.78);
  stroke: rgba(5, 7, 13, 0.72);
  stroke-width: 1;
}

.mono-pivot-cross {
  fill: none;
  stroke: rgba(5, 7, 13, 0.68);
  stroke-linecap: round;
  stroke-width: 1;
}

.instrument-sample rect:nth-child(2) {
  fill: rgba(77, 237, 207, 0.08);
  stroke: rgba(77, 237, 207, 0.34);
}

.instrument-sample circle {
  fill: rgba(77, 237, 207, 0.2);
  filter: drop-shadow(0 0 18px rgba(77, 237, 207, 0.65));
}

.fluorescence-plume circle {
  fill: none;
  stroke: rgba(77, 237, 207, 0.34);
  stroke-width: 2.4;
  opacity: var(--emission-intensity, 0.72);
  filter: drop-shadow(0 0 14px rgba(77, 237, 207, 0.4));
}

.fluorescence-plume circle:nth-child(2) {
  opacity: calc(var(--emission-intensity, 0.72) * 0.52);
}

.fluorescence-plume circle:nth-child(3) {
  opacity: calc(var(--emission-intensity, 0.72) * 0.28);
}

.instrument-screen polyline {
  fill: none;
  stroke: #7df5df;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(77, 237, 207, 0.72));
}

.instrument-guard rect {
  fill: rgba(4, 6, 10, 0.88);
  stroke: rgba(115, 167, 255, 0.14);
}

.instrument-guard path {
  stroke: rgba(176, 186, 206, 0.54);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instrument-guard .guard-dump {
  fill: rgba(5, 7, 12, 0.94);
  stroke: rgba(176, 186, 206, 0.16);
}

.instrument-guard .guard-mouth {
  fill: rgba(0, 1, 4, 0.96);
  stroke: rgba(115, 167, 255, 0.18);
}

.instrument-guard .guard-groove {
  stroke: rgba(176, 186, 206, 0.28);
  stroke-width: 2;
}

.instrument-guard .guard-base {
  stroke: rgba(115, 167, 255, 0.32);
  stroke-width: 2.4;
}

.instrument-node text,
.instrument-sample text,
.instrument-screen text,
.instrument-guard text,
.instrument-axis-label,
.instrument-signal-label,
.instrument-angle-label {
  fill: rgba(237, 237, 240, 0.68);
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
}

.component-label {
  fill: rgba(237, 237, 240, 0.7);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
  text-anchor: middle;
}

.component-label-emission {
  fill: rgba(216, 255, 248, 0.74);
  font-size: 14px;
}

.component-label-sample {
  fill: rgba(237, 237, 240, 0.74);
}

.instrument-guard text {
  fill: rgba(176, 186, 206, 0.48);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-anchor: middle;
  text-transform: uppercase;
}

.instrument-axis-label,
.instrument-signal-label {
  fill: rgba(176, 186, 206, 0.54);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.instrument-axis-label-emission {
  display: none;
}

.instrument-axis-label-emission-clean {
  display: none;
  fill: rgba(216, 255, 248, 0.58);
  text-anchor: middle;
}

.instrument-axis-label-excitation {
  fill: rgba(176, 186, 206, 0.42);
}

.instrument-signal-label {
  fill: rgba(216, 255, 248, 0.46);
  font-size: 12px;
}

.instrument-angle-label {
  fill: rgba(216, 255, 248, 0.72);
  font-size: 12px;
  text-anchor: start;
  text-transform: uppercase;
}

.instrument-angle-label:not(.instrument-angle-label-clean) {
  display: none;
}

.instrument-angle-label-clean {
  display: block;
}

.beam {
  fill: none;
  stroke-linecap: round;
  stroke-width: 7;
  filter: url("#beamGlow");
  opacity: var(--beam-intensity, 0.82);
  stroke-dasharray: 18 16;
  animation: beam-flow 1200ms linear infinite;
}

.beam-excitation {
  stroke: url("#excitationGradient");
}

.beam-emission {
  stroke: url("#emissionGradient");
  opacity: var(--emission-intensity, 0.72);
  stroke-width: 8;
}

.beam-excitation-residual {
  opacity: 0.24;
  stroke-width: 4.5;
  stroke-dasharray: 8 13;
  filter: none;
}

.signal-output {
  fill: none;
  stroke: rgba(216, 255, 248, 0.46);
  stroke-linecap: round;
  stroke-width: 2.4;
  opacity: var(--signal-intensity, 0.56);
  stroke-dasharray: 10 14;
  filter: none;
}

.scan-badge {
  opacity: 0.86;
  pointer-events: none;
}

.scan-badge rect {
  fill: rgba(5, 7, 11, 0.56);
  stroke: rgba(255, 255, 255, 0.08);
}

.scan-badge text {
  fill: var(--color-text-muted);
  font-size: 10px;
  font-weight: 850;
  text-anchor: middle;
  text-transform: uppercase;
}

.instrument-page[data-scan-mode="excitation"] .scan-badge-excitation rect,
.instrument-page[data-scan-mode="emission"] .scan-badge-emission rect {
  fill: rgba(77, 237, 207, 0.12);
  stroke: rgba(77, 237, 207, 0.34);
}

.instrument-page[data-scan-mode="excitation"] .scan-badge-excitation text,
.instrument-page[data-scan-mode="emission"] .scan-badge-emission text {
  fill: #d8fff8;
}

.instrument-marker {
  cursor: pointer;
  outline: none;
}

.instrument-marker circle:not(.instrument-marker-hit) {
  fill: #d8fff8;
  stroke: rgba(237, 237, 240, 0.84);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 16px rgba(77, 237, 207, 0.78));
}

.instrument-marker-hit {
  fill: rgba(255, 255, 255, 0);
  stroke: transparent;
  filter: none;
  pointer-events: all;
}

.instrument-marker-hit + circle {
  pointer-events: none;
}

.instrument-marker.is-active circle:not(.instrument-marker-hit),
.instrument-marker:hover circle:not(.instrument-marker-hit),
.instrument-marker:focus-visible circle:not(.instrument-marker-hit) {
  fill: #ffffff;
  stroke: #7df5df;
  filter:
    drop-shadow(0 0 10px rgba(77, 237, 207, 0.95))
    drop-shadow(0 0 22px rgba(77, 237, 207, 0.52));
}

.instrument-flow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.38rem;
  margin-top: 0.72rem;
}

.instrument-principle-details {
  margin-top: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.86rem;
  background: rgba(255, 255, 255, 0.018);
}

.instrument-principle-details summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.68rem 0.78rem;
  color: #d8fff8;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.3;
  list-style: none;
  text-transform: uppercase;
}

.instrument-principle-details summary::-webkit-details-marker {
  display: none;
}

.instrument-principle-details summary::after {
  content: "+";
  flex: 0 0 auto;
  color: rgba(216, 255, 248, 0.8);
  font-size: 1rem;
}

.instrument-principle-details[open] summary::after {
  content: "-";
}

.instrument-principle-details summary span {
  display: block;
  margin: 0;
  color: rgba(198, 224, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
}

.instrument-principle-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0;
  padding: 0 0.68rem 0.7rem;
}

.instrument-principle-strip p {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.76rem;
  padding: 0.62rem 0.68rem 0.62rem 0.78rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
}

.instrument-principle-strip strong {
  display: block;
  margin-bottom: 0.22rem;
  color: #d8fff8;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.instrument-inline-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(139, 226, 214, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--color-text);
  background: rgba(139, 226, 214, 0.08);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.instrument-inline-actions {
  margin-top: -0.35rem;
}

.instrument-inline-action:hover,
.instrument-inline-action:focus-visible {
  border-color: rgba(139, 226, 214, 0.42);
  background: rgba(139, 226, 214, 0.14);
}

.instrument-inline-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.path-key {
  display: block;
  width: 2.1rem;
  height: 0.18rem;
  margin-bottom: 0.52rem;
  border-radius: 999px;
}

.path-key-excitation {
  background: linear-gradient(90deg, #5f7dff, #73a7ff);
  box-shadow: 0 0 12px rgba(96, 134, 255, 0.5);
}

.path-key-emission {
  background: linear-gradient(90deg, #52f0d3, #9af26f);
  box-shadow: 0 0 12px rgba(77, 237, 207, 0.38);
}

.path-key-residual {
  background: rgba(114, 145, 255, 0.42);
  box-shadow: 0 0 8px rgba(114, 145, 255, 0.18);
}

.path-key-signal {
  height: 0.08rem;
  background: rgba(123, 255, 231, 0.7);
  box-shadow: 0 0 8px rgba(77, 237, 207, 0.24);
}

.instrument-flow-strip button {
  min-width: 0;
  min-height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.72rem;
  padding: 0.56rem 0.42rem;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.instrument-flow-strip button:hover,
.instrument-flow-strip button:focus-visible,
.instrument-flow-strip button.is-active {
  border-color: rgba(77, 237, 207, 0.24);
  color: #d8fff8;
  background:
    radial-gradient(circle at 30% 10%, rgba(77, 237, 207, 0.12), transparent 5rem),
    rgba(255, 255, 255, 0.04);
}

.instrument-side {
  display: grid;
  gap: 0.68rem;
}

.source-data-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(77, 237, 207, 0.09), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.source-data-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.source-data-intro,
.source-data-status,
.source-data-caption,
.source-reference-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.source-data-intro {
  max-width: 28rem;
}

.source-data-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.36fr) minmax(0, 1fr);
  grid-template-areas:
    "controls chart"
    "facts chart";
  gap: 0.9rem;
  align-items: start;
}

.source-data-controls,
.source-data-facts,
.source-chart-wrap {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 1rem;
  background: rgba(5, 7, 13, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.source-data-controls {
  grid-area: controls;
  display: grid;
  gap: 0.72rem;
  padding: 0.86rem;
}

.source-dataset-cards {
  display: grid;
  gap: 0.5rem;
}

.source-dataset-card {
  display: grid;
  gap: 0.24rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.86rem;
  padding: 0.68rem 0.72rem;
  color: var(--color-text-muted);
  background:
    radial-gradient(circle at 8% 18%, rgba(77, 237, 207, 0.08), transparent 7rem),
    rgba(255, 255, 255, 0.022);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.source-dataset-card:hover,
.source-dataset-card:focus-visible,
.source-dataset-card.is-active {
  border-color: rgba(77, 237, 207, 0.3);
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 14%, rgba(77, 237, 207, 0.14), transparent 8rem),
    rgba(255, 255, 255, 0.04);
}

.source-dataset-card[data-source-card-kind="eem"] {
  border-color: rgba(77, 237, 207, 0.16);
}

.source-dataset-card__tag {
  color: rgba(216, 255, 248, 0.74);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-dataset-card strong {
  color: rgba(237, 237, 240, 0.9);
  font-size: 0.9rem;
  line-height: 1.28;
}

.source-dataset-card__note {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.42;
}

.source-data-facts {
  grid-area: facts;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0.86rem;
}

.source-data-facts div {
  display: grid;
  gap: 0.16rem;
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0.76rem;
  background: rgba(255, 255, 255, 0.028);
}

.source-data-facts dt {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-data-facts dd {
  margin: 0;
  color: rgba(237, 237, 240, 0.82);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.source-data-facts a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: #d8fff8;
}

.source-data-status {
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(77, 237, 207, 0.14);
  border-radius: 0.78rem;
  background: rgba(77, 237, 207, 0.055);
  color: rgba(216, 255, 248, 0.78);
}

.source-slice-panel {
  display: grid;
  gap: 0.64rem;
  padding: 0.72rem;
  border: 1px solid rgba(77, 237, 207, 0.16);
  border-radius: 0.86rem;
  background:
    radial-gradient(circle at 16% 4%, rgba(77, 237, 207, 0.1), transparent 8rem),
    rgba(77, 237, 207, 0.045);
}

.source-slice-panel[hidden] {
  display: none;
}

.source-slice-title {
  margin: 0;
  color: #d8fff8;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.source-chart-wrap {
  grid-area: chart;
  display: grid;
  gap: 0.7rem;
  padding: 0.86rem;
}

.source-chart-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.source-chart-meta p {
  margin: 0;
  padding: 0.54rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0.76rem;
  background: rgba(255, 255, 255, 0.025);
}

.source-chart-meta span,
.source-chart-meta strong {
  display: block;
}

.source-chart-meta span {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-chart-meta strong {
  margin-top: 0.12rem;
  color: #d8fff8;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.source-chart {
  width: 100%;
  aspect-ratio: 620 / 350;
  overflow: visible;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 58% 28%, rgba(77, 237, 207, 0.08), transparent 15rem),
    rgba(2, 3, 8, 0.64);
}

.source-chart-grid path {
  stroke: rgba(255, 255, 255, 0.07);
}

.source-trace {
  fill: none;
  stroke: #7df5df;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(77, 237, 207, 0.42));
}

.source-heatmap rect {
  shape-rendering: crispEdges;
}

.source-slice-marker line,
.source-slice-marker rect {
  vector-effect: non-scaling-stroke;
}

.source-slice-marker line {
  stroke: rgba(216, 255, 248, 0.9);
  stroke-width: 2.2;
  stroke-dasharray: 7 6;
  filter: drop-shadow(0 0 7px rgba(77, 237, 207, 0.58));
}

.source-slice-marker rect {
  fill: rgba(216, 255, 248, 0.1);
  stroke: rgba(216, 255, 248, 0.58);
  stroke-width: 1.4;
}

.source-slice-chart-wrap {
  display: grid;
  gap: 0.62rem;
}

.source-slice-chart-wrap[hidden] {
  display: none;
}

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

.source-slice-chart {
  width: 100%;
  aspect-ratio: 620 / 190;
  overflow: visible;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(104, 114, 217, 0.12), transparent 12rem),
    rgba(2, 3, 8, 0.6);
}

.source-slice-trace {
  stroke: #9af26f;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(154, 242, 111, 0.34));
}

.source-y-start,
.source-y-end {
  text-anchor: start;
}

.source-reference-note {
  padding-top: 0.05rem;
  color: rgba(176, 186, 206, 0.72);
}

.source-reference-note a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: #d8fff8;
}

.teaching-layer-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(104, 114, 217, 0.1), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
}

.teaching-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

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

.teaching-card {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.92rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(5, 7, 13, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.teaching-card span {
  color: rgba(216, 255, 248, 0.74);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teaching-card strong {
  color: rgba(237, 237, 240, 0.92);
  font-size: 0.9rem;
  line-height: 1.28;
}

.teaching-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.instrument-control-panel,
.part-panel,
.diagnostics-panel,
.spectrum-panel {
  display: grid;
  gap: 0.62rem;
}

.diagnostics-list {
  display: grid;
  gap: 0.46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-item {
  display: grid;
  gap: 0.16rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.78rem;
  padding: 0.58rem 0.64rem;
  background: rgba(255, 255, 255, 0.022);
}

.diagnostic-item strong {
  color: #d8fff8;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.diagnostic-item span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.diagnostic-item-warn {
  border-color: rgba(255, 211, 106, 0.2);
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 211, 106, 0.08), transparent 7rem),
    rgba(255, 255, 255, 0.022);
}

.diagnostic-item-warn strong {
  color: #ffe0a3;
}

.mode-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.mode-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 0.18rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.mode-selector button {
  min-height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.78rem;
  padding: 0.54rem 0.42rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.mode-selector button:hover,
.mode-selector button:focus-visible,
.mode-selector button.is-active {
  border-color: rgba(77, 237, 207, 0.24);
  color: #d8fff8;
  background:
    radial-gradient(circle at 30% 10%, rgba(77, 237, 207, 0.12), transparent 5rem),
    rgba(255, 255, 255, 0.045);
}

.control-stack {
  display: grid;
  gap: 0.56rem;
}

.advanced-geometry {
  display: grid;
  gap: 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.62rem;
  background:
    radial-gradient(circle at 16% 0%, rgba(111, 136, 255, 0.08), transparent 8rem),
    rgba(255, 255, 255, 0.02);
}

.advanced-geometry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  list-style: none;
}

.advanced-geometry summary::-webkit-details-marker {
  display: none;
}

.advanced-geometry summary::after {
  content: "+";
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1px solid rgba(77, 237, 207, 0.16);
  border-radius: 999px;
  color: #d8fff8;
  background: rgba(77, 237, 207, 0.045);
}

.advanced-geometry[open] summary::after {
  content: "-";
}

.advanced-geometry summary span,
.advanced-geometry summary strong {
  display: block;
}

.advanced-geometry summary strong {
  color: var(--color-text-muted);
  font-size: 0.74rem;
}

.advanced-geometry[open] {
  gap: 0.7rem;
}

.advanced-geometry-note {
  margin: 0;
}

.instrument-control {
  display: grid;
  gap: 0.28rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.instrument-control span {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.instrument-control strong {
  color: #d8fff8;
  font-weight: 800;
  white-space: nowrap;
}

.instrument-control input[type="range"] {
  width: 100%;
  min-height: 2.15rem;
  accent-color: #7df5df;
}

.instrument-control input[type="range"]:disabled {
  opacity: 0.48;
}

.instrument-select-control select {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.78rem;
  padding: 0.54rem 0.72rem;
  color: var(--color-text);
  background: #0a0b10;
}

.control-help {
  display: block;
  color: rgba(176, 186, 206, 0.74);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.32;
}

.instrument-status,
.part-panel p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.part-panel .part-hint {
  border: 1px solid rgba(77, 237, 207, 0.12);
  border-radius: 0.78rem;
  padding: 0.58rem 0.64rem;
  color: rgba(216, 255, 248, 0.82);
  background: rgba(77, 237, 207, 0.04);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.48;
}

.scan-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.44rem;
}

.scan-state-grid p {
  margin: 0;
  border: 1px solid rgba(77, 237, 207, 0.12);
  border-radius: 0.76rem;
  padding: 0.54rem 0.6rem;
  background: rgba(77, 237, 207, 0.035);
}

.scan-state-grid span,
.scan-state-grid strong {
  display: block;
}

.scan-state-grid span {
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scan-state-grid strong {
  margin-top: 0.14rem;
  color: #d8fff8;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.spectrum-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.spectrum-meta-grid p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.72rem;
  padding: 0.48rem 0.52rem;
  background: rgba(255, 255, 255, 0.018);
}

.spectrum-meta-grid span,
.spectrum-meta-grid strong {
  display: block;
}

.spectrum-meta-grid span {
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.spectrum-meta-grid strong {
  margin-top: 0.12rem;
  color: #d8fff8;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.instrument-page[data-active-part="source"] .part-panel,
.instrument-page[data-active-part="excitation"] .part-panel,
.instrument-page[data-active-part="sample"] .part-panel,
.instrument-page[data-active-part="emission"] .part-panel,
.instrument-page[data-active-part="detector"] .part-panel,
.instrument-page[data-active-part="output"] .part-panel {
  border-color: rgba(77, 237, 207, 0.16);
}

.spectrum-panel-head {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  justify-content: space-between;
}

.spectrum-readout {
  margin: 0;
  border: 1px solid rgba(77, 237, 207, 0.18);
  border-radius: 999px;
  padding: 0.36rem 0.62rem;
  color: #d8fff8;
  background: rgba(77, 237, 207, 0.06);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.spectrum-chart {
  width: 100%;
  aspect-ratio: 620 / 300;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 58% 35%, rgba(77, 237, 207, 0.08), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    rgba(4, 6, 10, 0.82);
}

.spectrum-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.spectrum-trace {
  fill: none;
  stroke: #7df5df;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(77, 237, 207, 0.62));
}

.spectrum-axis-label,
.spectrum-mode-label {
  fill: var(--color-text-muted);
  font-size: 16px;
  font-weight: 700;
}

.spectrum-axis-end {
  text-anchor: end;
}

.instrument-noscript {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@keyframes beam-flow {
  to {
    stroke-dashoffset: -34;
  }
}

@media (max-width: 1100px) {
  .instrument-hero-card,
  .instrument-workstation {
    grid-template-columns: 1fr;
  }

  .instrument-model-panel {
    position: static;
  }

  .instrument-stage {
    min-height: 24rem;
  }

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

  .source-data-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "chart"
      "facts";
  }

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

@media (max-width: 780px) {
  .instrument-onboarding {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    padding-bottom: 0.08rem;
    scroll-snap-type: x proximity;
  }

  .instrument-onboarding p {
    flex: 0 0 min(12rem, 72vw);
    padding: 0.46rem 0.58rem;
    font-size: 0.76rem;
    line-height: 1.28;
    scroll-snap-align: start;
  }

  .instrument-onboarding strong {
    margin-bottom: 0.04rem;
    font-size: 0.74rem;
  }

  .instrument-onboarding span {
    display: none;
  }

  .instrument-page .instrument-hero-card .article-title {
    font-size: clamp(1.68rem, 5.7vw, 2.05rem);
    line-height: 1.06;
  }

  .instrument-title-zh {
    font-size: clamp(1.22rem, 4.5vw, 1.58rem);
  }

  .instrument-page .instrument-hero-card .article-lead {
    font-size: 0.92rem;
  }

  .instrument-disclaimer {
    padding: 0.68rem 0.76rem;
  }

  .instrument-model-panel,
  .instrument-control-panel,
  .part-panel,
  .diagnostics-panel,
  .spectrum-panel,
  .source-data-panel,
  .instrument-noscript {
    padding: 0.88rem;
  }

  .source-data-head {
    display: grid;
  }

  .source-data-intro {
    max-width: none;
  }

  .instrument-stage {
    min-height: 19rem;
  }

  .instrument-scene-overlay p + p {
    display: none;
  }

  .instrument-axis-label,
  .instrument-signal-label {
    display: none;
  }

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

  .instrument-principle-strip {
    grid-template-columns: 1fr;
  }

  .instrument-principle-details summary {
    display: grid;
    gap: 0.28rem;
  }

  .instrument-principle-details summary::after {
    position: absolute;
    right: 0.78rem;
  }

  .mode-selector {
    grid-template-columns: 1fr;
  }

  .spectrum-panel-head {
    display: grid;
  }

  .scan-state-grid {
    grid-template-columns: 1fr;
  }

  .spectrum-meta-grid {
    grid-template-columns: 1fr;
  }

  .source-chart-meta {
    grid-template-columns: 1fr;
  }

  .source-slice-meta {
    grid-template-columns: 1fr;
  }

  .teaching-card-grid,
  .teaching-card-grid-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .instrument-shell {
    gap: 0.7rem;
  }

  .instrument-page .instrument-hero-card .article-title {
    font-size: clamp(1.54rem, 7.4vw, 1.82rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .instrument-title-zh {
    font-size: clamp(1.08rem, 5.3vw, 1.32rem);
  }

  .instrument-hero-card .article-lead,
  .instrument-disclaimer {
    overflow-wrap: anywhere;
  }

  .instrument-stage {
    min-height: 15.5rem;
  }

  .instrument-stage-3d {
    min-height: 18rem;
  }

  .instrument-scene-overlay {
    top: 0.72rem;
    left: 0.72rem;
    max-width: calc(100% - 1.44rem);
  }

  .instrument-scene-overlay p {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .instrument-scene-overlay p + p {
    font-size: 0.74rem;
  }

  .instrument-view-toolbar {
    right: 0.45rem;
    bottom: 0.45rem;
    left: 0.45rem;
    gap: 0.28rem;
    justify-content: center;
  }

  .instrument-view-toolbar button {
    border-radius: 0.5rem;
    padding: 0.3rem 0.44rem;
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .instrument-view-toolbar span {
    display: none;
  }

  .instrument-axis-label,
  .instrument-signal-label,
  .scan-badge {
    display: none;
  }

  .instrument-angle-label {
    font-size: 13px;
  }

  .instrument-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instrument-flow-strip button,
  .mode-selector button,
  .instrument-control,
  .control-help,
  .instrument-status,
  .part-panel p,
  .source-data-intro,
  .source-data-status,
  .source-data-caption,
  .source-reference-note,
  .source-data-facts dd {
    font-size: 0.78rem;
  }

  .spectrum-axis-label,
  .spectrum-mode-label {
    font-size: 14px;
  }

  .source-chart {
    aspect-ratio: 620 / 370;
  }

  .source-chart .spectrum-mode-label {
    display: none;
  }
}

@media (max-width: 420px) {
  .instrument-page .instrument-hero-card .article-title {
    max-width: 100%;
    font-size: 1.48rem;
  }

  .instrument-hero-card,
  .instrument-model-panel,
  .instrument-control-panel,
  .part-panel,
  .diagnostics-panel,
  .spectrum-panel,
  .source-data-panel {
    padding: 0.72rem;
  }

  .teaching-layer-panel {
    padding: 0.72rem;
  }

  .teaching-card {
    padding: 0.7rem;
  }

  .instrument-disclaimer {
    padding: 0.68rem 0.72rem;
    font-size: 0.78rem;
  }

  .instrument-stage {
    min-height: 14.2rem;
  }

  .instrument-stage-3d {
    min-height: 17rem;
  }

  .instrument-scene-overlay p + p {
    display: none;
  }
}

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

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

  .ambient-blob,
  .lab-aura,
  .beam {
    animation: none;
  }
}

.instrument-page.is-reduced-motion .beam {
  animation: none;
  stroke-dasharray: none;
}
