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

:root {
  --bg: #FAF9F7;
  --bg-alt: #F4F4F4;
  --dark: #292929;
  --dark-bg: #1a1a2e;
  --text: #292929;
  --text-muted: #767676;
  --text-light: #5A5A5A;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #E5E5E5;
  --white: #ffffff;
  --max-w: 1440px;
  --soft-shadow: 0 24px 70px rgba(41, 41, 41, 0.08);
  --card-shadow: 0 18px 44px rgba(41, 41, 41, 0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.85);
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(250, 249, 247, 0.95);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}
.nav a:hover { color: var(--accent); }
.nav .cta-btn {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 7px;
  transition: background 0.3s;
}
.nav .cta-btn:hover { background: var(--accent-hover); color: var(--white); }

/* Page header */
.page-header {
  padding-top: 0;
}

/* Hero */
.hero {
  width: 100%;
  min-height: auto;
  background: var(--bg);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: 6%;
  top: 12%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 64%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 40px 92px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
  width: 100%;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-media {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 560px;
}
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 16px;
  transform: scale(1.18);
  transform-origin: center center;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 300;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero .subtitle {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: rgba(41, 41, 41, 0.7);
  max-width: 48ch;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 204px;
  padding: 16px 28px;
  border-radius: 7px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 18px 36px rgba(41, 41, 41, 0.08);
}

/* Publications Band */
.pub-band {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pub-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.pub-copy {
  flex: 1;
  min-width: 320px;
}
.pub-count {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 4px;
}
.pub-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pub-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light);
}
.pub-papers {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.pub-papers li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.pub-papers li a {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.pub-papers li a:hover { color: var(--accent); }
.pub-papers li span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}
.pub-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.pub-link:hover { color: var(--accent-hover); }
.pub-journal {
  flex-shrink: 0;
  text-align: center;
}
.pub-journal img {
  width: 380px;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.pub-journal span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Summary Strip */
.summary { background: var(--white); border-top: 1px solid var(--border); position: relative; }
.summary-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.summary-inner > div {
  padding: 30px;
  border: 1px solid transparent;
  border-radius: 22px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.summary-inner > div:hover {
  border-color: var(--border);
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}
.summary-icon {
  width: 74px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 20px;
}
.summary h3 { font-size: clamp(24px, 2.5vw, 28px); font-weight: 500; line-height: 1.22; margin-bottom: 14px; }
.summary p { font-size: clamp(16px, 1.45vw, 18px); line-height: 1.68; color: var(--text-muted); }

/* Statement */
.statement { background: var(--dark-bg); color: var(--white); overflow: hidden; }
.statement-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 112px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 72px;
  align-items: center;
}
.statement-copy { max-width: 850px; }
.statement h2 {
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 300;
  margin-bottom: 34px;
}
.statement p {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 64ch;
  margin-bottom: 24px;
}
.statement .highlight { color: #93bbff; }
.statement-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.statement-visual img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.24));
}

/* Section headings */
.section-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 92px 40px 0;
}
.section-header h2 {
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
}
.section-visual {
  display: block;
  width: min(620px, 100%);
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
}

