/* ============================================================
   Neumarker — main.css
   Design system per /doc/design.md (v1.0)
   Faces: Space Grotesk (display) · Inter (body) · JetBrains Mono (instrument)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (source: doc/color_pallette.txt) */
  --navy: #1D355F;
  --azure: #378DD7;
  --teal: #2EB78A;
  --gray: #5B6472;
  --white: #FFFFFF;
  --mist: #F4F6F9;

  /* Derived */
  --navy-deep: #142544;
  --navy-ink: #0F1D38;
  --azure-600: #2273C2;   /* buttons: AA text contrast */
  --azure-700: #1D63A8;
  --azure-300: #7CB8E8;   /* links on navy */
  --teal-300: #7DDBBB;    /* teal text on navy */
  --ink-body: #46505F;    /* body copy on light */
  --line: #E1E7EF;        /* hairlines on light */
  --line-dark: rgba(124, 184, 232, 0.22); /* hairlines on navy */

  /* Type */
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --container: 1160px;
  --section-pad: clamp(72px, 9vw, 118px);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(15, 29, 56, 0.05), 0 10px 32px -12px rgba(15, 29, 56, 0.14);
  --shadow-card-hover: 0 2px 4px rgba(15, 29, 56, 0.06), 0 22px 44px -16px rgba(15, 29, 56, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--azure-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 0.6em; line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -0.022em; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.2em; }
::selection { background: rgba(55, 141, 215, 0.24); }

/* Focus */
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 0.9rem; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

.section { padding-block: var(--section-pad); }
.section-light  { background: var(--white); }
.section-mist   { background: var(--mist); }
.section-dark   { background: linear-gradient(180deg, var(--navy) 0%, #122741 55%, #0F2A33 100%); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(228, 236, 246, 0.85); }

/* Biotech & Pharmaceutical (partners.html) — featured dark band. The AI-brain
   background photo was removed per user 2026-11-02 (band is now flat navy);
   the artwork was repurposed as the partners page-hero visual (.ph-partners). */
/* Anchored sections land clear of the fixed header (footer Partnerships
   links → partners.html#biotech / #academic / #health-systems, 2026-11-04). */
section[id] { scroll-margin-top: 84px; }

.partner-feature {
  position: relative;
  background: var(--navy-ink);
  color: #fff;
}
.partner-feature .container { position: relative; z-index: 1; }
.partner-feature h2 { color: var(--white); }
.partner-feature p { color: rgba(228, 236, 246, 0.85); }
.partner-feature .kicker { color: var(--teal-300); }
.partner-feature .tick-list li { color: rgba(228, 236, 246, 0.85); border-bottom-color: rgba(124, 184, 232, 0.16); }
.partner-feature .btn { margin-top: 10px; }
@media (max-width: 719px) {
  /* (photo + scrim overrides removed with the band background, 2026-11-02) */
}

.kicker {
  font-family: var(--font-mono);
  font-size: clamp(1.06rem, 1.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-600);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 34px; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--teal));
  flex: none;
}
.section-dark .kicker { color: var(--teal-300); }

.lede { font-size: 1.19rem; line-height: 1.6; color: var(--ink-body); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 960px) { .two-col { grid-template-columns: 1.05fr 0.95fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
/* Responsive button labels: .lbl-l = full label (desktop), .lbl-s = short
   label shown ≤639px so long sentence-CTAs stay single-line pills on phones. */
.btn .lbl-s { display: none; }
@media (max-width: 639px) {
  .btn .lbl-l { display: none; }
  .btn .lbl-s { display: inline; }
}
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--azure-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(34, 115, 194, 0.55); }
.btn-primary:hover { background: var(--azure-700); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(34, 115, 194, 0.6); }

.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.02); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.6); }

.btn-ghost-dark { color: var(--navy); border-color: rgba(29, 53, 95, 0.35); }
.btn-ghost-dark:hover { border-color: var(--navy); background: rgba(29, 53, 95, 0.05); }

.btn-sm { padding: 9px 19px; font-size: 0.9rem; }

/* Text link with arrow */
.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none !important;
}
.link-more .arrow { transition: transform 0.18s var(--ease); }
.link-more:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-bar {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--container); margin-inline: auto; padding: 18px 24px;
}
@media (min-width: 1024px) { .nav-bar { padding: 20px 32px; } }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; }
.brand-chip {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 29, 56, 0.28);
}
.brand-chip img { height: 28px; width: auto; display: block; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem;
  letter-spacing: -0.015em; color: #fff; line-height: 1;
}
.brand-word .ai { color: var(--azure-300); font-weight: 500; }
.site-header.scrolled .brand-word { color: var(--navy); }
.site-header.scrolled .brand-word .ai { color: var(--azure-600); }

.site-nav { margin-left: auto; }
.site-nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
@media (min-width: 1080px) { .site-nav ul { display: flex; } }
.site-nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 500; color: rgba(255, 255, 255, 0.82);
  text-decoration: none !important;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a.active { color: #fff; }
.site-nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--azure), var(--teal));
}
.site-header.scrolled .site-nav a { color: var(--ink-body); }
.site-header.scrolled .site-nav a:hover { color: var(--navy); background: rgba(29, 53, 95, 0.06); }
.site-header.scrolled .site-nav a.active { color: var(--azure-600); }

.nav-cta { display: none; }
@media (min-width: 1080px) { .nav-cta { display: inline-flex; } }

