:root {
  --navy: #0b2545;
  --blue: #13315c;
  --accent: #1d6fa5;
  --accent-light: #eaf2f8;
  --text: #1c2733;
  --muted: #5a6b7b;
  --border: #e1e7ed;
  --bg: #ffffff;
  --bg-alt: #f6f9fb;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
}

.brand .full-name {
  font-size: 0.95rem;
  line-height: 1.25;
}

.brand .full-name small {
  display: block;
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.78rem;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: #dce8f2;
  font-size: 0.95rem;
  font-weight: 500;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--accent) 130%);
  color: #fff;
  padding: 70px 0 60px;
}

.hero .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text { flex: 1.3; }
.hero-photo { flex: 1; display: flex; justify-content: center; }

.hero-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.15rem;
  opacity: 0.92;
  margin: 0 0 18px;
}

.hero .institute {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 26px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--navy);
}
.btn-primary:hover { background: var(--accent-light); text-decoration: none; }

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.7rem;
  color: var(--navy);
  margin: 0 0 6px;
  font-weight: 700;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 1rem;
  max-width: 700px;
}

/* Research grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
}

.research-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: 0 1px 2px rgba(11,37,69,0.05), 0 6px 18px rgba(11,37,69,0.06);
}

.research-card:hover { box-shadow: 0 2px 4px rgba(11,37,69,0.06), 0 18px 36px rgba(11,37,69,0.14); }

.research-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
  transform: translateZ(34px);
  transition: transform 0.8s cubic-bezier(.3,.9,.3,1);
}

.research-card:hover .icon { transform: translateZ(34px) rotateY(360deg); }

.research-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
  transform: translateZ(22px);
}

.research-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  transform: translateZ(12px);
}

.research-card .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateZ(18px);
}

/* Focus area: environmental remediation */
section[id] { scroll-margin-top: 70px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-sub.lead { max-width: 820px; font-size: 1.02rem; color: var(--text); }

.sub-h {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 44px 0 18px;
}

.mech-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.mech-step,
.approach-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px 20px;
  box-shadow: 0 1px 2px rgba(11,37,69,0.05), 0 6px 18px rgba(11,37,69,0.06);
}

.mech-step:hover,
.approach-card:hover { box-shadow: 0 2px 4px rgba(11,37,69,0.06), 0 18px 36px rgba(11,37,69,0.14); }

.mech-step:not(:last-child)::before {
  content: "\2192";
  position: absolute;
  right: -22px;
  top: 30px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateZ(30px);
}

.mech-step h4,
.approach-card h4 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 1.02rem;
  transform: translateZ(20px);
}

.mech-step p,
.approach-card p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
  transform: translateZ(12px);
}

.mech-step .eq {
  background: var(--accent-light);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: "Cambria Math", "STIX Two Math", Cambria, Georgia, serif;
  font-size: 0.92rem;
  color: var(--navy);
  line-height: 1.7;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.approach-card { border-top: 3px solid var(--accent); }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  background: var(--accent-light);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
}

@media (max-width: 960px) {
  .mech-flow { grid-template-columns: 1fr 1fr; }
  .mech-step:nth-child(2)::before { content: none; }
}

@media (max-width: 600px) {
  .mech-flow { grid-template-columns: 1fr; gap: 30px; }
  .mech-step:not(:last-child)::before {
    content: "\2193";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -26px;
    transform: translateX(-50%);
  }
}

/* People */
.pi-wrap { margin-bottom: 48px; }

.pi-card {
  display: flex;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  align-items: flex-start;
  box-shadow: 0 1px 2px rgba(11,37,69,0.05), 0 8px 24px rgba(11,37,69,0.07);
}

.pi-card:hover { box-shadow: 0 2px 4px rgba(11,37,69,0.06), 0 18px 40px rgba(11,37,69,0.14); }

.pi-card .photo {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  transform: translateZ(40px);
  box-shadow: 0 10px 24px rgba(11,37,69,0.22);
}

.pi-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pi-card > div { transform: translateZ(20px); }