/* Capability cards - grid layout */
.cap-section { background: var(--bg-alt); border-top: 1px solid var(--border); }
.cap-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 40px 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.cap-grid-note {
  grid-column: 1 / -1;
  text-align: left;
  padding: 4px 0 8px 44px;
}
.cap-grid-note p {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--text);
}
.cap-card:hover { border-color: rgba(37, 99, 235, 0.45); transform: translateY(-3px); box-shadow: var(--card-shadow); }
.cap-card .media-wrap {
  position: relative;
  width: 100%;
  height: 292px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cap-card video, .cap-card img.media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.device-video { position: relative; }
.device-video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  z-index: 2;
}
.device-video-label span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.cap-card .media-wrap.cap-icon-panel {
  background: radial-gradient(circle at 50% 42%, #23233b 0%, #14141f 68%);
}
.cap-card .cap-icon {
  width: 46%;
  max-width: 168px;
  height: auto;
  opacity: 0.9;
}
.cap-card .card-body { padding: 28px; }
.cap-card h3 { font-size: 21px; line-height: 1.25; font-weight: 600; margin-bottom: 10px; }
.cap-card p { font-size: 15px; line-height: 1.68; color: var(--text-light); }
.cap-card .card-ref {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
}
.cap-card .card-ref:hover { text-decoration: underline; }

/* Flagship — Spreading Multifunctional Instrument */
.cap-card.cap-flagship {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  border-color: rgba(37, 99, 235, 0.35);
}
.cap-flagship .flagship-text {
  padding: 40px 44px 28px;
}
.cap-flagship .flagship-text .card-tag { color: var(--accent); }
.cap-flagship .flagship-text h3 { font-size: 30px; line-height: 1.15; margin-bottom: 14px; }
.cap-flagship .flagship-text p { font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.cap-flagship .flagship-text p:last-child { margin-bottom: 0; }
.cap-flagship .flagship-text strong { color: var(--text); font-weight: 600; }
.cap-flagship .flagship-media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #0a0a0a;
}
.cap-flagship .flagship-slot {
  position: relative;
  height: 380px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cap-flagship .flagship-slot video { width: 100%; height: 100%; object-fit: cover; }
.cap-flagship .flagship-slot .slot-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  z-index: 2;
}
.cap-flagship .flagship-slot .slot-label span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.cap-flagship .flagship-slot.is-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .cap-flagship .flagship-text { padding: 32px 28px 20px; }
  .cap-flagship .flagship-media { grid-template-columns: repeat(2, 1fr); }
  .cap-flagship .flagship-slot { height: 340px; }
}
@media (max-width: 560px) {
  .cap-flagship .flagship-slot { height: 260px; }
}
.cap-card .card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Wide feature panel */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  max-height: 680px;
  max-width: var(--max-w);
  margin: 80px auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.feature-panel.reverse .fp-text { order: 2; }