/* Header states */
.site-header.scrolled { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(15, 29, 56, 0.25); }
.site-header.scrolled .nav-cta { /* keep primary style */ }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px; color: #fff; cursor: pointer;
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.site-header.scrolled .nav-toggle { color: var(--navy); border-color: rgba(29, 53, 95, 0.25); background: rgba(29, 53, 95, 0.04); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background:
    radial-gradient(800px 420px at 85% -8%, rgba(55, 141, 215, 0.28), transparent 60%),
    radial-gradient(640px 420px at 8% 112%, rgba(46, 183, 138, 0.18), transparent 58%),
    linear-gradient(165deg, var(--navy) 0%, #122741 55%, #0F2A33 100%);
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow-y: auto;
  padding: 96px 32px 40px;
}
/* Flex spacers keep the menu visually centered on tall screens and
   collapse to a 24px cushion once the list (now including the
   Technology sub-links) outgrows a short one — every item stays
   reachable by scrolling instead of being clipped. */
.mobile-menu::before, .mobile-menu::after { content: ""; display: block; flex: 1 0 24px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: block; padding: 14px 0; font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 600; color: #fff; text-decoration: none !important;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu nav a.active { color: var(--teal-300); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* Mobile menu — Technology sub-links (indented rail; always visible
   when the menu is open, no JS dependency) */
.mobile-menu .mm-sub { margin: 2px 0 0 2px; padding: 2px 0 10px 18px; border-left: 2px solid rgba(55, 141, 215, 0.38); }
.mobile-menu .mm-sub a {
  display: block; padding: 10px 0; font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, 0.75);
  border-bottom: none;
}
.mobile-menu .mm-sub a.current { color: var(--teal-300); }

/* ---------- Desktop nav dropdown (Technology) ----------
   Opens on hover and keyboard focus via pure CSS; main.js adds
   first-tap reveal for touch pointers. Items: Overview + products. */
.nav-drop { position: relative; }
.site-nav .nav-dropdown {
  display: block; position: absolute; top: 100%; left: 0;
  transform: translateY(10px);
  min-width: 240px; margin: 0; padding: 7px; gap: 0;
  background: rgba(15, 29, 56, 0.97);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -18px rgba(4, 12, 26, 0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
@media (max-width: 1079.98px) { .site-nav .nav-dropdown { display: none; } } /* desktop nav hidden here; mobile menu carries the sub-links */
.site-nav .nav-dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; } /* hover bridge */
.nav-drop:hover .nav-dropdown,
.nav-drop:focus-within .nav-dropdown,
.nav-drop.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(4px);
}
.site-nav .nav-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.site-nav .nav-dropdown a::before { /* current-page dot rail */
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: transparent; flex: none;
}
.site-nav .nav-dropdown a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav .nav-dropdown a.dd-overview { /* Overview grouped above the products */
  border-bottom: 1px solid var(--line-dark);
  border-radius: var(--radius-sm) var(--radius-sm) 4px 4px;
  margin-bottom: 6px;
}
.site-nav .nav-dropdown a.dd-tail { /* Publications grouped below the products */
  border-top: 1px solid var(--line-dark);
  border-radius: 4px 4px var(--radius-sm) var(--radius-sm);
  margin-top: 6px;
}
.site-nav .nav-dropdown a.current { color: #fff; font-weight: 600; }
.site-nav .nav-dropdown a.current::before { background: linear-gradient(90deg, var(--azure), var(--teal)); }
/* Scrolled (light) header: light panel */
.site-header.scrolled .nav-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  box-shadow: 0 24px 55px -20px rgba(15, 29, 56, 0.32);
}
.site-header.scrolled .nav-dropdown a { color: var(--ink-body); }
.site-header.scrolled .nav-dropdown a:hover { color: var(--navy); background: rgba(29, 53, 95, 0.06); }
.site-header.scrolled .nav-dropdown a.dd-overview { border-bottom-color: var(--line); }
.site-header.scrolled .nav-dropdown a.dd-tail { border-top-color: var(--line); }
.site-header.scrolled .nav-dropdown a.current { color: var(--azure-600); }

/* ---------- Hero ----------
   Compact (v3.0): ~70vh so following content peeks above the fold;
   no CTA buttons — the nav pill and the bottom CTA band carry actions. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(55, 141, 215, 0.32), transparent 62%),
    radial-gradient(880px 560px at 10% 115%, rgba(46, 183, 138, 0.22), transparent 58%),
    linear-gradient(180deg, var(--navy) 0%, #122741 55%, #0F2A33 100%);
  color: #fff;
  min-height: clamp(520px, 70vh, 760px);
  display: flex; align-items: center;
  padding: 132px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: 0;
  background: linear-gradient(180deg, rgba(15, 29, 56, 0) 0%, rgba(15, 29, 56, 0.18) 50%, rgba(15, 29, 56, 0.42) 100%);
  pointer-events: none;
}
.hero-eeg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.82; z-index: 0;
}
/* Hero text measure: stable on desktop (never shrinks as the screen widens),
   full-width wrap on small screens, and a gentle taper only in the 980–1229px
   band where the side visual needs clearance. (Replaces the handoff rule
   max-width: min(60ch, 54%), which inverted — text got narrower on wider
   screens and jumped wider below 980px.) */
