/* ============================================================
   Sakura Health — hybrid technical design system
   Light editorial sections + dark "infrastructure" sections
   ============================================================ */

:root {
  /* light surfaces */
  --bg: #FBFAF9;
  --surface: #FFFFFF;
  --surface-soft: #F7F5F3;
  --border: #E5E3DF;
  --border-soft: #EFEDEA;

  /* ink */
  --ink: #23242C;
  --ink-2: #454857;
  --body: #5A5E70;
  --muted: #83879A;

  /* sakura accents */
  --pink: #EDA1AA;
  --rose: #C05E6D;
  --rose-deep: #9E4453;
  --blush: #FBF1F2;
  --blush-border: #F7DDE0;

  /* dark surfaces */
  --dark: #14151B;
  --dark-2: #1B1C24;
  --dark-panel: #1F2029;
  --dark-border: rgba(255, 255, 255, 0.09);
  --dark-border-soft: rgba(255, 255, 255, 0.06);
  --dark-heading: #F4F1EE;
  --dark-body: #A9ACBB;
  --dark-muted: #767A8C;
  --pink-glow: rgba(237, 161, 170, 0.14);

  /* status */
  --ok: #4E8F6F;
  --warn: #B07C3A;

  --sans: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --max: 1200px;
  --pad-x: 48px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* review queue rows: fixed so the panel never resizes mid-rotation */
  --q-row: 64px;
  --q-gap: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

::selection { background: var(--pink); color: #fff; }

/* ---------------- typography ---------------- */

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kicker::after {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.kicker--center { justify-content: center; }
.kicker--center::before {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.display {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.028em;
  line-height: 1.08;
}
.h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 22px 0 0;
}

.section-dark .h2, .section-dark .h1 { color: var(--dark-heading); }
.section-dark .lede { color: var(--dark-body); }

/* ---------------- layout ---------------- */

.container { max-width: var(--max); margin: 0 auto; }
.container--narrow { max-width: 820px; margin: 0 auto; }

section { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.section-dark {
  background-color: var(--dark);
  background-image:
    radial-gradient(900px 480px at 85% -10%, var(--pink-glow), transparent 60%),
    linear-gradient(var(--dark-2), var(--dark));
  color: var(--dark-body);
  position: relative;
}
.section-dark--flat { background-image: none; }

/* subtle blueprint grid for dark sections (keeps the pink glow layer) */
.section-dark.grid-lines {
  background-image:
    radial-gradient(900px 480px at 85% -10%, var(--pink-glow), transparent 60%),
    linear-gradient(var(--dark-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-border-soft) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

.sec-head { max-width: 680px; margin-bottom: 52px; }

.rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}
.rule .mono { color: var(--ink-2); white-space: nowrap; }
.rule::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-dark .rule .mono { color: var(--dark-body); }
.section-dark .rule::after { background: var(--dark-border); }

/* corner tick marks — Brekfuz-style technical frame */
.ticks { position: relative; }
.ticks::before, .ticks::after,
.ticks > .tick-b::before, .ticks > .tick-b::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--pink);
  border-style: solid;
  pointer-events: none;
}
.ticks::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.ticks::after { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.ticks > .tick-b::before { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.ticks > .tick-b::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.fig-caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px var(--pad-x);
  background: rgba(251, 250, 249, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.is-scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 4px 24px rgba(35, 36, 44, 0.05);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand span {
  font-weight: 750;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.navlink {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}
.navlink:hover { color: var(--ink); }
.navlink.is-active { color: var(--rose); font-weight: 600; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  font-size: 15px;
  padding: 14px 28px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { font-size: 14px; padding: 10px 22px; }

/* Deep rose rather than the lighter --pink: white on --pink is only ~2:1,
   which fails WCAG AA. */
.btn--primary {
  background: var(--rose-deep);
  color: #fff;
  box-shadow: 0 6px 24px rgba(158, 68, 83, 0.3);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(158, 68, 83, 0.44); }

.btn--rose {
  background: var(--rose-deep);
  color: #fff;
  box-shadow: 0 6px 24px rgba(158, 68, 83, 0.24);
}
.btn--rose:hover { box-shadow: 0 10px 30px rgba(158, 68, 83, 0.36); }

.btn--ghost {
  border: 1px solid #C9C6C0;
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink-2); }

.btn--ghost-dark {
  border: 1px solid var(--dark-border);
  color: var(--dark-heading);
}
.btn--ghost-dark:hover { border-color: rgba(255, 255, 255, 0.3); }

.btn .btn-arrow { font-family: var(--mono); font-size: 14px; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 92px;
  padding-bottom: 84px;
  /* faint dotted grid on light */
  background-image: radial-gradient(rgba(35, 36, 44, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-watermark {
  position: absolute;
  right: -170px;
  top: -160px;
  width: 560px;
  opacity: 0.05;
  pointer-events: none;
  animation: slow-spin 120s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--blush);
  border: 1px solid var(--blush-border);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hero p.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
  margin: 26px 0 34px;
}

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

.hero-proofs { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-proofs span {
  display: flex;
  gap: 9px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------- review queue mock ---------------- */

.queue {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(35, 36, 44, 0.13);
  background: var(--surface);
  overflow: hidden;
}
.queue-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.queue-head .queue-title { font-weight: 650; color: var(--ink); font-size: 14px; }
.queue-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
/* Rows rotate in before the outgoing one is removed, so the body is a
   fixed-height window that clips the extra row rather than resizing. */
.queue-body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: var(--q-gap);
  height: calc(3 * var(--q-row) + 2 * var(--q-gap) + 30px);
  overflow: hidden;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  height: var(--q-row);
  flex: none;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.queue-item.is-entering { opacity: 0; transform: translateY(-12px); }
.queue-item.is-leaving { opacity: 0; transform: translateY(10px); }
.queue-item.is-flagged { border-color: var(--blush-border); background: var(--blush); }
.queue-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.queue-dot--ok { background: var(--ok); }
.queue-dot--warn { background: var(--warn); }
.queue-dot--flag { background: var(--rose); }
.queue-item .q-main { flex: 1; min-width: 0; }
/* single-line so every row is exactly --q-row tall, whatever the text length */
.queue-item .q-title,
.queue-item .q-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item .q-title { font-weight: 650; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.queue-item .q-sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.queue-item.is-flagged .q-sub { color: var(--rose-deep); }
.queue-item .q-id {
  font-family: var(--mono);
  font-size: 11px;
  color: #A6A9B6;
}
.queue-item.is-flagged .q-id { color: var(--rose); }

/* ---------------- stats band (dark) ---------------- */

.stats {
  padding-top: 64px;
  padding-bottom: 64px;
}
.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  text-align: left;
  padding: 8px 40px;
  border-left: 1px solid var(--dark-border);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value {
  font-size: clamp(44px, 4.6vw, 62px);
  font-weight: 750;
  color: var(--dark-heading);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value .accent { color: var(--pink); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-top: 14px;
}

/* ---------------- credibility / logos ---------------- */

.cred { padding-top: 84px; padding-bottom: 64px; }
.cred-copy {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 600;
  margin: 0 auto 40px;
  max-width: 860px;
  letter-spacing: -0.01em;
  text-align: center;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: center;
  justify-content: center;
}
.logo-row img {
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.25s, opacity 0.25s;
}
.logo-row img:hover { filter: none; opacity: 1; }

/* ---------------- platform cards (dark) ---------------- */

.platform { padding-top: 96px; padding-bottom: 104px; }
.plat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.plat-card {
  position: relative;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.plat-card:hover {
  border-color: rgba(237, 161, 170, 0.45);
  transform: translateY(-3px);
}
.plat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 100% 0%, var(--pink-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.plat-card:hover::after { opacity: 1; }
.plat-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--pink);
}
.plat-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.plat-card .plat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}
.plat-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-heading);
  letter-spacing: -0.02em;
}
.plat-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--dark-body); }

/* ---------------- specialties ---------------- */

.specialties { padding-top: 96px; padding-bottom: 48px; }
.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.pill:hover {
  border-color: var(--pink);
  color: var(--rose-deep);
  background: var(--blush);
  transform: translateY(-1px);
}
.pill--blush {
  background: var(--blush);
  border-color: var(--blush-border);
  color: var(--rose-deep);
  font-size: 14.5px;
}

/* ---------------- integrations ---------------- */

.integrations { padding-top: 48px; padding-bottom: 96px; }
.emr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.emr-tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px 20px;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.emr-tile:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(35, 36, 44, 0.07);
}
.emr-name { font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.emr-status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.emr-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------------- how it works ---------------- */

.how { padding-top: 96px; padding-bottom: 104px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--dark-border);
}
.how-step {
  padding: 36px 36px 8px 0;
  position: relative;
}
.how-step + .how-step { padding-left: 36px; border-left: 1px solid var(--dark-border); }
.how-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--pink);
}
.how-step + .how-step::before { left: 36px; }
.how-week {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.how-step h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--dark-heading);
  letter-spacing: -0.02em;
}
.how-step p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--dark-body); }

/* ---------------- trust bar ---------------- */

.trustbar {
  padding-top: 0;
  padding-bottom: 96px;
}
.trustbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  overflow: hidden;
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  align-items: center;
  justify-content: center;
}
.trust-item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dark-heading);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-item + .trust-item { border-left: 1px solid var(--dark-border); }
.trust-item::before { content: "✓"; color: var(--pink); font-family: var(--mono); }