.feature-panel.reverse .fp-media { order: 1; }
.fp-text {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}
.fp-text .card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.fp-text h3 {
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.fp-text p { font-size: 17px; line-height: 1.72; color: var(--text-light); max-width: 44ch; margin-bottom: 14px; }
.fp-media {
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}
.fp-media video, .fp-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Detail gallery */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.detail-gallery img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Research */
.research { background: var(--dark-bg); color: var(--white); border-top: 1px solid var(--border); }
.research-inner { max-width: var(--max-w); margin: 0 auto; padding: 112px 40px 124px; position: relative; }
.research h2 { font-size: clamp(48px, 4.8vw, 72px); line-height: 1.02; font-weight: 300; letter-spacing: -0.04em; margin-bottom: 20px; }
.research .section-desc { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.55; color: rgba(255,255,255,0.72); margin-bottom: 68px; max-width: 52ch; }
.research-hero-visual {
  position: absolute;
  top: 92px;
  right: 40px;
  width: 180px;
  border-radius: 24px;
  opacity: 0.9;
}
.papers-grid { display: flex; flex-direction: column; gap: 18px; }
.paper-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  align-items: start;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
}
.paper-card:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.paper-card:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(147,187,255,0.24);
  transform: translateY(-2px);
}
.paper-card .paper-thumb {
  width: 220px;
  height: 138px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.paper-card .paper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.paper-card .paper-body { padding: 0; max-width: 880px; }
.paper-card .journal {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93bbff;
  margin-bottom: 14px;
}
.paper-card h4 {
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.22;
  margin-bottom: 18px;
  color: var(--white);
  max-width: 34ch;
}
.paper-card .authors {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.64);
}
.paper-card .authors strong { color: rgba(255,255,255,0.8); font-weight: 500; }
.paper-card .abstract {
  font-size: 18px;
  line-height: 1.68;
  color: rgba(255,255,255,0.64);
  margin-bottom: 18px;
  max-width: 72ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper-card:hover .abstract { color: rgba(255,255,255,0.72); }
.paper-card h4 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.paper-card h4 a:hover { color: #93bbff; }
.paper-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.paper-links a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #93bbff;
  text-decoration: none;
  transition: color 0.2s;
}
.paper-links a:hover { color: var(--white); text-decoration: underline; }

/* Research — year filter chips */
.research-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 40px; }
.filter-chip {
  font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(147,187,255,0.22);
  background: rgba(147,187,255,0.05);
  color: rgba(255,255,255,0.75);
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-chip:hover { border-color: rgba(147,187,255,0.5); color: var(--white); }
.filter-chip.is-active { background: #93bbff; border-color: #93bbff; color: #12121f; }
.filter-chip .chip-count { font-size: 12px; font-weight: 600; opacity: 0.65; }

/* Research — publication grid */
.papers-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.papers-mosaic .paper-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: transform 0.25s, border-color 0.25s;
}
.papers-mosaic .tint-0,
.papers-mosaic .tint-1,
.papers-mosaic .tint-2 { background: rgba(255,255,255,0.03); }
.papers-mosaic .paper-card:hover { transform: translateY(-3px); border-color: rgba(147,187,255,0.35); }
.papers-mosaic .paper-thumb {
  width: auto;
  height: 150px;
  margin: 14px 14px 0;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
  flex-shrink: 0;
}
.papers-mosaic .paper-thumb img { padding: 6px; }
.papers-mosaic .paper-body { padding: 18px 22px 22px; max-width: none; display: flex; flex-direction: column; flex: 1; }

.paper-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; flex-wrap: wrap; }
.topic-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--tc);
  background: rgba(255,255,255,0.06);
  background: color-mix(in srgb, var(--tc) 15%, transparent);
  border: 1px solid rgba(255,255,255,0.12);
  border-color: color-mix(in srgb, var(--tc) 32%, transparent);
}
.topic-badge .tb-ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.year-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.papers-mosaic .paper-card .journal { font-size: 11px; letter-spacing: 0.06em; margin-bottom: 9px; }
.papers-mosaic .paper-card h4 { font-size: 18px; line-height: 1.3; margin-bottom: 0; max-width: none; }
.papers-mosaic .paper-card .authors { font-size: 13px; line-height: 1.5; margin-top: 12px; }
.papers-mosaic .paper-links { margin-top: 16px; gap: 16px; }
.papers-mosaic .paper-links a { font-size: 13px; }

