/* ACW Circle — static stylesheet
   Palette tuned to the brand mark (blue→purple gradient).
   Off-white #F6F4EF, navy #0B1A2E, brand blue #2D6BF0, accent purple #6E5CE6,
   brand gradient #5CABF2 → #726DD2. Source Serif 4 + Inter Tight, radius 0. */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

/* ---------- Tokens ---------- */
:root {
  --background: hsl(43, 23%, 95%);          /* #F6F4EF */
  --foreground: hsl(217, 28%, 15%);         /* #1B2330 */
  --muted: hsl(40, 10%, 90%);
  --muted-foreground: hsl(217, 18%, 32%);
  --secondary: hsl(40, 10%, 90%);
  --secondary-fg: hsl(217, 28%, 15%);
  --primary: hsl(220, 87%, 56%);            /* #2D6BF0 — sampled from logo arc */
  --primary-hover: hsl(220, 75%, 48%);      /* #1F58D6 */
  --primary-fg: #ffffff;
  --accent: hsl(248, 73%, 63%);             /* #6E5CE6 — logo purple terminus */
  --accent-hover: hsl(248, 60%, 55%);       /* #5849C9 */
  --border: rgba(27, 35, 48, 0.15);
  --hairline: rgba(27, 35, 48, 0.08);
  --destructive: hsl(0, 75%, 50%);

  --navy: #0B1A2E;
  --navy-fg: #E9ECF1;
  --navy-muted: rgba(233, 236, 241, 0.82);
  --navy-border: rgba(233, 236, 241, 0.15);

  /* Brand gradient — direct lift from the logo's icon arc. */
  --gradient-brand: linear-gradient(120deg, #5CABF2 0%, #726DD2 100%);

  --font-sans: 'Inter Tight', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --container-max: 1280px;
  --container-pad-sm: 20px;
  --container-pad-md: 24px;
  --container-pad-lg: 36px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--foreground);
}
p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad-sm);
}
@media (min-width: 640px) { .container { padding: 0 var(--container-pad-md); } }
@media (min-width: 768px) { .container { padding: 0 var(--container-pad-lg); } }

main { flex: 1 1 auto; width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-balance { text-wrap: balance; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--hairline);
  background: rgba(246, 244, 239, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header__inner {
  height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
@media (min-width: 640px) { .site-header__inner { height: 88px; } }
@media (min-width: 768px) {
  .site-header__inner { height: 104px; grid-template-columns: 240px 1fr auto; gap: 20px; }
}
@media (min-width: 1024px) {
  .site-header__inner { height: 112px; grid-template-columns: 280px 1fr auto; }
}
.brand-link { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; line-height: 0; }
.brand-link img {
  display: block;
  width: clamp(180px, 24vw, 320px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  flex: none;
}
@media (min-width: 1024px) {
  .brand-link img { width: clamp(260px, 22vw, 360px); }
}
.brand-link span {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.012em;
}
@media (min-width: 768px) { .brand-link span { font-size: 23px; } }

.primary-nav { display: none; justify-self: center; }
@media (min-width: 768px) { .primary-nav { display: flex; align-items: center; } }
.primary-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; }
.primary-nav a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.005em;
  color: var(--muted-foreground); transition: color .15s;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--foreground); }

.nav-cta { display: none; justify-self: end; }
@media (min-width: 768px) { .nav-cta { display: flex; } }

.menu-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; justify-self: end;
  color: var(--foreground);
}
@media (min-width: 768px) { .menu-trigger { display: none; } }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(11, 26, 46, 0.5);
  z-index: 100;
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0;
  width: min(360px, 88vw); height: 100%;
  background: var(--background);
  border-left: 1px solid var(--border);
  padding: 64px 28px 28px;
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.mobile-menu__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
}
.mobile-menu__list { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.mobile-menu__list a {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--foreground);
  transition: color .15s;
}
.mobile-menu__list a:hover { color: var(--primary); }
.mobile-menu__rule { height: 1px; background: var(--border); width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 32px;
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 500;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn--dark { background: var(--foreground); color: var(--background); }
.btn--dark:hover { background: rgba(27,35,48,0.9); }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--cobalt { background: var(--primary); color: var(--primary-fg); height: 48px; padding: 0 22px; font-size: 14px; }
.btn--cobalt:hover { background: var(--primary-hover); }
.btn--outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn--outline:hover { border-color: var(--foreground); }
.btn--block { width: 100%; }

.text-link {
  font-weight: 500; color: var(--foreground); transition: color .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.text-link:hover { color: var(--primary); }
.text-link .arrow { transition: transform .2s; }
.text-link:hover .arrow { transform: translateX(4px); }
.muted-link { color: var(--muted-foreground); transition: color .15s; }
.muted-link:hover { color: var(--primary); }

/* ---------- Hero (homepage) ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--hairline);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 960px;
  text-wrap: balance;
}
@media (min-width: 768px) { .hero__title { line-height: 0.97; } }
.hero__title .accent { color: var(--primary); white-space: nowrap; }
.hero__lede {
  margin-top: 28px;
  max-width: 68ch;
  font-size: clamp(17px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--muted-foreground);
}
.hero__actions {
  margin-top: 36px;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 24px;
}
@media (min-width: 640px) { .hero__actions { flex-direction: row; align-items: center; } }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero--compact { padding: 56px 0; }
@media (min-width: 640px) { .page-hero--compact { padding: 64px 0; } }
@media (min-width: 768px) { .page-hero--compact { padding: 80px 0; } }
.page-hero__inner { max-width: 980px; display: flex; flex-direction: column; }
.eyebrow {
  margin-bottom: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.page-hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
@media (min-width: 768px) { .page-hero__title { line-height: 0.98; } }
.page-hero__sub {
  margin-top: 28px;
  max-width: 760px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted-foreground);
  display: flex; flex-direction: column; gap: 16px;
}
.page-hero__actions {
  margin-top: 36px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
@media (min-width: 640px) {
  .page-hero__actions { flex-direction: row; align-items: center; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-bottom: 1px solid var(--hairline);
  background: var(--background);
}
.trust-strip__grid {
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
@media (min-width: 768px) {
  .trust-strip__grid { grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
}
.trust-strip__item {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-foreground); text-align: center;
}
@media (min-width: 768px) { .trust-strip__item { font-size: 12px; } }

/* ---------- Sections / common spacing ---------- */
.section { padding: 56px 0; background: var(--background); }
@media (min-width: 640px) { .section { padding: 80px 0; } }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section--alt { background: rgba(40, 30, 20, 0.04); }
.section--rule { border-top: 1px solid var(--hairline); }

.section-intro { max-width: 760px; margin-bottom: 48px; }
@media (min-width: 768px) { .section-intro { margin-bottom: 64px; } }
.section-intro__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-intro__desc {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55; color: var(--muted-foreground);
}
.section-intro__eyebrow { margin-bottom: 16px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--lg { gap: 40px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.grid--auto-rows { grid-auto-rows: 1fr; }

.split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .split--right { grid-template-columns: 7fr 5fr; }
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  background: rgba(246, 244, 239, 0.6);
  padding: 24px;
  height: 100%;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) { .card { padding: 32px; } }
.card__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 24px; line-height: 1.2; letter-spacing: -0.012em;
}
.card__desc { font-size: 16px; line-height: 1.6; color: var(--muted-foreground); }
.card ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.card ul li { font-size: 16px; line-height: 1.6; color: var(--muted-foreground); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--border); background: rgba(40,30,20,0.05); }
.card .status {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-foreground);
}