/* ---------------- CTA panel ---------------- */

.cta { padding-top: 0; padding-bottom: 104px; }
.cta-panel {
  max-width: var(--max);
  margin: 0 auto;
  background:
    radial-gradient(700px 380px at 90% 110%, rgba(237, 161, 170, 0.22), transparent 65%),
    var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
.cta-panel .cta-mark {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 300px;
  opacity: 0.08;
  pointer-events: none;
}
.cta-panel h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 750;
  color: var(--dark-heading);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.cta-panel .cta-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark-body);
  margin: 20px 0 32px;
  max-width: 640px;
}
.cta-contact {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  font-size: 15px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--dark-border);
}
.cta-contact a {
  color: var(--pink);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.cta-contact .sep { color: var(--dark-muted); }

/* ---------------- footer ---------------- */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px var(--pad-x);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-weight: 750; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }
.footer-links { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.footlink { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.footlink:hover { color: var(--ink); }
.footer-legal {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #A6A9B6;
  text-transform: uppercase;
}

/* ---------------- team page ---------------- */

.page-hero { padding-top: 92px; padding-bottom: 28px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.team-card:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(35, 36, 44, 0.09);
}
.team-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--pink);
  flex: none;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 22px 0 0; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.team-card h3 a { color: var(--ink); transition: color 0.15s; }
.team-card h3 a:hover { color: var(--rose); }
.team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--rose);
  margin: 10px 0 14px;
}
.team-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--body); max-width: 300px; }