/* uniform cards — hide abstract, clamp title + authors, pin links to the bottom */
.papers-mosaic .paper-card:not(.card-hero) .abstract { display: none; }
.papers-mosaic .paper-card:not(.card-hero) h4 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.papers-mosaic .paper-card:not(.card-hero) .authors {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.papers-mosaic .paper-card:not(.card-hero) .paper-links { margin-top: auto; padding-top: 16px; }

/* neutralize legacy size variant */
.papers-mosaic .card-wide { grid-column: auto; }

/* featured hero */
.papers-mosaic .card-hero {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.papers-mosaic .card-hero .paper-thumb {
  width: 40%;
  height: auto;
  min-height: 230px;
  margin: 24px 0 24px 24px;
  border-right: none;
}
.papers-mosaic .card-hero .paper-body { padding: 30px 40px; justify-content: center; }
.papers-mosaic .card-hero h4 { font-size: clamp(24px, 2.2vw, 34px); }
.papers-mosaic .card-hero .abstract {
  display: -webkit-box; font-size: 16px;
  -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.is-hidden { display: none !important; }

@media (max-width: 1024px) {
  .papers-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .papers-mosaic .card-wide, .papers-mosaic .card-hero { grid-column: 1 / -1; }
  .papers-mosaic .card-hero { flex-direction: column; }
  .papers-mosaic .card-hero .paper-thumb { width: 100%; min-height: 0; height: 200px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .papers-mosaic .card-hero .paper-body { padding: 24px 24px 26px; }
}
@media (max-width: 620px) {
  .papers-mosaic { grid-template-columns: 1fr; }
  .papers-mosaic .card-wide { grid-column: auto; }
}

/* Team */
.team { background: var(--bg-alt); border-top: 1px solid var(--border); }
.team-inner { max-width: var(--max-w); margin: 0 auto; padding: 92px 40px 108px; position: relative; }
.team h2 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.06; font-weight: 300; letter-spacing: -0.035em; margin-bottom: 50px; }
.team-visual {
  position: absolute;
  top: 92px;
  right: 40px;
  width: 180px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 40px 36px; box-shadow: 0 1px 0 rgba(41,41,41,.02); }
.team-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.team-card .role { font-size: 15px; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.team-card p { font-size: 16px; line-height: 1.65; color: var(--text-light); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }

/* Custom devices section (home page) */
.custom-devices-section { background: var(--white); border-top: 1px solid var(--border); }
.custom-devices-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px 0; }
.custom-devices-inner .cap-grid { padding-left: 0; padding-right: 0; }

/* Use cases */
.usecases { background: var(--white); border-top: 1px solid var(--border); }
.usecases-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px 112px; }
.usecases h2 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.06; font-weight: 300; letter-spacing: -0.035em; margin-bottom: 16px; }
.usecases .section-desc { font-size: 18px; line-height: 1.65; color: var(--text-muted); margin-bottom: 28px; max-width: 56ch; }
.application-visual {
  display: block;
  width: min(620px, 100%);
  margin: 0 0 42px;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.usecase {
  background: var(--bg);
  padding: 40px 34px;
}
.usecase h3 { font-size: 19px; line-height: 1.28; font-weight: 600; margin-bottom: 11px; }
.usecase p { font-size: 15px; line-height: 1.68; color: var(--text-light); }




.publication-badge {
  max-width: 860px;
  margin: 30px auto 10px;
  padding: 24px 28px;
  border: 1px solid rgba(147,187,255,0.28);
  border-radius: 22px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}
.publication-badge strong {
  display: block;
  color: #93bbff;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.publication-badge span {
  display: block;
  font-size: 17px;
  line-height: 1.58;
}

/* Andrei content sections */
.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.services-section,
.standard-section,
.named-devices,
.client-strip {
  border-top: 1px solid var(--border);
}
.services-section,
.named-devices { background: var(--white); }
.standard-section { background: var(--bg); }
.services-inner,
.standard-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 92px 40px;
}
.compact-header {
  max-width: 920px;
  margin: 0 auto 44px;
  padding: 0;
  text-align: center;
}
.compact-header h2 {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.035em;
  margin: 16px auto 20px;
  max-width: 14ch;
}
.compact-header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.62;
}
.services-grid,
.standard-grid,
.named-device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card,
.standard-grid div,
.named-device-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.service-card > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.service-card h3,
.standard-grid h3,
.named-device-card h3 {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.18;
  font-weight: 500;
  margin-bottom: 14px;
}
.service-card p,
.standard-grid p,
.named-device-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.62;
}
.standard-grid span {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}
.named-devices {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 82px 40px 40px;
}
.named-device-grid { grid-template-columns: repeat(3, 1fr); }
.named-device-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.client-strip { background: var(--white); }
.client-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 26px;
  color: var(--text-muted);
  text-align: center;
}
.client-strip-inner span {
  width: 100%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.client-strip-inner strong {
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
}

/* Conversion content sections */
.proof-section,
.founder-section,
.spec-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.proof-inner,
.founder-inner,
.spec-inner,
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 40px;
}
.proof-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}
.proof-copy h2,
.founder-copy h2,
.spec-intro h2 {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.035em;
  margin: 16px 0 24px;
  max-width: 12ch;
}
.proof-copy p,
.founder-copy p,
.spec-intro p {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.62;
  color: var(--text-light);
  max-width: 58ch;
}
.citation-card {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.citation-card span,
.fact-grid span,
.spec-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.citation-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.22;
  font-weight: 500;
  margin-bottom: 12px;
}
.citation-card p { font-size: 16px; line-height: 1.62; }
.text-link,
.citation-card a,
.contact-methods a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover,
.citation-card a:hover,
.contact-methods a:hover { color: var(--accent-hover); }
.proof-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.proof-media-grid figure {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}
.proof-media-grid img {
  width: 100%;
  display: block;
  border-radius: 22px;
}
.proof-media-grid figcaption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.research-proof {
  background: var(--dark-bg);
  color: var(--white);
  border-top-color: rgba(255,255,255,0.12);
}
.research-proof .proof-copy p { color: rgba(255,255,255,0.7); }
.research-proof .proof-copy h2 { color: var(--white); }
.highlight-line {
  color: #93bbff !important;
  font-weight: 600;
}
.founder-section { background: var(--white); }
.founder-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.founder-photo {
  min-height: 320px;
  border: 1px dashed rgba(37,99,235,0.38);
  border-radius: 34px;
  background: linear-gradient(135deg, #f7f9ff, #ffffff);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow: var(--soft-shadow);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 34px 0 40px;
}
.fact-grid.compact { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.fact-grid div,
.spec-grid div {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.fact-grid strong,
.spec-grid strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}
.founder-card-large {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  margin: 34px 0;
}
.founder-card-large h3 {
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 12px 0 6px;
}
.founder-card-large p:not(.role) {
  font-size: 18px;
  line-height: 1.66;
  color: var(--text-light);
  max-width: 68ch;
  margin-top: 14px;
}
.spec-section { background: var(--white); }
.spec-intro { max-width: 880px; margin-bottom: 44px; }
.spec-intro h2 { max-width: 14ch; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.spec-grid p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.pricing-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(37,99,235,0.08);
  color: var(--text) !important;
  font-weight: 600;
}
.contact-section { background: var(--dark-bg); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: start;
  color: var(--white);
}
.contact-copy h2 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.04em;
  margin: 14px 0 22px;
  max-width: 12ch;
}
.contact-copy p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.58;
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  margin-bottom: 28px;
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 24px 70px rgba(0,0,0,0.2);
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.94);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
}
.contact-form button {
  border: 0;
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-form button:hover { background: var(--accent-hover); }
.form-note {
  margin: -4px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.5;
}

/* CTA */
.cta-section { background: var(--dark-bg); color: var(--white); }
.cta-inner { max-width: var(--max-w); margin: 0 auto; padding: 112px 40px; }
.cta-inner h2 { font-size: clamp(40px, 5vw, 68px); font-weight: 300; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 26px; max-width: 20ch; }
.cta-inner p { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, 0.8); max-width: 52ch; margin-bottom: 42px; line-height: 1.62; }
.btn-primary-light {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 204px; padding: 16px 28px; border-radius: 7px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--white);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}
.btn-primary-light:hover { background: var(--white); color: var(--text); border-color: var(--white); }