/* ---------- Capabilities row (homepage style — top-rule cards) ---------- */
.rule-cards {
  display: grid; gap: 32px 32px;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
}
@media (min-width: 768px) { .rule-cards { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 1024px) { .rule-cards { grid-template-columns: repeat(3, 1fr); } }
.rule-card { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; flex-direction: column; height: 100%; }
.rule-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 12px; transition: color .15s; }
.rule-card:hover h3 { color: var(--primary); }
.rule-card p { font-size: 16px; line-height: 1.55; color: var(--muted-foreground); }

/* Industry "tick" cards */
.tick-cards { display: grid; gap: 32px 32px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
@media (min-width: 768px) { .tick-cards { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 1024px) { .tick-cards { grid-template-columns: repeat(3, 1fr); } }
.tick-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.tick-card .rule { width: 32px; height: 1px; background: var(--foreground); margin-bottom: 16px; }
.tick-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.tick-card p { font-size: 16px; line-height: 1.55; color: var(--muted-foreground); }

/* About / Principles */
.about-grid { display: grid; gap: 64px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); gap: 96px; } }
.about-grid h2 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.about-grid > div > p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; color: var(--muted-foreground); max-width: 760px; }
.principles-list { display: flex; flex-direction: column; gap: 40px; }
.principles-list h3 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; line-height: 1.3; margin-bottom: 8px; letter-spacing: -0.01em; }
.principles-list p { font-size: 16px; line-height: 1.55; color: var(--muted-foreground); max-width: 760px; }

/* Ventures (homepage list style) */
.ventures-list { display: flex; flex-direction: column; gap: 48px; }
.venture-row { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 32px; border-top: 1px solid var(--hairline); }
@media (min-width: 1024px) { .venture-row { grid-template-columns: 4fr 8fr; gap: 48px; } }
.venture-row__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.venture-row__head h3 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.012em; }
.venture-row__status {
  display: inline-block; padding: 4px 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-foreground); border: 1px solid var(--border);
}
.venture-row__body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 640px) { .venture-row__body { flex-direction: row; justify-content: space-between; } }
.venture-row__body p { font-size: 18px; line-height: 1.55; color: var(--muted-foreground); max-width: 760px; }

/* Strategic partnerships (homepage row) */
.workrow { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 640px) { .workrow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .workrow { grid-template-columns: repeat(4, 1fr); } }
.workrow > div { border-top: 1px solid var(--hairline); padding-top: 16px; }
.workrow h3 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; line-height: 1.3; }

/* Delivery model */
.delivery-grid { display: grid; gap: 32px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
@media (min-width: 768px) { .delivery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .delivery-grid { grid-template-columns: repeat(4, 1fr); } }
.delivery-step { display: flex; flex-direction: column; gap: 16px; padding-left: 24px; border-left: 1px solid var(--hairline); height: 100%; }
.delivery-step .num { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.delivery-step h3 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.delivery-step p { font-size: 16px; line-height: 1.55; color: var(--muted-foreground); }

/* Legal / compliance grid */
.legal-grid { display: grid; gap: 32px 32px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
@media (min-width: 768px) { .legal-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: repeat(4, 1fr); } }
.legal-grid > div { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.legal-grid h3 { font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 1.3; }
.legal-grid p { font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }

/* Contact CTA (dark) */
.contact-cta { padding: 96px 0; background: var(--navy); color: var(--navy-fg); border-top: 1px solid var(--border); }
@media (min-width: 768px) { .contact-cta { padding: 128px 0; } }
.contact-cta__inner { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-cta__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 24px; color: var(--navy-fg); }
.contact-cta__desc { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--navy-muted); margin-bottom: 48px; }
.contact-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 24px; }
@media (min-width: 640px) { .contact-cta__actions { flex-direction: row; gap: 32px; } }
.contact-cta__divider { display: none; width: 1px; height: 32px; background: var(--navy-border); }
@media (min-width: 640px) { .contact-cta__divider { display: block; } }
.contact-cta__email { font-size: 18px; font-weight: 500; color: var(--navy-fg); text-decoration: underline; text-decoration-color: var(--navy-border); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.contact-cta__email:hover { color: var(--primary); text-decoration-color: var(--primary); }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 32px; grid-auto-rows: 1fr; }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { border: 1px solid var(--border); background: rgba(246,244,239,0.6); padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .team-card { padding: 32px; } }
.team-card__head { display: flex; align-items: flex-start; gap: 20px; }
.team-card__head img { width: 80px; height: 80px; flex: none; object-fit: cover; border: 1px solid var(--border); background: rgba(40,30,20,0.06); }
.team-card__head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.012em; }
.team-card__role { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); }
.team-card__bio { display: flex; flex-direction: column; gap: 16px; }
.team-card__bio p { font-size: 16px; line-height: 1.7; color: var(--muted-foreground); }

