/* BlockVigil — shared styles
 * Color theme derived from logo gradient: #111113 → #6B325C (dark → plum)
 */
:root {
  /* Dark (default) — plum-tinted blacks */
  --bg: #0B0910;
  --bg-1: #11101A;
  --bg-2: #1A1626;
  --bg-3: #221C32;
  --line: rgba(196,168,215,0.08);
  --line-2: rgba(196,168,215,0.16);
  --fg: #F4EDF7;
  --fg-1: #E0D7E8;
  --fg-2: #A89FB8;
  --fg-3: #6E667A;

  /* Accent — plum derived from logo bottom stop, brightened for accessibility */
  --accent: #B8538F;
  --accent-2: #D67BAE;
  --accent-soft: rgba(184,83,143,0.14);

  /* Brand gradient — logo's exact stops, reusable */
  --brand-grad-stop-1: #111113;
  --brand-grad-stop-2: #6B325C;
  --brand-grad: linear-gradient(180deg, #111113 0%, #6B325C 100%);
  --brand-grad-diag: linear-gradient(135deg, #111113 0%, #3D1F37 50%, #6B325C 100%);
  --brand-glow: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(107,50,92,0.35) 0%, transparent 70%);

  --success: #3BD67A;
  --danger:  #FF5577;
  --warning: #F5A524;
  --info:    #7B8CFF;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 40px rgba(17,17,19,.6);
  --shadow-glow: 0 0 60px rgba(184,83,143,0.18);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --grid-line: rgba(196,168,215,0.04);
}
html[data-theme="light"] {
  --bg: #F8F4F9;
  --bg-1: #F0EAF2;
  --bg-2: #E8DFEC;
  --bg-3: #DDD0E2;
  --line:   rgba(43,19,53,0.08);
  --line-2: rgba(43,19,53,0.18);
  --fg:   #1A0F1F;
  --fg-1: #2D1F35;
  --fg-2: #5C4A66;
  --fg-3: #897592;
  --accent:   #8E3D6E;
  --accent-2: #B8538F;
  --accent-soft: rgba(142,61,110,0.14);
  --grid-line: rgba(43,19,53,0.04);
  --brand-glow: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184,83,143,0.18) 0%, transparent 70%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11', 'cv05';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
body {
  min-height: 100vh; overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background: var(--brand-glow);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(48px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 450; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; color: var(--fg-2); }

.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.container-wide { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -0.02em; font-size: 17px; }
.brand .logo-mark {
  width: 40px; height: 40px;
  background: url(assets/blockvigil-mark.svg) center/contain no-repeat;
}
html[data-theme="dark"] .brand .logo-mark { background: url(assets/blockvigil-mark.svg) center/contain no-repeat; }
.nav { display: flex; gap: 28px; margin-left: 16px; }
.nav a {
  color: var(--fg-2);
  font-size: 14px; font-weight: 450;
  position: relative; padding: 4px 0;
  transition: color .15s;
}
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 1px;
  background: var(--accent);
}
.spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile hamburger toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: border-color .15s, background .15s;
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle svg { width: 20px; height: 20px; display: block; }
.menu-toggle .icon-close { display: none; }
.site-header.nav-open .menu-toggle .icon-menu { display: none; }
.site-header.nav-open .menu-toggle .icon-close { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand-grad-diag);
  color: #F4EDF7;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1a1a1c 0%, #4D2545 50%, #8E3D6E 100%);
  box-shadow: 0 0 80px rgba(184,83,143,0.32), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-ghost { color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  color: var(--fg-2);
  border: 1px solid var(--line);
}
.btn-icon:hover { color: var(--fg); border-color: var(--line-2); }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 40px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  min-height: 620px;
}
.hero h1 .accent-underline {
  position: relative;
  color: var(--fg);
  background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
  padding: 0 4px;
  margin: 0 -4px;
}
.hero .lede {
  margin-top: 28px;
  max-width: 520px;
  font-size: 18px; line-height: 1.5;
  color: var(--fg-2);
}
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; }

