:root {
  --ink: #2c2a32;
  --ink-soft: #5a5568;
  --paper: #f7f2eb;
  --paper-2: #efe8f6;
  --paper-3: #e8f3f1;
  --coral: #e87a6f;
  --amber: #f0a35e;
  --teal: #4db6ac;
  --violet: #9b8ae8;
  --sky: #6ba3d4;
  --leaf: #7cb87a;
  --rose: #e8a0bf;
  --line: rgba(44, 42, 50, 0.1);
  --shadow: 0 18px 50px rgba(80, 60, 120, 0.12);
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 122, 111, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(155, 138, 232, 0.2), transparent 50%),
    radial-gradient(800px 500px at 50% 40%, rgba(77, 182, 172, 0.12), transparent 55%),
    linear-gradient(165deg, var(--paper), var(--paper-2) 45%, var(--paper-3));
  min-height: 100vh;
  line-height: 1.55;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
strong { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.hero-epigraph {
  margin: -0.15rem 0 1.1rem;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.hero-epigraph cite {
  display: inline-block;
  margin-left: 0.35rem;
  font-style: normal;
  font-size: 0.86em;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 560;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  box-shadow: 0 10px 28px rgba(232, 122, 111, 0.28);
}

.btn.primary:hover { transform: translateY(-2px); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.85); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px);
  background: rgba(247, 242, 235, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--teal), var(--sky));
  box-shadow: 0 8px 20px rgba(77, 182, 172, 0.3);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.95rem; }
.brand-text .brand-zh {
  margin-left: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.brand-text em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  color: white !important;
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

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

.hero-stats li {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  backdrop-filter: blur(8px);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-orbits {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* Shift the spinning rings toward the upper-right of the logo */
  translate: 16% -14%;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(44, 42, 50, 0.12);
  animation: spin 28s linear infinite;
}

.orbit-a { width: 220px; height: 220px; border-color: rgba(232,122,111,0.35); }
.orbit-b { width: 300px; height: 300px; animation-duration: 40s; animation-direction: reverse; border-color: rgba(155,138,232,0.35); }
.orbit-c { width: 380px; height: 380px; animation-duration: 55s; border-color: rgba(77,182,172,0.3); }

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(86%, 340px);
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(80, 60, 120, 0.18));
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

section.museum {
  max-width: 1280px;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.section-head p { color: var(--ink-soft); }

.lede-oneline {
  white-space: nowrap;
  max-width: none;
}

.strategy-grid .stat-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.strategy-grid .stat-card code {
  font-size: 0.82em;
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: rgba(44, 42, 50, 0.06);
}

#strategies .section-head {
  max-width: none;
}

.strategy-grid .stat-card .nowrap {
  white-space: nowrap;
}

#strategies .section-head {
  max-width: none;
}

#strategies .lede-oneline {
  white-space: nowrap;
  max-width: none;
}

/* Museum — vertical stack: map → bubbles → exhibit */
.museum-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: none;
}

.museum-viz {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.museum-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.museum-links path {
  fill: none;
  stroke-linecap: round;
  transition: stroke-opacity 0.15s ease, stroke-width 0.15s ease;
}

.embed-map-panel,
.bubble-chamber,
.exhibit-dock {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.embed-map-head,
.bubble-chamber-head,
.exhibit-dock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.embed-map-head h3,
.bubble-chamber-head h3,
.exhibit-dock-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.embed-map-hint {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.embed-map-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: min(56vh, 520px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 22%, rgba(232,122,111,0.13), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(107,163,212,0.14), transparent 40%),
    radial-gradient(circle at 55% 85%, rgba(77,182,172,0.1), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.3));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.embed-map-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  color: rgba(44, 42, 50, 0.12);
  overflow: visible;
}

.embed-map-deco .deco-float {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  animation: decoFloat 26s ease-in-out infinite;
  opacity: 0.85;
}

/* staggered, slow, low-amplitude — each drifts a bit differently */
.embed-map-deco .deco-a { animation-duration: 28s; animation-delay: -2s; }
.embed-map-deco .deco-b { animation-duration: 32s; animation-delay: -8s; animation-name: decoFloatAlt; }
.embed-map-deco .deco-c { animation-duration: 30s; animation-delay: -14s; }
.embed-map-deco .deco-d { animation-duration: 36s; animation-delay: -5s; animation-name: decoFloatAlt; }
.embed-map-deco .deco-e { animation-duration: 34s; animation-delay: -18s; }
.embed-map-deco .deco-f { animation-duration: 31s; animation-delay: -11s; animation-name: decoFloatAlt; }
.embed-map-deco .deco-g { animation-duration: 38s; animation-delay: -22s; }
.embed-map-deco .deco-h { animation-duration: 27s; animation-delay: -3s; animation-name: decoFloatAlt; }
.embed-map-deco .deco-i { animation-duration: 33s; animation-delay: -16s; }
.embed-map-deco .deco-j { animation-duration: 29s; animation-delay: -9s; animation-name: decoFloatAlt; }
.embed-map-deco .deco-k { animation-duration: 35s; animation-delay: -20s; opacity: 0.7; }
.embed-map-deco .deco-l { animation-duration: 37s; animation-delay: -25s; animation-name: decoFloatAlt; }

@keyframes decoFloat {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.78;
  }
  40% {
    transform: translate(3px, -7px);
    opacity: 0.92;
  }
  70% {
    transform: translate(-2px, -3px);
    opacity: 0.84;
  }
}