/* Testimonial figure */
.figure-quote { border: 1px solid var(--border); background: rgba(246,244,239,0.6); padding: 24px; }
@media (min-width: 768px) { .figure-quote { padding: 32px; } }
.figure-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--foreground); }
.figure-quote figcaption { margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); }

/* Rich text legal sections */
.rich-stack { display: flex; flex-direction: column; gap: 48px; }
.rich-section { border-top: 1px solid var(--hairline); padding-top: 24px; }
.rich-section h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.018em; margin-bottom: 20px; }
.rich-section .stack { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.rich-section p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--muted-foreground); }

/* Sitemap */
.sitemap-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
.sitemap-grid h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 30px); margin-bottom: 24px; line-height: 1.2; letter-spacing: -0.018em; }
.sitemap-grid ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 18px; color: var(--muted-foreground); }
.sitemap-grid a { transition: color .15s; }
.sitemap-grid a:hover { color: var(--primary); }

/* 404 */
.notfound { padding: 128px 24px; display: flex; align-items: center; justify-content: center; }
.notfound__inner { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound__title { font-size: clamp(36px, 5vw, 48px); margin-bottom: 16px; line-height: 1.1; letter-spacing: -0.025em; }
.notfound__desc { font-size: 20px; color: var(--muted-foreground); margin-bottom: 40px; max-width: 480px; }
.notfound__actions { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .notfound__actions { flex-direction: row; } }

/* ---------- Forms (contact) ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } }
.contact-aside { display: flex; flex-direction: column; gap: 24px; }

.form-card {
  background: rgba(246, 244, 239, 0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.018em; }
.form-card__hint { font-size: 14px; color: var(--muted-foreground); margin-top: -8px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--foreground); }
.field input, .field select, .field textarea {
  height: 44px; padding: 0 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px; color: var(--foreground);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.field .helper { font-size: 12px; color: var(--muted-foreground); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: var(--destructive); border: 1px solid rgba(190, 30, 30, 0.3); background: rgba(190, 30, 30, 0.05); padding: 12px 16px; border-radius: 4px; }
.form-success { font-size: 14px; color: #14532D; border: 1px solid rgba(22, 101, 52, 0.35); background: rgba(22, 101, 52, 0.06); padding: 12px 16px; border-radius: 4px; }
.form-success:focus { outline: 2px solid #166534; outline-offset: 2px; }
.form-error:focus { outline: 2px solid var(--destructive); outline-offset: 2px; }
.form-actions { display: flex; align-items: center; gap: 16px; padding-top: 8px; flex-wrap: wrap; }
.form-actions__note { font-size: 12px; color: var(--muted-foreground); }
.form-actions__note .em { color: var(--foreground); }
.btn--submit { background: var(--primary); color: var(--primary-fg); height: 48px; padding: 0 28px; font-size: 15px; border-radius: 3px; }
.btn--submit:hover { background: var(--primary-hover); }
.btn--submit:disabled { opacity: 0.6; cursor: not-allowed; }

.text-link--mail { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.text-link--mail:hover { color: var(--primary); text-decoration-color: var(--primary); }

/* ---------- Footer (dark navy) ---------- */
.site-footer { background: var(--navy); color: var(--navy-fg); border-top: 1px solid rgba(233,236,241,0.05); padding: 64px 0 32px; }
.site-footer h4 { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-fg); }
.site-footer__top { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 4fr 8fr; gap: 40px; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 24px; }
.site-footer__brand .brand-link img {
  width: clamp(154px, 19.6vw, 294px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.site-footer__brand .brand-link span { font-size: 20px; color: var(--navy-fg); letter-spacing: 0.04em; }
.site-footer__intro { display: flex; flex-direction: column; gap: 12px; max-width: 360px; font-size: 14px; line-height: 1.7; color: var(--navy-muted); }
.site-footer__intro a { color: var(--navy-muted); transition: color .15s; }
.site-footer__intro a:hover { color: var(--navy-fg); }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .site-footer__cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.footer-col { display: flex; flex-direction: column; gap: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--navy-muted); }
.footer-col a { color: var(--navy-muted); transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.site-footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(233,236,241,0.1); font-size: 12px; color: var(--navy-muted); }

/* ---------- Misc ---------- */
.aspect-4-3 img { aspect-ratio: 4/3; object-fit: cover; }
.flex-col-gap-8 { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .flex-col-gap-10 { display: flex; flex-direction: column; gap: 40px; } }
.mt-8 { margin-top: 32px; }

/* Venture portfolio cards */
.venture-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .venture-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.venture-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.venture-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(20,30,60,0.18); border-color: var(--primary); }
.venture-card__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .venture-card__plate { height: 260px; padding: 40px 48px; } }
.venture-card__plate img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; display: block; }
.venture-card__plate--mint   { background: linear-gradient(135deg, #e8f5ee 0%, #f4faf6 100%); }
.venture-card__plate--sky    { background: linear-gradient(135deg, #e6efff 0%, #f3f7ff 100%); }
.venture-card__plate--leaf   { background: linear-gradient(135deg, #e7f1ec 0%, #f1f7f3 100%); }
.venture-card__plate--ember  { background: linear-gradient(135deg, #fdeee4 0%, #fbf6f1 100%); }
.venture-card__body { display: flex; flex-direction: column; gap: 12px; padding: 28px; flex: 1; }
.venture-card__status {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(45,107,240,0.08);
  color: var(--primary);
}
/* Status pill colors meet WCAG AA on tinted backgrounds */
.venture-card__status--live  { background: rgba(34,153,84,0.12);  color: #155f33; }
.venture-card__status--build { background: rgba(45,107,240,0.12); color: #1c4cb8; }
.venture-card__status--page  { background: rgba(110,92,230,0.12); color: #4338a8; }
.venture-card__status--group { background: rgba(214,98,40,0.12);  color: #934117; }
.venture-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.012em; margin-top: 4px; }
.venture-card__desc { font-size: 16px; line-height: 1.6; color: var(--muted-foreground); flex: 1; }
.venture-card__cta { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 8px; }
.venture-card:hover .venture-card__cta { text-decoration: underline; }

/* Venture detail page hero */
.venture-hero { padding: 64px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .venture-hero { padding: 88px 0; } }
@media (min-width: 1024px) { .venture-hero { padding: 112px 0; } }
.venture-hero--mint   { background: linear-gradient(135deg, #e8f5ee 0%, #f4faf6 60%, var(--background) 100%); }
.venture-hero--sky    { background: linear-gradient(135deg, #e6efff 0%, #f3f7ff 60%, var(--background) 100%); }
.venture-hero--leaf   { background: linear-gradient(135deg, #e7f1ec 0%, #f1f7f3 60%, var(--background) 100%); }
.venture-hero--ember  { background: linear-gradient(135deg, #fdeee4 0%, #fbf6f1 60%, var(--background) 100%); }
.venture-hero__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .venture-hero__inner { grid-template-columns: 7fr 5fr; gap: 64px; } }
.venture-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.venture-hero__title { font-family: var(--font-serif); font-weight: 500; font-size: 44px; line-height: 1.05; letter-spacing: -0.018em; color: var(--foreground); }
@media (min-width: 768px)  { .venture-hero__title { font-size: 56px; } }
@media (min-width: 1024px) { .venture-hero__title { font-size: 64px; } }
.venture-hero__lede { font-size: 20px; line-height: 1.45; color: var(--foreground); max-width: 640px; }
@media (min-width: 1024px) { .venture-hero__lede { font-size: 22px; } }
.venture-hero__desc { font-size: 16px; line-height: 1.7; color: var(--muted-foreground); max-width: 640px; }
.venture-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.venture-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px;
  min-height: 260px;
  box-shadow: 0 24px 48px -32px rgba(20,30,60,0.18);
}
@media (min-width: 1024px) { .venture-hero__media { min-height: 320px; padding: 56px; } }
.venture-hero__logo { max-width: 100%; max-height: 240px; width: auto; height: auto; object-fit: contain; }

/* Venture facts grid — 3-up cards with numbered steps */
.section-intro--center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-intro--center .section-intro__desc { margin-left: auto; margin-right: auto; }
.facts-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 768px)  { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; } }
.fact-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--primary);
}
.fact-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -20px rgba(20,30,60,0.18); }
.fact-card--blue   { border-top-color: var(--primary); }
.fact-card--purple { border-top-color: var(--accent); }
.fact-card--amber  { border-top-color: #d66228; }
.fact-card__step {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--foreground);
  opacity: 1;
}
.fact-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--foreground); }
.fact-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fact-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.fact-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.5;
}

/* Footer social row */
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-link:hover,
.social-link:focus-visible {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* === Team v2 (editorial directory) === */
.team-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 8px; }
@media (min-width: 768px) { .team-stats { grid-template-columns: repeat(4, 1fr); } }
.team-stat { background: var(--background); padding: 24px 20px; }
.team-stat__num { font-family: var(--font-serif); font-size: 36px; line-height: 1; letter-spacing: -0.02em; color: var(--foreground); }
.team-stat__label { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }

.team-section { padding: 56px 0; border-top: 1px solid var(--border); }
.team-section:first-of-type { border-top: 0; }
.team-section__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.team-section__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); }
.team-section__title { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.012em; color: var(--foreground); }
@media (min-width: 768px) { .team-section__title { font-size: 32px; } }

.lead-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .lead-grid { grid-template-columns: repeat(3, 1fr); } }
.lead-card { background: rgba(246,244,239,0.6); border: 1px solid var(--border); display: flex; flex-direction: column; }
.lead-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: #ffffff; border-radius: 50%; border: 1px solid var(--border); position: relative; margin: 24px auto 0; width: calc(100% - 48px); max-width: 320px; }
.lead-card__media img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; border-radius: 50%; }
.lead-card__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lead-card__name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--foreground); }
.lead-card__role { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); }
.lead-card__bio { font-size: 15px; line-height: 1.65; color: var(--muted-foreground); }

.member-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 600px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
.member-card { background: var(--background); border: 1px solid var(--border); padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.member-card:hover { box-shadow: 0 12px 28px -16px rgba(20,20,40,0.18); transform: translateY(-2px); }
.member-card__head { display: flex; align-items: center; gap: 16px; }
.member-portrait { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; background: #ffffff; border: 1px solid var(--border); }
.member-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; border-radius: 50%; }
.member-portrait--initials { display: grid; place-items: center; color: #fff; font-family: var(--font-serif); font-weight: 500; font-size: 24px; letter-spacing: 0.02em; border: 0; }
.member-portrait--initials.tone-blue   { background: linear-gradient(135deg, #2D6BF0, #6E5CE6); }
.member-portrait--initials.tone-purple { background: linear-gradient(135deg, #6E5CE6, #B45BCF); }
.member-portrait--initials.tone-teal   { background: linear-gradient(135deg, #2BB5A6, #2D6BF0); }
.member-portrait--initials.tone-amber  { background: linear-gradient(135deg, #E08A2B, #C4541A); }
.member-portrait--initials.tone-leaf   { background: linear-gradient(135deg, #4FA76B, #2BB5A6); }
.member-card__name { font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; color: var(--foreground); }
.member-card__role { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.member-card__bio { font-size: 14.5px; line-height: 1.65; color: var(--muted-foreground); }
.member-card__bio p { margin: 0 0 10px; }
.member-card__bio p:last-child { margin-bottom: 0; }
.member-card details { font-size: 14.5px; line-height: 1.65; color: var(--muted-foreground); }
.member-card details summary { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #1646A8; list-style: none; padding-top: 4px; }
.member-card details summary::-webkit-details-marker { display: none; }
.member-card details summary:hover,
.member-card details summary:focus-visible { color: #0D2E70; text-decoration: underline; }
.member-card details[open] summary { color: var(--foreground); }
/* Use CSS unicode escapes (not literal UTF-8) so the arrows render correctly
   even when the host serves CSS without an explicit UTF-8 charset header. */
.member-card details summary::after { content: " \2192"; } /* → */
.member-card details[open] summary::after { content: " \2191"; } /* ↑ */
.member-card details > p { margin-top: 10px; }

.section--tight { padding: 32px 0; }
.cta-band { background: linear-gradient(135deg, #0a1633 0%, #1a2a52 100%); color: #fff; padding: 36px 32px; }
@media (min-width: 768px) { .cta-band { padding: 48px 56px; } }
.cta-band__inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 768px) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; } }
.cta-band__title { font-family: var(--font-serif); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; color: #fff; }
@media (min-width: 768px) { .cta-band__title { font-size: 30px; } }
.cta-band__sub { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 640px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cta-band .btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }

/* ============================================================
   Mobile responsiveness — fixes & polish
   ============================================================ */

/* Safety net: prevent any accidental horizontal scroll on mobile.
   No production page is allowed to overflow horizontally. */
html, body { overflow-x: hidden; }
body { max-width: 100%; }

/* Long words/URLs/titles must not push the layout wider than the viewport. */
h1, h2, h3, h4, p, a, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h1, h2, h3, h4 { hyphens: manual; }

/* ---------- Mobile menu — robust full-height drawer ---------- */
/* Use dynamic viewport units so the drawer fills the screen even with
   the iOS Safari URL bar visible/hidden. Fall back to vh on older browsers. */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  height: 100vh;
  height: 100dvh;
  width: min(360px, 88vw);
  max-width: 100%;
  z-index: 1001;
}
.mobile-menu__close {
  z-index: 2;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--foreground);
}
.mobile-menu__list a { padding: 6px 0; }

/* When menu is open, lock body scroll robustly. JS already sets overflow:hidden,
   this handles iOS rubber-band edge cases. */
body:has(.mobile-menu.is-open) { overflow: hidden; touch-action: none; }

/* ---------- Container — slightly tighter padding on the smallest phones ---------- */
@media (max-width: 360px) {
  :root { --container-pad: 16px; }
}

/* ---------- Trust strip — comfortable spacing on small screens ---------- */
@media (max-width: 480px) {
  .trust-strip__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 18px 0;
  }
  .trust-strip__item {
    font-size: 10px;
    text-align: center;
    line-height: 1.35;
  }
}

/* ---------- Card titles inside rule/tick/legal grids — avoid ugly hyphenation ---------- */
@media (max-width: 480px) {
  .card__title,
  .rule-card__title,
  .tick-card__title {
    font-size: 18px;
    line-height: 1.3;
  }
  .card { padding: 22px 20px; }
}

/* ---------- Hero / page hero typography polish on small screens ---------- */
@media (max-width: 420px) {
  .hero__title { font-size: clamp(34px, 9vw, 44px); line-height: 1.05; }
  .page-hero__title { font-size: clamp(30px, 8vw, 40px); line-height: 1.1; }
  .hero__lead, .page-hero__lead { font-size: 15px; line-height: 1.6; }
}

/* ---------- Action buttons — wrap rather than overflow on narrow screens ---------- */
.hero__actions,
.page-hero__actions,
.contact-cta__actions {
  flex-wrap: wrap;
}
.btn { max-width: 100%; }

/* On very narrow phones, primary CTAs go full-width for easier tapping. */
@media (max-width: 380px) {
  .hero__actions .btn,
  .page-hero__actions .btn { width: 100%; }
}

/* ---------- Venture detail header buttons row ---------- */
.venture-hero__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- Team — leadership & member cards on mobile ---------- */
@media (max-width: 640px) {
  .lead-grid { grid-template-columns: 1fr; gap: 24px; }
  .lead-card__media { aspect-ratio: 1 / 1; max-width: 260px; }
  .member-grid { grid-template-columns: 1fr; gap: 20px; }
  .member-card { padding: 20px; }
  .member-card__head { gap: 14px; }
  .member-portrait { width: 64px; height: 64px; }
  .member-card__name { font-size: 16px; line-height: 1.3; }
  .member-card__role { font-size: 11px; }
}

/* ---------- Footer — keep brand columns from getting cramped ---------- */
@media (max-width: 480px) {
  .site-footer { padding: 48px 0 28px; }
  .site-footer__top { gap: 36px; margin-bottom: 40px; }
  .site-footer__cols { gap: 28px; }
}

/* ---------- Global safety — never cause horizontal scroll ---------- */
html, body { overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
pre, code { white-space: pre-wrap; word-break: break-word; }
table { display: block; max-width: 100%; overflow-x: auto; }
.container, .site-footer__cols, .lead-grid, .member-grid, .venture-grid, .rule-cards, .tick-cards, .legal-grid, .delivery-grid, .workrow, .facts-grid { min-width: 0; }
* { word-wrap: break-word; overflow-wrap: break-word; }

/* ---------- Forms — full width on mobile ---------- */
.form-field input,
.form-field select,
.form-field textarea { max-width: 100%; box-sizing: border-box; }

/* ============================================================
   Audit fixes — form input overflow safety + contrast polish
   ============================================================ */

/* Form-row uses CSS grid: grid items default to min-width:auto which lets
   their intrinsic content push past 1fr and overflow the viewport. Force
   columns to honor their fr share. */
.form-row > .field { min-width: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Eyebrow / role labels — slightly stronger weight for legibility on small caps */
.eyebrow,
.team-card__role,
.member-card__role,
.lead-card__role,
.section-intro__eyebrow {
  color: var(--foreground);
}

/* Restore subtle muted feel without sacrificing contrast */
.team-section__eyebrow { color: var(--foreground); opacity: 0.85; }

/* ============================================================
   Audit pass 2 — additional safety
   ============================================================ */

/* Belt-and-braces overflow guard for the contact form column.
   Some mobile UAs (older Safari) honor flex/grid item intrinsic widths
   in ways that can let `select` widgets push past 100% of the parent. */
.form-card { min-width: 0; max-width: 100%; }
.contact-grid > * { min-width: 0; }
.form-card select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

/* ============================================================
   ACW QA & AWS Security Agent Platform — landing page
   Premium dark hero + light content sections + mock dashboard.
   ============================================================ */

/* Outline button suitable for dark backgrounds */
.btn--outline-light {
  background: transparent;
  color: var(--navy-fg);
  border-color: rgba(233, 236, 241, 0.35);
}
.btn--outline-light:hover {
  border-color: var(--navy-fg);
  background: rgba(233, 236, 241, 0.06);
}

/* ---- Dark hero ---- */
.qa-hero {
  position: relative;
  background: var(--navy);
  color: var(--navy-fg);
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--navy-border);
  overflow: hidden;
}
@media (min-width: 768px) { .qa-hero { padding: 96px 0 112px; } }
@media (min-width: 1024px) { .qa-hero { padding: 120px 0 140px; } }
.qa-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(45, 107, 240, 0.18), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(34, 197, 94, 0.10), transparent 70%);
  pointer-events: none;
}
.qa-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) { .qa-hero__inner { grid-template-columns: 6fr 6fr; gap: 64px; } }
.qa-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.qa-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-fg);
  background: rgba(233, 236, 241, 0.04);
}
.qa-hero__eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.qa-hero__title {
  font-family: var(--font-serif); font-weight: 500;
  color: var(--navy-fg);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04; letter-spacing: -0.025em;
  text-wrap: balance;
}
.qa-hero__title .accent {
  background: linear-gradient(120deg, #5CABF2 0%, #6EE7B7 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.qa-hero__lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--navy-muted);
  max-width: 60ch;
}
.qa-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---- Mock dashboard composition ---- */
.qa-mock {
  position: relative;
  background: #0F2238;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  min-width: 0;
}
.qa-mock__chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--navy-border);
  background: rgba(0, 0, 0, 0.18);
}
.qa-mock__dots { display: inline-flex; gap: 6px; }
.qa-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(233, 236, 241, 0.18); }
.qa-mock__dot--r { background: #ef4444; }
.qa-mock__dot--y { background: #f59e0b; }
.qa-mock__dot--g { background: #22c55e; }
.qa-mock__path { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; color: var(--navy-muted); }
.qa-mock__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .qa-mock__body { padding: 24px; gap: 20px; } }
.qa-mock__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .qa-mock__stats { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.qa-stat {
  padding: 14px;
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  background: rgba(233, 236, 241, 0.03);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.qa-stat__num { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1; color: var(--navy-fg); letter-spacing: -0.015em; }
.qa-stat__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); }
.qa-stat--accent .qa-stat__num { color: #6EE7B7; }
.qa-stat--warn .qa-stat__num { color: #FBBF24; }
.qa-stat--block .qa-stat__num { color: #F87171; }

.qa-mock__table { border: 1px solid var(--navy-border); border-radius: 6px; overflow: hidden; }
.qa-row { display: grid; grid-template-columns: 1fr 78px 88px; gap: 12px; padding: 10px 14px; align-items: center; font-size: 13px; color: var(--navy-fg); border-top: 1px solid var(--navy-border); min-width: 0; }
.qa-row:first-child { border-top: 0; }
.qa-row--head { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); background: rgba(0, 0, 0, 0.18); }
.qa-row__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  border: 1px solid transparent;
}
.qa-pill--block { color: #FCA5A5; background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.35); }
.qa-pill--warn  { color: #FCD34D; background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.35); }
.qa-pill--pass  { color: #86EFAC; background: rgba(34, 197, 94, 0.10); border-color: rgba(34, 197, 94, 0.35); }
.qa-pill--info  { color: #93C5FD; background: rgba(45, 107, 240, 0.10); border-color: rgba(45, 107, 240, 0.35); }

.qa-mock__decision {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.02));
  border-radius: 6px;
  min-width: 0;
}
.qa-decision__label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-muted); }
.qa-decision__verdict { font-family: var(--font-serif); font-weight: 500; font-size: 22px; color: #FBBF24; letter-spacing: -0.01em; }
.qa-decision__action { font-size: 12px; color: var(--navy-fg); border: 1px solid var(--navy-border); padding: 6px 10px; border-radius: 4px; }

/* ---- Generic "qa" content blocks ---- */
.qa-section { padding: 72px 0; }
@media (min-width: 768px) { .qa-section { padding: 96px 0; } }
.qa-section--alt { background: rgba(11, 26, 46, 0.03); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.qa-bullets { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.qa-bullets li {
  position: relative; padding-left: 24px;
  font-size: 16px; line-height: 1.6; color: var(--muted-foreground);
}
.qa-bullets li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; background: var(--primary); border-radius: 1px;
}
.qa-bullets--two { display: grid; grid-template-columns: 1fr; gap: 12px 32px; }
@media (min-width: 768px) { .qa-bullets--two { grid-template-columns: repeat(2, 1fr); } }

/* Feature card grid (6 cards) — shares look with rule-cards but has icon */
.qa-features { display: grid; gap: 24px; grid-template-columns: 1fr; grid-auto-rows: 1fr; margin-top: 16px; }
@media (min-width: 640px)  { .qa-features { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1024px) { .qa-features { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.qa-feature {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qa-feature:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(20, 30, 60, 0.20); }
.qa-feature__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(45, 107, 240, 0.08); color: var(--primary);
  border-radius: 6px;
}
.qa-feature__icon svg { width: 22px; height: 22px; }
.qa-feature h3 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; color: var(--foreground); }
.qa-feature p  { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); }
.qa-feature--accent { border-top-color: #16a34a; }
.qa-feature--accent .qa-feature__icon { background: rgba(22, 163, 74, 0.10); color: #15803D; }

/* 5-step process */
.qa-steps { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 640px)  { .qa-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .qa-steps { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.qa-step {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 20px;
  border: 1px solid var(--border); background: #fff; height: 100%;
}
.qa-step__num {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 14px; letter-spacing: 0.14em; color: var(--primary);
}
.qa-step h3 { font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: -0.005em; color: var(--foreground); }
.qa-step p  { font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }

/* Linear flow visualization (Target App -> Agents -> ... -> Report) */
.qa-flow {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(11, 26, 46, 0.02);
}
.qa-flow__node {
  flex: 1 1 140px;
  min-width: 0;
  padding: 14px 16px;
  background: #fff; border: 1px solid var(--border);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.02em;
  color: var(--foreground);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.qa-flow__arrow {
  align-self: center;
  color: var(--muted-foreground);
  font-weight: 600;
  display: none;
}
@media (min-width: 1024px) { .qa-flow__arrow { display: inline; } }

/* Use-case tile grid */
.qa-usecases { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 640px)  { .qa-usecases { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .qa-usecases { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.qa-usecase {
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .2s;
}
.qa-usecase:hover { border-color: var(--foreground); transform: translateY(-1px); }
.qa-usecase__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); }
.qa-usecase h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--foreground); letter-spacing: -0.005em; }
.qa-usecase p  { font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }

/* Roadmap table */
.qa-table-wrap { margin-top: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); }
.qa-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; background: #fff; }
.qa-table th, .qa-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); }
.qa-table thead th {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-foreground);
  background: rgba(11, 26, 46, 0.04);
  border-top: 0;
}
.qa-table tbody tr:hover td { background: rgba(45, 107, 240, 0.02); }
.qa-table td.qa-area { font-weight: 600; color: var(--foreground); width: 28%; }
.qa-tag { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground); white-space: nowrap; }
.qa-tag--available { color: #15803D; border-color: rgba(22, 163, 74, 0.40); background: rgba(22, 163, 74, 0.07); }
.qa-tag--phase    { color: #1c4cb8; border-color: rgba(45, 107, 240, 0.40); background: rgba(45, 107, 240, 0.07); }
.qa-tag--roadmap  { color: #934117; border-color: rgba(214, 98, 40, 0.40); background: rgba(214, 98, 40, 0.07); }

/* Sample-report cards */
.qa-reports { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 768px)  { .qa-reports { grid-template-columns: repeat(2, 1fr); } }
.qa-report {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.qa-report__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  background: rgba(11, 26, 46, 0.04);
  border-bottom: 1px solid var(--hairline);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground);
}
.qa-report__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.qa-report h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.012em; color: var(--foreground); }
.qa-report__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-report p { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

/* Audience grid */
.qa-audience { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
@media (min-width: 640px)  { .qa-audience { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .qa-audience { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.qa-audience__item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  color: var(--foreground);
  display: flex; align-items: center; min-height: 64px;
}

/* Form-card adjustments specific to QA page */
.qa-form-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 16px; align-items: start; }
@media (min-width: 1024px) { .qa-form-wrap { grid-template-columns: 5fr 7fr; gap: 56px; } }
.qa-form-side h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; margin-bottom: 12px; color: var(--foreground); }
.qa-form-side p  { font-size: 15px; line-height: 1.65; color: var(--muted-foreground); }
.qa-form-side ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted-foreground); }
.qa-form-side li { position: relative; padding-left: 18px; }
.qa-form-side li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

/* Responsible security statement */
.qa-statement {
  margin: 0 auto;
  max-width: 880px;
  padding: 28px 28px 30px;
  border: 1px solid var(--border);
  background: rgba(11, 26, 46, 0.03);
  display: flex; flex-direction: column; gap: 12px;
}
.qa-statement__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.qa-statement h2 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; color: var(--foreground); }
.qa-statement p  { font-size: 15px; line-height: 1.7; color: var(--muted-foreground); }

/* Strategic Partnerships — small attribution line under the cards */
.partner-attribution {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 24px 0 8px;
  font-style: italic;
}

/* =====================================================================
   Cookie consent banner + preferences modal
   Enterprise / dark-premium pattern. Appended last so it overrides
   defensively without touching earlier rules.
   ===================================================================== */

:root {
  --consent-bg: #0B1A2E;          /* matches --navy */
  --consent-fg: #ffffff;
  --consent-muted: rgba(255, 255, 255, 0.78);
  --consent-border: rgba(255, 255, 255, 0.12);
  --consent-accent: #00B3A4;      /* enterprise teal — distinct from cobalt CTAs */
  --consent-accent-hover: #009E91;
  --consent-accent-fg: #051A18;
  --consent-shadow: 0 -16px 48px rgba(0, 0, 0, 0.35);
}

/* ---------- Banner ---------- */
.acw-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: var(--consent-bg);
  color: var(--consent-fg);
  border-top: 1px solid var(--consent-border);
  box-shadow: var(--consent-shadow);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-sans, "Inter Tight", system-ui, sans-serif);
  transform: translateY(110%);
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
}
.acw-consent.is-visible { transform: translateY(0); opacity: 1; }

.acw-consent__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.acw-consent__heading {
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--consent-fg);
}
.acw-consent__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--consent-muted);
}
.acw-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}
.acw-consent__links a,
.acw-consent__links button {
  color: var(--consent-fg);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.acw-consent__links a:hover,
.acw-consent__links button:hover { text-decoration-color: var(--consent-accent); color: var(--consent-accent); }
.acw-consent__links a:focus-visible,
.acw-consent__links button:focus-visible {
  outline: 2px solid var(--consent-accent);
  outline-offset: 3px;
}

.acw-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acw-consent .btn-consent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.acw-consent .btn-consent:focus-visible {
  outline: 2px solid var(--consent-accent);
  outline-offset: 2px;
}
.acw-consent .btn-consent--primary {
  background: var(--consent-accent);
  color: var(--consent-accent-fg);
}
.acw-consent .btn-consent--primary:hover { background: var(--consent-accent-hover); }
.acw-consent .btn-consent--ghost {
  background: transparent;
  color: var(--consent-fg);
  border-color: rgba(255, 255, 255, 0.45);
}
.acw-consent .btn-consent--ghost:hover {
  border-color: var(--consent-fg);
  background: rgba(255, 255, 255, 0.06);
}

/* Desktop layout — compact bottom bar */
@media (min-width: 760px) {
  .acw-consent { padding: 20px 24px; }
  .acw-consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 32px;
  }
  .acw-consent__copy { grid-column: 1; min-width: 0; }
  .acw-consent__heading { font-size: 20px; margin-bottom: 6px; }
  .acw-consent__body { font-size: 14px; max-width: 78ch; }
  .acw-consent__links { margin-top: 10px; }
  .acw-consent__actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .acw-consent .btn-consent { min-height: 44px; }
}

/* ---------- Preferences modal ---------- */
.acw-prefs {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 14, 26, 0.62);
  padding: 0;
}
.acw-prefs.is-open { display: flex; }

.acw-prefs__panel {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--consent-bg);
  color: var(--consent-fg);
  border-top: 1px solid var(--consent-border);
  box-shadow: var(--consent-shadow);
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-sans, "Inter Tight", system-ui, sans-serif);
}
@media (min-width: 760px) {
  .acw-prefs { align-items: center; padding: 24px; }
  .acw-prefs__panel {
    border-top: 0;
    border: 1px solid var(--consent-border);
    padding: 36px;
    max-height: 86vh;
  }
}

.acw-prefs__header { margin-bottom: 18px; }
.acw-prefs__title {
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--consent-fg);
}
.acw-prefs__intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--consent-muted);
}

