/* ============================================
   Horizon Two Labs — v4 Design System
   "Tech-Cream & Silent Luxury"
   Fraunces + DM Sans | Light-mode | Glassmorphism
   ============================================ */

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

:root {
  /* --- Tech-Cream palette --- */
  --cream:       #f7f5f0;
  --cream-warm:  #fffdf8;
  --cream-mid:   #f0ede6;
  --cream-cool:  #e8e5de;

  /* --- Deep Slate / Institutional Navy --- */
  --slate-950:   #1a1f2e;
  --slate-900:   #242a3b;
  --slate-800:   #333a4f;
  --slate-700:   #4b5568;
  --slate-600:   #64748b;
  --slate-500:   #7c8698;
  --slate-400:   #94a3b8;
  --slate-300:   #b0bec5;

  /* --- Semantic accents (extreme restraint) --- */
  --emerald:     #3b7c6e;
  --emerald-dim: rgba(59,124,110,0.08);
  --emerald-glow:rgba(59,124,110,0.18);
  --blue:        #3b6b9e;
  --blue-dim:    rgba(59,107,158,0.08);
  --amber:       #b45309;
  --amber-dim:   rgba(180,83,9,0.08);
  --violet:      #6d5a9e;
  --violet-dim:  rgba(109,90,158,0.08);

  /* --- Typography --- */
  --font-serif:  'Fraunces', serif;
  --font-sans:   'DM Sans', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* --- Layout --- */
  --max-w:       1240px;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;

  /* --- Easing --- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Glass --- */
  --glass-bg:    rgba(255,253,248,0.55);
  --glass-border:rgba(26,31,46,0.06);
  --glass-blur:  20px;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--slate-700);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--emerald); color: white; }

a { color: var(--emerald); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--slate-950); }

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

/* ============================================
   TYPOGRAPHY — Silent Luxury
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--slate-950);
  line-height: 1.12;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.lead {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--slate-600);
  max-width: 640px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--emerald);
}

/* Serif highlight gradient */
.highlight {
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-spring);
}
.reveal-scale.visible { opacity: 1; transform: scale(1) translateY(0); }

/* ============================================
   NAVIGATION — Frosted glass
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  transition: all 0.4s var(--ease-out);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247,245,240,0.8);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(26,31,46,0.06);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.scrolled::before { opacity: 1; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 80px;
  position: relative;
  z-index: 1;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--emerald); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--slate-950); }
.nav-links a.active { color: var(--slate-950); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--emerald);
  border-radius: 1px;
}

/* Nav CTA */
.nav-links a.btn-nav {
  color: var(--cream);
}
.nav-links a.btn-nav:hover { color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-950);
  margin: 6px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   BUTTONS — Refined, not startup
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--slate-950);
  color: var(--cream);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,31,46,0.18);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid rgba(26,31,46,0.15);
}
.btn-ghost:hover {
  color: var(--slate-950);
  border-color: rgba(26,31,46,0.35);
  background: rgba(26,31,46,0.03);
}

.btn-sm { padding: 12px 24px; font-size: 0.82rem; }

.btn-arrow::after {
  content: '\2192';
  margin-left: 4px;
  transition: transform 0.3s var(--ease-spring);
}
.btn-arrow:hover::after { transform: translateX(5px); }

.btn-emerald {
  background: var(--emerald);
  color: white;
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--emerald-glow);
  color: white;
}

/* ============================================
   HERO — Full viewport with canvas bg
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--cream);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 44px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sub-page hero (shorter, no full-viewport) */
.hero-sub {
  min-height: auto;
  padding: 180px 0 100px;
}

/* Trust bar in hero */
.hero-trust {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(26,31,46,0.08);
}
.trust-items { display: flex; gap: 40px; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}
.trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
  animation: pulse-dot 3s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 120px 0;
  position: relative;
}

.section-cream { background: var(--cream); }
.section-warm  { background: var(--cream-warm); }
.section-mid   { background: var(--cream-mid); }
.section-dark  {
  background: var(--slate-950);
  color: var(--slate-300);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lead { color: var(--slate-400); }
.section-dark .section-label { color: rgba(59,124,110,0.9); }
.section-dark a { color: rgba(59,124,110,0.9); }
.section-dark a:hover { color: #fff; }

.section-header { margin-bottom: 64px; }
.section-header .lead { margin-top: 14px; }

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26,31,46,0.06), 0 1px 3px rgba(26,31,46,0.04);
  border-color: rgba(26,31,46,0.1);
}

