:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6672;
  --line: #d9e1ea;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --field: #ffffff;
  --panel-translucent: rgba(255, 255, 255, 0.68);
  --accent: #0b6bcb;
  --accent-strong: #074f9f;
  --signal: #17a398;
  --header-bg: rgba(255, 255, 255, 0.88);
  --chip: #f0f2f5;
  --metric-bg: #f8fbff;
  --project-row: #f8fbfd;
  --project-row-border: #dce5ef;
  --project-card-bg: #159b8f;
  --project-card-border: #0f766e;
  --publication-icon: #f4b942;
  --publication-icon-text: #5c3b00;
  --shadow: 0 18px 50px rgba(24, 35, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef6;
  --muted: #a7b2c2;
  --line: #263647;
  --panel: #111923;
  --soft: #0b1118;
  --field: #0f1721;
  --panel-translucent: rgba(17, 25, 35, 0.78);
  --accent: #5fa8ff;
  --accent-strong: #9dccff;
  --signal: #34d3c4;
  --header-bg: rgba(11, 17, 24, 0.88);
  --chip: #1a2633;
  --metric-bg: #111f2e;
  --project-row: #0f1721;
  --project-row-border: #27384b;
  --project-card-bg: #0f766e;
  --project-card-border: #34d3c4;
  --publication-icon: #d89a28;
  --publication-icon-text: #1f1400;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.theme-toggle {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 750;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.map-page main {
  width: min(1720px, calc(100% - 32px));
}

.hero {
  padding: 28px 0 14px;
}

.hero__copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  margin-bottom: 0;
  font-size: 17px;
  color: var(--muted);
}

.subheading {
  margin: -4px 0 0;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-main {
  width: min(1440px, calc(100% - 32px));
}

.home-hero {
  position: relative;
  min-height: 540px;
  margin: 24px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 28%, rgba(23, 163, 152, 0.28), transparent 34%),
    linear-gradient(135deg, var(--panel), var(--field));
  box-shadow: var(--shadow);
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
  width: min(720px, 100%);
  min-height: 540px;
  padding: clamp(28px, 6vw, 72px);
}

.home-hero__copy h1 {
  font-size: clamp(46px, 8vw, 96px);
}

.home-hero__copy .lede {
  max-width: 680px;
  font-size: clamp(17px, 2vw, 22px);
}

.home-hero__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-signal {
  position: absolute;
  border: 1px solid rgba(95, 168, 255, 0.5);
  border-radius: 999px;
  opacity: 0.7;
  animation: homePulse 5s ease-in-out infinite;
}

.home-signal--one {
  width: 520px;
  height: 520px;
  right: -80px;
  top: 40px;
}

.home-signal--two {
  width: 320px;
  height: 320px;
  right: 70px;
  top: 150px;
  animation-delay: 1.4s;
}

.home-device {
  position: absolute;
  right: clamp(34px, 9vw, 150px);
  top: 50%;
  width: min(360px, 40vw);
  aspect-ratio: 1.25;
  transform: translateY(-50%) rotateX(56deg) rotateZ(-34deg);
  border: 2px solid rgba(95, 168, 255, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(95, 168, 255, 0.18) 23% 25%, transparent 25% 48%, rgba(95, 168, 255, 0.18) 48% 50%, transparent 50% 73%, rgba(95, 168, 255, 0.18) 73% 75%, transparent 75%),
    linear-gradient(0deg, transparent 0 23%, rgba(23, 163, 152, 0.18) 23% 25%, transparent 25% 48%, rgba(23, 163, 152, 0.18) 48% 50%, transparent 50% 73%, rgba(23, 163, 152, 0.18) 73% 75%, transparent 75%),
    rgba(11, 107, 203, 0.08);
  box-shadow: 0 34px 70px rgba(11, 107, 203, 0.18);
}

.home-device span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--signal);
  box-shadow: 0 0 0 7px rgba(23, 163, 152, 0.18);
}

.home-device span:nth-child(1) { left: 16%; top: 18%; }
.home-device span:nth-child(2) { right: 18%; top: 22%; }
.home-device span:nth-child(3) { left: 34%; bottom: 18%; }
.home-device span:nth-child(4) { right: 24%; bottom: 20%; }