/* Footer */
footer { background: var(--bg-alt); }
.footer-main {
  max-width: var(--max-w); margin: 0 auto; padding: 64px 40px;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 7fr 5fr; gap: 48px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 8px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 380px; }
.footer-links h4 { font-size: 10px; font-family: monospace; text-transform: uppercase; letter-spacing: 0.3em; color: var(--text-muted); margin-bottom: 24px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bar { background: var(--accent); padding: 20px 0; }
.footer-bar p { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; font-size: 12px; color: rgba(255, 255, 255, 0.85); }

/* Mobile */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 64px 40px 68px; }
  .hero-media { max-width: 600px; }
  .statement-inner { grid-template-columns: 1fr; gap: 44px; }
  .statement-visual { max-width: 720px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-panel { grid-template-columns: 1fr; min-height: auto; }
  .feature-panel.reverse .fp-text { order: 1; }
  .feature-panel.reverse .fp-media { order: 2; }
  .fp-media { min-height: 400px; }
  .fp-text { padding: 48px 24px; }
}
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 14px 24px 12px;
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .logo { font-size: 19px; }
  .nav {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .nav .cta-btn {
    padding: 8px 12px;
    border-radius: 6px;
  }
  .hero-inner { padding: 40px 24px 40px; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 10.8vw, 46px); line-height: 1.04; }
  .hero .subtitle { font-size: 18px; line-height: 1.55; }
  .hero-media { max-width: 100%; max-height: 430px; }
  .hero-media video { max-height: 430px; }
  .summary-inner { grid-template-columns: 1fr; gap: 18px; padding: 48px 24px; }
  .summary-inner > div { padding: 24px; border-color: var(--border); border-radius: 18px; }
  .summary-icon { width: 68px; height: 52px; margin-bottom: 18px; }
  .summary h3 { font-size: 24px; margin-bottom: 12px; }
  .summary p { font-size: 17px; line-height: 1.62; }
  .statement-inner { padding: 56px 24px 64px; }
  .statement h2 { font-size: clamp(34px, 9vw, 40px); line-height: 1.06; margin-bottom: 28px; }
  .statement p { font-size: 18px; line-height: 1.58; }
  .statement-visual img { border-radius: 24px; }
  .section-header { padding: 48px 24px 0; }
  .section-header h2,
  .research h2,
  .team h2,
  .usecases h2 { font-size: clamp(36px, 9.5vw, 44px); line-height: 1.08; }
  .section-header p,
  .research .section-desc,
  .usecases .section-desc { font-size: 18px; line-height: 1.58; }
  .page-header .section-header { padding-top: 40px !important; }
  .section-visual { margin-top: 28px; border-radius: 22px; }
  .cap-grid { grid-template-columns: 1fr; padding: 24px 24px 48px; }
  .cap-card .media-wrap { height: 260px; }
  .cap-card .card-body { padding: 24px; }
  .cap-card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
  .cap-card p { font-size: 16px; line-height: 1.6; }
  .fp-text { padding: 48px 24px; }
  .fp-text h3 { font-size: clamp(32px, 8.8vw, 40px); }
  .fp-text p { font-size: 16px; line-height: 1.62; }
  .fp-media { min-height: 320px; padding: 16px; }
  .fp-media video { width: auto; height: auto; max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; }
  .fp-media img { width: 100%; height: auto; max-height: none; object-fit: contain; }
  .feature-panel.reverse .fp-media { min-height: auto; padding: 24px 22px; gap: 12px; }
  .research-inner { padding: 60px 24px 68px; }
  .research .section-desc { margin-bottom: 22px; }
  .research-hero-visual { position: static; display: block; width: 118px; margin: 0 0 34px; }
  .paper-card { grid-template-columns: 1fr; gap: 22px; padding: 26px; border-radius: 18px; }
  .paper-card .paper-thumb { width: 100%; height: 132px; }
  .paper-card .journal { font-size: 12px; line-height: 1.45; margin-bottom: 10px; }
  .paper-card h4 { font-size: clamp(23px, 6.4vw, 29px); line-height: 1.2; margin-bottom: 14px; }
  .paper-card .abstract { font-size: 16px; line-height: 1.62; -webkit-line-clamp: 6; margin-bottom: 14px; }
  .paper-card .authors { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.68); }
  .usecases-inner { padding: 48px 24px 64px; }
  .application-visual { margin-bottom: 34px; border-radius: 22px; }
  .usecases-grid { grid-template-columns: 1fr; }
  .usecase { padding: 30px; }
  .usecase h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
  .usecase p { font-size: 16px; line-height: 1.6; }
  .team-inner { padding: 48px 24px 64px; }
  .team-visual { position: static; display: block; width: 118px; margin: -14px 0 32px; }
  .team-grid { grid-template-columns: 1fr; }
  .team h2 { margin-bottom: 32px; }
  .team-card { padding: 30px; }
  .team-card p { font-size: 16px; line-height: 1.62; }
  .cta-inner { padding: 64px 24px; }
  .cta-inner h2 { font-size: clamp(36px, 9.5vw, 44px); line-height: 1.08; }
  .cta-inner p { font-size: 18px; line-height: 1.56; }
  .footer-main { grid-template-columns: 1fr; padding: 48px 24px; }
  .footer-bar p { padding: 0 24px; }


  .services-inner,
  .standard-inner,
  .named-devices { padding: 56px 24px 64px; }
  .compact-header { margin-bottom: 30px; text-align: left; }
  .compact-header h2 { margin-left: 0; margin-right: 0; font-size: clamp(34px, 9vw, 42px); }
  .compact-header p { margin-left: 0; margin-right: 0; font-size: 17px; }
  .services-grid,
  .standard-grid,
  .named-device-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card,
  .standard-grid div,
  .named-device-card { padding: 24px; }
  .client-strip-inner { padding: 28px 24px; gap: 12px 18px; justify-content: flex-start; text-align: left; }
  .client-strip-inner span { text-align: left; }
  .proof-inner,
  .founder-inner,
  .contact-inner,
  .founder-card-large { grid-template-columns: 1fr; gap: 28px; }
  .proof-inner,
  .founder-inner,
  .spec-inner,
  .contact-inner { padding: 56px 24px 64px; }
  .proof-copy h2,
  .founder-copy h2,
  .spec-intro h2,
  .contact-copy h2 { font-size: clamp(34px, 9vw, 42px); line-height: 1.08; }
  .proof-copy p,
  .founder-copy p,
  .spec-intro p,
  .contact-copy p { font-size: 17px; line-height: 1.6; }
  .proof-media-grid figure { padding: 12px; border-radius: 22px; }
  .founder-photo { min-height: 260px; }
  .fact-grid,
  .fact-grid.compact,
  .spec-grid { grid-template-columns: 1fr; }
  .founder-card-large .founder-photo { min-height: 240px; }
  .contact-form { padding: 22px; border-radius: 22px; }
  .page-header { padding-top: 0; }
}