.hero-meta {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.hero-meta .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); font-family: 'JetBrains Mono', monospace; }
.hero-meta .v { font-size: 22px; font-weight: 450; letter-spacing: -0.02em; margin-top: 4px; }

/* Hero vigil */
.vigil {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  justify-self: stretch;
  align-self: center;
}
.vigil .ring {
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.vigil .ring.r2 { inset: 8%; }
.vigil .ring.r3 { inset: 18%; border-style: dashed; border-color: var(--line-2); }
.vigil .ring.r4 { inset: 30%; }
.vigil .mark {
  position: absolute; inset: 32%;
  background: url(assets/blockvigil-mark.svg) center/contain no-repeat;
  filter: drop-shadow(0 8px 40px rgba(184,83,143,0.45));
}
.vigil .pulse {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid var(--accent);
  opacity: 0; animation: pulse 3.4s ease-out infinite;
}
.vigil .pulse.d2 { animation-delay: 1.1s; }
.vigil .pulse.d3 { animation-delay: 2.2s; }
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0; }
  30% { opacity: 0.4; }
  100% { transform: scale(1.05); opacity: 0; }
}
.vigil .sweep {
  position: absolute; inset: 8%;
  border-radius: 999px;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 20deg, transparent 40deg);
  opacity: 0.35;
  animation: sweep 6s linear infinite;
  mask: radial-gradient(circle, transparent 58%, #000 59%, #000 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 100%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.vigil .node {
  position: absolute;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--fg);
  transform: translate(-50%, -50%);
}
.vigil .node::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 999px; border: 1px solid var(--line-2);
}
.vigil .label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.vigil .label .tick { color: var(--success); }

/* Threat ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}
.ticker-row {
  display: flex; gap: 48px;
  padding: 14px 0;
  white-space: nowrap;
  animation: marquee 80s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-2);
}
.ticker-item .sev {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.ticker-item .sev::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px;
}
.sev.crit { color: var(--danger); background: color-mix(in oklab, var(--danger) 14%, transparent); }
.sev.crit::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.sev.high { color: var(--warning); background: color-mix(in oklab, var(--warning) 14%, transparent); }
.sev.high::before { background: var(--warning); }
.sev.med { color: var(--info); background: color-mix(in oklab, var(--info) 14%, transparent); }
.sev.med::before { background: var(--info); }
.sev.ok { color: var(--success); background: color-mix(in oklab, var(--success) 14%, transparent); }
.sev.ok::before { background: var(--success); }

/* Sections */
section.block { padding: 112px 0; border-top: 1px solid var(--line); position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; gap: 32px; flex-wrap: wrap; }
.section-head h2 { max-width: 720px; }
.section-head .lede { color: var(--fg-2); max-width: 420px; }