.hero-inner { position: relative; z-index: 2; max-width: 100%; }
@media (min-width: 640px) { .hero-inner { max-width: 860px; } }
@media (min-width: 980px) and (max-width: 1319px) { .hero-inner { max-width: min(860px, 66vw); } }
.hero .kicker { color: var(--teal-300); }
.hero h1 { color: #fff; margin-bottom: 0.5em; text-wrap: balance; font-size: clamp(2.2rem, 4.4vw, 3.25rem); } /* one step under global h1 scale — holds the two-line headline from 1024px up (2026-10-18) */
.hero h1 .grad {
  background: linear-gradient(92deg, #9CC7EE 0%, var(--azure-300) 34%, var(--teal-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: rgba(228, 236, 246, 0.88); max-width: 46rem; margin-bottom: 1.7rem; }
.hero-cred {
  font-family: var(--font-mono); font-size: 0.98rem; letter-spacing: 0.03em;
  color: rgba(228, 236, 246, 0.68); line-height: 1.75;
  display: flex; flex-wrap: wrap; gap: 0.4em 1.6em;
}
.hero-cred .dot { color: var(--teal-300); }
.hero-visual {
  position: absolute; right: clamp(-40px, -0.5vw, 8px); top: 56%; transform: translateY(-50%);
  width: clamp(300px, 34vw, 560px); aspect-ratio: 4 / 5;
  pointer-events: none; z-index: 1;
  opacity: 0.48;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 12% 8% 16% 14%;
  background: radial-gradient(55% 55% at 50% 42%, rgba(55, 141, 215, 0.18), transparent 70%),
              radial-gradient(36% 32% at 48% 27%, rgba(46, 183, 138, 0.12), transparent 68%);
  filter: blur(30px);
}
.hero-head {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0.92; filter: saturate(0.98) brightness(0.98) drop-shadow(0 20px 50px rgba(14, 28, 54, 0.28));
}
.hero-neural {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  pointer-events: none;
}
.hero-neural .guide-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.001);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-neural .signal-dot {
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(124, 184, 232, 0.65)) drop-shadow(0 0 14px rgba(125, 219, 187, 0.35));
}
.hero-neural .signal-dot.azure { fill: rgba(170, 224, 255, 0.96); }
.hero-neural .signal-dot.teal { fill: rgba(154, 255, 229, 0.92); }
.hero-tag {
  position: absolute; right: 32px; bottom: 34px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: rgba(228, 236, 246, 0.55); text-transform: uppercase;
  writing-mode: vertical-rl;
  display: none;
}
@media (min-width: 1200px) { .hero-tag { display: block; } }
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(228, 236, 246, 0.62);
  border: 1px solid rgba(124, 184, 232, 0.22);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-scroll:hover { color: var(--teal-300); border-color: rgba(125, 219, 187, 0.55); text-decoration: none; }
.hero-scroll svg { animation: heroScrollBob 2.6s var(--ease) infinite; }
@keyframes heroScrollBob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (max-width: 979px) {
  .hero-visual { right: -90px; top: auto; bottom: -30px; width: min(68vw, 420px); transform: none; opacity: 0.23; }
  .hero-inner { max-width: 100%; }
}
@media (max-width: 639px) {
  .hero-visual { width: 82vw; right: -96px; bottom: -10px; opacity: 0.18; }
  .hero-tag { display: none !important; }
}

/* ---------- Challenge (v3.0 narrative + stat tiles restored 2026-10-17) ---------- */
.stat-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .two-col .stat-row { grid-template-columns: 1fr; gap: 16px; }
}
.stat-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.stat-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--azure), var(--teal));
}
.stat-tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.stat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: #C9D9EA; }
.stat-tile:hover::after { transform: scaleX(1); }
.stat-value {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(2.1rem, 2.6vw, 2.5rem);
  color: var(--navy); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; line-height: 1.5; color: var(--gray); }
.stat-note { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: #7A8595; margin-top: auto; padding-top: 14px; display: block; }
.bridge-card {
  margin-top: 34px; padding: 26px 28px;
  background: linear-gradient(135deg, rgba(46, 183, 138, 0.09), rgba(55, 141, 215, 0.05)), var(--mist);
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
}
.bridge-card p { margin: 0; font-size: 1.02rem; }

/* ---------- Platform section ---------- */
.platform { position: relative; overflow: hidden; }
.platform::after {
  content: ""; position: absolute; inset: auto 0 -140px 0; height: 280px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(46, 183, 138, 0.1), transparent 70%);
  pointer-events: none;
}
.platform .lede-intro { max-width: 46rem; }

/* Diagram — vertical flow: inputs → foundation model → applications.
   Wires sit at the two card-column centers (23.75% / 76.25%), so they stay
   anchored to the cards at every container width. */