.advisor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.advisor-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.advisor-card:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(35, 36, 44, 0.09);
}
.advisor-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.advisor-card h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.advisor-card h3 a { color: var(--ink); transition: color 0.15s; }
.advisor-card h3 a:hover { color: var(--rose); }
.advisor-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--rose);
  margin: 8px 0 10px;
}
.advisor-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------------- careers page ---------------- */

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  align-items: center;
}
.job-meta .sep { color: var(--border); }
.job-meta span { display: flex; align-items: center; gap: 8px; }

.job-intro { font-size: 19px; line-height: 1.65; color: var(--body); margin: 0; }

.job-section { padding-top: 56px; }
.job-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
}
.job-section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rose);
  flex: none;
}
.job-section h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.why-list { display: flex; flex-direction: column; gap: 12px; }
.why-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.2s;
}
.why-item:hover { border-color: var(--pink); }
.why-item .why-marker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pink);
  flex: none;
  margin-top: 4px;
}
.why-item p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }

.doing-list { display: flex; flex-direction: column; gap: 0; }
.doing-item {
  padding: 26px 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.doing-item:last-child { border-bottom: 1px solid var(--border-soft); }
.doing-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--rose-deep);
  letter-spacing: -0.01em;
}
.doing-item p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--body); }

.looking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.looking-card {
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.looking-card:hover { border-color: var(--blush-border); background: var(--blush); }
.looking-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.looking-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--body); }

.apply-panel {
  background:
    radial-gradient(560px 300px at 90% 120%, rgba(237, 161, 170, 0.22), transparent 65%),
    var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
}
.apply-panel h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 750;
  color: var(--dark-heading);
  letter-spacing: -0.02em;
}
.apply-panel p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--dark-body);
  margin: 16px auto 26px;
  max-width: 620px;
}
.apply-panel p a { color: var(--pink); font-weight: 600; }

/* ---------------- legal pages (privacy / terms) ---------------- */