/* Logo wall */
.logo-wall {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.logo-wall .cell {
  aspect-ratio: 2/1;
  display: grid; place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 17px;
  transition: background .2s, color .2s;
}
.logo-wall .cell:hover { background: var(--bg-1); color: var(--fg); }
.logo-wall .cell:nth-child(6n) { border-right: 0; }
.logo-wall .cell:nth-last-child(-n+6) { border-bottom: 0; }

/* Process timeline */
.process {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}
.process-rail {
  position: sticky; top: 120px; align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.process-rail .step-link {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s;
}
.process-rail .step-link.active { color: var(--fg); }
.process-rail .step-link.active::before {
  content: ''; position: absolute; left: -1px; width: 2px; height: 24px; background: var(--accent); transform: translateY(2px);
}
.process-rail { position: sticky; }
.process-step {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  align-items: start;
}
.process-step:last-child { border-bottom: 0; }
.process-step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.process-step h3 { font-size: 30px; letter-spacing: -0.02em; margin-top: 8px; font-weight: 450; }
.process-step p { margin-top: 14px; font-size: 15px; line-height: 1.6; max-width: 440px; }
.process-step ul { list-style: none; padding: 0; margin: 20px 0 0; }
.process-step ul li {
  display: flex; gap: 10px; padding: 6px 0;
  font-size: 13px; color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
}
.process-step ul li::before { content: '→'; color: var(--accent); }

.process-visual {
  position: sticky; top: 120px;
  aspect-ratio: 1/1;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  overflow: hidden;
}

/* Service cards */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.service-card {
  position: relative;
  padding: 32px;
  background: var(--bg);
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: background .25s;
  cursor: pointer;
  overflow: hidden;
}
.service-card:hover { background: var(--bg-1); }
.service-card .svc-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--fg);
  margin-bottom: 28px;
  transition: background .25s, color .25s, border-color .25s;
}
.service-card:hover .svc-icon { background: var(--accent); color: #F4EDF7; border-color: var(--accent); }
.service-card h3 { font-size: 22px; }
.service-card p { font-size: 14px; margin-top: 10px; }
.service-card .svc-tags { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.service-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-card .arrow {
  position: absolute; top: 28px; right: 28px;
  color: var(--fg-3);
  transition: transform .25s, color .25s;
}
.service-card:hover .arrow { color: var(--fg); transform: translate(4px, -4px); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
}
.stat:last-child { border-right: 0; }
.stat .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--fg-3); text-transform: uppercase; }
.stat .v { font-size: 56px; letter-spacing: -0.03em; font-weight: 450; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--fg-2); margin-top: 4px; }

/* Case studies */
.cases { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  background: var(--bg-1);
  display: flex; flex-direction: column; min-height: 360px;
  transition: transform .25s, border-color .25s;
  cursor: pointer;
}
.case:hover { transform: translateY(-4px); border-color: var(--line-2); }
.case .meta { display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; }
.case h3 { font-size: 24px; margin-top: 20px; }
.case .desc { margin-top: 10px; font-size: 13px; }
.case .kpis { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; border-top: 1px solid var(--line); }
.case .kpi .k { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; text-transform: uppercase; }
.case .kpi .v { font-size: 18px; margin-top: 2px; letter-spacing: -0.01em; }

/* CTA */
.cta-block {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 80px 64px;
  background: var(--brand-grad-diag);
  color: #F4EDF7;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
html[data-theme="light"] .cta-block { background: var(--brand-grad-diag); color: #F4EDF7; }
.cta-block h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.03em; max-width: 860px; font-weight: 450; }
.cta-block .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-block .btn { background: var(--accent); color: #F4EDF7; }
.cta-block .btn:hover { background: var(--accent-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 48px; }
.footer-grid h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; font-weight: 500; }
.footer-grid a { display: block; padding: 5px 0; color: var(--fg-2); font-size: 14px; }
.footer-grid a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  color: var(--fg-3); text-transform: uppercase;
}

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(640px, calc(100% - 48px));
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  padding: 32px;
  transform: scale(.96); transition: transform .2s;
  max-height: 85vh; overflow: auto;
}
.modal-backdrop.open .modal { transform: scale(1); }

/* Utility */
.rule { height: 1px; background: var(--line); width: 100%; }
.grow { flex-grow: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
}
.kicker .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Verify box (hero demo) */
.verify {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
.verify .row { display: flex; align-items: center; gap: 10px; }
.verify .row + .row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.verify .addr { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.verify .pill { padding: 1px 6px; border-radius: 4px; font-size: 10px; letter-spacing: 0.06em; }

/* ===== BlockApex-inspired additions ===== */

/* Logo marquee */
.logo-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  padding: 28px 0;
}
.logo-marquee .lm-row {
  display: flex; gap: 72px; align-items: center;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .lm-row { animation-play-state: paused; }
.logo-marquee .lm-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; letter-spacing: -0.01em;
  color: var(--fg-2);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: color .2s;
  flex-shrink: 0;
}
.logo-marquee .lm-item:hover { color: var(--fg); }
.logo-marquee .lm-item::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 2px;
  opacity: 0.6;
}

