/* ==========================================================================
   NeXell Bio — Design tokens + shared stylesheet
   One file, no build step. Edit tokens in :root to reskin the whole site.
   ========================================================================== */

:root {
  /* ---- Color: navy + orange, sampled directly from the company's own
     logo and pitch deck (not eyeballed) — #002466 navy, #fe8506 orange.
     The whole site is dark navy, matching the deck; a few tonal steps
     (--bg / --bg-deep / --bg-mid / --bg-raised) give it depth and let
     long-form pages breathe without ever leaving the navy family. */
  --bg: #002466;
  --bg-deep: #00173d;
  --bg-mid: #0a3380;
  --bg-raised: #0f3d94;

  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-faint: rgba(255, 255, 255, 0.62);

  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);

  --accent: #fe8506;
  --accent-soft: rgba(254, 133, 6, 0.16);

  /* signal-lo/hi = low context (normal tissue/off) -> high context (tumor/on).
     Used only where that idea is literally represented (the response diagram,
     the eyebrow dot, the nav active-state, the module dots). */
  --signal-lo: #4c7fd9;
  --signal-hi: var(--accent);
  --signal-gradient: linear-gradient(90deg, var(--signal-lo) 0%, #e3954a 55%, var(--signal-hi) 100%);

  --focus-ring: var(--accent);
  --warn: #e3954a;
  --pass: #3ecb8a;
  --fail: #ff6b6b;

  /* ---- Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-h2: clamp(1.625rem, 1.4rem + 1.1vw, 2.25rem);
  --step-h1: clamp(2.3rem, 1.9rem + 2vw, 3.75rem);
  --step-eyebrow: 0.8125rem;

  /* ---- Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --content-max: 1180px;
  --prose-max: 42rem;
  --radius: 4px;
  --radius-lg: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Accessibility ---------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: var(--bg-deep);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.prose {
  max-width: var(--prose-max);
}

main {
  display: block;
}

.section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section--tight {
  padding-block: var(--space-7);
}

.section--deep {
  background-color: var(--bg-deep);
  border-bottom-color: var(--line);
}

.section--dim {
  background-color: var(--bg-mid);
}

.section-head {
  max-width: none;
  margin-bottom: var(--space-7);
}

.section-head--wide {
  max-width: none;
}

.section-head .lead {
  margin-top: var(--space-5);
  font-size: 1.125rem;
}

/* ---- Type utilities ----------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--signal-gradient);
  flex-shrink: 0;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: var(--step-h1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 600;
  line-height: 1.25;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--text-soft);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.text-center {
  text-align: center;
}

p + p {
  margin-top: var(--space-4);
}

.prose p + p {
  margin-top: var(--space-4);
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* ---- Header -------------------------------------------------------------- */
/* header.html is injected into this placeholder div by layout.js; without
   this, the div shrink-wraps to the header's own height, which leaves
   .site-header's sticky containing block with no room to stick — it would
   unstick the instant you scroll past its own height. */
#header-placeholder {
  display: contents;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 20, 55, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-soft);
  padding-block: var(--space-2);
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  padding-block: var(--space-9) var(--space-8);
}

.brand-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-intro-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: var(--space-6);
}

.brand-intro-icon {
  height: clamp(56px, 15vw, 150px);
  width: auto;
}

.brand-intro-logo {
  height: clamp(54px, 14.5vw, 145px);
  width: auto;
}

.brand-intro .lead {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
}


/* ---- Facts strip ----------------------------------------------------------- */
.facts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.fact-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- Diagrams --------------------------------------------------------------- */
.cars-table {
  width: 100%;
  border-collapse: collapse;
}

.cars-table thead {
  display: none;
}

.cars-table tr {
  display: block;
  margin-bottom: var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.cars-table th,
.cars-table td {
  display: block;
  width: 100%;
  text-align: left;
}

.cars-table th[scope="row"] {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-mid);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.cars-table td {
  padding: var(--space-4);
  border-top: 1px solid var(--line-strong);
  color: var(--text-soft);
}

.cars-table td::before {
  content: attr(data-label);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-1);
}

.cars-table td.cars-table-nexell {
  background: var(--bg-mid);
  color: var(--text);
}

.cars-table td.cars-table-nexell::before {
  color: var(--accent);
}