.pi-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.25rem; }
.pi-card .role { color: var(--accent); font-weight: 600; margin-bottom: 12px; font-size: 0.92rem; }
.pi-card .email { color: var(--muted); font-size: 0.88rem; margin: -8px 0 12px; word-break: break-word; }
.pi-card ul { margin: 10px 0 0; padding-left: 20px; color: var(--text); font-size: 0.93rem; }
.pi-card li { margin-bottom: 4px; }

.group-subtitle {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 20px;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
  margin-bottom: 46px;
}

.person-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(11,37,69,0.05), 0 6px 18px rgba(11,37,69,0.06);
}

.person-card:hover { box-shadow: 0 2px 4px rgba(11,37,69,0.06), 0 18px 36px rgba(11,37,69,0.16); }

.person-card .photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

/* Profile panel: scan line, glowing panel, typing caret, sound toggle */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[data-person] { cursor: pointer; outline: none; }
[data-person]:focus-visible { box-shadow: 0 0 0 3px rgba(29,111,165,0.45); }
[data-person].is-active { box-shadow: 0 0 0 2px rgba(95,211,255,0.7), 0 18px 36px rgba(11,37,69,0.18); }

.photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -60%;
  height: 60%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(95,211,255,0.08) 40%, rgba(95,211,255,0.45) 90%, rgba(210,248,255,0.95) 100%);
}

.is-scanning .photo::after { animation: ai-scan 1.1s ease-in-out; }

@keyframes ai-scan {
  0% { top: -60%; opacity: 1; }
  100% { top: 100%; opacity: 1; }
}

.people-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-hint { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--accent); }