/* Impact stats block */
.impact {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.impact .eyebrow { margin-bottom: 40px; }
.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.impact-cell {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .3s;
}
.impact-cell:last-child { border-right: 0; }
.impact-cell:hover { background: var(--bg-1); }
.impact-cell .im-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-3); text-transform: uppercase;
}
.impact-cell .im-value {
  font-size: 72px; font-weight: 450; letter-spacing: -0.04em;
  line-height: 1; margin-top: 32px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.impact-cell .im-suffix { font-size: 40px; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.impact-cell .im-sub {
  font-size: 12px; color: var(--fg-2); margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
}

/* Numbered services (BlockApex 001/002/003 style) */
.num-services {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.num-svc {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  min-height: 380px;
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, background .3s;
  overflow: hidden;
  cursor: pointer;
}
.num-svc:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--bg-2);
}
.num-svc::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.num-svc:hover::before { opacity: 1; }
.num-svc .num-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.14em;
  color: var(--accent);
}
.num-svc .num-shadow {
  position: absolute; top: 24px; right: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 88px; font-weight: 500;
  color: var(--line);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  transition: color .3s;
}
.num-svc:hover .num-shadow { color: var(--line-2); }
.num-svc h3 { font-size: 28px; letter-spacing: -0.02em; font-weight: 450; margin-top: 72px; max-width: 14ch; }
.num-svc p { font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 34ch; }
.num-svc .num-cta {
  margin-top: auto; padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
}
.num-svc .num-cta a {
  font-size: 13px; color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.num-svc .num-cta .arr {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--fg-2);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.num-svc:hover .num-cta .arr { background: var(--accent); color: #F4EDF7; border-color: var(--accent); transform: translateX(4px); }

/* Tech stack tabs */
.tech-stack { padding: 0; }
.tech-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.tech-tab {
  padding: 20px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--fg-3); text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  border-right: 1px solid var(--line);
}
.tech-tab:hover { color: var(--fg-2); }
.tech-tab.active { color: var(--fg); }
.tech-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.tech-panel { display: none; }
.tech-panel.active { display: block; }
.tech-group { margin-bottom: 48px; }
.tech-group:last-child { margin-bottom: 0; }
.tech-group h4 {
  font-size: 13px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 20px; font-weight: 500;
}
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; color: var(--fg-1);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  transition: border-color .2s, background .2s, color .2s;
  cursor: default;
}
.tech-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.tech-chip .tc-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 999px;
  margin-right: 10px; vertical-align: middle; opacity: 0.5;
}