@keyframes homePulse {
  0%, 100% { transform: scale(0.94); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.home-stats div,
.home-project-card,
.home-capabilities article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.home-stats div {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.home-stats strong {
  font-size: 30px;
  line-height: 1;
}

.home-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.home-section {
  display: grid;
  gap: 18px;
  margin: 30px 0;
}

.home-section__header {
  max-width: 820px;
}

.home-section__header h2,
.home-capabilities h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.home-section__header p,
.home-capabilities p {
  color: var(--muted);
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-project-card {
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(24, 35, 51, 0.06);
}

.home-project-card .project-visual {
  min-height: 150px;
  border-radius: 0;
}

.home-project-card__body {
  padding: 18px;
}

.home-project-card__body .eyebrow {
  margin-bottom: 8px;
}

.home-project-card__body h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.home-project-card__body p {
  color: var(--muted);
}

.home-project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-project-card__meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--chip);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.home-capabilities {
  grid-template-columns: minmax(260px, 0.65fr) 1fr;
  align-items: start;
  margin-bottom: 64px;
}

.capability-grid {
  display: grid;
  gap: 12px;
}

.home-capabilities article {
  padding: 18px;
}

.home-capabilities article h3 {
  margin-bottom: 8px;
}

.button,
button,
select,
input {
  font: inherit;
}

.button,
button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 15px;
  background: var(--field);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--field);
  color: var(--accent-strong);
  font-weight: 700;
}

.button--disabled {
  cursor: default;
  opacity: 0.62;
}

.model-showcase {
  position: relative;
  grid-template-columns: 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.model-showcase__copy {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.model-showcase__copy-inner {
  display: grid;
  gap: 10px;
}

.model-showcase__copy h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.model-showcase__copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.model-selector {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.model-selector__button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.model-selector__button:hover,
.model-selector__button:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  outline: none;
}

.model-selector__button.is-active {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
}

.model-showcase__copy .hero__actions {
  justify-content: flex-end;
}

.model-showcase__viewer {
  position: relative;
  min-height: calc(100vh - 190px);
  overflow: hidden;
}

.pcb-model-viewer {
  position: relative;
  display: block;
  width: 100%;
  min-height: calc(100vh - 190px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(95, 168, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(95, 168, 255, 0.08) 1px, transparent 1px),
    var(--field);
  background-size: 34px 34px;
}

.model-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hardware-media {
  gap: 22px;
}

.hardware-media__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hardware-card {
  grid-column: span 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hardware-card--wide {
  grid-column: span 3;
}

.hardware-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--field);
}

.hardware-card figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.model-showcase--legacy .model-showcase__copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(24, 35, 51, 0.14);
}

.publication-card,
.source-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publication-shell {
  padding: 24px;
  background: var(--panel-translucent);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 160px 170px auto;
  gap: 12px;
  align-items: end;
}

.toolbar--map {
  grid-template-columns: minmax(320px, 1fr) 220px 180px auto;
  margin-bottom: 24px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--field);
  color: var(--ink);
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.results-header h2 {
  margin: 0;
  font-size: 28px;
}

.results-header p {
  margin: 0;
  color: var(--muted);
}

.results-header__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.view-toggle__button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.view-toggle__button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.publication-list {
  display: grid;
  gap: 22px;
}

.mind-map {
  display: grid;
  gap: 16px;
}

.mind-map[hidden] {
  display: none;
}

.mind-map__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.mind-map__header h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.mind-map__header p,
.mind-map__stats {
  margin: 0;
  color: var(--muted);
}

.mind-map__stats {
  white-space: nowrap;
  font-size: 14px;
}

.mind-map__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

.mind-map__body--page {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.mind-map__viewport {
  min-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mind-map-board {
  display: grid;
  gap: 18px;
  min-width: 1040px;
  padding: 18px;
}

.map-group-section {
  display: grid;
  gap: 12px;
}

.map-group-heading {
  margin: 4px 0 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-project-row {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--project-row-border);
  border-radius: 8px;
  background: var(--project-row);
}

.map-project-media-column {
  display: grid;
  gap: 10px;
}

.map-project-card {
  min-height: 142px;
  border: 1px solid var(--project-card-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--project-card-bg);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
  cursor: pointer;
}

.map-project-card[data-active="true"] {
  outline: 3px solid rgba(95, 168, 255, 0.38);
}

.map-project-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
}

.map-project-card p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.35;
}

.map-project-card .map-project-card__group {
  font-weight: 800;
}

.project-visual {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid var(--project-row-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(95, 168, 255, 0.12), rgba(52, 211, 196, 0.1)),
    var(--panel);
}

.project-visual::before,
.project-visual::after,
.project-visual span,
.project-visual i {
  content: "";
  position: absolute;
  display: block;
}

.project-visual__label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-visual--ultrasound::before {
  inset: 18px 10px;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(95, 168, 255, 0.28) 23px 25px);
}

.project-visual--ultrasound span {
  left: -20%;
  top: 42%;
  width: 58%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 -18px 0 rgba(95, 168, 255, 0.38), 0 18px 0 rgba(95, 168, 255, 0.38);
  animation: visual-sweep 3.4s linear infinite;
}

.project-visual--grape::before {
  inset: 18px;
  background:
    radial-gradient(circle at 20% 35%, #6d3aa8 0 8px, transparent 9px),
    radial-gradient(circle at 34% 52%, #7d4abd 0 9px, transparent 10px),
    radial-gradient(circle at 48% 34%, #5f2f95 0 8px, transparent 9px),
    radial-gradient(circle at 62% 54%, #804cc5 0 9px, transparent 10px),
    radial-gradient(circle at 76% 37%, #6d3aa8 0 8px, transparent 9px);
  animation: visual-float 3.8s ease-in-out infinite;
}

.project-visual--grape span {
  left: 15%;
  top: 22%;
  width: 74%;
  height: 44%;
  border: 1px solid rgba(95, 168, 255, 0.65);
  border-radius: 8px;
  animation: visual-pulse 2.6s ease-in-out infinite;
}

.project-visual--wood::before {
  inset: 18px 48px;
  border-radius: 999px;
  background: repeating-radial-gradient(circle, rgba(167, 119, 64, 0.95) 0 7px, rgba(225, 184, 121, 0.92) 8px 13px);
}

.project-visual--wood span {
  left: 12%;
  top: 50%;
  width: 76%;
  height: 3px;
  background: var(--accent);
  animation: visual-sweep 3s linear infinite;
}

.project-visual--camera::before {
  left: 24px;
  top: 24px;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(95, 168, 255, 0.7);
  border-radius: 50%;
  box-shadow: 52px 12px 0 -20px rgba(95, 168, 255, 0.75), 102px 34px 0 -18px rgba(95, 168, 255, 0.55);
}

.project-visual--camera span {
  left: 38%;
  top: 20%;
  width: 48%;
  height: 58%;
  border: 1px solid rgba(52, 211, 196, 0.8);
  transform: skewX(-16deg);
  animation: visual-pulse 2.4s ease-in-out infinite;
}

.project-visual--localisation::before {
  inset: 18px;
  background-image:
    linear-gradient(rgba(95, 168, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 168, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
}

.project-visual--localisation span {
  left: 18%;
  top: 62%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 72px -38px 0 var(--accent), 150px -10px 0 #f4b942;
  animation: visual-float 2.8s ease-in-out infinite;
}

.project-visual--teaching::before {
  left: 24px;
  right: 24px;
  top: 24px;
  height: 64px;
  border: 2px solid rgba(52, 211, 196, 0.7);
  border-radius: 8px;
}

.project-visual--teaching span {
  left: 36px;
  top: 52px;
  width: 66%;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 12px 0 rgba(52, 211, 196, 0.7), 42px -18px 0 rgba(95, 168, 255, 0.75);
  animation: visual-draw 3.2s ease-in-out infinite;
}

.project-visual--default::before {
  left: 24px;
  top: 26px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid rgba(95, 168, 255, 0.55);
  box-shadow: 80px 10px 0 -12px rgba(52, 211, 196, 0.45), 148px 34px 0 -16px rgba(244, 185, 66, 0.5);
  animation: visual-float 3.4s ease-in-out infinite;
}

@keyframes visual-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(220%); }
}

@keyframes visual-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes visual-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes visual-draw {
  0%, 100% { clip-path: inset(0 82% 0 0); }
  50% { clip-path: inset(0 0 0 0); }
}

.map-publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.map-publication-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
  cursor: pointer;
}

.map-publication-card[data-active="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 168, 255, 0.16);
}

.map-publication-card h5 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.25;
}

.map-publication-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-publication-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.map-mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #cbd8e6;
  border-radius: 5px;
  padding: 0 7px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.map-mini-link--pdf {
  border-color: #c33a2b;
  color: #9b261b;
}

.map-publication-icon {
  width: 28px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--publication-icon);
  color: var(--publication-icon-text);
  font-size: 10px;
  font-weight: 900;
}

.map-publication-icon--pdf {
  position: relative;
  background: #c33a2b;
  color: #fff;
}

.map-publication-icon--pdf::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: #e16455;
}

.mind-map__svg,
.mind-map__detail {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mind-map__svg {
  width: 100%;
  height: 620px;
}

.mind-map__svg--wide {
  display: block;
  width: 2200px;
  height: 960px;
  min-height: 720px;
  border: 0;
  border-radius: 0;
}

.mind-map__detail {
  padding: 18px;
  overflow: auto;
}

.mind-map__body--page .mind-map__detail {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
}

.mind-map__detail h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mind-map__detail p {
  margin-bottom: 10px;
  color: var(--muted);
}

.mind-map__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mind-map__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mind-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mind-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mind-map__legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.map-link {
  stroke: #c9d5e2;
  stroke-width: 1.4;
}

.map-node {
  cursor: pointer;
}

.map-node circle,
.map-node rect,
.map-node path {
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 5px 11px rgba(24, 35, 51, 0.16));
}

.map-node text {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-node--project rect {
  fill: #17a398;
  stroke: #0f766e;
}

.map-node--project text {
  fill: #fff;
  stroke: none;
  font-size: 13px;
}

.map-node--publication circle,
.map-node--publication path {
  fill: #f4b942;
}

.map-node--active circle {
  stroke: var(--accent-strong);
  stroke-width: 4;
}

.map-node--active rect,
.map-node--active path {
  stroke: var(--accent-strong);
  stroke-width: 4;
}

.map-node--publication text {
  font-size: 11px;
  font-weight: 650;
}

.map-project__title {
  font-size: 14px;
  font-weight: 800;
}

.map-project__meta {
  font-size: 11px;
  font-weight: 650;
  opacity: 0.92;
}

.map-project-band {
  fill: #f7fafc;
  stroke: #e2e8f0;
  stroke-width: 1;
}

.map-group-label {
  fill: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-pdf-mark path {
  fill: #c33a2b;
  stroke: #8f2419;
}

.map-pdf-mark text {
  fill: #fff;
  stroke: none;
  font-size: 7px;
  font-weight: 900;
}

.publication-group {
  display: grid;
  gap: 14px;
}

.publication-group[hidden] {
  display: none;
}

.publication-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 0;
}

.publication-group__header h3 {
  margin: 0;
  font-size: 24px;
}

.publication-group__header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.publication-group__count {
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}

.source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 4px;
}

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

.source-summary__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--field);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.source-summary__count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.preview-main {
  width: min(100% - 32px, 1500px);
}

.preview-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: end;
  margin: 24px 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.preview-toolbar h1 {
  margin-bottom: 0;
  font-size: 30px;
}

.preview-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.preview-controls button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 750;
}