@keyframes decoFloatAlt {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.74;
  }
  35% {
    transform: translate(-4px, -5px);
    opacity: 0.9;
  }
  65% {
    transform: translate(3px, -8px);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-map-deco .deco-float {
    animation: none;
    opacity: 0.8;
  }
}

#embedMapCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  cursor: grab;
  border-radius: var(--radius);
  touch-action: none;
}

.embed-map-tooltip {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: min(90%, 320px);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  color: var(--ink);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.cluster-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cluster-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  max-width: 100%;
}

.cluster-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cluster) 45%, var(--line));
  background: color-mix(in srgb, var(--cluster) 12%, white);
}

.cluster-chip.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--cluster) 22%, white);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cluster) 55%, transparent);
}

.cluster-swatch {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--cluster);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cluster) 35%, white);
}

.cluster-chip-body {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.cluster-chip-body strong {
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.cluster-chip-body small {
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.bubble-chamber .museum-filters {
  margin-top: 0;
}

.bubble-chamber .bubble-stage {
  width: 100%;
  min-height: 440px;
  height: min(58vh, 580px);
}

.bubble .link-hot {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 6px color-mix(in srgb, var(--bubble-accent, #4DB6AC) 70%, transparent);
  z-index: 6;
}

.exhibit-dock {
  width: 100%;
}

.exhibit-placeholder {
  margin: 0;
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.92rem;
}

.exhibit-dock .exhibit-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr);
  min-height: 0;
  width: 100%;
}

.exhibit-dock .panel-media {
  height: 100%;
  min-height: 240px;
}

@media (max-width: 960px) {
  .embed-map-canvas-wrap,
  #embedMapCanvas {
    min-height: 320px;
    height: min(48vh, 400px);
  }

  .bubble-chamber .bubble-stage {
    min-height: 360px;
    height: min(52vh, 480px);
  }

  .exhibit-dock .exhibit-panel {
    grid-template-columns: 1fr;
  }

  .exhibit-dock .panel-media {
    height: 200px;
    min-height: 200px;
  }

  .cluster-chip-body {
    flex-direction: column;
    gap: 0.05rem;
  }

  .cluster-chip-body strong {
    max-width: 10rem;
  }
}

.museum-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--ink-soft);
  font-weight: 500;
}

.chip.active,
.chip:hover {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--sky), var(--violet));
}

.chip-refresh {
  margin-left: 0.35rem;
  background: linear-gradient(135deg, rgba(232,122,111,0.18), rgba(240,163,94,0.18));
  border-color: rgba(232,122,111,0.35);
  color: var(--ink);
  font-weight: 600;
}

.chip-refresh:hover,
.chip-refresh:focus-visible {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--coral), var(--amber));
}

.bubble-stage-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.bubble-stage-wrap.has-panel {
  grid-template-columns: 1.35fr 0.95fr;
}