/* Editorial position section */
.editorial {
  padding: 140px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.editorial-inner {
  display: grid; grid-template-columns: 0.4fr 1fr;
  gap: 80px; align-items: start;
}
.editorial h2 {
  font-size: clamp(40px, 5.4vw, 80px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 450;
  max-width: 16ch;
}
.editorial h2 em {
  font-style: normal;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.editorial .e-body { max-width: 560px; }
.editorial .e-body p { font-size: 17px; line-height: 1.6; color: var(--fg-1); }
.editorial .e-body p + p { margin-top: 20px; }
.editorial .e-side { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--fg-3); text-transform: uppercase; padding-top: 18px; }

/* Testimonials carousel */
.testimonials {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.testi-rail {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testi-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.testi-card {
  flex: 0 0 460px;
  scroll-snap-align: start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-1);
  display: flex; flex-direction: column;
}
.testi-card .quote-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 64px; line-height: 0.5;
  color: var(--accent);
  height: 20px; margin-bottom: 16px;
}
.testi-card blockquote {
  margin: 0; font-size: 17px; line-height: 1.5;
  color: var(--fg-1); font-weight: 400;
  letter-spacing: -0.005em;
  flex: 1;
}
.testi-card .who {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.testi-card .who .avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500; color: var(--fg);
  font-size: 14px; letter-spacing: 0.04em;
  border: 1px solid var(--line-2);
}
.testi-card .who .name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.testi-card .who .role { font-size: 12px; color: var(--fg-2); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }

/* FAQ accordion */
.faq {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.faq-inner { display: grid; grid-template-columns: 0.5fr 1fr; gap: 80px; align-items: start; }
.faq h2 { font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -0.025em; font-weight: 450; max-width: 14ch; }
.faq h2 em { font-style: normal; font-family: 'Fraunces', Georgia, serif; color: var(--accent); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 450; letter-spacing: -0.015em;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  transition: transform .2s, background .2s, color .2s;
  color: var(--fg-2);
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: #F4EDF7; border-color: var(--accent); }
.faq-item .ans {
  margin-top: 14px;
  max-width: 68ch;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Locations strip */
.locations {
  padding: 80px 0 120px;
  border-top: 1px solid var(--line);
}
.locs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.loc {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  transition: background .2s;
}
.loc:last-child { border-right: 0; }
.loc:hover { background: var(--bg-1); }
.loc .loc-city {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
}
.loc .loc-name { font-size: 24px; letter-spacing: -0.02em; margin-top: 8px; font-weight: 450; }
.loc .loc-addr { font-size: 13px; color: var(--fg-2); margin-top: 12px; line-height: 1.5; }

/* Big not-sure CTA */
.big-cta {
  padding: 140px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.big-cta h2 {
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 14ch;
}
.big-cta h2 em {
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--accent);
  font-weight: 400;
}
.big-cta .bc-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 64px; gap: 40px; flex-wrap: wrap;
}
.big-cta .bc-contacts {
  display: flex; gap: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.1em; color: var(--fg-3); text-transform: uppercase;
}
.big-cta .bc-contacts a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.big-cta .bc-contacts a:hover { color: var(--fg); }
.big-cta .bc-contacts a::before { content: '→'; color: var(--accent); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .vigil { max-width: 360px; margin: 0 auto; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall .cell:nth-child(3n) { border-right: 0; }
  .logo-wall .cell:nth-child(6n) { border-right: 1px solid var(--line); }
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .cases { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-rail, .process-visual { display: none; }
  .process-step { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header { position: relative; }
  .site-header .inner { gap: 12px; }
  .site-header .inner .spacer { display: none; }
  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
    order: 99;
  }
  .brand { order: 1; margin-right: auto; }
  .header-actions { order: 50; }
  .nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin-left: 0;
    padding: 8px 24px 16px;
    z-index: 100;
  }
  .nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active::after { display: none; }
  .site-header.nav-open .nav { display: flex; }
  .cta-block { padding: 48px 28px; }
  .num-services { grid-template-columns: 1fr; }
  .impact-grid, .locs-grid { grid-template-columns: 1fr 1fr; }
  .impact-cell:nth-child(2), .loc:nth-child(2) { border-right: 0; }
  .impact-cell:nth-child(1), .impact-cell:nth-child(2), .loc:nth-child(1), .loc:nth-child(2) { border-bottom: 1px solid var(--line); }
  .editorial-inner, .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .testi-card { flex: 0 0 340px; }
  .tech-tab { padding: 16px 20px; }
}

/* ============ Interactive enhancements ============ */

/* Reveal on scroll */
.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.will-reveal.in { opacity: 1; transform: none; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  z-index: 9999; pointer-events: none;
  box-shadow: 0 0 12px var(--accent);
  transition: width .1s linear;
}

/* Num-svc needs transform-style for tilt */
.num-svc { transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s, background .3s; }
.num-svc .num-shadow { transition: transform .3s cubic-bezier(.2,.7,.2,1), color .3s; }

/* Impact cell spotlight */
.impact-cell {
  position: relative;
  overflow: hidden;
}
.impact-cell::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.impact-cell:hover::after { opacity: 1; }

/* Case card hover scanline */
.case {
  position: relative;
  overflow: hidden;
}
.case::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 280px at var(--sx, 50%) var(--sy, 50%), var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  mix-blend-mode: screen;
}
.case:hover::after { opacity: 0.9; }

/* Magnetic transition */
.btn-primary, .num-svc .arr { transition: transform .35s cubic-bezier(.2,.9,.2,1), background .2s, border-color .2s, color .2s; }

/* Testimonial drag cursor */
.testi-rail { cursor: grab; }
.testi-rail.dragging { cursor: grabbing; scroll-behavior: auto; }
.testi-rail.dragging * { user-select: none; pointer-events: none; }

/* Command palette */
.cmdk-backdrop {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9000;
  display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  transition: opacity .18s;
}
.cmdk-backdrop.open { display: flex; opacity: 1; }
.cmdk {
  width: min(680px, 92vw);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0,0,0,.5), 0 0 0 1px var(--accent-soft);
  overflow: hidden;
  transform: translateY(-12px) scale(.98);
  opacity: 0;
  animation: cmdk-in .24s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes cmdk-in { to { transform: none; opacity: 1; } }
.cmdk-input-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cmdk-prompt {
  font-family: 'JetBrains Mono', monospace; font-size: 20px;
  color: var(--accent);
}
.cmdk-input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--fg); font-size: 17px; font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
.cmdk-input::placeholder { color: var(--fg-3); }
.cmdk-esc {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 4px 8px; border: 1px solid var(--line-2);
  border-radius: 6px; color: var(--fg-3);
  letter-spacing: 0.1em;
}
.cmdk-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.cmdk-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
}
.cmdk-item.sel { background: var(--accent-soft); }
.cmdk-icon {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  flex-shrink: 0;
}
.cmdk-item.sel .cmdk-icon { background: var(--accent); color: #F4EDF7; border-color: var(--accent); }
.cmdk-text { flex: 1; min-width: 0; }
.cmdk-label { font-size: 14px; font-weight: 450; letter-spacing: -0.01em; color: var(--fg); }
.cmdk-sub { font-size: 12px; color: var(--fg-2); margin-top: 2px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
.cmdk-kind {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--fg-3);
}
.cmdk-empty { padding: 40px; text-align: center; color: var(--fg-3); font-size: 14px; }
.cmdk-foot {
  display: flex; gap: 20px; padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}
.cmdk-foot kbd {
  display: inline-block; padding: 2px 6px; margin-right: 6px;
  border: 1px solid var(--line-2); border-radius: 4px;
  background: var(--bg-2); color: var(--fg-1);
  font-family: inherit; font-size: 10px;
}

/* Floating quick-jump FAB — brand-matched: hairline, plum accent, vigil-pulse */
.fab {
  position: fixed; bottom: 28px; right: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 12px;
  background: color-mix(in oklab, var(--bg-1) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 40px rgba(0,0,0,.35);
  z-index: 800;
  transition: border-color .15s ease, color .15s ease, box-shadow .2s ease, background .2s ease;
}
.fab::before {
  content: '';
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: fabPulse 3.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  flex: 0 0 auto;
}
.fab:hover {
  border-color: var(--accent);
  color: var(--fg);
  background: color-mix(in oklab, var(--bg-1) 92%, transparent);
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 48px rgba(0,0,0,.45);
}
.fab:active { transform: scale(0.98); }
.fab .fab-ico {
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  background: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  transition: color .15s ease, border-color .15s ease;
}
.fab:hover .fab-ico { color: var(--accent); border-color: var(--accent); }
.fab .fab-label { color: var(--fg-2); transition: color .15s ease; }
.fab:hover .fab-label { color: var(--fg); }

@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in oklab, var(--accent) 55%, transparent); }
  60%  { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%,  transparent); }
  100% { box-shadow: 0 0 0 0   color-mix(in oklab, var(--accent) 0%,  transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .fab::before { animation: none; }
}
@media (max-width: 720px) { .fab .fab-label { display: none; } .fab { padding: 11px 12px; } }

/* Toast */
.toast {
  position: fixed; bottom: 90px; right: 28px;
  padding: 14px 20px;
  background: var(--fg); color: var(--bg);
  border-radius: 10px;
  font-size: 13px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 9500;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: none; }

/* Konami mode */
html.konami { --accent: #9EFF4E; --accent-soft: rgba(158,255,78,.18); }
html.konami .vigil .mark { filter: drop-shadow(0 8px 60px #9EFF4E); }

/* ============================================================
   RESPONSIVE OVERHAUL — proper breakpoints + mobile fixes
   ============================================================ */

/* Funding stats grid (company.html) */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.funding-cell {
  padding: 32px;
  background: var(--bg);
  min-width: 0;
}
.funding-num {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-weight: 450;
}
.funding-sub {
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 4px;
}
.funding-investors {
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
  word-break: break-word;
}
@media (max-width: 1100px) {
  .funding-grid { grid-template-columns: repeat(2, 1fr); }
  .funding-cell { padding: 28px; }
}
@media (max-width: 600px) {
  .funding-grid { grid-template-columns: 1fr; }
  .funding-cell { padding: 24px; }
  .funding-num { font-size: 30px; }
}
@media (max-width: 360px) {
  .funding-cell { padding: 20px; }
  .funding-num { font-size: 26px; }
}


/* Prevent any horizontal page overflow regardless of section */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }

/* ---------- Tablet & below: 1100px ---------- */
@media (max-width: 1100px) {
  .container, .container-wide { width: min(100%, calc(100% - 40px)); }
  section.block { padding: 88px 0; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
  .testi-card { flex: 0 0 380px; padding: 28px; }
}

/* ---------- Tablet portrait: 768px ---------- */
@media (max-width: 768px) {
  .container, .container-wide { width: calc(100% - 32px); }
  section.block { padding: 64px 0; }

  /* Typography scaling */
  h1 { font-size: clamp(34px, 9vw, 56px) !important; line-height: 1.02; }
  h2 { font-size: clamp(26px, 6vw, 40px) !important; line-height: 1.08; }
  h3 { font-size: 18px; }

  /* Hero */
  .hero { padding: 64px 0 32px; }
  .hero .lede { font-size: 16px; line-height: 1.55; }
  .hero-ctas { margin-top: 28px; flex-wrap: wrap; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
  .hero-meta { margin-top: 40px; gap: 18px; padding-top: 22px; max-width: 100%; }
  .hero-meta .v { font-size: 18px; }
  .vigil { max-width: 280px; margin: 32px auto 0; }

  /* Header */
  .site-header .inner { gap: 8px; height: 64px; }
  .brand .logo-mark { width: 34px; height: 34px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 14px; font-size: 13px; }
  .nav { top: 64px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* CTA block */
  .cta-block { padding: 40px 24px; }
  .cta-block h2 { font-size: clamp(28px, 6vw, 44px) !important; }
  .cta-block .row { flex-direction: column; align-items: stretch; }
  .cta-block .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }

  /* Logo wall */
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-wall .cell:nth-child(2n) { border-right: 0; }
  .logo-wall .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .logo-wall .cell:nth-child(6n) { border-right: 1px solid var(--line); }
  .logo-wall .cell:nth-child(2n) { border-right: 0 !important; }

  /* Process steps */
  .process-step { padding: 32px 0; }
  .process-step h3 { font-size: 22px; }
  .process-step .num { font-size: 14px; }

  /* Testimonials */
  .testi-card { flex: 0 0 280px; padding: 24px; }
  .testi-card blockquote { font-size: 15px; }
  .testimonials { padding: 64px 0; }

  /* FAQ */
  .faq-item summary { font-size: 16px; padding: 18px 0; }
  .faq-item .ans { font-size: 14px; }

  /* Locations */
  .impact-grid, .locs-grid { grid-template-columns: 1fr !important; }
  .impact-cell, .loc { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .impact-cell:last-child, .loc:last-child { border-bottom: 0 !important; }

  /* Buttons sizing */
  .btn { padding: 10px 16px; font-size: 13px; }

  /* Numbered services */
  .num-services { gap: 0; }
  .num-service { padding: 28px 0; }

  /* FAB / Quick jump */
  .fab { bottom: 16px; right: 16px; padding: 10px 14px; font-size: 13px; }
  .fab .fab-label { display: none; }

  /* Wrap any wide table in horizontal scroll */
  .audit-table-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .audit-table { min-width: 720px; }
  .audit-table th, .audit-table td { padding: 12px 14px; font-size: 13px; }
}

/* ---------- Small tablet/large mobile: 600px ---------- */
@media (max-width: 600px) {
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 100%; }
  .hero-meta .v { font-size: 18px; }
  .hero-meta .k { font-size: 10px; letter-spacing: 0.08em; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .testi-card { flex: 0 0 calc(100vw - 64px); max-width: 360px; }
  .audit-table { min-width: 600px; }
}

/* ---------- Mobile: 480px ---------- */
@media (max-width: 480px) {
  .container, .container-wide { width: calc(100% - 24px); }
  section.block { padding: 48px 0; }

  h1 { font-size: clamp(28px, 9vw, 40px) !important; }
  h2 { font-size: clamp(22px, 7vw, 32px) !important; }

  /* Hero stats — keep horizontal 3 columns on mobile */
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-meta .v { font-size: 16px; }
  .hero-meta .k { font-size: 9px; letter-spacing: 0.06em; }

  /* Stats stack to single column */
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .stat:last-child { border-bottom: 0; }

  /* Logo wall single column */
  .logo-wall { grid-template-columns: 1fr; }
  .logo-wall .cell { border-right: 0 !important; border-bottom: 1px solid var(--line); }

  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: auto; }

  /* Header */
  .site-header .inner { gap: 6px; padding: 0 4px; }
  .brand { font-size: 14px; }
  .brand .logo-mark { width: 24px; height: 24px; }
  .header-actions .btn { padding: 7px 12px; font-size: 12px; }
  .menu-toggle { width: 36px; height: 36px; }
  .header-actions .btn-icon { width: 36px; height: 36px; }

  /* CTA block */
  .cta-block { padding: 32px 18px; }

  /* Process visual hidden by default in 960 already */
  .process-step h3 { font-size: 20px; }
  .process-step p { font-size: 14px; }

  /* Testimonials cards smaller */
  .testi-card { flex: 0 0 calc(100vw - 56px); max-width: 320px; padding: 22px; }
  .testi-card blockquote { font-size: 14px; }
  .testimonials { padding: 48px 0; }

  /* FAQ */
  .faq-item summary { font-size: 15px; padding: 16px 0; }

  /* Eyebrow / kicker tags */
  .kicker, .eyebrow { font-size: 11px; letter-spacing: 0.08em; }

  /* Site footer reduce padding */
  .site-footer { padding: 48px 0 28px; }

  /* Buttons full-width primary CTAs */
  .hero-ctas .btn,
  .cta-block .btn { width: 100%; }

  /* Cases */
  .case { padding: 24px; }

  /* Services */
  .service { padding: 24px; }
  .service h3 { font-size: 18px; }

  /* Audit table — make rows readable */
  .audit-table th, .audit-table td { padding: 10px 12px; font-size: 12px; }
  .audit-table .findings { white-space: nowrap; font-size: 11px; }
}

/* ---------- Small mobile: 360px ---------- */
@media (max-width: 360px) {
  .container, .container-wide { width: calc(100% - 16px); }
  h1 { font-size: clamp(24px, 9vw, 32px) !important; }
  h2 { font-size: clamp(20px, 7vw, 28px) !important; }
  .header-actions .btn { padding: 6px 10px; font-size: 11px; }
  .brand span:not(.logo-mark) { display: none; } /* hide brand text, keep logo */
  .menu-toggle { width: 34px; height: 34px; }
}

/* ---------- Touch device tweaks ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn:hover { transform: none; }
  .testi-rail { -webkit-overflow-scrolling: touch; }
  /* Larger tap targets */
  .nav a, .footer-grid a { min-height: 44px; display: flex; align-items: center; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .menu-toggle, .fab { display: none !important; }
}