.ai-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ai-sound-toggle[hidden] { display: none; }
.ai-sound-toggle[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ai-sound-toggle[aria-pressed="false"] .wave { opacity: 0.25; }

.ai-panel {
  position: absolute;
  z-index: 200;
  width: 330px;
  max-width: calc(100vw - 32px);
  padding: 14px 16px 12px;
  border-radius: 12px;
  background: rgba(9,26,48,0.95);
  color: #e3f0fb;
  border: 1px solid rgba(95,211,255,0.35);
  box-shadow: 0 18px 48px rgba(3,14,30,0.45), 0 0 32px rgba(29,111,165,0.35);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.ai-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(95,211,255,0.2);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fd6ff;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd3ff;
  box-shadow: 0 0 8px #5fd3ff;
  animation: ai-pulse 1.2s ease-in-out infinite;
}

@keyframes ai-pulse { 50% { opacity: 0.35; } }

.ai-open {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid rgba(95,211,255,0.45);
  border-radius: 8px;
  background: rgba(95,211,255,0.12);
  color: #bff0ff;
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.ai-open:hover, .ai-open:focus-visible { background: rgba(95,211,255,0.24); outline: none; }

.ai-line { margin: 0 0 7px; }
.ai-line .k {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7fd6ff;
}
.ai-line .v { color: #f2f8fd; }
.ai-line a.v { color: #8fdcff; text-decoration: underline; }
.ai-status { color: #9fb6cc; margin-bottom: 6px; }

.ai-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #5fd3ff;
  animation: ai-blink 0.8s steps(1) infinite;
}

@keyframes ai-blink { 50% { opacity: 0; } }


@media (prefers-reduced-motion: reduce) {
  .is-scanning .photo::after, .ai-dot, .ai-caret { animation: none; }
}

.person-card .photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focus, 50% 50%);
  transition: transform 0.5s ease;
}

.person-card:hover .photo img { transform: scale(calc(var(--zoom, 1) * 1.06)); }

.person-card .info { padding: 14px 12px 18px; transform: translateZ(24px); }

.person-card h4 {
  margin: 0 0 4px;
  font-size: 0.97rem;
  color: var(--navy);
}

.person-card .designation {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.person-card .email {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-word;
}

/* Publications */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pub-list li:first-child { padding-top: 0; }

ol.pub-list {
  list-style: decimal;
  padding-left: 2.2em;
  margin: 0 0 48px;
}

ol.pub-list li::marker { color: var(--muted); font-size: 0.85rem; }

.pub-title { font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.pub-authors { color: var(--text); font-size: 0.88rem; }
.pub-venue { color: var(--muted); font-size: 0.86rem; font-style: italic; }


.cites {
  font-style: normal;
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
}

.group-subtitle .count { color: var(--muted); font-weight: 400; font-size: 0.95rem; }

/* Stats panel */
.stats-row {
  --series-1: #1d6fa5;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --deemph: #b3cfe6;
  --track: #dde9f3;
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1.25fr;
  gap: 18px;
  margin: 8px 0 32px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4f9 0%, #f8fbfd 50%, #e8f1f8 100%);
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11,37,69,0.05), 0 8px 24px rgba(11,37,69,0.07);
}

.stat:hover { box-shadow: 0 2px 4px rgba(11,37,69,0.06), 0 18px 40px rgba(11,37,69,0.14); }

.stat-inner {
  padding: 18px 18px 16px;
  transform-style: preserve-3d;
  text-align: center;
}

.stat-inner > * { transform: translateZ(18px); }

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-num { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.stat-sub { font-size: 0.82rem; color: var(--muted); }

.stat--wide .stat-inner { text-align: left; }
.stat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stat-note { font-size: 0.78rem; color: var(--muted); padding-top: 2px; }

.chart-box { position: relative; margin-top: 10px; }
.col-chart { width: 100%; height: auto; display: block; overflow: visible; }
.col-chart .baseline { stroke: var(--border); stroke-width: 1; }
.col-chart .bar { fill: var(--deemph); transition: fill 0.15s; }
.col-chart .bar--peak { fill: var(--series-1); }
.col-chart .hit { fill: transparent; cursor: pointer; outline: none; }
.col-chart .hit:focus-visible { stroke: var(--series-1); stroke-width: 1; }
.col-chart .peak-label { font-size: 13px; font-weight: 700; fill: var(--navy); text-anchor: middle; }
.col-chart .axis-label { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.col-chart .bar.is-hot { fill: #7fb0d6; }
.col-chart .bar--peak.is-hot { fill: #155a88; }

.chart-tip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
}

.stat-data { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.stat-data summary { cursor: pointer; color: var(--accent); }
.stat-data table { border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-data th, .stat-data td { padding: 2px 14px 2px 0; text-align: left; border-bottom: 1px solid var(--border); }
.stat-foot { margin: 6px 0 0; font-size: 0.74rem; color: var(--muted); }

.ring-wrap { display: flex; justify-content: center; margin-top: 10px; }
.ring-box { position: relative; width: 140px; }
.ring { width: 140px; height: 140px; display: block; }
.ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: var(--track); }
.ring-fill {
  stroke: var(--series-1);
  stroke-linecap: round;
  stroke-dasharray: calc(var(--val) * 1px) calc(var(--len) * 1px);
  transition: stroke-dasharray 1.4s cubic-bezier(.2,.8,.2,1) 0.35s;
}
.ring-center, .donut-center {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(30px);
}
.ring-caption { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }

.swatch {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0;
}
.swatch--1 { background: var(--series-1); }
.swatch--2 { background: var(--series-2); }
.swatch--3 { background: var(--series-3); }

.donut-wrap { position: relative; width: 140px; margin: 10px auto 0; }
.donut { width: 140px; height: 140px; display: block; overflow: visible; }
.donut-seg {
  fill: none;
  stroke-width: 11;
  stroke-dasharray: calc(var(--val) * 1px) calc(var(--len) * 1px);
  stroke-dashoffset: calc(var(--off) * 1px);
  transition: stroke-dasharray 0.9s cubic-bezier(.2,.8,.2,1) calc(0.35s + var(--i) * 0.45s), opacity 0.2s, stroke-width 0.2s;
  cursor: pointer;
}
.donut-seg.seg-1 { stroke: var(--series-1); }
.donut-seg.seg-2 { stroke: var(--series-2); }
.donut-seg.seg-3 { stroke: var(--series-3); }
.donut.has-focus .donut-seg { opacity: 0.3; }
.donut.has-focus .donut-seg.is-hot { opacity: 1; stroke-width: 14; }

.donut-legend { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.8rem; text-align: left; }
.donut-legend li { display: flex; align-items: center; padding: 2px 4px; border-radius: 4px; color: var(--text); cursor: default; }
.donut-legend li strong { margin-left: auto; padding-left: 10px; color: var(--navy); }
.donut-legend li.is-hot { background: var(--bg-alt); }

.stats-row.anim-armed .col-chart .bar {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.stats-row.anim-armed.in-view .col-chart .bar {
  transform: scaleY(1);
  transition: transform 0.7s cubic-bezier(.2,.9,.3,1.2) calc(0.4s + var(--i) * 0.06s), fill 0.15s;
}
.stats-row.anim-armed .col-chart .peak-label { opacity: 0; }
.stats-row.anim-armed.in-view .col-chart .peak-label { opacity: 1; transition: opacity 0.4s 1.5s; }

.stats-row.anim-armed .ring-fill { stroke-dasharray: 0px calc(var(--len) * 1px); }
.stats-row.anim-armed.in-view .ring-fill { stroke-dasharray: calc(var(--val) * 1px) calc(var(--len) * 1px); }
.stats-row.anim-armed .donut-seg { stroke-dasharray: 0px calc(var(--len) * 1px); }
.stats-row.anim-armed.in-view .donut-seg { stroke-dasharray: calc(var(--val) * 1px) calc(var(--len) * 1px); }

.pub-note { margin-bottom: 36px; }

@media (max-width: 960px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat--wide { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .stats-row { padding: 14px; gap: 14px; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat-inner { padding: 14px 10px; }
  .ring-box, .ring { width: 116px; }
  .ring { height: 116px; }
  .ring-center { height: 116px; }
  .stat-num { font-size: 1.6rem; }
}

/* Shared 3D: cards tilt toward the pointer and flip up when scrolled into view.
   Perspective lives on each card so lifted content stays centred on that card. */

.tilt {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  --n: 0;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(29,111,165,0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tilt:hover::after { opacity: 1; }
.tilt.is-tilting { transition: transform 0.08s linear, box-shadow 0.25s ease-out; }

.reveal.anim-armed .tilt {
  opacity: 0;
  transform: perspective(1000px) rotateX(65deg) translateY(40px);
  transform-origin: 50% 100%;
}
.reveal.anim-armed .tilt.in-view {
  opacity: 1;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.9s cubic-bezier(.2,.9,.25,1.15) calc(var(--n) * 0.12s),
              opacity 0.6s ease calc(var(--n) * 0.12s),
              box-shadow 0.25s ease-out;
}
.reveal.anim-armed .tilt.in-view.is-tilting { transition: transform 0.08s linear, box-shadow 0.25s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .tilt, .tilt * { transition: none !important; }
}

.pub-note {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 4px;
  color: var(--blue);
  font-size: 0.93rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-block h3 {
  color: var(--navy);
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-item .label-icon {
  font-size: 1.2rem;
  width: 26px;
  flex-shrink: 0;
}

.contact-item div { color: var(--text); font-size: 0.94rem; }
.contact-item strong { display: block; color: var(--navy); font-size: 0.88rem; margin-bottom: 2px; }

.map-embed {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* Footer */
footer {
  background: var(--navy);
  color: #b9c9d8;
  padding: 30px 0;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: #cfe0ee; }

/* Responsive */
@media (max-width: 800px) {
  .hero .wrap { flex-direction: column-reverse; text-align: center; }
  .hero .cta-row { justify-content: center; }
  .pi-card { flex-direction: column; align-items: center; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 10px 0;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav li { border-top: 1px solid rgba(255,255,255,0.08); }
  nav.main-nav a { display: block; padding: 12px 24px; }
  .nav-toggle { display: block; }
}

/* Subject line-up: full-screen holographic dossier */
html.lu-lock { overflow: hidden; }

.lineup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  color: #cfeaff;
  background: radial-gradient(ellipse at 50% 38%, #10273d 0%, #060e18 72%);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lineup[hidden] { display: none; }
.lineup.is-open { opacity: 1; }

.lu-wall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(120,170,210,0.07) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(to right, rgba(120,170,210,0.04) 0 1px, transparent 1px 140px);
}

.lu-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--y);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(225,246,255,0.85) 6%, rgba(225,246,255,0.85) 94%, transparent);
  box-shadow: 0 0 14px rgba(127,224,255,0.55);
  transform-origin: left center;
}

.is-open .lu-bar { animation: lu-bar-in 0.9s cubic-bezier(.2,.8,.2,1) both; }
.is-open .lu-bar:nth-child(2) { animation-delay: 0.08s; }
.is-open .lu-bar:nth-child(3) { animation-delay: 0.16s; }
.is-open .lu-bar:nth-child(4) { animation-delay: 0.24s; }

@keyframes lu-bar-in { from { transform: scaleX(0); opacity: 0; } }

.lu-bar i {
  position: absolute;
  left: 3%;
  top: 8px;
  padding-left: 6px;
  border-left: 2px solid rgba(200,235,255,0.6);
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(200,235,255,0.6);
}

.lu-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(to top, rgba(95,211,255,0.12), transparent);
}

.lu-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 28px 0;
}

.lu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7fe0ff;
}

.lu-reticle {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid #7fe0ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #5fd3ff;
}

.lu-reticle::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #7fe0ff;
}

.lu-assoc { display: flex; align-items: center; gap: 10px; }

.lu-top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.lu-label {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fc3dc;
}

.lu-assoc-list { display: flex; flex-wrap: wrap; gap: 8px; }

.lu-assoc-list button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  overflow: hidden;
  background: #0a1a2a;
  color: #5fd3ff;
  box-shadow: 0 0 12px currentColor;
  cursor: pointer;
  transition: transform 0.2s;
}

.lu-assoc-list button:nth-child(3n+1) { color: #d46bff; }
.lu-assoc-list button:nth-child(3n) { color: #7dffb3; }
.lu-assoc-list button:hover, .lu-assoc-list button:focus-visible { transform: scale(1.12); outline: none; }
.lu-assoc-list img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transform-origin: var(--focus, 50% 50%); filter: saturate(0.5) brightness(0.9); }
.lu-assoc-list button:hover img { filter: none; }

.lu-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  max-width: 1320px;
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 24px 28px 120px;
}

.lu-subject { font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7fe0ff; }
.lu-subject b { color: #fff; }

.lu-name {
  margin: 6px 0 16px;
  font-family: inherit;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(95,211,255,0.55);
}

.is-scanning .lu-name { animation: lu-glitch 0.6s steps(2) both; }

@keyframes lu-glitch {
  0% { opacity: 0; transform: translateX(-8px); clip-path: inset(0 0 60% 0); }
  30% { opacity: 1; transform: translateX(4px); clip-path: inset(40% 0 0 0); }
  60% { transform: translateX(-2px); clip-path: inset(0 0 20% 0); }
  100% { transform: none; clip-path: inset(0); }
}

.lu-data { display: grid; gap: 10px; margin: 0; }

.lu-row dt {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fe0ff;
}

.lu-row dd { margin: 0; font-size: 0.86rem; line-height: 1.5; color: #e8f5ff; }

.lu-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.lu-link {
  padding: 7px 14px;
  border: 1px solid rgba(127,224,255,0.6);
  border-radius: 999px;
  font-size: 0.8rem;
  color: #bff0ff;
}

.lu-link:hover, .lu-link:focus-visible { background: rgba(127,224,255,0.14); text-decoration: none; outline: none; }

.lu-figure { position: relative; width: 100%; aspect-ratio: 4 / 5; }

.lu-figure::before, .lu-figure::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #7fe0ff;
  border-style: solid;
}

.lu-figure::before { top: -10px; left: -10px; border-width: 2px 0 0 2px; }
.lu-figure::after { bottom: -10px; right: -10px; border-width: 0 2px 2px 0; }

.lu-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(127,224,255,0.5), 0 0 40px rgba(95,211,255,0.35);
}

.lu-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }

.lu-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(127,224,255,0.09) 0 1px, transparent 1px 3px),
    linear-gradient(to top, rgba(95,211,255,0.28), transparent 45%);
  mix-blend-mode: screen;
}

.is-scanning .lu-photo { animation: lu-reveal 1.3s cubic-bezier(.3,.7,.3,1) both; }
.is-locked .lu-photo { animation: lu-glow 2.4s ease-in-out infinite; }

@keyframes lu-reveal {
  from { clip-path: inset(0 0 100% 0); filter: brightness(1.8); }
  to { clip-path: inset(0); filter: none; }
}

@keyframes lu-glow {
  50% { box-shadow: 0 0 0 1px rgba(127,224,255,0.8), 0 0 60px rgba(95,211,255,0.55); }
}

.lu-beam {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 0;
  height: 3px;
  opacity: 0;
  background: #dff8ff;
  box-shadow: 0 0 18px 4px rgba(95,211,255,0.8);
}

.is-scanning .lu-beam { animation: lu-beam 1.3s cubic-bezier(.3,.7,.3,1) both; }

@keyframes lu-beam {
  0% { top: 0; opacity: 1; }
  95% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.lu-status {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffd36b;
}

.is-locked .lu-status { color: #7dffb3; text-shadow: 0 0 10px rgba(125,255,179,0.6); }

.lu-right { display: grid; gap: 14px; }

.lu-panel {
  padding: 10px 12px;
  border: 1px solid rgba(127,224,255,0.3);
  border-radius: 6px;
  background: rgba(10,30,50,0.45);
}

.lu-ptitle {
  margin-bottom: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff9d4d;
}

.lu-dna { display: block; width: 100%; height: 90px; }

.lu-wave { display: flex; align-items: center; gap: 3px; height: 48px; }

.lu-wave span {
  flex: 1;
  height: var(--h);
  border-radius: 1px;
  background: #5fd3ff;
  box-shadow: 0 0 6px rgba(95,211,255,0.6);
  animation: lu-wave var(--d) ease-in-out infinite alternate;
}

@keyframes lu-wave { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

.lu-hex {
  height: 6.2em;
  margin: 0;
  overflow: hidden;
  font: inherit;
  font-size: 0.68rem;
  line-height: 1.5;
  white-space: pre;
  color: rgba(160,220,255,0.75);
}

.lu-controls {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(127,224,255,0.3);
  border-radius: 999px;
  background: rgba(5,14,26,0.85);
  backdrop-filter: blur(6px);
}

.lu-btn {
  padding: 7px 14px;
  border: 1px solid rgba(127,224,255,0.45);
  border-radius: 999px;
  background: none;
  color: #cfeaff;
  font: inherit;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
}

.lu-btn:hover, .lu-btn:focus-visible {
  background: rgba(127,224,255,0.15);
  box-shadow: 0 0 0 2px rgba(127,224,255,0.45);
  outline: none;
}

.lu-sound[aria-pressed="false"] { opacity: 0.6; }
.lu-count { min-width: 3.5em; text-align: center; font-size: 0.75rem; color: #9fc3dc; }

.lu-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  padding: 16px 28px;
  transform: translate(-50%, -50%);
  border: 1px solid #7fe0ff;
  border-radius: 999px;
  background: rgba(5,14,26,0.9);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(95,211,255,0.5);
  cursor: pointer;
}

.lu-start[hidden] { display: none; }

.lu-panel-pie[hidden] { display: none; }
.has-pie .lu-panel-hex { display: none; }

.pie { position: relative; height: 175px; }

.pie-stage {
  position: absolute;
  inset: 0;
  perspective: 700px;
}

.pie-tilt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 205px;
  height: 205px;
  margin: -102px 0 0 -102px;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(0deg);
}

.pie-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.pie-seg {
  fill: none;
  stroke-width: 16;
  stroke-dasharray: calc(var(--val) * 1px) calc(var(--len) * 1px);
  stroke-dashoffset: calc(var(--off) * 1px);
  transition: opacity 0.2s;
}
.pie-top .pie-seg { filter: drop-shadow(0 0 3px rgba(127,224,255,0.55)); }
.pie.has-focus .pie-seg { opacity: 0.25; }
.pie.has-focus .pie-seg.is-hot { opacity: 1; }
.pie.has-focus .pie-top .pie-seg.is-hot { filter: drop-shadow(0 0 7px rgba(166,232,255,0.95)) brightness(1.25); }

.pie-total {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(5,14,26,0.95), 0 0 4px rgba(5,14,26,0.95);
}

.pie-total b { display: block; font-size: 1.35rem; color: #fff; }
.pie-total span { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9fc3dc; }

.pie-badges { display: flex; gap: 10px; margin: 4px 0 10px; }

.pie-badges span {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid rgba(127,224,255,0.4);
  border-radius: 8px;
  background: rgba(95,211,255,0.08);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #9fc3dc;
  box-shadow: 0 0 12px rgba(95,211,255,0.15) inset;
}

.pie-badges b { display: block; font-size: 1.15rem; letter-spacing: 0; color: #fff; }

.pie-legend { list-style: none; margin: 0; padding: 0; font-size: 0.74rem; }

.pie-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #d8eefc;
  cursor: default;
}

.pie-legend li.is-hot { background: rgba(127,224,255,0.14); }
.pie-sw { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.pie-legend b { margin-left: auto; color: #fff; font-weight: 600; }
.pie-legend em { width: 3.2em; text-align: right; font-style: normal; color: #9fc3dc; }
.pie-note { margin: 8px 0 0; font-size: 0.62rem; color: #7f9bb3; }

@media (max-width: 900px) {
  .lu-stage { grid-template-columns: 1fr; gap: 44px; padding: 20px 20px 130px; }
  .lu-figure { order: -1; width: min(260px, 70vw); margin: 0 auto; }
  .lu-top { padding: 14px 16px 0; }
  .lu-panel-hex { display: none; }
  .lu-controls { gap: 6px; padding: 6px 8px; }
  .lu-btn { padding: 6px 10px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .lu-sound { font-size: 0; padding: 6px 10px; }
  .lu-sound::before { content: "\266A"; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lineup *, .lineup { animation: none !important; transition: none !important; }
}

/* Research: holographic header */
.rs-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  color: #cfeaff;
  background:
    repeating-linear-gradient(to bottom, rgba(120,170,210,0.06) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to right, rgba(120,170,210,0.04) 0 1px, transparent 1px 120px),
    radial-gradient(ellipse at 72% 45%, #123150 0%, #07111d 68%);
}

.rs-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(127,224,255,0.8), transparent);
  box-shadow: 0 0 16px rgba(95,211,255,0.6);
}

.rs-lattice { position: absolute; top: 0; right: 0; width: 56%; height: 100%; }
.rs-hero-inner { position: relative; z-index: 1; }

.rs-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7fe0ff;
}

.rs-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5fd3ff;
  box-shadow: 0 0 10px #5fd3ff;
  animation: ai-pulse 1.2s ease-in-out infinite;
}

.rs-title {
  margin: 0 0 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 22px rgba(95,211,255,0.6);
  animation: lu-glitch 0.8s steps(2) both;
}

.rs-lead { max-width: 560px; margin: 0 0 26px; font-size: 1.05rem; line-height: 1.7; color: #d4ebfb; }
.rs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.rs-explore {
  padding: 10px 20px;
  border: 1px solid rgba(127,224,255,0.7);
  border-radius: 999px;
  background: rgba(95,211,255,0.12);
  color: #e6f7ff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(95,211,255,0.25);
}

.rs-explore:hover { background: rgba(95,211,255,0.24); text-decoration: none; }

.rs-hero .ai-sound-toggle { background: rgba(5,14,26,0.6); color: #cfeaff; border-color: rgba(127,224,255,0.45); }
.rs-hero .ai-sound-toggle[aria-pressed="true"] { background: rgba(95,211,255,0.22); color: #fff; border-color: #7fe0ff; }

/* Research: "how it works" as a powered HUD pipeline */
.mech-band {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(127,224,255,0.25);
  border-radius: 16px;
  background:
    repeating-linear-gradient(to bottom, rgba(120,170,210,0.05) 0 1px, transparent 1px 22px),
    linear-gradient(160deg, #0c1e31, #07111d);
  box-shadow: 0 20px 50px rgba(6,14,24,0.25);
}

.mech-wire {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 63px;
  height: 2px;
  overflow: hidden;
  background: rgba(127,224,255,0.25);
}

.mech-wire::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #dff8ff, transparent);
  opacity: 0;
}

.mech-band.is-live .mech-wire::after { opacity: 1; animation: wire-pulse 2.2s linear infinite; }

@keyframes wire-pulse { to { left: 100%; } }

.mech-band .mech-flow { position: relative; }

.mech-band .mech-step {
  background: rgba(10,28,46,0.92);
  border-color: rgba(127,224,255,0.28);
  box-shadow: 0 0 0 1px rgba(127,224,255,0.05);
  transition: border-color 0.4s, box-shadow 0.4s, opacity 0.4s, filter 0.4s;
}

.mech-band .mech-step::before { color: #7fe0ff; }
.mech-band .mech-step h4 { color: #fff; }
.mech-band .mech-step p { color: #d6ebfa; }

.mech-band .step-num {
  background: transparent;
  border: 2px solid rgba(127,224,255,0.45);
  color: #7fe0ff;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}

.mech-band .mech-step .eq {
  background: rgba(127,224,255,0.08);
  border: 1px solid rgba(127,224,255,0.2);
  color: #bff0ff;
}

.mech-band.is-armed .mech-step:not(.is-active) { opacity: 0.5; filter: saturate(0.4); }
.mech-band.is-armed .mech-step .eq { clip-path: inset(0 100% 0 0); }

.mech-band .mech-step.is-active {
  border-color: rgba(127,224,255,0.8);
  box-shadow: 0 0 0 1px rgba(127,224,255,0.35), 0 0 26px rgba(95,211,255,0.28);
}

.mech-band .mech-step.is-active .step-num {
  background: #5fd3ff;
  color: #06121e;
  border-color: #bff0ff;
  box-shadow: 0 0 16px #5fd3ff;
}

.mech-band .mech-step.is-active .eq { clip-path: inset(0); transition: clip-path 0.9s ease-out 0.25s; }

.chips li { transition: box-shadow 0.2s, background 0.2s; }
.chips li:hover { background: #d6e8f5; box-shadow: 0 0 0 1px rgba(29,111,165,0.35), 0 4px 14px rgba(29,111,165,0.18); }

@media (min-width: 961px) {
  .mech-band .mech-step:not(:last-child)::before { content: none; }
}

@media (max-width: 960px) {
  .mech-wire { display: none; }
}

@media (max-width: 800px) {
  .rs-hero { padding: 56px 0 52px; }
  .rs-lattice { width: 100%; opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-title, .rs-dot, .mech-band .mech-wire::after { animation: none; }
}

/* Research: 3D molecule beside each focus area */
.fa-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 40px;
}

.fa-head .section-sub.lead { margin-bottom: 0; }

.mol {
  margin: 0;
  padding: 12px 14px 12px;
  border: 1px solid rgba(127,224,255,0.3);
  border-radius: 14px;
  background:
    repeating-linear-gradient(to bottom, rgba(120,170,210,0.05) 0 1px, transparent 1px 20px),
    radial-gradient(ellipse at 50% 40%, #12304d 0%, #07111d 75%);
  color: #cfeaff;
  box-shadow: 0 16px 40px rgba(6,14,24,0.22), 0 0 24px rgba(95,211,255,0.12);
}

.mol-view { position: relative; }
.mol canvas { display: block; width: 100%; height: 210px; cursor: grab; }

.mol-tag {
  position: absolute;
  top: 2px;
  left: 2px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff9d4d;
}

.mol figcaption { font-size: 0.8rem; line-height: 1.5; color: #c7e2f5; }
.mol figcaption b { color: #fff; }
.mol-formula { color: #7fe0ff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.mol-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 0.7rem; color: #9fc3dc; }
.mol-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mol-legend i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 6px rgba(255,255,255,0.25); }

@media (max-width: 860px) {
  .fa-head { grid-template-columns: 1fr; gap: 20px; }
  .mol { max-width: 360px; }
}