.platform-diagram { position: relative; margin-top: 14px; }
.pd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; }
.pd-node {
  background: rgba(15, 29, 56, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  backdrop-filter: blur(4px);
  display: grid; gap: 10px; align-content: start;
  min-width: 0; /* let grid tracks compress so the 2→1→3 topology survives narrow screens */
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pd-node:hover { border-color: rgba(125, 219, 187, 0.5); transform: translateY(-2px); }
.pd-node svg { width: 26px; height: 26px; color: var(--azure-300); }
.pd-node .t { font-size: 0.94rem; font-weight: 600; color: #fff; line-height: 1.3; overflow-wrap: break-word; }
.pd-node .d { font-size: 0.8rem; color: rgba(228, 236, 246, 0.62); line-height: 1.5; overflow-wrap: break-word; }

.pd-wire-row { position: relative; height: 46px; }
.pd-wire {
  position: absolute; top: 0; bottom: 0; left: 23.75%; width: 2px; margin-left: -1px;
  background-image: repeating-linear-gradient(180deg, rgba(124, 184, 232, 0.8) 0 5px, transparent 5px 12px);
  animation: wireFlow 1.1s linear infinite;
}
.pd-wire.w2 { left: 76.25%; }
/* Output row (3 applications): wires at the three column centers */
.pd-wire-row.outputs .pd-wire { left: 25%; }
.pd-wire-row.outputs .pd-wire.w2 { left: 75%; }
.pd-wire.teal { background-image: repeating-linear-gradient(180deg, rgba(125, 219, 187, 0.72) 0 5px, transparent 5px 12px); }
.pd-wire::before, .pd-wire::after {
  content: ""; position: absolute; left: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: #7CB8E8; transform: translate(-50%, -50%);
}
.pd-wire::before { top: 0; }
.pd-wire::after { top: 100%; }
.pd-wire.teal::before, .pd-wire.teal::after { background: #7DDBBB; }
@keyframes wireFlow { to { background-position: 0 12px; } }
/* Phones: keep the full 2→1→2 topology (all wires, all card columns) and
   compact the diagram instead — smaller type, padding, glyphs, wire runs. */
@media (max-width: 639px) {
  .pd-row { gap: 4%; }
  .pd-node { padding: 12px 12px; }
  .pd-node svg { width: 20px; height: 20px; }
  .pd-node .t { font-size: 0.76rem; }
  .pd-node .d { font-size: 0.64rem; }
  .pd-wire-row { height: 30px; }
  .pd-core { padding: 16px 14px; gap: 12px; }
  .pd-core svg.core-glyph { width: 38px; height: 38px; }
  .pd-core .t { font-size: 1.05rem; }
  .pd-core .d { font-size: 0.58rem; }
  .pd-core .ring { inset: -8px; }
  .pd-core .ring.r2 { inset: -14px; }
}
/* Foundation-model hub */
.pd-core {
  position: relative;
  border-radius: 18px;
  padding: 26px 28px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  text-align: left;
  background: linear-gradient(165deg, rgba(55, 141, 215, 0.18), rgba(46, 183, 138, 0.1)),
              rgba(10, 20, 40, 0.72);
  border: 1px solid rgba(124, 184, 232, 0.35);
  box-shadow: 0 0 60px -18px rgba(55, 141, 215, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@media (max-width: 639px) { .pd-core { flex-direction: column; text-align: center; } }
.pd-core .ring {
  position: absolute; inset: -12px; border-radius: 24px;
  border: 1px solid rgba(124, 184, 232, 0.24);
  animation: corePulse 3.6s var(--ease) infinite;
  pointer-events: none;
}
.pd-core .ring.r2 { inset: -22px; animation-delay: 1.8s; border-color: rgba(46, 183, 138, 0.18); }
@keyframes corePulse {
  0%, 100% { opacity: 0.5; transform: scale(0.995); }
  50% { opacity: 0.95; transform: scale(1.008); }
}
.pd-core svg.core-glyph { width: 52px; height: 52px; flex: none; color: var(--azure-300); }
.pd-core .t { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: -0.01em; }
.pd-core .d { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-300); margin-top: 5px; }

/* Focus chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(228, 236, 246, 0.55); align-self: center; margin-right: 6px; }
.chip {
  font-size: 0.86rem; font-weight: 500; color: rgba(228, 236, 246, 0.9);
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 16px;
  background: rgba(15, 29, 56, 0.4);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.chip:hover { border-color: var(--teal-300); color: #fff; }

/* ---------- Applications ---------- */
.apps-head { max-width: 640px; margin-bottom: 26px; }
.built-on {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); border: 1px dashed #C7D2DF; border-radius: 999px;
  padding: 7px 15px; margin: 0 auto 34px;
}
.built-on svg { width: 15px; height: 15px; color: var(--teal); }
.apps-center { text-align: center; }
.apps-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) { .apps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 480px)); gap: 24px; justify-content: center; } }

