﻿:root {
  color-scheme: light;
  --ink: #1d2220;
  --muted: #6f7b75;
  --paper: #f4efe5;
  --paper-soft: #faf7f1;
  --deep: #101817;
  --deep-2: #172523;
  --jade: #3fb69f;
  --jade-2: #2f746a;
  --gold: #c29a55;
  --red: #b55245;
  --line: rgba(29, 34, 32, 0.13);
  --line-dark: rgba(218, 235, 229, 0.16);
  --shadow: 0 24px 80px rgba(18, 28, 26, 0.14);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  text-rendering: geometricPrecision;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.top-nav {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 24, 23, 0.62);
  color: #edf7f4;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}
.brand-mark, .top-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.brand-mark {
  justify-self: start;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
}
.top-nav nav { display: flex; justify-content: center; gap: 6px; }
.top-nav nav button { padding: 10px 14px; color: #c9d8d4; font-size: 14px; }
.top-nav nav button:hover { color: #fff; background: rgba(255,255,255,0.08); }

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 118px 24px 72px;
  background:
    radial-gradient(circle at 78% 22%, rgba(63, 182, 159, 0.18), transparent 30%),
    radial-gradient(circle at 18% 76%, rgba(194, 154, 85, 0.13), transparent 26%),
    linear-gradient(135deg, #0f1716 0%, #172523 52%, #efe8db 52.2%, #f4efe5 100%);
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
  animation: gridDrift 18s linear infinite;
}
.hero-shell {
  position: relative;
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { color: #edf7f4; animation: fadeUp 700ms ease both; }
.eyebrow, .kicker {
  margin: 0 0 12px;
  color: var(--jade);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(68px, 12vw, 136px);
  line-height: 0.95;
  font-weight: 650;
  letter-spacing: 0;
}
.hero-title {
  margin: 18px 0 0;
  font-size: clamp(19px, 2.2vw, 28px);
  color: #d7e6e1;
  font-weight: 650;
}
.hero-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: #b8c9c4;
  font-size: 18px;
  line-height: 1.86;
}
.tag-row, .stack-row, .verification-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-row { margin-top: 28px; }
.tag-row span, .stack-row span, .verification-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: #d6e5e0;
  font-size: 13px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.primary-action, .secondary-action, .back-btn, .lab-controls button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.primary-action { background: var(--jade); color: #07110f; }
.secondary-action { border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #edf7f4; }
.primary-action:hover, .secondary-action:hover, .back-btn:hover, .lab-controls button:hover { transform: translateY(-2px); }

.panel-head, .robot-toolbar, .panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  color: #9bb4ad;
  font-size: 12px;
  text-transform: uppercase;
}
.panel-head i { flex: 1; height: 1px; background: rgba(255,255,255,0.14); }
.visual-frame { fill: rgba(255,255,255,0.035); stroke: rgba(255,255,255,0.13); }
.eeg-line { fill: none; stroke: url(#heroLine); stroke-width: 3; filter: url(#glow); stroke-dasharray: 28 18; animation: dashMove 2.8s linear infinite; }
.eeg-line.l2 { opacity: 0.55; animation-duration: 3.6s; }
.node-map circle { fill: rgba(91,208,182,0.1); stroke: rgba(91,208,182,0.62); stroke-width: 2; }
.node-map path { fill: none; stroke: rgba(91,208,182,0.42); stroke-width: 2; }
.node-map text { fill: #dff8f2; font: 700 14px var(--mono); }
.arm-sketch rect { fill: #253748; stroke: #78a8b3; stroke-width: 3; }
.arm-sketch circle { fill: #13202b; stroke: #78a8b3; stroke-width: 5; }
.arm-sketch line { stroke: var(--gold); stroke-width: 15; stroke-linecap: round; }
.arm-sketch path { stroke: #d8ede7; stroke-width: 6; stroke-linecap: round; fill: none; }
.visual-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.visual-notes span { padding: 10px; background: rgba(255,255,255,0.06); color: #d8e8e3; text-align: center; font-size: 13px; }

.page-section { padding: 112px 24px; }
.section-title, .research-board, .project-stack, .collection-layout { width: min(1180px, 100%); margin: 0 auto; }
.section-title h2 {
  margin: 0;
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  font-weight: 650;
}
.section-desc { max-width: 820px; margin: 18px 0 0; color: var(--muted); line-height: 1.85; font-size: 17px; }
.research-section { background: linear-gradient(180deg, #f4efe5 0%, #edf2ed 100%); }
.research-board { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr); gap: 24px; margin-top: 38px; }
.research-card, .project-board, .music-panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.research-card { padding: 32px; }
.paper-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.abstract { margin: 20px 0 0; color: #37423d; font-size: 18px; line-height: 1.86; }
.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.question-grid div { padding: 16px; background: #f7faf6; border: 1px solid var(--line); }
.question-grid span { color: var(--red); font-family: var(--mono); font-size: 12px; }
.question-grid strong { display: block; margin-top: 8px; line-height: 1.65; }
.research-card h3 { margin: 0 0 14px; font-size: 24px; }
.clean-list { margin: 0; padding-left: 20px; color: #3f4944; line-height: 1.82; }
.pathway { display: grid; gap: 10px; margin: 20px 0; }
.path-node { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 13px; background: #f8fbf8; border: 1px solid var(--line); }
.path-node i { font-family: var(--mono); color: var(--jade-2); font-style: normal; font-weight: 900; }
.stack-row { margin: 16px 0; }
.stack-row span, .verification-row span { border-color: var(--line); background: rgba(47,116,106,0.07); color: #2f5d55; }
.award { margin: 18px 0; padding-left: 14px; border-left: 3px solid var(--gold); color: #514937; line-height: 1.7; }
.research-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.research-actions .primary-action { color: #fff; background: var(--deep-2); }
.text-link { color: var(--jade-2); font-weight: 850; text-decoration: none; }

.projects-section { background: var(--paper-soft); }
.project-stack { display: grid; gap: 28px; margin-top: 38px; }
.project-board { display: grid; grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1.18fr); gap: 26px; padding: 32px; }
.case-index { margin: 0 0 12px; color: var(--red); font-family: var(--mono); font-size: 13px; font-weight: 850; }
.project-narrative h3 { margin: 0; font-size: 30px; }
.project-subtitle { color: var(--jade-2); font-weight: 750; }
dl { margin: 22px 0; display: grid; gap: 14px; }
dt { color: var(--muted); font-size: 13px; font-weight: 900; }
dd { margin: 6px 0 0; color: #3f4944; line-height: 1.76; }
.stack-row.compact span { font-size: 12px; padding: 7px 10px; }
.project-visual { min-width: 0; }
.project-visual svg { width: 100%; min-height: 300px; background: linear-gradient(135deg, #f5f8f5, #eef3ef); border: 1px solid var(--line); }
.topology-node rect { fill: #fff; stroke: rgba(47,116,106,0.24); stroke-width: 2; transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease; }
.topology-node text { fill: var(--ink); font-size: 16px; font-weight: 850; pointer-events: none; }
.topology-node .node-type { fill: var(--muted); font-size: 12px; font-weight: 650; }
.topology-node.active rect, .topology-node:hover rect { fill: #e8f4f0; stroke: var(--jade-2); }
.verification-row { margin-top: 12px; }

.collection-section { background: #e9eeee; }
.collection-layout { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 24px; margin-top: 38px; }
.music-panel { padding: 32px; min-height: 260px; }
.music-panel h3 { margin: 0 0 18px; font-size: 26px; }
.music-panel p { color: var(--muted); line-height: 1.75; }
.music-panel iframe { width: 100%; height: 220px; border: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.flip-card { min-height: 260px; perspective: 1100px; }
.flip-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 620ms cubic-bezier(.2,.7,.2,1); }
.flip-card:hover .flip-inner { transform: rotateY(180deg) translateY(-4px); }
.flip-front, .flip-back { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; backface-visibility: hidden; border: 1px solid var(--line); }
.flip-front { background: linear-gradient(145deg, #1c2d2b, #516a65); color: #fff; }
.flip-front span { color: rgba(255,255,255,0.7); font-family: var(--mono); font-size: 12px; }
.flip-front strong { margin-top: 8px; font-size: 23px; }
.flip-back { background: #fff; color: #3f4944; line-height: 1.7; transform: rotateY(180deg); }

.lab-view { min-height: 100vh; padding: 28px; background: radial-gradient(circle at 74% 18%, rgba(63,182,159,0.15), transparent 28%), linear-gradient(135deg, #0f1716, #182724 52%, #ece5d9 52.2%, #f4efe5); }
.lab-header { width: min(1320px, 100%); margin: 0 auto 22px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; color: #edf7f4; }
.lab-header h1 { font-size: clamp(38px, 6vw, 78px); }
.lab-header p:last-child { max-width: 920px; color: #b8c9c4; line-height: 1.78; }
.back-btn { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.lab-grid { width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: 310px minmax(520px, 1fr) 280px; gap: 18px; align-items: stretch; }
.lab-panel { border: 1px solid rgba(255,255,255,0.16); background: rgba(248,251,248,0.94); box-shadow: 0 28px 90px rgba(0,0,0,0.22); }
.signal-panel, .ros-panel { padding: 18px; display: grid; gap: 16px; }
.panel-title { color: var(--muted); }
.panel-title strong { color: var(--jade-2); text-transform: none; }
.eeg-monitor { display: grid; gap: 11px; padding: 16px; background: #111c1a; overflow: hidden; }
.wave { height: 22px; background: linear-gradient(90deg, transparent, #5bd0b6, transparent); clip-path: polygon(0 50%, 8% calc(50% - var(--amp)), 18% 68%, 28% 38%, 38% 80%, 50% 42%, 62% 62%, 76% 26%, 88% 74%, 100% 48%); animation: waveMove 1.7s linear infinite; animation-delay: var(--delay); opacity: 0.82; }
.intent-box { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--line); background: #fff; }
.intent-box span { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.intent-box strong { display: block; margin-top: 8px; color: var(--ink); }
.intent-box i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--jade); transition: width 260ms ease; }
.telemetry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.telemetry-grid div { padding: 12px; background: #fff; border: 1px solid var(--line); }
.telemetry-grid span { color: var(--muted); font-size: 12px; }
.telemetry-grid strong { display: block; margin-top: 6px; font-size: 14px; }
.lab-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lab-controls button { background: var(--deep-2); color: #fff; }
.lab-controls button + button { background: #5f6c67; }
.robot-panel { padding: 18px; }
.robot-toolbar { margin-bottom: 12px; color: var(--muted); }
.robot-toolbar strong { color: var(--jade-2); font-size: 18px; }
.robot-canvas { width: 100%; min-height: 500px; display: block; }
.floor-grid path { stroke: rgba(47,116,106,0.14); stroke-width: 1; }
.planning-path { fill: none; stroke: rgba(181,82,69,0.42); stroke-width: 3; stroke-dasharray: 9 10; animation: dashMove 3s linear infinite; }
.planning-dot { fill: var(--red); transition: cx 360ms ease, cy 360ms ease; }
.vision-zone { opacity: 0.06; transition: opacity 240ms ease; }
.vision-zone.active { opacity: 0.32; }
.vision-zone path, .vision-zone circle { fill: var(--jade); }
.target rect { fill: #fff5f2; stroke: var(--red); stroke-width: 3; transition: fill 240ms ease; }
.target text { fill: var(--red); font-weight: 900; font-size: 18px; }
.target.locked rect { fill: #ffe4de; }
.target.grabbed { transform: translate(-34px, -24px); transition: transform 340ms ease; }
.robot { transition: transform 360ms cubic-bezier(.2,.7,.2,1); }
.base-body { fill: #244a66; stroke: #143247; stroke-width: 4; }
.base-deck { fill: #6c9ca0; stroke: #315e62; stroke-width: 3; }
.wheel { fill: #142332; stroke: #78a3ba; stroke-width: 9; }
.joint { fill: #f0d08a; stroke: #775f2f; stroke-width: 4; }
.arm-link { stroke: #aa9057; stroke-width: 24; stroke-linecap: round; }
.arm-link.secondary { stroke: #b89c60; }
.tool-link { stroke: #657b7f; stroke-width: 12; stroke-linecap: round; }
.gripper-line { fill: none; stroke: var(--red); stroke-width: 8; stroke-linecap: round; }
.joint-panel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.joint-panel div { padding: 10px; background: #fff; border: 1px solid var(--line); }
.joint-panel span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.joint-panel i { display: block; height: 7px; background: #e5ece8; overflow: hidden; }
.joint-panel b { display: block; height: 100%; background: var(--jade-2); transition: width 300ms ease; }
.ros-chain { display: grid; gap: 10px; }
.ros-chain div { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.ros-chain i { width: 10px; height: 10px; border-radius: 50%; background: #c7d2cc; }
.ros-chain div.active { color: var(--ink); border-color: rgba(47,116,106,0.34); background: #eef7f3; }
.ros-chain div.active i { background: var(--jade); box-shadow: 0 0 0 5px rgba(63,182,159,0.12); }
.log-window { min-height: 190px; padding: 14px; background: #111c1a; color: #6c827b; font-family: var(--mono); font-size: 12px; line-height: 1.8; }
.log-window p { margin: 0; }
.log-window p.active { color: #84f0d7; }
.lab-timeline { width: min(1320px, 100%); margin: 18px auto 0; padding: 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.88); box-shadow: 0 18px 60px rgba(0,0,0,0.16); }
.lab-timeline button { min-height: 64px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-weight: 850; }
.lab-timeline span { display: block; color: var(--red); font-family: var(--mono); font-size: 12px; }
.lab-timeline button.active { background: var(--deep-2); color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 56px 56px; } }
@keyframes dashMove { to { stroke-dashoffset: -72; } }
@keyframes waveMove { from { transform: translateX(-18px); } to { transform: translateX(18px); } }

@media (max-width: 1080px) {
  .hero-shell, .research-board, .project-board, .collection-layout, .lab-grid, .lab-header { grid-template-columns: 1fr; }
  .lab-grid { width: min(820px, 100%); }
  .ros-panel { order: 3; }
  .lab-timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .top-nav { grid-template-columns: 1fr auto; top: 10px; width: calc(100% - 20px); }
  .top-nav nav { display: none; }
  .hero-section { padding: 96px 18px 64px; background: linear-gradient(160deg, #0f1716 0%, #172523 68%, #f4efe5 68.2%); }
  h1 { font-size: 64px; }
  .hero-actions, .research-actions { display: grid; grid-template-columns: 1fr; }
  .primary-action, .secondary-action { width: 100%; }
  .visual-notes, .question-grid, .collection-grid, .telemetry-grid, .joint-panel, .lab-controls, .lab-timeline { grid-template-columns: 1fr; }
  .page-section { padding: 76px 18px; }
  .research-card, .project-board, .music-panel { padding: 22px; }
  .project-visual svg { min-height: 240px; }
  .lab-view { padding: 14px; }
  .robot-canvas { min-height: 360px; }
}
/* v3 visual refinement: research portfolio depth, generated assets, single lab entry */
.top-nav {
  grid-template-columns: 1fr auto;
  background: linear-gradient(135deg, rgba(12, 22, 20, 0.72), rgba(29, 55, 50, 0.58));
  border-color: rgba(91, 208, 182, 0.18);
}
.top-nav nav { justify-content: flex-end; }
.hero-section {
  background:
    radial-gradient(circle at 22% 20%, rgba(91, 208, 182, 0.18), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(194, 154, 85, 0.16), transparent 30%),
    linear-gradient(135deg, #0c1514 0%, #14211f 56%, #1d302c 100%);
}
.hero-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.34;
  pointer-events: none;
  animation: breatheGlow 8s ease-in-out infinite alternate;
}
.hero-glow.one { left: -12vw; top: 8vh; background: #3fb69f; }
.hero-glow.two { right: -16vw; bottom: -14vh; background: #c29a55; animation-delay: -2s; }
.hero-shell.hero-centered {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px;
  text-align: left;
}
.hero-centered .hero-copy {
  max-width: 900px;
}
.hero-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
  perspective: 1000px;
}
.focus-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    radial-gradient(circle at 30% 20%, rgba(91,208,182,0.18), transparent 45%);
  color: #e8f4f0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transform: translateY(calc(var(--i) * 6px)) rotateX(2deg);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.focus-card:hover {
  transform: translateY(-8px) rotateX(0deg) rotateY(-2deg);
  border-color: rgba(91,208,182,0.42);
}
.focus-card span {
  display: block;
  color: var(--jade);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}
.focus-card strong {
  display: block;
  margin-top: 38px;
  font-size: 22px;
}
.hero-actions.refined .primary-action { background: #e8f8f4; color: #10201d; }
.hero-actions.refined .secondary-action { border-color: rgba(232,248,244,0.28); }

.depth-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.depth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(63,182,159,0.34), transparent 34%, rgba(194,154,85,0.26));
  opacity: 0;
  filter: blur(18px);
  transition: opacity 240ms ease;
}
.depth-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 96px rgba(18,28,26,0.18);
  border-color: rgba(63,182,159,0.28);
}
.depth-card:hover::before { opacity: 0.72; }
.research-board.elevated {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: stretch;
}
.visual-paper {
  display: grid;
  gap: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.78), rgba(238,245,241,0.72)),
    radial-gradient(circle at 80% 10%, rgba(63,182,159,0.22), transparent 38%);
}
.visual-image-wrap,
.asset-stage,
.visual-image-wrap img,
.asset-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}
.bci-hero-image {
  min-height: 360px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.bci-hero-image:hover img,
.asset-stage:hover img,
.image-shine,
.asset-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.18) 42%, transparent 62%);
  transform: translateX(-120%);
  animation: shineSweep 5.8s ease-in-out infinite;
  pointer-events: none;
}
.compact-pathway {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}
.single-entry {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.lab-entry {
  min-width: 180px;
  box-shadow: 0 18px 42px rgba(47,116,106,0.24);
}
.research-assets {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: stretch;
}
.asset-stage {
  min-height: 360px;
  background: #111c1a;
  box-shadow: var(--shadow);
}
.asset-stage img { object-fit: contain; background: #f7faf8; padding: 12px; }
.asset-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 12px 14px;
  background: rgba(16,24,23,0.72);
  color: #fff;
  backdrop-filter: blur(12px);
}
.asset-caption span {
  display: block;
  color: var(--jade);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}
.asset-caption strong { display: block; margin-top: 4px; }
.asset-tabs {
  display: grid;
  gap: 10px;
}
.asset-tabs button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 0 16px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.asset-tabs button:hover,
.asset-tabs button.active {
  transform: translateX(-4px);
  background: var(--deep-2);
  color: #fff;
  border-color: rgba(63,182,159,0.4);
}
.projects-section .section-desc { max-width: 900px; }
.project-board {
  grid-template-columns: minmax(310px, 0.72fr) minmax(480px, 1.28fr);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(246,250,247,0.72)),
    radial-gradient(circle at 88% 12%, rgba(63,182,159,0.16), transparent 36%);
}
.architecture-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.architecture-overlay span {
  padding: 10px 12px;
  background: rgba(16,24,23,0.72);
  color: #e9f7f3;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  font-size: 13px;
}
.collection-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(63,182,159,0.12), transparent 28%),
    #e9eeee;
}
.flip-front { box-shadow: inset 0 0 42px rgba(91,208,182,0.1); }

@keyframes breatheGlow {
  from { transform: scale(0.92) translate3d(0,0,0); opacity: 0.24; }
  to { transform: scale(1.08) translate3d(3%, -2%, 0); opacity: 0.42; }
}
@keyframes shineSweep {
  0%, 42% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@media (max-width: 1080px) {
  .hero-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-board.elevated,
  .project-board,
  .research-assets { grid-template-columns: 1fr; }
  .asset-tabs { grid-template-columns: repeat(3, 1fr); }
  .asset-tabs button { min-height: 48px; text-align: center; }
}
@media (max-width: 760px) {
  .top-nav { grid-template-columns: 1fr auto; }
  .top-nav nav { display: flex; gap: 2px; }
  .top-nav nav button { padding: 8px 7px; font-size: 12px; }
  .hero-focus-grid,
  .compact-pathway,
  .asset-tabs { grid-template-columns: 1fr; }
  .focus-card { min-height: 96px; }
  .bci-hero-image,
  .asset-stage,
  .architecture-overlay { position: static; padding: 12px; background: #10201d; }
}

/* v4 readable engineering principle diagrams */
.principle-board {
  grid-template-columns: minmax(300px, 0.68fr) minmax(560px, 1.32fr);
}
.principle-diagram {
  position: relative;
  min-height: 520px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(29,34,32,0.12);
  background:
    radial-gradient(circle at 18% 12%, rgba(63,182,159,0.13), transparent 34%),
    linear-gradient(135deg, #f8fbf8 0%, #edf4f0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72);
}
.principle-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47,116,106,0.055) 1px, transparent 1px),
    linear-gradient(rgba(47,116,106,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.diagram-title,
.diagram-flow,
.rpc-pipeline,
.thread-split,
.principle-diagram .verification-row {
  position: relative;
  z-index: 1;
}
.diagram-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.diagram-title span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.diagram-title strong {
  font-size: 20px;
  color: var(--ink);
}
.diagram-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  gap: 14px;
  align-items: stretch;
}
.diagram-node {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(47,116,106,0.18);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 16px 34px rgba(18,28,26,0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.diagram-node:hover {
  transform: translateY(-4px);
  border-color: rgba(63,182,159,0.48);
  box-shadow: 0 22px 50px rgba(18,28,26,0.13);
}
.diagram-node small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.diagram-node strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
}
.diagram-node em {
  display: block;
  margin-top: 8px;
  color: #52605a;
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}
.diagram-node.core,
.diagram-node.reactor {
  background: linear-gradient(145deg, rgba(24,55,51,0.96), rgba(47,116,106,0.88));
  color: #fff;
}
.diagram-node.core small,
.diagram-node.core em,
.diagram-node.reactor small,
.diagram-node.reactor em { color: #c8e4dc; }
.diagram-node.core strong,
.diagram-node.reactor strong { color: #fff; }
.diagram-node.cache { border-color: rgba(194,154,85,0.32); }
.diagram-node.compute { border-color: rgba(181,82,69,0.28); }
.diagram-arrow {
  display: grid;
  place-items: center;
  color: var(--jade-2);
  font-size: 24px;
  font-weight: 900;
}
.rpc-pipeline {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 44px minmax(120px, 1fr) 44px minmax(150px, 1.15fr) 44px minmax(120px, 1fr) 44px minmax(150px, 1.15fr);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.packet-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 80px;
}
.packet-line i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade-2);
  animation: packetPulse 1.5s ease-in-out infinite;
}
.packet-line i:nth-child(2) { animation-delay: 120ms; }
.packet-line i:nth-child(3) { animation-delay: 240ms; }
.thread-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.thread-split div {
  padding: 14px;
  border: 1px solid rgba(29,34,32,0.12);
  background: rgba(255,255,255,0.68);
}
.thread-split span {
  display: block;
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}
.thread-split strong {
  display: block;
  margin-top: 8px;
  color: #37423d;
  line-height: 1.55;
}
.principle-diagram .verification-row {
  margin-top: 18px;
}
@keyframes packetPulse {
  0%, 100% { opacity: .28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
@media (max-width: 1080px) {
  .principle-board { grid-template-columns: 1fr; }
  .rpc-pipeline { grid-template-columns: 1fr; }
  .packet-line { min-height: 26px; transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .diagram-flow,
  .thread-split { grid-template-columns: 1fr; }
  .diagram-arrow { min-height: 22px; transform: rotate(90deg); }
  .principle-diagram { min-height: 0; padding: 18px; }
}

/* v5 main page refinements: interest label, stronger CTA, glass/rain, readable mobile diagrams */
.hero-section::after,
.research-section::after,
.projects-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 72%, rgba(255,255,255,0.13) 0 1.5px, transparent 3px);
  background-size: 180px 220px, 260px 300px, 220px 260px;
  mix-blend-mode: screen;
}
.research-section,
.projects-section { position: relative; overflow: hidden; }
.top-nav nav button {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.top-nav nav button:hover {
  border-color: rgba(91,208,182,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 30px rgba(63,182,159,0.12);
}
.compact-pathway {
  position: relative;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-left: 18px;
}
.compact-pathway::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--jade), rgba(194,154,85,0.72));
  box-shadow: 0 0 18px rgba(63,182,159,0.28);
}
.compact-pathway .path-node {
  position: relative;
  grid-template-columns: 52px 1fr;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(14px);
  border-color: rgba(47,116,106,0.18);
  box-shadow: 0 12px 34px rgba(18,28,26,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
}
.compact-pathway .path-node i {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #183733, #3fb69f);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(63,182,159,0.1);
}
.compact-pathway .path-node span {
  font-size: 17px;
  font-weight: 850;
  color: #20312d;
}
.single-entry {
  align-items: stretch;
  gap: 14px;
}
.lab-entry {
  min-height: 62px;
  min-width: 260px;
  padding: 0 30px;
  font-size: 19px;
  letter-spacing: 0;
  color: #06201a;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.45), transparent 24%, transparent 68%, rgba(255,255,255,0.28)),
    linear-gradient(135deg, #7cf0d7, #3fb69f 52%, #c29a55 145%);
  box-shadow: 0 22px 60px rgba(63,182,159,0.32), inset 0 1px 0 rgba(255,255,255,0.62);
  position: relative;
  overflow: hidden;
}
.lab-entry::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  width: 36%;
  left: -44%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: rotate(16deg);
  animation: ctaSweep 3.8s ease-in-out infinite;
}
.asset-stage img {
  animation: imageFadeIn 160ms ease-out both;
  transform: none !important;
}
.asset-stage:hover img { transform: none !important; filter: none; }
.asset-stage::after { display: none; }
.asset-stage { background: #edf5f1; }
.asset-stage img[alt="脑电设备"] {
  object-fit: scale-down;
  padding: 34px;
  background: #f7faf8;
}
.principle-diagram {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.oomall-diagram .diagram-flow {
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
}
.rpc-cluster-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(132px, .78fr) 52px minmax(150px, .86fr) 62px minmax(300px, 1.6fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.cluster-arrow {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--jade-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cluster-arrow i {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(47,116,106,0.2), var(--jade-2));
  position: relative;
}
.cluster-arrow i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border-left: 8px solid var(--jade-2);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.k3s-cluster {
  padding: 18px;
  border: 1px solid rgba(47,116,106,0.22);
  background: rgba(255,255,255,0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 44px rgba(18,28,26,0.1);
}
.cluster-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}
.cluster-title span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.cluster-title strong { color: var(--ink); font-size: 18px; }
.worker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.worker-node {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(63,182,159,0.26);
  background: linear-gradient(145deg, rgba(24,55,51,0.95), rgba(47,116,106,0.86));
  color: #fff;
  box-shadow: 0 14px 34px rgba(18,28,26,0.16);
}
.worker-node small { color: #bce4dc; font-weight: 800; }
.worker-node strong { display: block; margin-top: 10px; font-size: 16px; }
.worker-node em { display: block; margin-top: 8px; color: #d2ebe5; font-style: normal; font-size: 12px; line-height: 1.45; }
.rpc-notes { margin-top: 20px; }
@keyframes ctaSweep {
  0%, 45% { left: -44%; }
  70%, 100% { left: 116%; }
}
@keyframes imageFadeIn {
  from { opacity: 0; transform: translateY(6px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 1080px) {
  .principle-diagram {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .oomall-diagram .diagram-flow,
  .rpc-cluster-map {
    min-width: 860px;
  }
  .rpc-cluster-map { grid-template-columns: 150px 52px 170px 62px 390px; }
  .thread-split.rpc-notes { min-width: 760px; }
}
@media (max-width: 760px) {
  .compact-pathway { padding-left: 8px; }
  .compact-pathway::before { left: 24px; }
  .single-entry { display: grid; }
  .lab-entry { width: 100%; min-width: 0; }
  .principle-diagram { padding: 16px; }
  .oomall-diagram .diagram-flow,
  .rpc-cluster-map,
  .thread-split.rpc-notes { min-width: 820px; }
  .diagram-flow { grid-template-columns: 1fr 34px 1fr 34px 1fr !important; }
  .diagram-arrow { transform: none !important; }
  .worker-grid { grid-template-columns: repeat(3, 1fr); }
}

/* v6 distributed reflection effects */
.focus-card,
.diagram-node,
.worker-node,
.music-panel,
.flip-front,
.path-node,
.asset-tabs button {
  position: relative;
  overflow: hidden;
}
.focus-card::after,
.diagram-node::after,
.worker-node::after,
.music-panel::after,
.flip-front::after,
.path-node::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.22) 48%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
}
.focus-card:hover::after,
.diagram-node:hover::after,
.worker-node:hover::after,
.music-panel:hover::after,
.flip-card:hover .flip-front::after,
.path-node:hover::after {
  animation: localSweep 820ms ease-out;
}
.asset-tabs button {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(235,244,240,0.64));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 10px 24px rgba(18,28,26,0.06);
}
.asset-tabs button.active {
  background:
    linear-gradient(115deg, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(135deg, #183733, #2f746a);
  box-shadow: 0 18px 36px rgba(47,116,106,0.18), inset 0 1px 0 rgba(255,255,255,0.16);
}
.principle-diagram {
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -1px 0 rgba(47,116,106,0.08),
    0 22px 70px rgba(18,28,26,0.1);
}
.principle-diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(255,255,255,0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 32%, rgba(255,255,255,0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 82%, rgba(255,255,255,0.18) 0 1.4px, transparent 3px);
  background-size: 130px 170px, 210px 190px, 180px 230px;
  opacity: .48;
  mix-blend-mode: overlay;
}
.rpc-cluster-map,
.diagram-flow,
.thread-split,
.diagram-title {
  position: relative;
  z-index: 2;
}
@keyframes localSweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

/* v7 bug fixes: stable images, shorter research flow, contained RPC cluster */
.visual-image-wrap.bci-hero-image {
  height: clamp(300px, 34vw, 430px);
  min-height: 0;
  background: #0f1716;
}
.visual-image-wrap.bci-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}
.visual-image-wrap.bci-hero-image:hover img {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}
.visual-image-wrap.bci-hero-image .image-shine {
  opacity: .55;
  mix-blend-mode: screen;
}
.compact-pathway {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 8px 0 4px;
}
.compact-pathway .path-node {
  min-height: 72px;
}
.asset-stage {
  height: clamp(360px, 48vw, 560px);
  min-height: 0;
  display: grid;
  place-items: center;
  background: #f4faf7;
}
.asset-stage img,
.asset-stage:hover img,
.asset-stage img[alt="脑电设备"],
.asset-stage img[alt="脑电功能"] {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 24px !important;
  background: #f4faf7;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}
.rpc-diagram {
  justify-content: flex-start;
  min-height: 0;
}
.rpc-cluster-map {
  grid-template-columns: minmax(160px, .82fr) 48px minmax(190px, .95fr);
  grid-template-areas:
    "java arrow1 gateway"
    "cluster cluster cluster";
  gap: 18px;
  width: 100%;
  margin-top: 18px;
}
.java-client { grid-area: java; }
.gateway-node { grid-area: gateway; }
.rpc-cluster-map > .cluster-arrow:first-of-type { grid-area: arrow1; }
.rpc-cluster-map > .cluster-arrow.fanout { display: none; }
.k3s-cluster { grid-area: cluster; }
.worker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rpc-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .rpc-cluster-map,
  .thread-split.rpc-notes {
    min-width: 0 !important;
  }
  .principle-diagram {
    overflow-x: visible;
  }
}
@media (max-width: 760px) {
  .visual-image-wrap.bci-hero-image { height: 300px; }
  .asset-stage { height: 360px; }
  .rpc-cluster-map {
    grid-template-columns: 1fr;
    grid-template-areas:
      "java"
      "arrow1"
      "gateway"
      "cluster";
  }
  .cluster-arrow i {
    width: 2px;
    height: 34px;
  }
  .cluster-arrow i::after {
    right: -4px;
    top: auto;
    bottom: -2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--jade-2);
    border-bottom: 0;
  }
  .worker-grid,
  .rpc-notes { grid-template-columns: 1fr; }
}

/* v8 hard image stability + avatar */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero-identity img {
  width: clamp(86px, 10vw, 128px);
  height: clamp(86px, 10vw, 128px);
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 0 0 8px rgba(91,208,182,0.08);
  backdrop-filter: blur(16px);
}
.visual-image-wrap.bci-hero-image,
.asset-stage {
  contain: paint;
}
.visual-image-wrap.bci-hero-image > img,
.visual-image-wrap.bci-hero-image:hover > img,
.visual-image-wrap.bci-hero-image:focus-within > img,
.asset-stage > img,
.asset-stage:hover > img,
.asset-stage:focus-within > img {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(0,0,0) scale(1) !important;
  filter: none !important;
  transition: opacity 160ms ease !important;
  z-index: 1 !important;
}
.visual-image-wrap.bci-hero-image > img {
  object-fit: cover !important;
}
.visual-image-wrap.bci-hero-image:hover,
.asset-stage:hover {
  transform: none !important;
}
.visual-image-wrap.bci-hero-image .image-shine {
  z-index: 2;
  pointer-events: none;
}
.asset-stage .asset-caption {
  z-index: 3;
}
@media (max-width: 760px) {
  .hero-identity { align-items: flex-start; gap: 16px; }
  .hero-identity img { width: 76px; height: 76px; border-radius: 20px; }
}

/* v9 hero alignment, rounded avatar, concise focus cards, special evidence image sizing */
.brand-mark.back-top {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  padding: 9px 13px !important;
  border: 1px solid rgba(91,208,182,0.24) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.07) !important;
  color: #dff4ef !important;
}
.brand-mark.back-top:hover {
  background: rgba(91,208,182,0.14) !important;
  box-shadow: 0 10px 28px rgba(63,182,159,0.16), inset 0 1px 0 rgba(255,255,255,0.18);
}
.hero-identity {
  align-items: center !important;
  gap: 28px !important;
}
.hero-identity > div {
  display: grid;
  align-content: center;
  min-height: clamp(112px, 12vw, 150px);
}
.hero-identity img {
  border-radius: 50% !important;
  width: clamp(112px, 12vw, 150px) !important;
  height: clamp(112px, 12vw, 150px) !important;
  object-fit: cover !important;
}
.hero-identity h1 {
  font-size: clamp(76px, 13vw, 154px) !important;
  line-height: .9 !important;
}
.hero-identity .eyebrow {
  margin-bottom: 10px !important;
}
.hero-focus-grid {
  align-items: stretch !important;
}
.focus-card {
  min-height: 104px !important;
  height: 104px !important;
  display: grid;
  align-content: space-between;
  padding: 16px 18px !important;
}
.focus-card strong {
  margin-top: 0 !important;
  font-size: 20px !important;
  line-height: 1.25;
}
.asset-stage img[alt="脑电设备"],
.asset-stage img[alt="机械结构"] {
  width: auto !important;
  height: auto !important;
  max-width: min(78%, 760px) !important;
  max-height: 78% !important;
  object-fit: contain !important;
  padding: 0 !important;
  background: transparent !important;
}
.asset-stage img[alt="机械结构"] {
  max-width: min(86%, 900px) !important;
  max-height: 84% !important;
}
@media (max-width: 760px) {
  .brand-mark.back-top { padding: 8px 10px !important; font-size: 12px !important; }
  .hero-identity { gap: 16px !important; align-items: center !important; }
  .hero-identity img { width: 82px !important; height: 82px !important; }
  .hero-identity > div { min-height: 82px; }
  .hero-identity h1 { font-size: 54px !important; }
  .focus-card { height: 86px !important; min-height: 86px !important; }
}

/* v10 contact section, lab mode controls, realistic robot render, compact desktop back button */
.hero-identity h1 {
  font-size: clamp(58px, 8.5vw, 112px) !important;
}
.back-btn {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  justify-self: start;
  align-self: start;
  border-radius: 999px;
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(91,208,182,0.28) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.14);
}
.control-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.control-mode-grid button {
  min-height: 42px;
  border: 1px solid rgba(47,116,106,0.18);
  background: rgba(255,255,255,0.72);
  color: #24423d;
  cursor: pointer;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.control-mode-grid button:hover,
.control-mode-grid button.active {
  background: linear-gradient(135deg, #183733, #2f746a);
  color: #fff;
  border-color: rgba(63,182,159,0.48);
  transform: translateY(-1px);
}
.robot-render {
  filter: drop-shadow(0 26px 24px rgba(16,32,29,.24));
  transition: x 360ms ease, y 360ms ease, transform 360ms ease;
}
.contact-section {
  background:
    radial-gradient(circle at 16% 18%, rgba(63,182,159,0.14), transparent 30%),
    linear-gradient(180deg, #eef3ef, #f7f2e9);
}
.contact-layout {
  width: min(1180px, 100%);
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(16px);
}
.contact-card,
.thanks-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(47,116,106,0.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.84), rgba(239,247,243,0.68));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(18,28,26,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}
.contact-card::after,
.thanks-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.28) 48%, transparent 60%);
  transform: translateX(-130%);
}
.contact-card:hover::after,
.thanks-card:hover::after { animation: localSweep 900ms ease-out; }
.contact-card span,
.thanks-card span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.contact-card strong,
.thanks-card strong {
  display: block;
  margin-top: 22px;
  font-size: 24px;
  line-height: 1.25;
}
.contact-card small,
.thanks-card p {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
@media (max-width: 1080px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-identity h1 { font-size: 48px !important; }
  .back-btn { width: auto !important; min-height: 42px !important; height: 42px !important; }
  .control-mode-grid { grid-template-columns: 1fr; }
  .contact-layout { padding: 16px; }
}

/* v11 hero information hierarchy, compact focus cards, scroll cue, line footer */
.hero-section {
  position: relative;
  min-height: 100svh;
}
.hero-shell.hero-centered {
  padding-bottom: clamp(80px, 10vh, 118px) !important;
}
.hero-identity h1 {
  font-size: clamp(50px, 7.2vw, 92px) !important;
  line-height: .92 !important;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  color: #dcece8;
  font-family: var(--sans);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 850;
  line-height: 1.35;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(91,208,182,0.2);
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 32px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}
.hero-meta span:first-child {
  color: #10221f;
  background: linear-gradient(135deg, rgba(221,255,248,0.92), rgba(91,208,182,0.72));
  border-color: rgba(205,255,246,0.56);
}
.hero-summary {
  max-width: 1120px !important;
  margin-top: 22px !important;
}
.hero-focus-grid {
  margin-top: clamp(18px, 3vh, 30px) !important;
  transform: translateY(-14px);
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.focus-card {
  min-height: 76px !important;
  height: 76px !important;
  padding: 12px 14px !important;
  align-content: center !important;
  gap: 6px;
}
.focus-card span {
  font-size: 12px !important;
}
.focus-card strong {
  font-size: clamp(15px, 1.45vw, 18px) !important;
  line-height: 1.2 !important;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: rgba(216,245,238,0.38);
  font-size: 76px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 24px rgba(91,208,182,0.48), 0 12px 26px rgba(0,0,0,0.28);
  animation: scrollCueFloat 1.9s ease-in-out infinite;
  z-index: 3;
}
.scroll-cue:hover {
  color: rgba(223,255,248,0.62);
}
@keyframes scrollCueFloat {
  0%, 100% { transform: translate(-50%, 0); opacity: .42; }
  50% { transform: translate(-50%, 10px); opacity: .24; }
}
.contact-footer {
  padding: 56px clamp(22px, 5vw, 72px) 34px;
  background: linear-gradient(180deg, #f3f4ee, #e7eee9);
  border-top: 1px solid rgba(47,116,106,0.14);
}
.contact-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.footer-thanks {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
}
.footer-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(47,116,106,0.18);
  border-bottom: 1px solid rgba(47,116,106,0.18);
}
.footer-lines a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #193430;
  text-decoration: none;
  font-family: var(--sans);
}
.footer-lines a:hover strong,
.footer-lines a:hover em {
  color: var(--green);
}
.footer-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #eafaf6;
  background: linear-gradient(135deg, #122722, #2f746a);
  box-shadow: 0 10px 24px rgba(47,116,106,0.2), inset 0 1px 0 rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 900;
}
.footer-lines strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-lines em {
  font-style: normal;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.footer-copy {
  margin: 0;
  color: rgba(43,68,63,0.72);
  font-family: var(--mono);
  font-size: 13px;
}
@media (max-width: 900px) {
  .hero-focus-grid { grid-template-columns: 1fr 1fr !important; transform: none; }
  .focus-card { height: 84px !important; min-height: 84px !important; }
}
@media (max-width: 760px) {
  .hero-shell.hero-centered { padding-bottom: 74px !important; }
  .hero-identity h1 { font-size: 46px !important; }
  .hero-meta { font-size: 15px; }
  .hero-meta span { width: 100%; }
  .hero-summary br { display: none; }
  .scroll-cue { width: 58px; height: 58px; font-size: 52px; bottom: 12px; }
  .hero-focus-grid { grid-template-columns: 1fr !important; }
  .footer-lines { display: grid; gap: 12px; }
}

/* v12 subtle firefly particles on hero only */
.firefly-layer {
  position: absolute;
  inset: 88px 0 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  mix-blend-mode: screen;
}
.firefly-layer i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(190, 255, 226, 0.72);
  box-shadow:
    0 0 10px rgba(126, 244, 204, 0.42),
    0 0 22px rgba(91, 208, 182, 0.22);
  opacity: 0.18;
  transform: translate3d(0,0,0);
  animation: fireflyDrift 8.5s ease-in-out infinite;
  animation-delay: var(--d);
}
.firefly-layer i:nth-child(3n) {
  background: rgba(255, 226, 150, 0.58);
  box-shadow: 0 0 12px rgba(255, 218, 128, 0.25), 0 0 24px rgba(91, 208, 182, 0.12);
  animation-duration: 10.5s;
}
.firefly-layer i:nth-child(4n) {
  opacity: 0.12;
  animation-duration: 12s;
}
@keyframes fireflyDrift {
  0%, 100% {
    opacity: 0.10;
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  38% {
    opacity: 0.24;
    transform: translate3d(18px, -22px, 0) scale(1.35);
  }
  68% {
    opacity: 0.15;
    transform: translate3d(-16px, 18px, 0) scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .firefly-layer i { animation: none; opacity: 0.12; }
}
@media (max-width: 760px) {
  .firefly-layer i:nth-child(n+12) { display: none; }
}

/* v13 requested homepage tightening and clearer ambient particles */
.hero-actions.refined {
  display: none !important;
}
.hero-meta span:nth-child(2) {
  background: rgba(255,255,255,0.075) !important;
}
.hero-focus-grid {
  margin-top: clamp(14px, 2vh, 22px) !important;
  transform: translateY(-32px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.focus-card {
  height: 70px !important;
  min-height: 70px !important;
}
.scroll-cue {
  bottom: 18px !important;
  width: 190px !important;
  height: 74px !important;
  display: grid !important;
  place-items: center !important;
  gap: 0 !important;
  color: rgba(226,255,247,0.82) !important;
  text-shadow: 0 0 18px rgba(91,208,182,0.72), 0 0 38px rgba(255,224,142,0.22) !important;
  animation: scrollCueFloat 1.35s ease-in-out infinite !important;
}
.scroll-cue span {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .03em;
  color: rgba(231,255,249,0.76);
}
.scroll-cue strong {
  display: block;
  margin-top: -8px;
  font-size: 62px;
  line-height: .78;
  font-weight: 600;
}
.firefly-layer i {
  width: calc(var(--s) + 2px) !important;
  height: calc(var(--s) + 2px) !important;
  background: rgba(202, 255, 230, 0.92) !important;
  box-shadow:
    0 0 10px rgba(202,255,230,0.85),
    0 0 26px rgba(91,208,182,0.5),
    0 0 54px rgba(91,208,182,0.2) !important;
  opacity: .34 !important;
}
.firefly-layer i:nth-child(3n) {
  background: rgba(255, 229, 146, 0.82) !important;
  box-shadow:
    0 0 12px rgba(255,229,146,0.62),
    0 0 30px rgba(255,207,91,0.28) !important;
}
.firefly-layer i:nth-child(5n) {
  width: 7px !important;
  height: 7px !important;
  opacity: .28 !important;
}
.footer-icon.icon-img img {
  width: 18px;
  height: 18px;
  display: block;
}
@media (max-width: 900px) {
  .hero-focus-grid { grid-template-columns: 1fr !important; transform: translateY(-18px) !important; }
  .focus-card { height: 74px !important; min-height: 74px !important; }
}
@media (max-width: 760px) {
  .scroll-cue { width: 148px !important; height: 60px !important; bottom: 8px !important; }
  .scroll-cue span { font-size: 12px; }
  .scroll-cue strong { font-size: 46px; }
}


/* v14b brighter fireflies and safer scroll cue offset */
.firefly-layer i {
  width: calc(var(--s) + 3px) !important;
  height: calc(var(--s) + 3px) !important;
  opacity: .48 !important;
  background: rgba(178, 255, 176, 0.96) !important;
  box-shadow:
    0 0 8px rgba(218,255,165,0.95),
    0 0 22px rgba(124,255,154,0.76),
    0 0 48px rgba(91,208,182,0.38),
    0 0 78px rgba(255,214,92,0.18) !important;
}
.firefly-layer i:nth-child(2n) {
  background: rgba(255, 232, 119, 0.92) !important;
  box-shadow:
    0 0 8px rgba(255,244,164,0.95),
    0 0 24px rgba(255,216,80,0.62),
    0 0 52px rgba(124,255,154,0.22) !important;
}
.firefly-layer i:nth-child(5n) {
  width: 8px !important;
  height: 8px !important;
  opacity: .38 !important;
}
.scroll-cue {
  bottom: 46px !important;
}
@media (max-width: 760px) {
  .scroll-cue { bottom: 24px !important; }
}