/* Mouse-follow radial on cards */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59,124,110,0.04), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; line-height: 1.75; color: var(--slate-600); }

/* Dark-section cards */
.section-dark .card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}
.section-dark .card:hover {
  border-color: rgba(59,124,110,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.section-dark .card p { color: var(--slate-400); }

/* Accent lines on cards (no emoji, no icons) */
.card-accent {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.card-accent--emerald { background: var(--emerald); }
.card-accent--blue    { background: var(--blue); }
.card-accent--violet  { background: var(--violet); }
.card-accent--amber   { background: var(--amber); }

/* Numbered cards */
.num-card { counter-increment: num-card; }
.num-card::after {
  content: counter(num-card, decimal-leading-zero);
  position: absolute;
  top: 28px; right: 32px;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(26,31,46,0.04);
  pointer-events: none;
}
.section-dark .num-card::after {
  color: rgba(255,255,255,0.04);
}

/* ============================================
   BENTO GRID — Asymmetrical layout
   ============================================ */

.bento {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}
.bento-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  position: relative;
}
.bento-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26,31,46,0.06);
  border-color: rgba(26,31,46,0.1);
}

.bento-span-8  { grid-column: span 8; }
.bento-span-7  { grid-column: span 7; }
.bento-span-6  { grid-column: span 6; }
.bento-span-5  { grid-column: span 5; }
.bento-span-4  { grid-column: span 4; }
.bento-span-3  { grid-column: span 3; }
.bento-span-12 { grid-column: span 12; }
.bento-row-2   { grid-row: span 2; }

.section-dark .bento-item {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  padding: 64px 0;
  background: var(--cream-mid);
  border-top: 1px solid rgba(26,31,46,0.05);
  border-bottom: 1px solid rgba(26,31,46,0.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--slate-950);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-item p {
  font-size: 0.85rem;
  color: var(--slate-500);
  max-width: 200px;
  margin: 0 auto;
}

/* ============================================
   BRIDGE SECTION
   ============================================ */

.bridge-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}
.bridge-pillar {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.bridge-pillar h3 { margin-bottom: 10px; }
.bridge-pillar p { font-size: 0.9rem; color: var(--slate-600); }

.bridge-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bridge-line {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
  position: relative;
}
.bridge-line::after {
  content: '';
  position: absolute;
  right: -6px; top: -4px;
  width: 0; height: 0;
  border-left: 8px solid var(--blue);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ============================================
   VENTURE CARDS
   ============================================ */

.venture-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.venture-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26,31,46,0.06);
  border-color: rgba(26,31,46,0.1);
}

.section-dark .venture-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.venture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.venture-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--slate-950);
}
.section-dark .venture-name { color: #fff; }

.venture-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.venture-badge.active {
  background: var(--emerald-dim);
  color: var(--emerald);
}
.venture-badge.past {
  background: rgba(26,31,46,0.04);
  color: var(--slate-500);
}
.section-dark .venture-badge.past {
  background: rgba(255,255,255,0.04);
  color: var(--slate-400);
}

.venture-card p { font-size: 0.92rem; color: var(--slate-600); }
.section-dark .venture-card p { color: var(--slate-400); }

.venture-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.venture-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(26,31,46,0.04);
  color: var(--slate-500);
  border: 1px solid rgba(26,31,46,0.06);
}
.section-dark .venture-tag {
  background: rgba(255,255,255,0.04);
  color: var(--slate-400);
  border-color: rgba(255,255,255,0.06);
}

.venture-metric {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(26,31,46,0.06);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-500);
}
.venture-metric strong { color: var(--emerald); font-weight: 600; }
.section-dark .venture-metric { border-color: rgba(255,255,255,0.04); }

/* ============================================
   SERVICE DETAIL — Two-column layout
   ============================================ */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 72px 0;
  border-bottom: 1px solid rgba(26,31,46,0.06);
}
.service-detail:last-child { border-bottom: none; }
.service-detail h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.service-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--emerald);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.section-dark .service-detail { border-color: rgba(255,255,255,0.04); }