/* ---------- Looking ahead (vision manifesto) ---------- */
.vision { text-align: center; }
.vision-inner { max-width: 46rem; margin-inline: auto; }
.vision .kicker { justify-content: center; }
.vision-line {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); /* two tiers below the original display size — deliberate exception to the section-heading scale (user, 2026-11-11) */
  max-width: 24ch; margin: 0 auto 1.05rem; text-wrap: balance;
}
.vision-trace { width: min(420px, 72%); height: auto; display: block; margin: 2.1rem auto 1.9rem; }
.vision-close {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.3;
  background: linear-gradient(92deg, var(--azure), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.app-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px 34px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  display: flex; flex-direction: column;
}
.app-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: #C9D9EA; }
.app-card:hover::after { transform: scaleX(1); }
.app-card .icon-tile {
  width: 54px; height: 54px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.app-card .icon-tile svg { width: 27px; height: 27px; }
.app-card.develop  .icon-tile { background: rgba(46, 183, 138, 0.13); color: #1E8A67; }
.app-card.copilot  .icon-tile { background: rgba(29, 53, 95, 0.08); color: var(--navy); }

/* Careers "Why Neumarker?" + Contact inquiry cards (app-card bodies, 3-up ≥900) */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.app-card.why-1 .icon-tile { background: rgba(55, 141, 215, 0.12); color: var(--azure-600); }
.app-card.why-2 .icon-tile { background: rgba(46, 183, 138, 0.13); color: #1E8A67; }
.app-card.why-3 .icon-tile { background: rgba(29, 53, 95, 0.08); color: var(--navy); }
.app-card .mono-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9AA5B4; margin-bottom: 10px; }
.app-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.app-card .app-sub { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--azure-600); margin-bottom: 16px; }
.app-card.develop .app-sub { color: #1E8A67; }
.app-card.copilot .app-sub { color: var(--navy); }
.app-card p { font-size: 0.99rem; color: var(--ink-body); margin-bottom: 26px; }
.app-card .link-more { margin-top: auto; color: var(--azure-600); }

/* ---------- Tagline band (closing brand line on interior pages) ---------- */
.cta-band-slim { padding-block: clamp(44px, 5.5vw, 64px); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(150deg, #0F1D38 0%, #0E2C3B 55%, #103B30 100%); text-align: center; }
.cta-echo { position: absolute; inset: 0; opacity: 0.16; pointer-events: none; }
.cta-inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; }
.cta-band .cta-inner > p:not(.cta-tagline) { max-width: 46rem; margin-inline: auto; }
.cta-band .kicker { justify-content: center; color: var(--teal-300); }
.cta-band .kicker::before { display: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(228, 236, 246, 0.82); }
.cta-tagline {
  font-family: var(--font-mono); font-size: clamp(1rem, 1.5vw, 1.22rem); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-300); margin: 30px 0 34px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(228, 236, 246, 0.72); padding: clamp(56px, 7vw, 84px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 44px; padding-bottom: 56px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 32px; } }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 30rem; }
.footer-col h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(228, 236, 246, 0.5); margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(228, 236, 246, 0.78); font-size: 0.93rem; text-decoration: none; }
.footer-col a:hover { color: var(--teal-300); text-decoration: none; }
.footer-email { font-family: var(--font-mono); font-size: 0.84rem; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line-dark); color: rgba(228, 236, 246, 0.8);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.footer-social a:hover { border-color: var(--teal-300); color: var(--teal-300); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(124, 184, 232, 0.14);
  padding: 26px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(228, 236, 246, 0.5);
}
.footer-bottom a { color: rgba(228, 236, 246, 0.7); }
.footer-bottom a:hover { color: var(--teal-300); }
.footer-legal { font-size: 0.74rem; color: rgba(228, 236, 246, 0.4); max-width: 720px; line-height: 1.6; }

/* ---------- Privacy modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 20, 40, 0.66); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white); border-radius: 16px; max-width: 620px; width: 100%;
  max-height: 82vh; overflow-y: auto; padding: 40px 38px;
  box-shadow: 0 30px 80px -20px rgba(10, 20, 40, 0.5);
  transform: translateY(10px); transition: transform 0.2s var(--ease);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal h3 { padding-right: 40px; }
.modal-close {
  position: sticky; top: 14px; z-index: 2;
  margin: -26px -16px 10px auto;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(10, 20, 40, 0.35);
}
.modal-close:hover { border-color: var(--azure); }
.modal .modal-wrap { position: relative; }
.modal p { font-size: 0.94rem; }
.bio-linkedin {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--azure); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.bio-linkedin:hover { border-color: var(--azure); background: rgba(55, 141, 215, 0.08); }
.bio-linkedin[hidden] { display: none; }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -12%, rgba(55, 141, 215, 0.28), transparent 60%),
    radial-gradient(700px 460px at 8% 118%, rgba(46, 183, 138, 0.19), transparent 58%),
    linear-gradient(180deg, var(--navy) 0%, #122741 55%, #0F2A33 100%);
  color: #fff;
  padding: 158px 0 88px;
}
.page-hero .kicker { color: var(--teal-300); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 0.45em; }
.page-hero .lede { color: rgba(228, 236, 246, 0.85); max-width: 46rem; margin: 0; }
.page-hero .ph-echo {
  position: absolute; inset: auto 0 -2px 0; height: 90px; opacity: 0.2; pointer-events: none;
}
/* About hero: head-profile visual (same PNG as the homepage hero). Absolutely
   positioned and sized from the section HEIGHT, so it can never expand the
   band or overflow it (page-hero is relative + overflow:hidden). */
.ph-visual {
  position: absolute; top: 50%; right: clamp(-30px, 1vw, 24px); transform: translateY(-50%);
  height: 78%; aspect-ratio: 4 / 5;
  pointer-events: none; z-index: 0; opacity: 0.3;
}
.ph-visual::before {
  content: ""; position: absolute; inset: 10% 8% 14% 12%;
  background: radial-gradient(55% 55% at 50% 42%, rgba(55, 141, 215, 0.16), transparent 70%),
              radial-gradient(36% 32% at 48% 27%, rgba(46, 183, 138, 0.1), transparent 68%);
  filter: blur(26px);
}
.ph-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-hero .container { position: relative; z-index: 2; }
/* Careers hero — full-bleed photographic band (doc/assets/career_hero.png →
   assets/img JPEG via sips; people sit center-left, right third calm, so the
   scrim runs heavy on the text side and opens up to the right). Absolute
   layering: zero impact on the band's text-driven height. */
/* contain (not cover): the band is ~3.3:1 and the photo 16:9 — cover would
   crop ~45% of the photo's height. contain shows it whole, band-height tall,
   anchored right. Two layers keep it unified with the band: ::before is the
   photo, its left edge MASKED into the navy (no rectangle seam); ::after is a
   navy tint over everything, so the photo tones into the palette instead of
   reading as a gray slab (fixed 2026-10-18). */
.ph-careers::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/career-hero.webp") right center / contain no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 30%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 30%, #000 55%);
}
.ph-careers::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(15, 29, 56, 0.96) 0%,
    rgba(15, 29, 56, 0.6) 45%,
    rgba(15, 29, 56, 0.35) 100%);
}
@media (max-width: 719px) {
  .ph-careers::before {
    background: url("../img/career-hero.webp") center top / contain no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 55%, transparent 100%);
  }
  .ph-careers::after {
    background: linear-gradient(180deg,
      rgba(15, 29, 56, 0.55) 0%,
      rgba(15, 29, 56, 0.85) 50%,
      rgba(15, 29, 56, 0.97) 100%);
  }
}
/* Phones: width-sized (band heights differ per page) and fully INSIDE the
   band — cropping the box cuts the SMIL dots mid-track and reads as the head
   escaping the section. */
