:root {
  --bg: #070b12;
  --paper: #0e1522;
  --panel: #121d2c;
  --panel-soft: #172235;
  --ink: #edf6ff;
  --muted: #93a4b8;
  --line: rgba(150, 180, 210, 0.18);
  --accent: #4fd7ca;
  --accent-2: #ff7a59;
  --accent-soft: #102f3b;
  --sun: #ffd166;
  --blue: #7aa7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(79, 215, 202, 0.12), transparent 28vw),
    radial-gradient(circle at 86% 18%, rgba(122, 167, 255, 0.12), transparent 30vw),
    linear-gradient(rgba(150, 180, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 210, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  overflow-x: hidden;
}

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

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

.page-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
}

.tactile-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(79, 215, 202, 0.72);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(calc(var(--cursor-x, -40px) - 50%), calc(var(--cursor-y, -40px) - 50%), 0)
    scale(1);
  transition:
    width 180ms ease,
    height 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
  mix-blend-mode: screen;
}

.tactile-cursor::after {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.tactile-cursor.is-active {
  opacity: 1;
}

.tactile-cursor.is-expanded {
  width: 56px;
  height: 56px;
  background: rgba(79, 215, 202, 0.12);
}

.reveal-item,
.project-card,
.person-card,
.publication-item {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible,
.project-card.is-visible,
.person-card.is-visible,
.publication-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  min-height: 62px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(22px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  background: rgba(79, 215, 202, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.brand-mark,
.lang-button,
.primary-link,
.ghost-link {
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.brand:hover .brand-mark {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-3deg);
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.brand-copy span:first-child {
  font-weight: 700;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  gap: clamp(16px, 3vw, 38px);
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

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

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--ink);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 96px;
  min-width: 96px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(18, 29, 44, 0.72);
}

.lang-button {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

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

.lang-button.active {
  background: var(--ink);
  color: var(--paper);
}

.section-band {
  padding: clamp(46px, 7vw, 88px) clamp(18px, 4vw, 56px) 40px;
}

.home-hero {
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) clamp(18px, 4vw, 56px) clamp(42px, 6vw, 72px);
}

.home-deco {
  width: min(100%, 420px);
  margin: 0 0 0 auto;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease;
}

.home-deco img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: saturate(0.72) brightness(0.62) contrast(1.12);
  box-shadow: var(--shadow);
}

.home-index {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 62px) clamp(18px, 4vw, 56px) clamp(62px, 8vw, 96px);
}

.home-index-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.home-index-head h2 {
  grid-column: 1;
}

.home-index-head p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
}

.home-topic-list {
  display: grid;
}

.home-topic {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.home-topic img {
  width: 136px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: saturate(0.75) brightness(0.68) contrast(1.1);
}

.home-topic h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 26px);
}

.home-topic a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.home-topic a::before {
  color: var(--accent);
  content: "- ";
}

.home-topic a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  min-height: 44vh;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px) clamp(38px, 6vw, 68px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(79, 215, 202, 0.08), transparent 38%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  position: absolute;
  right: -8vw;
  bottom: -16vw;
  width: 38vw;
  height: 38vw;
  border: 1px solid rgba(23, 27, 25, 0.12);
  border-radius: 50%;
  content: "";
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.page-hero > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
}

.page-hero-dark {
  background:
    radial-gradient(circle at 80% 26%, rgba(216, 162, 29, 0.24), transparent 24%),
    linear-gradient(135deg, #171b19, #26332f);
  color: var(--paper);
}

.page-hero-dark > p {
  color: rgba(255, 253, 248, 0.74);
}

.page-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.page-photo {
  margin: 0;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease;
}

.page-photo img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  filter: saturate(0.88) brightness(0.76) contrast(1.08);
}

.page-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
}

.detail-list {
  border-top: 1px solid var(--line);
}

.project-grid-large {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.expand-stack {
  display: grid;
  border-top: 1px solid var(--line);
}

.expand-card,
.publication-detail {
  border-bottom: 1px solid var(--line);
}

.expand-card summary,
.publication-detail summary {
  cursor: pointer;
  list-style: none;
}

.expand-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 740;
}

.expand-card summary::after,
.publication-detail summary::after {
  color: var(--accent);
  content: "+";
  font-size: 28px;
  transition: transform 180ms ease;
}

.expand-card[open] summary::after,
.publication-detail[open] summary::after {
  transform: rotate(45deg);
}

.expand-card summary::-webkit-details-marker,
.publication-detail summary::-webkit-details-marker {
  display: none;
}