.acw-prefs__list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  border-top: 1px solid var(--consent-border);
}
.acw-prefs__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--consent-border);
}
.acw-prefs__item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--consent-fg);
  margin: 0 0 4px;
}
.acw-prefs__item-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--consent-muted);
  margin: 0;
}

/* Toggle switch */
.acw-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  margin-top: 2px;
}
.acw-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.acw-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background .15s, border-color .15s;
}
.acw-toggle__slider::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.acw-toggle input:checked + .acw-toggle__slider {
  background: var(--consent-accent);
  border-color: var(--consent-accent);
}
.acw-toggle input:checked + .acw-toggle__slider::before { transform: translateX(20px); }
.acw-toggle input:focus-visible + .acw-toggle__slider {
  outline: 2px solid var(--consent-accent);
  outline-offset: 2px;
}
.acw-toggle input:disabled { cursor: not-allowed; }
.acw-toggle input:disabled + .acw-toggle__slider {
  background: var(--consent-accent);
  border-color: var(--consent-accent);
  opacity: 0.55;
}

.acw-prefs__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acw-prefs__actions .btn-consent { width: 100%; }
@media (min-width: 760px) {
  .acw-prefs__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .acw-prefs__actions .btn-consent { width: auto; }
}

/* Footer cookie-prefs trigger styled like a regular footer link */
.footer-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-col .footer-link-btn { color: inherit; }
.footer-col .footer-link-btn:hover { color: var(--primary); text-decoration: underline; }
.footer-link-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Body scroll lock helper (used by the prefs modal) */
body.acw-no-scroll { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .acw-consent { transition: none; }
}