@media (max-width: 719px) {
  .ph-visual { top: auto; right: 6px; bottom: 8px; transform: none; height: auto; width: clamp(170px, 46vw, 280px); opacity: 0.15; }
}
/* Partners hero (2026-11-02): same right-anchored idea as Careers, but the
   artwork (partner-pharma-bg.webp, repurposed from the removed feature band)
   sits on pure black — a screen blend dissolves the black into the navy band,
   so no mask or scrim is needed and there is no rectangle seam. */
.page-hero.ph-partners::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/partner-pharma-bg.webp") right center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}
.page-hero.ph-partners h1 { max-width: 44rem; } /* keep text clear of the art's bright right half */
@media (max-width: 719px) {
  .page-hero.ph-partners::before {
    background: url("../img/partner-pharma-bg.webp") center top / contain no-repeat;
    opacity: 0.55; /* art crosses the heading zone on phones — dim for contrast */
  }
}

/* ---------- Interior content components ---------- */
.page-body { padding-block: clamp(64px, 7vw, 96px); }
.page-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.page-body h2:first-child { margin-top: 0; }
.prose { max-width: 46rem; }
.prose-wide { max-width: 56rem; }

.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 22px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.spec-row .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--azure-600); padding-top: 5px; }
.spec-row h3 { font-size: 1.12rem; margin-bottom: 6px; }
.spec-row p { font-size: 0.97rem; margin: 0; }

/* Develop question graphics (2026-11-02) — conceptual SVG spot diagrams
   in white panels; viewBox scales down on phones (aria-labels carry meaning). */
.q-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 22px 18px 12px; margin: 26px 0 4px; max-width: 880px;
}
.q-panel svg, .q-panel img { display: block; width: 100%; height: auto; }
@media (max-width: 639px) {
  .q-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .q-panel svg { min-width: 560px; } /* legacy SVG diagrams only: keep labels legible; pan to view. PNG figures (develop/copilot) shrink to fit instead, per user 2026-11-04 */
}
.q-panel .qf-mono { font-family: var(--font-mono); }
.q-panel .qf-display { font-family: var(--font-display); }
.q-note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin: 10px 2px 0; }

/* Differentiation image grid (enkephx.html) — 3×2 on desktop, 2≥640, 1 on phones */
.diff-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
@media (min-width: 640px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .diff-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.diff-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.diff-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(29, 53, 95, 0.35); }
.diff-img { background: var(--navy-ink); }
.diff-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.diff-card .num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--azure-600); display: block; padding-inline: 20px; margin-top: 16px; }
.diff-card h3 { font-size: 1.08rem; margin: 6px 0 12px; }
.diff-card p { font-size: 0.93rem; line-height: 1.55; margin: 0; }
.diff-card h3, .diff-card p { padding-inline: 20px; }
.diff-card p { margin-bottom: 20px; }

.tick-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.tick-list li {
  position: relative; padding: 7px 0 7px 30px;
  font-size: 0.98rem; color: var(--ink-body);
  border-bottom: 1px solid var(--line);
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.placeholder-card {
  border: 1.5px dashed #B9C6D6; border-radius: var(--radius);
  background: rgba(244, 246, 249, 0.6);
  padding: 34px 32px;
}
.placeholder-card .ph-title {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
}
.placeholder-card .ph-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--azure), var(--teal));
}
.placeholder-card p { font-size: 0.95rem; }

.empty-state { text-align: center; padding: 40px 0 12px; }
.empty-state .es-icon {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 14px;
  border: 1.5px dashed #B9C6D6; display: flex; align-items: center; justify-content: center;
  color: var(--azure-600);
}
.empty-state p { color: var(--gray); max-width: 34rem; margin: 0 auto; }

/* R&D overview cards: platform centerpiece flanked by applications */
/* Technology overview: featured platform card, then three applications */
.rd-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 880px; margin: 0 auto; }
@media (min-width: 900px) {
  .rd-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .rd-grid .rd-core-card { grid-column: 1 / -1; }
}

/* ---------- Flywheel (Technology page) ----------
   Six stages in a TRUE RING around the rotating dashed ring (2026-11-02,
   per user "make it around the wheel") — absolute hexagon anchors,
   clockwise 01 top → 04 bottom; <900px stacks hub-first then cards 01–06. */