.legal h2 {
  margin: 44px 0 14px;
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.legal h2:first-child { margin-top: 0; }
.legal p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}
.legal strong { color: var(--ink-2); }
.legal a { color: var(--rose-deep); font-weight: 600; transition: color 0.15s; }
.legal a:hover { color: var(--rose); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}
.legal li::marker { color: var(--pink); }

/* ---------------- reveal on scroll ---------------- */

/* The hidden start state is scoped to .js, which an inline script sets on
   <html>. Without JS the content renders normally instead of staying at
   opacity 0 forever. */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-watermark { animation: none; }
  .hero-eyebrow .dot { animation: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .plat-grid { grid-template-columns: 1fr; }
  .emr-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .advisor-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { padding: 30px 0 8px; }
  .how-step + .how-step { padding-left: 0; border-left: none; border-top: 1px solid var(--dark-border); margin-top: 22px; }
  .how-step + .how-step::before { left: 0; }
  .doing-item { grid-template-columns: 1fr; gap: 8px; }
  .stats-grid { grid-template-columns: 1fr; gap: 34px; }
  .stat { border-left: none; padding: 0; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .nav { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 8px 12px; }
  .navlink { font-size: 13.5px; }
  .nav .btn--sm { padding: 8px 16px; font-size: 13px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero p.hero-sub { font-size: 17px; }
  .looking-grid { grid-template-columns: 1fr; }
  .emr-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-panel { padding: 40px 26px; }
  .apply-panel { padding: 36px 24px; }
  .trust-item { padding: 0; width: 100%; justify-content: center; }
  .trust-item + .trust-item { border-left: none; }
  .sec-head { margin-bottom: 36px; }
}

/* ============================================================
   PART 2 — Living document upgrades (Brekfuz-style)
   ============================================================ */

/* ---------------- scroll progress bar ---------------- */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--pink);
  box-shadow: 0 0 8px rgba(237, 161, 170, 0.8);
  z-index: 100;
  pointer-events: none;
}

/* ---------------- section corner crosses + margin notes ---------------- */

.doc-sec { position: relative; }
.doc-sec::before,
.doc-sec::after {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: rgba(158, 68, 83, 0.3);
  position: absolute;
  pointer-events: none;
  line-height: 1;
}
.doc-sec::before { content: "+"; top: 22px; left: 22px; }
.doc-sec::after { content: "+"; bottom: 22px; right: 22px; }
.section-dark.doc-sec::before,
.section-dark.doc-sec::after { color: rgba(237, 161, 170, 0.28); }

.side-note {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(131, 135, 154, 0.55);
  pointer-events: none;
  white-space: nowrap;
}
.section-dark .side-note { color: rgba(118, 122, 140, 0.6); }
@media (max-width: 1280px) { .side-note { display: none; } }

/* ---------------- keep-scrolling cue / EOF ---------------- */

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  animation: cue-bob 2.4s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.eof {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--pad-x) 6px;
}
.eof::before, .eof::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.eof span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.eof + footer { border-top: none; }

/* ---------------- mouse glow on dark sections ---------------- */

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(237, 161, 170, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}
.section-dark:hover .glow { opacity: 1; }

/* ---------------- hero word-by-word ---------------- */

.split-words .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: word-in 0.7s var(--ease) forwards;
}
@keyframes word-in { to { opacity: 1; transform: none; } }

/* ---------------- dictionary definition card ---------------- */

.def-card {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px 16px;
  box-shadow: 0 4px 18px rgba(35, 36, 44, 0.05);
}
.def-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.def-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--rose);
  border-radius: 4px;
  padding: 3px 6px;
}
.def-word { font-weight: 750; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.def-phon { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.def-pos { font-style: italic; font-size: 13px; color: var(--muted); }
.def-sense {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 600;
  padding: 3px 0;
}
.def-sense .n { font-family: var(--mono); font-size: 11px; color: var(--rose); }
.def-also {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.def-also b { color: var(--rose-deep); font-weight: 500; }

/* ---------------- review queue scene extras ---------------- */

.queue-item.is-approved {
  border-color: rgba(78, 143, 111, 0.4);
  background: rgba(78, 143, 111, 0.07);
}
/* the sign-off stamp animates in at 1.6x, so it must escape the row's clamp */
.queue-item.is-approved .q-sub { color: var(--ok); overflow: visible; }
.q-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--rose);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 0.8s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.q-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ok);
  border: 1px solid rgba(78, 143, 111, 0.5);
  border-radius: 4px;
  padding: 2px 6px;
  transform: scale(1.6) rotate(-6deg);
  opacity: 0;
  animation: stamp-in 0.35s var(--ease) forwards;
}
@keyframes stamp-in { to { transform: scale(1) rotate(-3deg); opacity: 1; } }