@media (min-width: 720px) {
  .cars-table {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .cars-table thead {
    display: table-header-group;
  }

  .cars-table tbody {
    display: table-row-group;
  }

  .cars-table tr {
    display: table-row;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .cars-table tr + tr th,
  .cars-table tr + tr td {
    border-top: 1px solid var(--line-strong);
  }

  .cars-table th,
  .cars-table td {
    display: table-cell;
    width: auto;
  }

  .cars-table thead th {
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-faint);
  }

  .cars-table thead th.cars-table-nexell {
    color: var(--accent);
  }

  .cars-table th[scope="row"] {
    background: none;
  }

  .cars-table td {
    border-top: 0;
  }

  .cars-table td::before {
    display: none;
  }
}

@media (min-width: 720px) {
  .cars-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.module-diagram {
  display: grid;
  gap: var(--space-3);
}

.module-node {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.module-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-gradient);
  flex-shrink: 0;
}

.module-arrow {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.module-core {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  background: var(--accent);
  color: var(--bg-deep);
}

.module-core .mono-tag {
  color: inherit;
  opacity: 0.75;
}

.module-diagram--reverse .module-arrow {
  font-size: 2.5rem;
  line-height: 1;
}

.module-node--detailed {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.module-node-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.module-node-head strong {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 600;
  color: var(--accent);
}

.module-node--detailed p {
  margin: 0;
  font-size: var(--step-body);
  color: var(--text-soft);
}

/* ---- Cards / grids ----------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--text-soft);
}

/* problem buckets */
.problem-buckets {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.problem-bucket {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-strong);
}

.problem-bucket h3 {
  margin-bottom: var(--space-3);
  color: var(--accent);
}

.problem-coupling {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.problem-coupling h3 {
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.problem-coupling p {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 500;
  line-height: 1.35;
  font-style: italic;
}

.tradeoff {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-strong);
}

.tradeoff-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--signal-gradient);
  outline: none;
  cursor: pointer;
  margin-top: var(--space-4);
}

.tradeoff-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--bg-deep);
  cursor: pointer;
}

.tradeoff-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--bg-deep);
  cursor: pointer;
}

.tradeoff-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--signal-gradient);
}

.tradeoff-scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* auto-response demo (Solution section) — the manual slider's automatic
   counterpart: same dial, cycles on its own through a resting/encounter/
   peak/reset loop. Boxed like .problem-coupling, on purpose — it's the
   direct payoff to that section's pull-quote. */
.resolution-box {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.resolution-box h3 {
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.resolution-box > p {
  color: var(--text-soft);
}

.resolved-stage-meter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.resolved-stage-meter-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--signal-gradient);
}

.resolved-stage-meter-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg-deep);
  transform: translate(-50%, -50%);
}

.auto-response-vertical {
  margin-top: var(--space-6);
}

.resolved-stages-v {
  display: flex;
  flex-direction: column;
}

.resolved-stage-v {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-mid);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.resolved-stage-v-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-top: -6px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text-faint);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.resolved-stage-v-body {
  flex: 1 1 220px;
  min-width: 0;
}

.resolved-stage-v-body strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.resolved-stage-v-body p,
.resolved-stage-v-impact p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-faint);
  transition: color 0.3s ease;
}

.resolved-stage-v-impact p {
  font-style: italic;
}

.resolved-stage-v-impact p.is-warn {
  color: var(--fail);
}

.resolved-stage-v-impact p.is-pass {
  color: var(--pass);
}

.impact-icon {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

.resolved-stage-v-impact p.is-warn .impact-icon {
  color: var(--fail);
}

.resolved-stage-v-impact p.is-pass .impact-icon {
  color: var(--pass);
}

.resolved-stage-v-meter {
  flex-shrink: 0;
  width: 210px;
}

.resolved-stage-v-meter .resolved-stage-meter-label {
  margin-bottom: 18px;
}

.resolved-stage-v-impact {
  flex: 1 1 220px;
  min-width: 0;
}

.resolved-stage-v-impact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.resolved-stage-v.is-active {
  border-color: var(--accent);
  background: var(--bg-raised);
}

.resolved-stage-v.is-active .resolved-stage-v-num {
  border-color: var(--accent);
  color: var(--accent);
}

.resolved-stage-v.is-active .resolved-stage-v-body strong,
.resolved-stage-v.is-active .resolved-stage-meter-label,
.resolved-stage-v.is-active .resolved-stage-v-impact-label {
  color: var(--accent);
}

.resolved-stage-v.is-active .resolved-stage-v-body p,
.resolved-stage-v.is-active .resolved-stage-v-impact p {
  color: var(--text-soft);
}

.resolved-stage-v.is-active .resolved-stage-v-impact p.is-pass {
  color: var(--pass);
}

.resolved-stage-v.is-active .resolved-stage-v-impact p.is-warn {
  color: var(--fail);
}

.resolved-stage-v-arrow {
  align-self: center;
  color: var(--text-faint);
  font-size: 1.1rem;
  padding: 4px 0;
}

@media (max-width: 560px) {
  .resolved-stage-v-meter {
    width: 100%;
    order: 3;
    padding-left: 50px;
  }

  .resolved-stage-v-impact {
    order: 4;
    padding-left: 50px;
  }
}

/* differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.diff-item {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.diff-item-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.diff-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
}

.diff-item h3 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.diff-item p {
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* pipeline routes */
.route-grid {
  display: grid;
  gap: var(--space-6);
}

.route-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.route-card h3 {
  color: var(--accent);
}

.route-card p {
  color: var(--text-soft);
}

.route-meta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.route-not-for {
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}

/* ---- Team ------------------------------------------------------------------ */
.team-grid {
  display: grid;
  gap: var(--space-6);
}

.founder-card,
.advisor-card {
  padding-top: var(--space-5);
}

.person-photo-frame {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-4);
  background: var(--bg-raised);
}