@media (max-width: 480px) {
  .header-inner { padding-left: 22px; padding-right: 22px; }
  .nav { gap: 10px; }
  .nav a { font-size: 10px; letter-spacing: 0.045em; }
  .nav .cta-btn { padding: 7px 10px; }
  .hero-inner { padding-left: 22px; padding-right: 22px; }
  .hero h1 { font-size: clamp(38px, 10.8vw, 44px); }
  .hero-media { max-height: 400px; }
  .hero-media video { max-height: 400px; }
  .section-header,
  .summary-inner,
  .statement-inner,
  .research-inner,
  .usecases-inner,
  .team-inner,
  .cta-inner,
  .footer-main { padding-left: 22px; padding-right: 22px; }
  .cap-grid { padding-left: 22px; padding-right: 22px; }

  .proof-inner,
  .founder-inner,
  .spec-inner,
  .contact-inner { padding-left: 22px; padding-right: 22px; }
  .citation-card,
  .fact-grid div,
  .spec-grid div { padding: 20px; }

  .paper-card { gap: 16px; padding: 22px; }
  .paper-card .paper-thumb { height: 118px; }
  .paper-card h4 { font-size: 22px; }
}

@media (max-width: 360px) {

  .services-inner,
  .standard-inner,
  .named-devices { padding-left: 18px; padding-right: 18px; }
  .header-inner { padding: 12px 18px 10px; }
  .logo { font-size: 18px; }
  .nav { gap: 6px; }
  .nav a { font-size: 9px; }
  .nav .cta-btn { padding: 7px 8px; }
  .hero-inner { padding: 36px 18px 36px; }
  .hero h1 { font-size: 36px; }
  .hero .subtitle { font-size: 17px; }
  .section-header,
  .summary-inner,
  .statement-inner,
  .research-inner,
  .usecases-inner,
  .team-inner,
  .cta-inner,
  .footer-main { padding-left: 18px; padding-right: 18px; }
  .cap-grid { padding-left: 18px; padding-right: 18px; }

  .proof-inner,
  .founder-inner,
  .spec-inner,
  .contact-inner { padding-left: 18px; padding-right: 18px; }

  .usecase,
  .team-card { padding: 26px; }
}