/* ---------------- event ticker ---------------- */

.ticker {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  overflow: hidden;
  padding: 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 13px 0;
  animation: ticker-scroll 46s linear infinite;
}
.ticker-half { display: flex; gap: 56px; padding-right: 56px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.tk {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tk b { color: var(--rose); font-weight: 500; }
.tk .ok { color: var(--ok); }

/* ---------------- pipeline schematic ---------------- */

.pipeline { padding-top: 72px; padding-bottom: 80px; }
.pipe-caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.pipe-caption .lit { color: var(--pink); }
.pipe { display: flex; align-items: stretch; }
.pipe-node {
  flex: 1;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 22px 22px 20px;
  background: var(--dark-panel);
  position: relative;
  animation: node-pulse 7.2s linear infinite;
}
.pipe-node:nth-child(1) { animation-delay: 0s; }
.pipe-node:nth-child(3) { animation-delay: 1.8s; }
.pipe-node:nth-child(5) { animation-delay: 3.6s; }
.pipe-node:nth-child(7) { animation-delay: 5.4s; }
@keyframes node-pulse {
  0%, 4% { border-color: rgba(237, 161, 170, 0.65); box-shadow: 0 0 22px rgba(237, 161, 170, 0.12); }
  12%, 100% { border-color: var(--dark-border); box-shadow: none; }
}
.pipe-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--pink);
  margin-bottom: 10px;
}
.pipe-name { font-weight: 700; font-size: 17px; color: var(--dark-heading); letter-spacing: -0.01em; margin-bottom: 8px; }
.pipe-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
  line-height: 1.9;
}
.pipe-link { flex: 0 0 56px; position: relative; align-self: center; height: 44px; }
.pipe-link::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: var(--dark-border);
}
.pipe-dot {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  transform: translate(-50%, -50%);
  animation: dot-travel 1.8s linear infinite;
}
.pipe-link:nth-child(2) .pipe-dot { animation-delay: 0s; }
.pipe-link:nth-child(4) .pipe-dot { animation-delay: 1.8s; }
.pipe-link:nth-child(6) .pipe-dot { animation-delay: 3.6s; }
@keyframes dot-travel {
  0% { left: 4%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 96%; opacity: 0; }
}

@media (max-width: 960px) {
  .pipe { flex-direction: column; }
  .pipe-link { flex: 0 0 44px; height: 44px; width: 100%; align-self: auto; }
  .pipe-link::before { left: 50%; right: auto; top: 4px; bottom: 4px; height: auto; width: 1px; }
  .pipe-dot { left: 50%; top: 4px; animation-name: dot-travel-v; }
  @keyframes dot-travel-v {
    0% { top: 4%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 96%; opacity: 0; }
  }
}

/* ---------------- platform card vignettes ---------------- */

.vg {
  height: 58px;
  margin: 4px 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

/* 01 — waveform */
.vg-wave { display: flex; gap: 3px; height: 36px; align-items: center; flex: none; }
.vg-wave i {
  width: 4px;
  border-radius: 2px;
  background: var(--pink);
  height: 22%;
  animation: wavebar 1s ease-in-out infinite alternate;
}
.vg-wave i:nth-child(2n) { animation-duration: 0.8s; }
.vg-wave i:nth-child(3n) { animation-duration: 1.25s; }
.vg-wave i:nth-child(1) { animation-delay: 0.05s; }
.vg-wave i:nth-child(2) { animation-delay: 0.35s; }
.vg-wave i:nth-child(3) { animation-delay: 0.15s; }
.vg-wave i:nth-child(4) { animation-delay: 0.5s; }
.vg-wave i:nth-child(5) { animation-delay: 0.25s; }
.vg-wave i:nth-child(6) { animation-delay: 0.6s; }
.vg-wave i:nth-child(7) { animation-delay: 0.1s; }
.vg-wave i:nth-child(8) { animation-delay: 0.45s; }
.vg-wave i:nth-child(9) { animation-delay: 0.3s; }
.vg-wave i:nth-child(10) { animation-delay: 0.55s; }
@keyframes wavebar { from { height: 18%; } to { height: 95%; } }
.vg-247 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--dark-body);
}
.vg-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--pink);
  vertical-align: baseline;
  margin-left: 4px;
  animation: caret-blink 0.9s steps(1) infinite;
}