.bubble-stage {
  position: relative;
  min-height: 520px;
  height: min(70vh, 640px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 30%, rgba(232,122,111,0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(155,138,232,0.18), transparent 35%),
    radial-gradient(circle at 60% 80%, rgba(77,182,172,0.16), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  box-shadow: var(--shadow);
}

.stage-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 2;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  color: white;
  font-weight: 600;
  font-size: clamp(0.62rem, 1.25vw, 0.82rem);
  text-align: center;
  padding: 0.85rem 0.7rem;
  line-height: 1.25;
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.55),
    inset -8px -10px 18px rgba(0,0,0,0.08),
    0 10px 24px rgba(60, 40, 90, 0.12);
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: transform 0.2s ease, opacity 0.25s ease;
  will-change: transform, left, top;
  z-index: 1;
}

.bubble-title {
  display: block;
  max-width: 90%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-shadow: 0 1px 2px rgba(40, 30, 50, 0.25);
}

.bubble::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 22%;
  width: 28%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: rotate(-25deg);
  pointer-events: none;
}

.bubble:hover { transform: scale(1.06); z-index: 3; }
.bubble.popping {
  animation: pop 0.45s ease forwards;
  pointer-events: none;
  z-index: 4;
}

.bubble .bubble-lang {
  position: absolute;
  top: 10%;
  right: 12%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  font-size: 0.58rem;
  display: grid;
  place-items: center;
}

@keyframes pop {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.25); opacity: 0.85; }
  100% { transform: scale(1.7); opacity: 0; }
}

.bubble-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  animation: particle 0.55s ease-out forwards;
}

@keyframes particle {
  to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

.exhibit-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: panelIn 0.4s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.panel-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
}

.panel-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #ddd;
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.7), transparent 40%),
    radial-gradient(circle at 30% 40%, rgba(232,122,111,0.35), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(155,138,232,0.35), transparent 35%);
  animation: burstFade 0.7s ease forwards;
}

@keyframes burstFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

.panel-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.panel-meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel-native {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.panel-blurb {
  margin: 0.25rem 0 0.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.panel-tags span {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(155, 138, 232, 0.14);
  color: var(--ink-soft);
}

#panelAudio {
  width: 100%;
  margin: 0.35rem 0 0.7rem;
  border-radius: 12px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

/* Benchmark / Results */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--c, var(--coral));
  margin-bottom: 0.75rem;
}

.stat-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.figure-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.figure-board.compact { margin-top: 1.5rem; }

.figure-card {
  margin: 0;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding: 0.75rem;
}

.figure-card.wide { grid-column: 1 / -1; }

.figure-card img {
  width: 100%;
  border-radius: 12px;
  background: #f3f0ea;
}

.figure-card figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.results-table th,
.results-table td {
  padding: 0.75rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.results-table th {
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: rgba(155, 138, 232, 0.08);
}

.results-table tbody tr:hover { background: rgba(77, 182, 172, 0.08); }

.results-table td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  text-align: center;
}

.results-table th:not(:first-child) {
  text-align: center;
}

.results-table tr.best td:nth-child(2) {
  color: var(--coral);
}

.table-notes {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.results-subhead {
  margin-top: 2.75rem;
}

.results-subhead h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.86rem;
}

.paper-table th,
.paper-table td {
  padding: 0.55rem 0.55rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.paper-table th {
  font-size: 0.74rem;
  color: var(--ink-soft);
  background: rgba(155, 138, 232, 0.08);
  text-align: center;
}

.paper-table th:nth-child(1),
.paper-table th:nth-child(4),
.paper-table td.name-cell {
  text-align: left;
}

.paper-table td:not(.name-cell) {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
}

.paper-table td.name-cell.minority {
  color: #6a1b9a;
  font-weight: 700;
}

.paper-table td.name-cell.all-row,
.paper-table tr:has(td.all-row) td {
  font-weight: 700;
}

.quadrant-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.quadrant-legend .swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: -0.1rem;
  border: 1px solid rgba(0,0,0,0.08);
}

/* About */
.about-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.75), rgba(232, 240, 255, 0.65));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.about-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.about-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--violet));
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.credits { max-width: 28rem; margin: 0; }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 30, 55, 0.45);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: var(--paper);
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-exhibit {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(155, 138, 232, 0.1);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; order: -1; }
  .bubble-stage-wrap { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .figure-board { grid-template-columns: 1fr; }
  .figure-card.wide { grid-column: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(247, 242, 235, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem 0.4rem; }
}