/* =========================================================
   DARK THEME (Perception Instruments)
   Content-parity pages reuse the lab stylesheet above;
   this block re-themes it to the PI dark system.
   ========================================================= */
:root {
  --bg: #07080b;
  --bg-alt: #0c0e13;
  --text: #eef1f6;
  --text-muted: #8b95a5;
  --text-light: #a7b0bf;
  --accent: #6ea8ff;
  --accent-hover: #93bbff;
  --border: #1e232c;
  --soft-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
/* global link color for dark theme */
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.header { background: rgba(7, 8, 11, 0.92); border-bottom: 1px solid rgba(30, 35, 44, 0.9); }
.header.scrolled { background: rgba(7, 8, 11, 0.96); }
.nav .cta-btn { color: #071018; }
.nav .cta-btn:hover { color: #071018; }

/* surfaces that use --white as a background become dark panels */
.summary,
.custom-devices-section,
.usecases,
.named-devices,
.client-strip,
.service-card,
.team-card,
.standard-grid > div,
.cap-card,
.contact-form,
.feature-panel { background: var(--bg-alt); }
.card-body { background: var(--bg-alt); }
.fp-media { background: #0a0c10; }

/* form controls */
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: #10131a; color: var(--text); border-color: var(--border);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5c6675; }
.contact-form label { color: var(--text-light); }

/* footer */
footer { background: #05060a; color: var(--text-light); }
footer .logo, .footer-links h4 { color: var(--text); }
.footer-links a { color: var(--text-light); }
.footer-bar { border-top: 1px solid var(--border); color: var(--text-muted); }

/* dark-theme patches (round 2): hardcoded light values in the lab sheet */
.hero .subtitle { color: rgba(238, 241, 246, 0.72); }
.services-section,
.standard-section { background: var(--bg); }
.footer-bar { background: #05060a; }

/* hero video is now a portrait clip (480x854): show it whole as a tall card,
   no cover-zoom - the old rules were tuned for a landscape demo video */
.hero-media video {
  width: auto;
  height: auto;
  max-height: 560px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transform: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* FLAT DESIGN: no rounded corners anywhere; depth comes from a slight lift */
header *, main *, footer *, main *::before, main *::after { border-radius: 0 !important; }
.cap-card, .service-card, .standard-grid > div, .team-card, .contact-form, .feature-panel {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cap-card:hover, .service-card:hover, .standard-grid > div:hover, .team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* Research highlights: data-as-art band */
.rh-band {
  position: relative;
  overflow: hidden;
  background: #06080d;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.rh-curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.rh-copy { position: relative; max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 120px 40px; }
.rh-copy h2 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); max-width: 15ch; margin: 18px 0 22px; }
.rh-copy p { max-width: 52ch; color: var(--text-light); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
.rh-note { margin-top: 18px; font-size: 13px !important; color: var(--text-muted) !important; }
.rh-highlights { position: relative; overflow: hidden; }
.rh-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rh-highlights .services-inner { position: relative; }
.rh-highlights .service-card { background: rgba(12, 14, 19, 0.82); backdrop-filter: blur(4px); }

@media (max-width: 860px) {
  .rh-copy { padding: 80px 24px; }
}