/* 02 — fax to calendar */
.vg-fax { position: relative; width: 100%; height: 40px; }
.vg-fax-doc {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dark-body);
  border: 1px solid var(--dark-border);
  border-radius: 5px;
  padding: 5px 8px;
  background: var(--dark-2);
  animation: fax-slide 3.2s var(--ease) infinite;
  white-space: nowrap;
}
@keyframes fax-slide {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  55% { left: calc(100% - 150px); opacity: 1; }
  68%, 100% { left: calc(100% - 150px); opacity: 0; }
}
.vg-slot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--pink);
  border: 1px dashed rgba(237, 161, 170, 0.5);
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
  animation: slot-fill 3.2s linear infinite;
}
@keyframes slot-fill {
  0%, 54% { background: transparent; border-style: dashed; }
  60%, 92% { background: rgba(237, 161, 170, 0.14); border-style: solid; }
  100% { background: transparent; border-style: dashed; }
}

/* 03 — checklist */
.vg-check { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.vg-check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-body);
  border-bottom: 1px dashed var(--dark-border);
  padding-bottom: 5px;
}
.vg-check-row .tickmark {
  color: var(--ok);
  opacity: 0;
  animation: tick-in 4.4s linear infinite;
}
.vg-check-row:nth-child(1) .tickmark { animation-delay: 0s; }
.vg-check-row:nth-child(2) .tickmark { animation-delay: 1.1s; }
@keyframes tick-in {
  0%, 20% { opacity: 0; transform: scale(1.8); }
  28%, 88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

/* 04 — dollar counter */
.vg-usd {
  font-family: var(--mono);
  font-size: 21px;
  color: var(--pink);
  letter-spacing: 0.02em;
  flex: none;
  font-variant-numeric: tabular-nums;
}
/* reserve room for the final "1,240" so the state labels never slide;
   letter-spacing is dropped here so the width is exactly 5 monospace chars */
.vg-usd [data-usd] { display: inline-block; min-width: 5ch; letter-spacing: 0; }
.vg-states {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.vg-states .st { transition: color 0.3s; }
.vg-states .st.on { color: var(--pink); }
.vg-states .arr { color: var(--dark-border); }

/* ---------------- how-it-works: deployment schematic ---------------- */

.rail {
  position: relative;
  height: 84px;
  margin: 10px 0 44px;
}
.rail-note {
  position: absolute;
  top: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-muted);
  white-space: nowrap;
}
.rail-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  height: 2px;
  background: var(--dark-border);
  border-radius: 1px;
}
.rail-progress {
  position: absolute;
  left: 0;
  top: 40px;
  height: 2px;
  width: 0;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(237, 161, 170, 0.7);
  border-radius: 1px;
}
.rail-tick {
  position: absolute;
  top: 32px;
  width: 1px;
  height: 18px;
  background: var(--dark-border);
}
.rail-tick span {
  position: absolute;
  top: 22px;
  left: -8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dark-muted);
  transition: color 0.3s;
}
.rail-tick.is-past { background: var(--pink); }
.rail-tick.is-past span { color: var(--pink); }
.rail-flag {
  position: absolute;
  top: 6px;
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--rose);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}
.rail-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--rose);
  border-bottom: none;
}
.rail-flag.is-active { opacity: 1; transform: translateX(-50%) scale(1); }

/* artifacts inside how-steps */
.art { margin-top: 20px; border-top: 1px dashed var(--dark-border); padding-top: 16px; }

.art-doc { display: flex; flex-direction: column; gap: 8px; }
.art-doc-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 2px;
}
.art-line { height: 6px; border-radius: 3px; background: var(--dark-border-soft); overflow: hidden; }
.art-line i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: rgba(237, 161, 170, 0.55);
  transition: width 0.9s var(--ease);
}
.how-step.is-active .art-line:nth-child(2) i { width: 92%; transition-delay: 0.1s; }
.how-step.is-active .art-line:nth-child(3) i { width: 68%; transition-delay: 0.35s; }
.how-step.is-active .art-line:nth-child(4) i { width: 81%; transition-delay: 0.6s; }
.how-step.is-active .art-line:nth-child(5) i { width: 45%; transition-delay: 0.85s; }