.expand-card p,
.publication-detail > p {
  margin: 0;
  padding: 0 54px 26px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  min-height: min(760px, calc(86vh - 62px));
  position: relative;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  right: -12vw;
  bottom: 3vw;
  width: 44vw;
  height: 44vw;
  border: 1px solid rgba(23, 27, 25, 0.11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.hero h1::selection,
h2::selection,
h3::selection {
  background: var(--sun);
  color: var(--ink);
}

.hero-en {
  margin: 18px 0 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.6vw, 34px);
  line-height: 1;
}

.hero-intro {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.8;
}

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

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.primary-link {
  background: var(--accent);
  color: #061014;
}

.ghost-link {
  background: transparent;
}

.primary-link:hover,
.ghost-link:hover {
  transform: translateY(-2px);
}

.primary-link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.ghost-link:hover {
  background: var(--paper);
}

.hero-visual {
  position: relative;
  margin: 0;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    transform 180ms ease,
    filter 180ms ease;
  will-change: transform;
}

.hero-visual::before {
  position: absolute;
  inset: -14px 24px 26px -18px;
  border: 1px solid var(--ink);
  content: "";
  transform: translate(14px, 14px);
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  object-fit: cover;
  filter: saturate(0.9) brightness(0.78) contrast(1.08);
}

.hero-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 12px;
  border: 1px solid rgba(79, 215, 202, 0.32);
  background: rgba(7, 11, 18, 0.78);
  color: var(--paper);
  backdrop-filter: blur(16px);
}

.hero-visual figcaption span {
  color: var(--sun);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-visual figcaption strong {
  font-size: 15px;
}

.lab-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 21, 34, 0.72);
}