.service-list { list-style: none; }
.service-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 0.93rem;
  color: var(--slate-600);
  border-bottom: 1px solid rgba(26,31,46,0.04);
}
.section-dark .service-list li {
  color: var(--slate-300);
  border-color: rgba(255,255,255,0.04);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  border-radius: 2px;
  border: 2px solid var(--emerald);
  background: transparent;
  transition: all 0.3s;
}
.service-list li:hover::before {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald-glow);
}

/* ============================================
   CAPABILITY LIST
   ============================================ */

.cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.cap-item {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(26,31,46,0.03);
  border: 1px solid rgba(26,31,46,0.06);
  color: var(--slate-600);
  transition: all 0.3s;
}
.cap-item:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}
.section-dark .cap-item {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: var(--slate-300);
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease-out);
}
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26,31,46,0.06);
  border-color: rgba(26,31,46,0.1);
}
.process-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(26,31,46,0.06);
  margin-bottom: 16px;
}
.process-step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.process-step p { font-size: 0.88rem; color: var(--slate-600); }
.process-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald);
  letter-spacing: 0.08em;
  margin-top: 16px;
  text-transform: uppercase;
}

/* ============================================
   BEFORE/AFTER SLIDER
   ============================================ */

.ba-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  user-select: none;
  touch-action: pan-y;
}
.ba-panel {
  padding: 48px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ba-before {
  background: var(--cream-mid);
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  z-index: 1;
}
.ba-after {
  background: var(--slate-950);
  color: var(--slate-300);
}
.ba-after h3, .ba-after h4 { color: #fff; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 52px;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  background: linear-gradient(to right, transparent 24px, var(--emerald) 24px, var(--emerald) 28px, transparent 28px);
}
.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 4px 16px var(--emerald-glow);
}
.ba-handle::before {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  z-index: 11;
  pointer-events: none;
}
.ba-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ba-before .ba-label { color: var(--slate-500); }
.ba-after .ba-label { color: var(--emerald); }

/* ============================================
   NODE WORKFLOW VISUALIZER
   ============================================ */

.node-viz {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius);
  background: var(--cream-warm);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.node-viz svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ============================================
   ROI CALCULATOR
   ============================================ */

.roi-calc {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 44px;
}
.roi-calc h3 { margin-bottom: 24px; }

.roi-input-group {
  margin-bottom: 24px;
}
.roi-input-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-950);
  margin-bottom: 8px;
}
.roi-input-group .roi-hint {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.roi-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--cream-cool);
  outline: none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--emerald-glow);
}
.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  border: none;
}

.roi-value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--slate-950);
  margin-top: 8px;
}

.roi-results {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(26,31,46,0.06);
}
.roi-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.roi-result-item h4 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 4px;
}
.roi-result-item p {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--cream-mid);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(59,124,110,0.05), transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(59,107,158,0.04), transparent 50%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 520px; margin: 0 auto 40px; color: var(--slate-600); }
.cta-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Dark CTA variant */
.cta-banner.cta-dark {
  background: var(--slate-950);
}
.cta-banner.cta-dark h2 { color: #fff; }
.cta-banner.cta-dark p { color: var(--slate-400); }
.cta-banner.cta-dark::before {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(59,124,110,0.06), transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(59,107,158,0.04), transparent 50%);
}

/* ============================================
   QUOTE BLOCK
   ============================================ */

.quote-block {
  position: relative;
  padding: 44px 44px 44px 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 20px; left: 24px;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--emerald);
  opacity: 0.3;
}
.quote-block p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--slate-700);
  line-height: 1.85;
}
.quote-attr {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-500);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--slate-950);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.93rem;
  font-family: var(--font-sans);
  border: 1px solid rgba(26,31,46,0.1);
  border-radius: var(--radius-sm);
  background: var(--cream-warm);
  color: var(--slate-950);
  transition: all 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-dim), 0 0 16px var(--emerald-glow);
  background: #fff;
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--cream-warm); color: var(--slate-950); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============================================
   SCROLLING TECH BAR
   ============================================ */

.logo-bar {
  overflow: hidden;
  padding: 44px 0;
  position: relative;
  background: var(--cream-mid);
  border-top: 1px solid rgba(26,31,46,0.05);
  border-bottom: 1px solid rgba(26,31,46,0.05);
}
.logo-bar::before, .logo-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.logo-bar::before { left: 0; background: linear-gradient(90deg, var(--cream-mid), transparent); }
.logo-bar::after  { right: 0; background: linear-gradient(-90deg, var(--cream-mid), transparent); }