.art-check { display: flex; flex-direction: column; gap: 7px; }
.art-check-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-body);
}
.art-check-row .tickmark {
  color: var(--ok);
  opacity: 0;
  transform: scale(1.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.how-step.is-active .art-check-row:nth-child(1) .tickmark { opacity: 1; transform: none; transition-delay: 0.15s; }
.how-step.is-active .art-check-row:nth-child(2) .tickmark { opacity: 1; transform: none; transition-delay: 0.45s; }
.how-step.is-active .art-check-row:nth-child(3) .tickmark { opacity: 1; transform: none; transition-delay: 0.75s; }
.how-step.is-active .art-check-row:nth-child(4) .tickmark { opacity: 1; transform: none; transition-delay: 1.05s; }

.art-stats { display: flex; flex-direction: column; gap: 10px; }
.art-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.art-stat-row b {
  font-size: 17px;
  font-weight: 500;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ---------------- odometer stats ---------------- */

.odo { display: inline-flex; overflow: hidden; height: 1em; }
.odo-digit { position: relative; width: 0.6em; height: 1em; overflow: hidden; }
.odo-strip {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  transition: transform 1.5s var(--ease);
}
.odo-strip span { height: 1em; line-height: 1; }

/* ---------------- trust bar stamps ---------------- */

.js .stamp.reveal { transform: scale(1.55) rotate(-5deg); }
.js .stamp.reveal.in-view { transform: none; }

/* ---------------- pill spotlight ---------------- */

.pill.is-lit {
  border-color: var(--pink);
  background: var(--blush);
  color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(237, 161, 170, 0.22);
  transform: translateY(-1px);
}

/* ---------------- EMR sync blink ---------------- */

.emr-status::before { animation: pulse-dot 2.4s ease-in-out infinite; }
.emr-tile.is-sync { border-color: var(--pink); }
.emr-tile.is-sync .emr-status { color: var(--rose); }
.emr-tile.is-sync .emr-status::before { background: var(--pink); }

/* ---------------- team dossier chrome ---------------- */

.team-card, .advisor-card { position: relative; }
.team-card::before, .advisor-card::before {
  content: "+";
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(158, 68, 83, 0.3);
  pointer-events: none;
}
.team-card::after, .advisor-card::after {
  content: "+";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(158, 68, 83, 0.3);
  pointer-events: none;
}
.dossier {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.team-photo { position: relative; }
.team-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 26%;
  background: linear-gradient(rgba(237, 161, 170, 0), rgba(237, 161, 170, 0.35), rgba(237, 161, 170, 0));
  opacity: 0;
  pointer-events: none;
}
.team-card:hover .team-photo::after { opacity: 1; animation: scanline 1.4s linear infinite; }
@keyframes scanline { to { top: 110%; } }

/* ---------------- careers trace ---------------- */

.doing-item { position: relative; padding-left: 20px; }
.doing-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--pink);
  transition: height 0.45s var(--ease);
}
.doing-item:hover::before { height: 100%; }

/* ---------------- reduced motion for part 2 ---------------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .pipe-dot, .pipe-node,
  .vg-wave i, .vg-fax-doc, .vg-slot, .vg-check-row .tickmark,
  .scroll-cue, .q-caret, .vg-cursor, .emr-status::before,
  .team-card:hover .team-photo::after {
    animation: none !important;
  }
  .split-words .w { opacity: 1; transform: none; animation: none; }
  .odo-strip { transition: none; }
  .js .stamp.reveal { transform: none; }
  /* the deployment timeline is driven by transitions, not keyframes */
  .rail-progress, .rail-tick span, .rail-flag,
  .art-line i, .art-check-row .tickmark {
    transition: none;
  }
}

/* ---------------- part 2 mobile tweaks ---------------- */

@media (max-width: 640px) {
  .rail { height: 92px; }
  .rail-note { display: none; }
  .eof { padding-left: 20px; padding-right: 20px; }
  .doc-sec::before, .doc-sec::after { display: none; }
  .vg-fax-doc { animation-name: fax-slide-sm; }
  @keyframes fax-slide-sm {
    0% { left: 0; opacity: 0; }
    12% { opacity: 1; }
    55% { left: calc(100% - 130px); opacity: 1; }
    68%, 100% { left: calc(100% - 130px); opacity: 0; }
  }
}