/* ============================================================
   Homepage SEO Phase 1 additions: at-a-glance, FAQ, section links
   ============================================================ */
.section--tight { padding-top: 48px; padding-bottom: 48px; }

.glance-list {
  margin: 0;
  border-top: 1px solid var(--border, rgba(11, 26, 46, 0.14));
}
.glance-list__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, rgba(11, 26, 46, 0.14));
}
.glance-list__row dt {
  font-weight: 700;
  color: var(--navy, #0B1A2E);
}
.glance-list__row dd { margin: 0; }
@media (max-width: 640px) {
  .glance-list__row { grid-template-columns: 1fr; gap: 4px; }
}

.about-links { margin-top: 16px; line-height: 2; }

.section-followup { margin-top: 32px; }

.faq-list {
  border-top: 1px solid var(--border, rgba(11, 26, 46, 0.14));
  max-width: 880px;
}
.faq-item {
  border-bottom: 1px solid var(--border, rgba(11, 26, 46, 0.14));
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--navy, #0B1A2E);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary h3,
.faq-item summary .faq-q {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-serif, "Source Serif 4", serif);
  font-weight: 600;
  color: var(--navy, #0B1A2E);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--primary, #155EEF);
  outline-offset: 2px;
}
.faq-item > p {
  margin: 0;
  padding: 0 0 18px;
  max-width: 760px;
}

/* About page — capability links list */
.capability-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .capability-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capability-links { grid-template-columns: repeat(3, 1fr); } }
.capability-links li { border-top: 1px solid var(--border); padding-top: 12px; }
.capability-links a { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--foreground); text-decoration: none; }
.capability-links a:hover, .capability-links a:focus-visible { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* Capabilities page — capability sections */
.cap-body { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cap-body { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }
.cap-body h3 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 14px; }
.cap-body > div > p { color: var(--muted-foreground); max-width: 62ch; }
.cap-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cap-list li { position: relative; padding-left: 22px; color: var(--muted-foreground); }
.cap-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--foreground); }
.cap-list--cols { display: grid; gap: 12px 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cap-list--cols { grid-template-columns: repeat(2, 1fr); } }
.cap-links-row { margin-top: 18px; line-height: 2; }
.cap-section .section-intro { margin-bottom: 40px; }
html { scroll-behavior: smooth; }