.flywheel {
  position: relative; margin: 48px auto 0; width: 100%; max-width: 860px;
  aspect-ratio: 1 / 0.62;
}
.fly-stage { position: absolute; width: clamp(196px, 25%, 250px); transform: translate(-50%, -50%); }
.fly-p1 { top: 16%; left: 50%; }
.fly-p2 { top: 33%; left: 78%; }
.fly-p3 { top: 67%; left: 78%; }
.fly-p4 { top: 84%; left: 50%; }
.fly-p5 { top: 67%; left: 22%; }
.fly-p6 { top: 33%; left: 22%; }
.fly-card {
  width: 100%; max-width: 380px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 16px 18px; text-align: center;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.fly-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: #C9D9EA; }
.fly-num { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--azure-600); display: block; margin-bottom: 6px; }
.fly-card h3 { font-size: 0.99rem; margin: 0 0 5px; }
.fly-card p { font-size: 0.82rem; color: var(--ink-body); margin: 0; line-height: 1.45; }
.fly-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(150px, 21%, 190px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.fly-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: flySpin 60s linear infinite; }
.fly-hub-text { position: relative; text-align: center; }
.fly-hub-text .t { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy); margin: 0; }
.fly-hub-text .d { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); margin: 5px 0 0; }
@keyframes flySpin { to { transform: rotate(360deg); } }
.fly-caption {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 26px auto 0; max-width: 560px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--azure-600);
}
.fly-caption::before, .fly-caption::after { content: ""; height: 1px; flex: 1; }
.fly-caption::before { background: linear-gradient(90deg, transparent, var(--line-dark)); }
.fly-caption::after { background: linear-gradient(90deg, var(--line-dark), transparent); }
@media (prefers-reduced-motion: reduce) { .fly-ring { animation: none; } }
/* ≤959px: same hexagon topology, compacted — narrower cards/hub and smaller
   type so the ring clears the boxes on tight widths (the old stack fallback
   discarded the wheel; replaced 2026-11-04 per user). */
@media (max-width: 959px) {
  .flywheel { aspect-ratio: 1 / 0.74; }
  .fly-p4 { top: 82%; }
  .fly-stage { width: 23%; }
  .fly-hub { width: 20%; }
  .fly-card { padding: 11px 12px; }
  .fly-num { font-size: 0.58rem; margin-bottom: 4px; }
  .fly-card h3 { font-size: 0.84rem; }
  .fly-card p { font-size: 0.7rem; }
}
/* ≤719px: proportional shrink — the desktop diagram is rendered at its exact
   design size (860×533) and scaled down as one unit via `zoom`, preserving
   every proportion (card sizes, hub, type). A stepped zoom ladder fits each
   phone width; all ≤959 compacting overrides are reset to desktop values
   here. (Replaces the 2-col grid attempt: hub was oversized and cards uneven,
   per user 2026-11-04.) */
@media (max-width: 719px) {
  .flywheel { display: block; aspect-ratio: 1 / 0.62; width: 860px; max-width: none; zoom: 0.68; }
  .fly-stage { position: absolute; transform: translate(-50%, -50%); grid-area: auto; width: clamp(196px, 25%, 250px); }
  .fly-p4 { top: 84%; }
  .fly-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); grid-area: auto; width: clamp(150px, 21%, 190px); margin: 0; }
  .fly-card { padding: 16px 18px; text-align: center; max-width: 380px; }
  .fly-num { font-size: 0.68rem; margin-bottom: 6px; }
  .fly-card h3 { font-size: 0.99rem; margin: 0 0 5px; }
  .fly-card p { font-size: 0.82rem; }
  .fly-hub-text .t { font-size: 1.2rem; }
  .fly-hub-text .d { font-size: 0.62rem; }
}
@media (max-width: 640px) { .flywheel { zoom: 0.58; } }
@media (max-width: 560px) { .flywheel { zoom: 0.48; } }
@media (max-width: 480px) { .flywheel { zoom: 0.42; } }
@media (max-width: 414px) { .flywheel { zoom: 0.37; } }
@media (max-width: 375px) { .flywheel { zoom: 0.33; } }
@media (max-width: 340px) { .flywheel { zoom: 0.30; } }
.rd-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; text-decoration: none !important;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.rd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
/* Bottom application cards: same bottom-edge highlight as homepage app cards.
   (The core card is excluded — overflow would clip its outer glow ring.) */
.rd-card:not(.rd-core-card) { position: relative; overflow: hidden; }
.rd-card:not(.rd-core-card)::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.rd-card:not(.rd-core-card):hover::before { transform: scaleX(1); }
.rd-card .mono-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9AA5B4; margin-bottom: 12px; }
.rd-card h3 { font-size: 1.28rem; margin-bottom: 6px; }
.rd-card .app-sub { font-family: var(--font-mono); font-size: 0.76rem; color: var(--azure-600); margin-bottom: 14px; }
.rd-card p { font-size: 0.93rem; color: var(--ink-body); }
.rd-core-card {
  position: relative;
  background: linear-gradient(165deg, rgba(55, 141, 215, 0.1), rgba(46, 183, 138, 0.07)), var(--white);
  border: 1.5px solid rgba(55, 141, 215, 0.45);
}
.rd-core-card::after {
  content: ""; position: absolute; inset: -8px; border-radius: 20px; z-index: -1;
  border: 1px solid rgba(55, 141, 215, 0.25);
}
.rd-card .go {
  margin-top: auto; padding-top: 18px;
  font-weight: 600; font-size: 0.9rem; color: var(--azure-600);
}