.preview-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.preview-stage {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 180px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel-translucent);
}

.preview-frame-shell {
  width: min(100%, 1366px);
  transition: width 180ms ease;
}

.preview-frame-shell[data-size="tablet"] {
  width: 768px;
}

.preview-frame-shell[data-size="mobile"] {
  width: 390px;
}

.preview-frame-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  background: var(--field);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

#responsive-preview-frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: var(--bg);
}

.publication-card {
  padding: 22px;
  box-shadow: 0 8px 26px rgba(24, 35, 51, 0.06);
}

:root[data-theme="dark"] .publication-card {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
}

.publication-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pub-year,
.pub-type,
.pub-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.pub-year {
  background: #e8f2ff;
  color: var(--accent-strong);
}

.pub-type {
  background: #e8faf7;
  color: #08685f;
}

.pub-title {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.pub-authors,
.pub-venue,
.pub-details {
  margin-bottom: 8px;
  color: var(--muted);
}

.pub-authors {
  color: var(--ink);
}

.pub-details {
  display: none;
  font-size: 13px;
}

.pub-details:not(:empty) {
  display: block;
}

.pub-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.pub-metrics:empty {
  display: none;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--metric-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.pub-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
}

.pub-keywords span {
  background: var(--chip);
  color: var(--muted);
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pub-actions a,
.pub-actions button {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
}

.pub-link {
  display: none;
  align-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
}

.pub-extra-links {
  display: contents;
}

.pub-link[href] {
  display: inline-flex;
}

.pub-link--pdf {
  border-color: #c33a2b;
  color: #9b261b;
}

.pub-link--project {
  border-color: #13805f;
  color: #0b654a;
}

.copy-bibtex[data-copied="true"] {
  border-color: var(--signal);
  color: #08786f;
}

.source-note {
  margin: 28px 0 64px;
  padding: 24px;
}

.source-note h2 {
  margin-bottom: 10px;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--chip);
}

@media (max-width: 900px) {
  .home-hero {
    min-height: 0;
  }

  .home-hero__copy {
    min-height: 460px;
    padding: 34px;
  }

  .home-device {
    width: 320px;
    right: -70px;
    opacity: 0.65;
  }

  .home-stats,
  .home-project-grid,
  .home-capabilities {
    grid-template-columns: 1fr 1fr;
  }

  .home-capabilities > div:first-child {
    grid-column: 1 / -1;
  }

  .preview-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .preview-controls {
    justify-content: flex-start;
  }

  .preview-stage {
    justify-items: start;
  }

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

  .mind-map__body {
    grid-template-columns: 1fr;
  }

  .mind-map__svg,
  .mind-map__detail {
    min-height: 460px;
  }

  .mind-map__svg {
    height: 460px;
  }

  .mind-map-board {
    min-width: 0;
  }

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

  .map-publication-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 104px;
  }

  .mind-map__body--page .mind-map__detail {
    position: static;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-visual::before,
  .project-visual span {
    animation: none;
  }
}

@media (max-width: 620px) {
  .site-header,
  .results-header,
  .publication-group__header,
  .mind-map__header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 16px;
  }

  .home-main {
    width: min(100% - 24px, 1440px);
  }

  .home-hero {
    margin-top: 16px;
  }

  .home-hero__copy {
    min-height: 520px;
    padding: 24px;
  }

  .home-hero__copy h1 {
    font-size: 46px;
  }

  .home-device {
    width: 260px;
    right: -86px;
    top: 62%;
  }

  .home-signal--one {
    right: -240px;
    top: 120px;
  }

  .home-signal--two {
    right: -80px;
    top: 230px;
  }

  .home-stats,
  .home-project-grid,
  .home-capabilities {
    grid-template-columns: 1fr;
  }

  .model-showcase__viewer,
  .pcb-model-viewer {
    min-height: calc(100vh - 210px);
  }

  .model-showcase__copy {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px;
  }

  .model-selector,
  .model-showcase__copy .hero__actions {
    justify-content: flex-start;
  }

  .model-showcase__copy h2 {
    font-size: 24px;
  }

  .model-showcase__copy p {
    font-size: 14px;
  }

  .hardware-media__grid {
    grid-template-columns: 1fr;
  }

  .hardware-card,
  .hardware-card--wide {
    grid-column: auto;
  }

  .hardware-card img {
    aspect-ratio: 16 / 11;
  }

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

  .preview-main {
    width: min(100% - 24px, 1500px);
  }

  .preview-stage {
    padding: 14px;
  }

  .publication-shell {
    padding: 18px;
  }

  .publication-card {
    padding: 18px;
  }

  .results-header__meta {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .mind-map-board {
    padding: 12px;
  }

  .map-project-row {
    padding: 12px;
  }

  .map-project-card {
    min-height: 0;
  }
}