.person-photo-frame--rect {
  border-radius: 32px;
}

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

.person-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.person-credentials {
  color: var(--text-soft);
  margin-top: var(--space-2);
}

.person-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-1);
  margin-bottom: var(--space-4);
}

.person-role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: var(--space-1);
  margin-bottom: var(--space-4);
}

.person-title-row .person-name,
.person-title-row .person-role {
  margin: 0;
}

.person-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  padding: 4px 10px;
  background: #0a66c2;
  border: 1px solid #0a66c2;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.person-linkedin:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.person-linkedin svg {
  width: 14px;
  height: 14px;
}

.person-bio {
  color: var(--text-soft);
}

.advisor-focus {
  margin-top: var(--space-3);
  color: var(--text-soft);
}

.advisors-intro {
  margin-bottom: var(--space-7);
}

/* ---- CTA band ---------------------------------------------------------------- */
.cta-band {
  padding: var(--space-8) 0;
  text-align: center;
}

.cta-band h2 {
  max-width: 28ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 34rem;
  margin: var(--space-4) auto 0;
  color: var(--text-soft);
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---- Forms -------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--space-5);
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: var(--space-1);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
}

.field select option {
  background: var(--bg-raised);
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #ff6b6b;
}

.field-error {
  color: #ff8a80;
  font-size: 0.8125rem;
  margin-top: var(--space-1);
}

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.alert-success {
  background: rgba(62, 203, 138, 0.14);
  border: 1px solid #3ecb8a;
}

.alert-error {
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid #ff6b6b;
}

.email-brief {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
  background: var(--bg-raised);
}

.email-brief ol {
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.email-brief li {
  counter-increment: step;
  padding-left: 2.25rem;
  position: relative;
}

.email-brief li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-grid {
  display: grid;
  gap: var(--space-8);
}

.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: var(--space-5);
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: var(--space-1) 0 0;
  font-size: 1.0625rem;
}

.contact-details a {
  text-decoration-color: var(--line-strong);
}

/* ---- FAQ (native details/summary, no JS) ----------------------------------- */
.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
  padding-block: var(--space-5);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin-top: var(--space-3);
  color: var(--text-soft);
}

/* ---- Footer ----------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-deep);
  color: var(--text-soft);
  padding-block: var(--space-8) var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
}

.footer-grid .brand {
  color: var(--text);
}

.footer-tagline {
  margin-top: var(--space-4);
  max-width: 30ch;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: grid;
  gap: var(--space-3);
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 90;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---- Simple page hero (non-home pages) --------------------------------------- */
.simple-hero {
  padding-block: var(--space-9) var(--space-7);
}

.simple-hero h1 {
  max-width: none;
}

.simple-hero .lead {
  max-width: none;
}

/* ---- Utilities ------------------------------------------------------------- */
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.items-center { align-items: center; }

.module-diagram .module-node + .module-node {
  margin-top: var(--space-2);
}

/* ---- Responsive --------------------------------------------------------------- */
@media (min-width: 720px) {
  .route-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid--2col {
    grid-template-columns: repeat(2, minmax(0, 450px));
    justify-content: center;
  }

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

  .module-diagram {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

@media (max-width: 719px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

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

  .module-diagram {
    grid-template-columns: 1fr;
  }

  .module-arrow {
    transform: rotate(90deg);
  }
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: var(--space-5);
    left: var(--space-5);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    background: var(--bg-raised);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: var(--space-4);
    display: none;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-3) var(--space-2);
  }
}