.logo-track {
  display: flex;
  gap: 64px;
  animation: scroll-logos 35s linear infinite;
}
.logo-track span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  white-space: nowrap;
  opacity: 0.7;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   KINETIC HEADLINE — variable weight on scroll
   ============================================ */

.kinetic-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--slate-950);
  letter-spacing: -0.03em;
  transition: font-weight 0.1s ease;
  font-variation-settings: 'wght' var(--kinetic-weight, 400);
}
.section-dark .kinetic-headline { color: #fff; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(26,31,46,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--slate-400);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--slate-500);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--slate-400); font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: 0.8rem; text-align: center; color: var(--slate-500); }

.footer .nav-logo { color: #fff; }
.footer .nav-logo span { color: rgba(59,124,110,0.9); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-span-8, .bento-span-7  { grid-column: span 6; }
  .bento-span-5, .bento-span-4  { grid-column: span 6; }
  .bento-span-3  { grid-column: span 3; }
}

@media (max-width: 960px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid    { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bridge-visual { grid-template-columns: 1fr; gap: 0; justify-items: center; }
  .bridge-connector { flex-direction: column; padding: 16px 0; text-align: center; }
  .bridge-line { width: 2px; height: 40px; }
  .bridge-line::after {
    border-left: none;
    border-top: 8px solid var(--blue);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: none;
    top: auto; bottom: -8px; right: auto; left: 50%;
    transform: translateX(-50%);
  }
  .bento { grid-template-columns: 1fr; }
  .bento-span-8, .bento-span-7, .bento-span-6,
  .bento-span-5, .bento-span-4, .bento-span-3 { grid-column: span 1; }
  .roi-result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-sub { padding: 130px 0 60px; }
  .process-steps { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--cream-warm);
    padding: 24px 32px;
    border-bottom: 1px solid rgba(26,31,46,0.06);
    box-shadow: 0 20px 60px rgba(26,31,46,0.08);
  }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .trust-items { flex-direction: column; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .quote-block { padding: 28px 24px 28px 40px; }
  .quote-block::before { left: 14px; font-size: 2.5rem; }
  .cta-banner { padding: 72px 0; }
  .kinetic-headline { font-size: clamp(2rem, 6vw, 5.5rem); }
  .ba-panel { min-height: 320px; padding: 32px 24px; }
  .wp-modal { margin: 24px; padding: 36px 28px; }
  .wp-modal-fields { flex-direction: column; }
}

/* ============================================
   VENTURE CARD LINKS (clickable cards)
   ============================================ */

a.venture-card-link,
a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.venture-card-link:hover,
a.card-link:hover {
  color: inherit;
}
a.venture-card-link:hover .venture-name,
a.card-link:hover h3 {
  color: var(--emerald);
  transition: color 0.3s;
}
.section-dark a.venture-card-link:hover .venture-name,
.section-dark a.card-link:hover h3 {
  color: var(--emerald);
}

/* "Learn more" label on audience cards */
.card-link-label {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--emerald);
  transition: color 0.3s;
}
.section-dark .card-link-label { color: var(--emerald); }

/* Proof-point links on services page */
.proof-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--emerald);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.proof-link:hover {
  color: var(--emerald);
  border-bottom-color: var(--emerald);
}

/* ============================================
   WHITEPAPER EMAIL CAPTURE
   ============================================ */

.whitepaper-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--emerald);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.whitepaper-cta:hover {
  border-bottom-color: var(--emerald);
}

/* Modal overlay */
.wp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 46, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.wp-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wp-modal {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 24px;
  background: var(--cream-warm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 40px 120px rgba(26, 31, 46, 0.18);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s var(--ease-spring);
}
.wp-modal-overlay.active .wp-modal {
  transform: translateY(0) scale(1);
}

.wp-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--slate-400);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}
.wp-modal-close:hover { color: var(--slate-950); }

.wp-modal .section-label {
  margin-bottom: 12px;
}
.wp-modal h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.wp-modal-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.wp-modal-fields {
  display: flex;
  gap: 10px;
}
.wp-modal-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid rgba(26, 31, 46, 0.1);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--slate-950);
  outline: none;
  transition: border-color 0.3s;
}
.wp-modal-input::placeholder { color: var(--slate-400); }
.wp-modal-input:focus { border-color: var(--emerald); }

.wp-modal-fine {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--slate-400);
  line-height: 1.6;
}