/* ---- Ventures portfolio list (2026-07 rewrite) ---- */
.portfolio-list { display: grid; gap: 40px; }
.portfolio-item { border-top: 1px solid var(--border, rgba(11, 26, 46, 0.14)); padding-top: 32px; max-width: 820px; }
.portfolio-item:first-child { border-top: 0; padding-top: 0; }
.portfolio-item__title { font-size: 24px; margin: 0 0 6px; }
.portfolio-item__status { margin: 0 0 10px; }
.portfolio-item__desc { margin: 0 0 14px; }
.portfolio-item__label { margin: 14px 0 8px; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.portfolio-item__note { margin: 14px 0 0; font-size: 14px; color: var(--muted-foreground, #4a4a45); font-style: italic; }
.portfolio-item > p:last-child { margin-top: 14px; }

/* ============================================================
   QA platform — illustrative demo labels & capability status groups
   ============================================================ */
.qa-hero__demo { min-width: 0; }
.qa-demo-label {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
}
.qa-demo-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
  max-width: 60ch;
}
.qa-status-groups {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .qa-status-groups { grid-template-columns: 1fr 1fr; }
  .qa-status-groups .qa-status-group:last-child { grid-column: 1 / -1; }
}
.qa-status-group {
  border: 1px solid var(--border, rgba(11, 26, 46, 0.14));
  background: var(--card, #fff);
  padding: 28px;
  min-width: 0;
}
.qa-status-group h3 {
  margin: 0 0 14px;
  font-size: 20px;
}
.qa-status-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-foreground, #4a5568);
}

/* Team page — healthcare qualification note */
.team-section__note { margin-top: 28px; max-width: 720px; font-size: 14px; line-height: 1.6; color: hsl(222 18% 32%); border-left: 3px solid var(--primary, #155EEF); padding-left: 14px; }