/* ---------- Team tabs (About) ----------
   JS-enhanced: tabs switch panels. Without JavaScript every panel renders
   stacked with its heading — no roster is ever hidden behind a script. */
.tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tab {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--ink-body); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tab:hover { border-color: var(--azure); color: var(--azure-600); }
.tab[aria-selected="true"] {
  color: #fff; background: linear-gradient(92deg, var(--azure-600), #1E8A67);
  border-color: transparent;
}
.tab-panel { margin-bottom: 10px; }

/* ---------- Publication lists (technology/publications.html) ---------- */
.pub-group { margin-top: 38px; }
.pub-group:first-child { margin-top: 0; }
.pub-group h3 { font-size: 1.16rem; margin-bottom: 16px; }
.pub-entry { padding: 20px 0; border-top: 1px solid var(--line); }
.pub-group .pub-entry:first-of-type { border-top: none; padding-top: 0; }
.pub-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azure-600); margin: 0 0 8px; }
.pub-title { font-weight: 600; color: var(--navy); font-size: 1.02rem; margin: 0; line-height: 1.45; }
.pub-cite { margin: 0; font-size: 0.98rem; color: var(--ink-body); line-height: 1.6; }
.pub-meta { margin: 6px 0 0; font-size: 0.9rem; color: var(--gray); }
.pub-entry .link-more { margin-top: 10px; }
/* Nested set: papers that utilized the tool described by the parent entry
   (author-name panels + relevance paragraphs removed 2026-11-02) */
.pub-children { margin: 18px 0 8px; padding: 2px 0 0 20px; border-left: 2px solid rgba(55, 141, 215, 0.38); }
.pub-children .pub-entry { padding: 14px 0; }
.pub-children .pub-entry:first-of-type { border-top: none; padding-top: 4px; }
.pub-children .pub-cite { font-size: 0.9rem; }
.pub-subhead { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin: 0 0 4px; }

/* ---------- News (news.html listing + news/* articles) ---------- */
.news-feature { /* latest release — the page's most prominent element */
  display: block; text-decoration: none !important; position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 40px 44px 36px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.news-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--teal));
}
.news-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: #C9D9EA; }
.news-feature .mono-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azure-600); margin: 0 0 14px; }
.news-feature h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin: 0 0 12px; }
.news-feature > p { max-width: 54rem; color: var(--ink-body); margin: 0; }
.news-card { display: flex; flex-direction: column; }
.news-card .mono-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: #9AA5B4; margin-bottom: 10px; }
.news-card h3 { font-size: 1.06rem; line-height: 1.4; margin: 0 0 8px; }
.news-card > p:not(.mono-tag) { font-size: 0.9rem; color: var(--ink-body); margin: 0; }
.news-feature .read, .news-card .read {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 0.95rem; color: var(--azure-600);
}
.news-feature .read { margin-top: 20px; }
.news-card .read { margin-top: auto; padding-top: 18px; }
/* article pages */
.news-deck { font-size: 1.12rem; font-weight: 500; color: var(--navy); }
.news-about { margin-top: 42px; padding-top: 36px; border-top: 1px solid var(--line); }
.news-about h3 { font-size: 1.02rem; margin: 26px 0 10px; }
.news-about h3:first-child { margin-top: 0; }
.news-about p { font-size: 0.92rem; color: var(--gray); }
.news-about p.contact { line-height: 1.85; }
.news-actions { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 38px; }
.panel-title { font-size: 1.06rem; margin-bottom: 18px; }
.team-tabs[data-enhanced] .tab-panel[hidden] { display: none; }
.team-tabs[data-enhanced] .panel-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 14px; }
.person {
  font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; color: var(--navy); font-weight: 600; font-size: 0.98rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.person:hover { border-color: rgba(46, 183, 138, 0.55); transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.person .role {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--azure-600);
}
/* Headshot roster cards (Management) + bio-modal photo — 2026-11-02.
   Advisor tabs keep the original text-only .person cards. */
.person.has-photo { padding: 0; gap: 0; }
.person-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.p-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px 16px 16px; }
.bio-photo { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.bio-photo[hidden] { display: none; }
.roster-note {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: #7A8595; margin-top: 18px;
}
.sab-sub { /* disorder-SAB section label inside the SAB panel (2026-11-12) */
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); margin: 30px 0 12px;
}
.tab-panel .sab-sub:first-of-type { margin-top: 20px; }

/* ---------- Reveal classes ----------
   Entrance animation removed (2026-10-15): content visibility must never
   depend on JavaScript. The .reveal/.d1/.d2/.d3 classes remain in the markup
   as inert styling hooks for future, JS-independent treatment. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pd-core .ring, .pd-wire, .hero-scroll svg { animation: none; }
  .hero-neural .signal-dot { display: none; }
  .btn, .link-more .arrow, .app-card, .pd-node, .tab, .person, .stat-tile { transition: none; }
  .rd-card:not(.rd-core-card)::before { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-eeg, .nav-toggle, .mobile-menu, .cta-echo { display: none !important; }
  body { color: #000; }
  .hero { background: none; color: #000; min-height: auto; padding: 24px 0; }
  .hero h1, .hero .lede { color: #000; }
}