.lab-metrics div {
  display: grid;
  gap: 6px;
  min-height: 96px;
  align-content: center;
  padding: 20px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.lab-metrics div::after {
  position: absolute;
  inset: auto -20% -60% auto;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(0, 106, 103, 0.16);
  border-radius: 50%;
  content: "";
  transition: transform 260ms ease;
}

.lab-metrics div:hover::after {
  transform: translate(-18px, -18px) scale(1.45);
}

.lab-metrics div:last-child {
  border-right: 0;
}

.lab-metrics strong {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.lab-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.content-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.content-section > * {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.section-tinted {
  background:
    linear-gradient(90deg, rgba(79, 215, 202, 0.07), transparent 42%),
    rgba(14, 21, 34, 0.55);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3.8vw, 48px);
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.04;
}

.section-body p,
.join-layout p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
}

.section-body p:last-child,
.join-layout p:last-child {
  margin-bottom: 0;
}

.compact-grid {
  margin-top: clamp(46px, 6vw, 72px);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-grid article {
  min-height: 186px;
  padding: 22px;
  background: var(--paper);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.focus-grid span,
.project-meta,
.publication-list span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.focus-grid article:hover {
  background: rgba(79, 215, 202, 0.1);
  transform: translateY(-4px);
}

h3 {
  margin: 14px 0 9px;
  font-size: 18px;
  line-height: 1.25;
}

.focus-grid p,
.project-card p,
.publication-list p,
.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.people-block {
  margin-top: 18px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.person-card {
  min-width: 0;
  padding: 14px 14px 18px;
  background: var(--paper);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.person-card:hover {
  background: rgba(122, 167, 255, 0.1);
  transform: translateY(-5px);
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: saturate(0.9);
  opacity: 0.86;
}

.person-card h3 {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--line);
}

.project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(14, 21, 34, 0.92);
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(34px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

.project-card.is-visible {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(0);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--glow-x) var(--glow-y),
    rgba(255, 253, 248, 0.52),
    transparent 34%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.project-card:hover {
  z-index: 2;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.project-card:hover::after {
  opacity: 1;
}

.wide-card {
  grid-column: span 1;
}

.project-image {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.76) contrast(1.08);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-card h3,
.project-card p,
.project-meta {
  margin-right: 18px;
  margin-left: 18px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.project-card p {
  margin-bottom: 20px;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 18px 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.demo-link::after,
.demo-tile::after {
  content: "↗";
  transition: transform 180ms ease;
}

.demo-link:hover::after,
.demo-tile:hover::after {
  transform: translate(4px, -4px);
}

.demo-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.demo-tile {
  position: relative;
  min-height: 230px;
  padding: 26px;
  background: var(--paper);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.demo-tile:hover {
  background: rgba(79, 215, 202, 0.1);
  transform: translateY(-4px);
}

.demo-tile span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.demo-tile strong {
  display: block;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.2;
}

.demo-tile p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.demo-tile::after {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--accent);
  font-size: 24px;
}

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

.publication-list article {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition:
    padding-left 180ms ease,
    background 180ms ease;
}

.publication-list article::after {
  position: absolute;
  top: 28px;
  right: 0;
  color: var(--accent);
  content: "↗";
  font-size: 22px;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.publication-list article:hover {
  padding-left: 14px;
  background: rgba(79, 215, 202, 0.07);
}

.publication-list article:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.publication-detail {
  display: block;
  position: relative;
  padding: 0;
  transition: background 180ms ease;
}

.publication-detail summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  column-gap: 28px;
  align-items: start;
  padding: 25px 0;
}

.publication-detail:hover {
  background: rgba(79, 215, 202, 0.07);
}

.publication-detail > p {
  padding-left: 120px;
}

.publication-list h3 {
  margin: 0 0 8px;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
}

.demo-map-panel,
.exhibit-demo,
.soft-demo {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-map-panel img,
.exhibit-demo img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.74) contrast(1.08);
}

.demo-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  color: #061014;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transform: translate(-50%, -50%);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.demo-node::after {
  position: absolute;
  inset: -12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.28;
}

.demo-node:hover,
.demo-node.active {
  background: var(--sun);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.12);
}

.demo-output {
  display: grid;
  gap: 14px;
  align-content: center;
}

.demo-output > span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-output h2 {
  font-size: clamp(24px, 3.8vw, 46px);
}

.demo-output p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.8;
}

.soft-demo {
  display: grid;
  align-content: center;
  gap: 30px;
  padding: clamp(24px, 4vw, 54px);
  background:
    radial-gradient(circle at var(--pressure) 42%, rgba(79, 215, 202, 0.28), transparent 24%),
    var(--paper);
}

.soft-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.soft-pad span {
  display: grid;
  min-height: 170px;
  place-items: center;
  background: rgba(7, 11, 18, 0.82);
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
}

.soft-pad span:nth-child(2) {
  background: var(--accent-soft);
}

.pressure-control {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.pressure-control input {
  width: 100%;
  accent-color: var(--accent);
}

.scene-tabs {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scene-tab {
  min-height: 48px;
  border: 1px solid rgba(255, 253, 248, 0.52);
  background: rgba(23, 27, 25, 0.72);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.scene-tab.active,
.scene-tab:hover {
  background: var(--sun);
  color: var(--ink);
}

.join-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(79, 215, 202, 0.18), transparent 24%),
    linear-gradient(135deg, #070b12, #101b2b);
  color: var(--paper);
}

.join-section::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 50%;
  content: "";
}

.join-section .section-kicker {
  color: var(--sun);
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.join-layout p {
  max-width: 820px;
  color: rgba(255, 253, 250, 0.74);
}

.join-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(14, 21, 34, 0.72);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.join-panel:hover {
  border-color: rgba(255, 253, 248, 0.48);
  background: rgba(255, 253, 248, 0.08);
  transform: translateY(-4px);
}

.join-panel p {
  margin: 0;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
}

.join-panel a {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.join-panel span {
  color: rgba(255, 253, 250, 0.66);
  line-height: 1.6;
}

.site-footer {
  padding: 38px clamp(18px, 4vw, 56px) 24px;
  background: rgba(5, 8, 13, 0.92);
}

.footer-top {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-top strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.footer-top p,
.footer-bottom {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 164px));
  gap: 26px;
  padding: 32px 0;
}

.qr-grid figure {
  margin: 0;
}

.qr-grid img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.qr-grid figure:hover img {
  filter: invert(1);
  transform: translateY(-3px);
}

.qr-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid rgba(31, 36, 34, 0.1);
  }

  .hero,
  .home-index-head,
  .page-hero,
  .section-grid,
  .page-split,
  .demo-stage,
  .join-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 720px;
  }

  .home-deco {
    margin-left: 0;
  }

  .focus-grid,
  .project-grid,
  .project-grid-large,
  .demo-hub,
  .people-grid,
  .lab-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-metrics div:nth-child(2) {
    border-right: 0;
  }

  .lab-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy span:last-child {
    display: none;
  }

  .main-nav {
    gap: 10px;
    overflow-x: auto;
    justify-content: start;
    white-space: nowrap;
  }

  .language-switch {
    width: 98px;
    min-width: 98px;
  }

  .section-band,
  .page-hero,
  .content-section,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .home-index-head h2,
  .home-index-head p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .home-topic {
    grid-template-columns: 1fr;
  }

  .home-topic img {
    width: 100%;
    max-width: 420px;
  }

  .focus-grid,
  .project-grid,
  .project-grid-large,
  .demo-hub,
  .people-grid,
  .lab-metrics,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .publication-detail summary {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .publication-detail > p {
    padding-left: 0;
  }

  .soft-pad {
    grid-template-columns: 1fr;
  }

  .soft-pad span {
    min-height: 120px;
  }

  .scene-tabs {
    grid-template-columns: 1fr;
  }

  .hero-visual figcaption {
    position: static;
    min-width: 0;
    border-top: 0;
  }

  .lab-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lab-metrics div:last-child {
    border-bottom: 0;
  }

  .publication-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .publication-list p {
    grid-column: 1;
  }

  .footer-top {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .tactile-cursor {
    display: none;
  }
}
