/* BioPilot site styles. One file, no build step. Dark only.
   Type: Inter Tight (display), Inter (text), JetBrains Mono (labels), loaded from Google Fonts in each page's <head>. */

:root {
  --bg: #000;
  --bg-2: #06080a;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f3f5f7;
  --ink-2: #a3acb4;
  --ink-3: #7a838b;
  --accent: #5cc8ff;
  --accent-2: #2f8fd0;
  --ice: #c7ecff;
  --glow: rgba(92, 200, 255, 0.35);
  --ok: #5fd08f;
  --err: #ff8a80;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --max: 1240px;
  --header: 68px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 40px); }

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

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; }
h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); letter-spacing: -0.055em; line-height: 0.96; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.05em; }
h3 { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #000; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 16px; }

/* Mono labels: section eyebrows, card metadata, roles */
.eyebrow, .mono {
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow { color: var(--accent); }
.mono { color: var(--ink-3); }

.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.72); border-color: var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header); }

.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: #000; padding: 9px 16px; font-size: 0.88rem; }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--font); font-size: 0.92rem; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--ink); color: #000; }
.btn-primary:hover { background: #fff; color: #000; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 40px var(--glow); }
.btn-ghost {
  background: var(--surface); border-color: var(--line-2); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); color: var(--ink); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- Sections ---------- */
.section { padding: 136px 0 0; }
main > .section:last-child { padding-bottom: 136px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-head p { color: var(--ink-2); max-width: 36ch; font-size: 1.05rem; }

/* ---------- Home hero: live point cloud ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 22%);
}
.hero .container { width: 100%; padding-top: calc(var(--header) + 42px); padding-bottom: 96px; }
.hero h1 { max-width: 11.5ch; }
.hero h1 em {
  font-style: normal; color: transparent;
  background: linear-gradient(90deg, #fff 0%, var(--ice) 35%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero .lede { margin: 28px 0 40px; }

.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; margin-bottom: 32px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 0.85rem;
}
.tag b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #000; background: var(--accent); padding: 2px 7px; border-radius: 999px; letter-spacing: 0.04em; }

/* Prompt bar: questions clients bring, typed out by main.js */
.prompt {
  display: flex; align-items: center; gap: 14px; max-width: 620px; padding: 8px 8px 8px 18px; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 16px; background: rgba(12, 16, 20, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.06), 0 20px 60px -20px rgba(92, 200, 255, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.prompt:hover { border-color: rgba(92, 200, 255, 0.5); box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.2), 0 20px 70px -20px rgba(92, 200, 255, 0.45); }
.prompt .q { flex: 1; min-width: 0; font-size: 0.97rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.js .prompt .q::after {
  content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em;
  background: var(--accent); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.prompt .go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #000; font-weight: 500; font-size: 0.88rem; }
.prompt-note { margin-top: 14px; }
.prompt-note a { color: var(--ink-2); text-decoration: none; font-size: 0.88rem; }
.prompt-note a:hover { color: var(--ink); }

.cl-label {
  position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ice); opacity: 0; transition: opacity 1s ease; pointer-events: none; white-space: nowrap;
}
.cl-label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px currentColor; }
.hero.formed .cl-label { opacity: 0.85; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header) + 104px) 0 96px; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(55% 85% at 88% 12%, #000, transparent 72%);
  mask-image: radial-gradient(55% 85% at 88% 12%, #000, transparent 72%);
}
.page-hero::after {
  content: ""; position: absolute; right: -12%; top: -50%; width: 64%; height: 150%; z-index: -1;
  background: radial-gradient(closest-side, rgba(92, 200, 255, 0.16), transparent); pointer-events: none;
}
.page-hero .eyebrow { display: block; margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; }

/* ---------- Service cards (home) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; grid-column: span 2; min-height: 330px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate;
}
.card:hover { color: var(--ink); }
.card.wide { grid-column: span 3; }
/* Border and wash that follow the cursor (--mx / --my set by main.js) */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -100px) var(--my, -100px), rgba(92, 200, 255, 0.75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, -100px) var(--my, -100px), rgba(92, 200, 255, 0.07), transparent 45%);
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-top .arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.card:hover .card-top .arrow { transform: rotate(-45deg); background: var(--ink); color: #000; border-color: var(--ink); }
.viz { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 0; min-height: 120px; }
.viz svg { width: 100%; max-width: 260px; height: 120px; overflow: visible; }
.card h3 { font-size: 1.7rem; letter-spacing: -0.035em; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.98rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; list-style: none; padding: 0; }
.chips li { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- Claims (why BioPilot) ---------- */
.claims { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.claims li { display: grid; grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.claims strong { font-family: var(--display); font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.045em; line-height: 1.05; color: #88919a; transition: color 0.3s ease; }
.claims li:hover strong { color: var(--ink); }
.claims li > span:last-child { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Process rail with a travelling pulse ---------- */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.rail::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(92, 200, 255, 0.5), var(--line-2)); }
.rail::after {
  content: ""; position: absolute; top: 15px; left: 20px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px 3px var(--accent); animation: travel 6s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes travel { 0% { left: 20px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(75% + 20px); opacity: 0; } }
.rail li { position: relative; }
.rail .node {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #000; position: relative;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; color: var(--ink); margin-bottom: 26px;
}
.rail h3 { margin-bottom: 6px; }
.rail p { color: var(--ink-2); }

/* ---------- Work tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 100% at 100% 0%, rgba(92, 200, 255, 0.08), transparent 55%), var(--bg-2);
}
.tile h3 { font-size: 1.55rem; }

/* ---------- Team teaser (home) ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.team .eyebrow { display: block; margin-bottom: 20px; }
.team h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 32px; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.founder {
  display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.founder img { width: 88px; height: 88px; flex: none; }
.founder h3 { font-size: 1.3rem; margin-bottom: 4px; }
.founder h3 a { color: inherit; text-decoration: none; }
.founder h3 a:hover { text-decoration: underline; }
.founder .linkedin { margin-top: 10px; }

/* Portraits: grey until hovered */
.founder img, .person .avatar img {
  border-radius: 14px; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.9); transition: filter 0.5s ease;
}
.founder:hover img, .person:hover .avatar img { filter: none; }

.linkedin { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.93rem; text-decoration: none; color: var(--accent); }
.linkedin:hover { color: var(--ink); }
.linkedin svg { width: 18px; height: 18px; }

/* ---------- About: people ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.person {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 26px; align-items: start; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.person .avatar img { width: 132px; height: 132px; border-radius: 16px; }
.person h2 { font-size: 1.9rem; font-weight: 400; letter-spacing: -0.03em; margin-bottom: 8px; }
.person .role { margin: 0; }
.person p:not(.role) { color: var(--ink-2); margin: 14px 0 16px; }

/* ---------- Services page ---------- */
.svc { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-viz {
  height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 100% 0%, rgba(92, 200, 255, 0.08), transparent 55%), var(--bg-2);
}
.svc-viz svg { width: 100%; max-width: 260px; height: 130px; overflow: visible; }
.svc .eyebrow { display: block; margin-bottom: 14px; }
.svc h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.svc p { color: var(--ink-2); font-size: 1.05rem; max-width: 42rem; }

/* Tailored band */
.band {
  position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: radial-gradient(80% 140% at 100% 0%, rgba(92, 200, 255, 0.22), transparent 60%), var(--bg-2);
}
.band h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 10px; }
.band p { color: var(--ink-2); max-width: 44ch; }

/* ---------- CTA ---------- */
.cta { position: relative; text-align: center; padding: 160px 0 150px; margin-top: 136px; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1100px; height: 700px; transform: translate(-50%, -52%);
  background: radial-gradient(closest-side, rgba(92, 200, 255, 0.28), rgba(47, 143, 208, 0.08) 55%, transparent); pointer-events: none;
}
.cta > * { position: relative; }
.cta h1, .cta h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 14ch; margin: 0 auto; }
.cta .eyebrow { display: block; margin-bottom: 24px; }
.cta p { color: var(--ink-2); font-size: 1.1rem; margin: 24px auto 40px; max-width: 40ch; }
.cta .actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cta-top { margin-top: 0; border-top: 0; padding-top: calc(var(--header) + 140px); min-height: 80vh; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.contact-info p { color: var(--ink-2); }
.contact-info dl { margin: 32px 0 0; }
.contact-info dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 22px; }
.contact-info dd { margin: 4px 0 0; }

.form {
  display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field ::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.18); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.form-status { font-size: 0.95rem; margin: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 36px; font-size: 0.88rem; color: var(--ink-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.wide { grid-column: span 1; }
  .card:last-child { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 40px; }
  .people { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .band { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding-top: 96px; }
  main > .section:last-child { padding-bottom: 96px; }
  .lede { font-size: 1.1rem; }

  .hero { align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0.25) 100%); }
  .cl-label { display: none; }
  .prompt { padding-left: 14px; }
  .prompt .q { font-size: 0.88rem; }
  .prompt .go span { display: none; }
  .page-hero { padding: calc(var(--header) + 56px) 0 56px; }

  .bento { grid-template-columns: 1fr; }
  .card:last-child { grid-column: auto; }
  .card { min-height: 0; }
  .claims li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .claims li > span:first-child { display: none; }
  .rail { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .rail::before, .rail::after { display: none; }
  .founders { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .person .avatar img { width: 112px; height: 112px; }
  .svc { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .svc-viz { height: 170px; }
  .band { padding: 32px 22px; }
  .form { padding: 22px 18px; }
  .form .row { grid-template-columns: 1fr; }
  .cta { padding: 110px 0 100px; margin-top: 96px; }
  .cta-top { margin-top: 0; padding-top: calc(var(--header) + 96px); }

  .nav-toggle { display: inline-flex; }
  .nav ul {
    display: none; position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav ul a.btn { display: flex; justify-content: center; margin-top: 8px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .rail::after { display: none; }
}

@media (forced-colors: active) {
  .hero h1 em { color: CanvasText; background: none; }
}
