/* QVOB — Quantitative Venture Operating & Buyouts
 * Aesthetic: Pure White, Brushed Metallic Silver, Deep Titanium Graphite
 * Modern CSS: State-aware sticky header, scroll-driven reveal, native popover nav
 */

:root {
  --header-height: 76px;
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-platinum: #f1f5f9;
  --border-silver: #cbd5e1;
  --border-hairline: #e2e8f0;
  --ink-950: #0f172a;
  --ink-800: #1e293b;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --steel-accent: #1e40af;
  --steel-bright: #2563eb;
  --emerald-ink: #047857;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --burn-ink: #b91c1c;
  --burn-soft: #ef4444;
  --burn-bg: #fef2f2;
  --burn-border: #fecaca;

  --metal-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 54%, #eef2f6 100%);
  --metal-bezel: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #f8fafc 100%);
  --metal-shadow:
    0 12px 32px -8px rgba(15, 23, 42, 0.06),
    0 2px 6px -1px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --metal-shadow-lg:
    0 24px 48px -12px rgba(15, 23, 42, 0.1),
    0 4px 12px -2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 18px);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--ink-950);
  line-height: 1.55;
  overflow-x: clip;
  background-image:
    radial-gradient(1100px circle at 82% -120px, rgba(226, 232, 240, 0.55), transparent 60%),
    radial-gradient(900px circle at 10% 10%, rgba(241, 245, 249, 0.8), transparent 55%);
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* Precision Architectural Grid Backdrop */
.architectural-grid {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Brushed Metallic Surface */
.metal-surface {
  background: var(--metal-card);
  border: 1px solid var(--border-silver);
  box-shadow: var(--metal-shadow);
}

.metal-surface-soft {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--metal-shadow);
}

.metal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border-silver);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(15, 23, 42, 0.04);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel-accent);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.status-dot.emerald {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}

/* Sticky Sentinel & Header (modern-web-guidance: state-aware + fallback) */
.sticky-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  container-type: scroll-state;
  container-name: main-header;
  overflow-anchor: none;
}

.header-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@container main-header scroll-state(stuck: top) {
  .header-bar {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border-silver);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.09);
  }
}

.site-header.is-stuck .header-bar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border-silver);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.09);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-950);
  line-height: 1.05;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-hairline);
}

.primary-nav.is-wide .nav-links {
  display: flex;
}

.primary-nav.is-wide .mobile-menu-btn {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.85);
}

.nav-link.is-active {
  color: var(--ink-950);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07), inset 0 0 0 1px var(--border-silver);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-silver);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: var(--ink-950);
  cursor: pointer;
}

/* Native Popover Mobile Navigation */
#mobile-nav-menu {
  margin: 0;
  inset: unset;
  top: calc(var(--header-height) + 8px);
  right: 16px;
  left: 16px;
  max-width: 420px;
  margin-left: auto;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border-silver);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: var(--metal-shadow-lg);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
}

#mobile-nav-menu:popover-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  #mobile-nav-menu:popover-open {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-800);
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
}

.mobile-nav-link:hover {
  background: #f1f5f9;
  border-color: var(--border-silver);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-block: clamp(42px, 5vw, 72px) clamp(52px, 6vw, 84px);
  border-bottom: 1px solid var(--border-hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.hero-grid > *,
.sim-grid > *,
.case-panel > *,
.tl-detail > *,
.contact-grid > *,
.adv-grid > *,
.bench-grid > *,
.timeline-steps > *,
.hero-kpi-strip > *,
.stage-metrics-grid > *,
.sim-kpi-banner > * {
  min-width: 0;
}

.hero-title {
  margin: 16px 0 16px;
  font-size: clamp(1.95rem, 3.8vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.09;
  color: var(--ink-950);
  overflow-wrap: break-word;
}

.hero-title .metallic-gradient-text {
  background: linear-gradient(135deg, #0f172a 15%, #334155 55%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--ink-600);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: var(--ink-950);
  border: 1px solid var(--border-silver);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--ink-400);
}

.hero-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-kpi-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(155deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
}

.hero-kpi-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}

.hero-kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Live Hero Transformation Stage (Interactive Auto-Playing Instrument Panel) */
.hero-stage {
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.stage-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.stage-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-phase-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-hairline);
}

.phase-tab {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.phase-tab.is-active {
  background: #ffffff;
  color: var(--ink-950);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), inset 0 0 0 1px var(--border-silver);
}

.stage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stage-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.stage-metric-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-500);
}

.stage-metric-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
  transition: color 0.3s ease;
}

.stage-metric-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.delta-positive {
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 1px solid var(--emerald-border);
}

.delta-burn {
  background: var(--burn-bg);
  color: var(--burn-ink);
  border: 1px solid var(--burn-border);
}

.delta-neutral {
  background: #f1f5f9;
  color: var(--ink-600);
  border: 1px solid var(--border-silver);
}

/* Visual Animated Bars + Trajectory SVG */
.stage-visual-box {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 78px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bar-row:last-of-type {
  margin-bottom: 0;
}

.bar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-600);
}

.bar-track {
  height: 11px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease;
}

.bar-fill.burn {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

.bar-fill.revenue {
  background: linear-gradient(90deg, #475569, #1e40af);
}

.bar-fill.valuation {
  background: linear-gradient(90deg, #059669, #047857);
}

.bar-readout {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-950);
}

.stage-chart-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-silver);
}

.stage-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 6px;
}

.legend-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-swatch {
  width: 9px;
  height: 3px;
  border-radius: 2px;
}

.stage-footer-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-500);
}

/* General Section Framing */
.section {
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--border-hairline);
}

.section-subtle {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-title {
  margin: 12px 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-950);
}

.section-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-600);
}

/* Interactive Value & Burn Simulator */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 24px;
  align-items: stretch;
}

.sim-controls {
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-silver);
  background: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--ink-500);
  color: var(--ink-950);
}

.preset-btn.is-active {
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: #ffffff;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slider-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 6px;
}

.slider-val-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-silver);
  color: var(--ink-950);
}

input[type="range"].qvob-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 100%);
  outline: none;
  cursor: pointer;
}

input[type="range"].qvob-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border: 2px solid var(--ink-950);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}

input[type="range"].qvob-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"].qvob-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border: 2px solid var(--ink-950);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.sim-results {
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.sim-kpi-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sim-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 14px;
}

.sim-kpi-card.highlight {
  background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%);
  border-color: var(--emerald-border);
}

.sim-kpi-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

.sim-kpi-num {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  margin-top: 4px;
}

.sim-kpi-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  margin-top: 3px;
}

.sim-chart-panel {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 16px;
}

.waterfall-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  height: 170px;
  padding-top: 18px;
  border-bottom: 1px solid var(--border-silver);
}

.wf-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.wf-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-950);
}

.wf-bar {
  width: 62%;
  max-width: 58px;
  border-radius: 8px 8px 0 0;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 14px;
}

.wf-bar.cost-before {
  background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
}

.wf-bar.cost-after {
  background: linear-gradient(180deg, #94a3b8 0%, #475569 100%);
}

.wf-bar.rev-after {
  background: linear-gradient(180deg, #60a5fa 0%, #1e40af 100%);
}

.wf-bar.ebitda-after {
  background: linear-gradient(180deg, #34d399 0%, #047857 100%);
}

.wf-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-600);
}

/* Case Studies Interactive Lab */
.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.case-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-silver);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.case-tab:hover {
  border-color: var(--ink-500);
  color: var(--ink-950);
}

.case-tab.is-active {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.case-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.2);
}

.case-tab.is-active .case-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.case-panel {
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
}

.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-summary {
  margin: 0 0 18px;
  color: var(--ink-600);
  font-size: 14.5px;
}

.case-pillars {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.case-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--ink-800);
}

.pillar-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--steel-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

.case-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-silver);
  border-radius: 18px;
  padding: 20px;
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px rgba(15, 23, 42, 0.05);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ba-box {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-hairline);
  background: #f8fafc;
}

.ba-box.after {
  background: linear-gradient(155deg, #ffffff 0%, #ecfdf5 100%);
  border-color: var(--emerald-border);
}

.ba-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-500);
}

.ba-box.after .ba-lbl {
  color: var(--emerald-ink);
}

.ba-val {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--ink-950);
}

.ba-sub {
  font-size: 11.5px;
  color: var(--ink-600);
  margin-top: 2px;
}

/* Dual Comparison Bars in Case Visual */
.compare-bars {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}

.cmp-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.cmp-dual-track {
  display: grid;
  gap: 4px;
}

.cmp-bar-bg {
  height: 9px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.cmp-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Founder Advantages & Interactive 90-Day Playbook */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.adv-card {
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adv-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--metal-shadow-lg);
}

.adv-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
  border: 1px solid var(--border-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-950);
  margin-bottom: 14px;
}

.adv-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.adv-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
}

/* Interactive 90-Day Stepper */
.timeline-box {
  border-radius: 22px;
  padding: 26px;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tl-step-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tl-step-btn:hover {
  border-color: var(--border-silver);
}

.tl-step-btn.is-active {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border-color: var(--ink-950);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.tl-day {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--steel-accent);
  text-transform: uppercase;
}

.tl-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-950);
  margin-top: 4px;
}

.tl-detail {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.tl-deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.tl-deliv {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-800);
}

.tl-meter {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(155deg, #f8fafc 0%, #eef2f6 100%);
  border: 1px solid var(--border-silver);
}

/* 250+ Specialist Operating Bench */
.bench-banner {
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bench-card {
  background: #ffffff;
  border: 1px solid var(--border-silver);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.bench-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-950);
}

.bench-role {
  font-size: 15px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--ink-950);
}

.bench-desc {
  font-size: 12.5px;
  color: var(--ink-600);
  margin: 8px 0 12px;
}

.bench-meter {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bench-meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #334155, #1e40af);
  border-radius: 999px;
}

/* Comparison Matrix Table */
.matrix-wrap {
  margin-top: 28px;
  border-radius: 20px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-silver);
  box-shadow: var(--metal-shadow);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}

.matrix-table th,
.matrix-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.matrix-table th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

.matrix-table th.qvob-col,
.matrix-table td.qvob-col {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.7), rgba(236, 253, 245, 0.45));
  font-weight: 700;
  color: var(--ink-950);
  border-left: 1px solid var(--border-silver);
}

/* Confidential Founder Evaluation Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.channel-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-silver);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.eval-form-card {
  border-radius: 22px;
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-800);
}

.form-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-silver);
  background: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-950);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--steel-bright);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.brief-output {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--emerald-border);
  display: none;
}

.brief-output.is-open {
  display: block;
}

/* Footer */
.site-footer {
  padding-block: 36px;
  background: #f8fafc;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* Scroll Entry Animations (modern-web-guidance progressive enhancement) */
.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @keyframes qvob-reveal-up {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .scroll-driven-panel {
    animation: qvob-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-card,
  .scroll-driven-panel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bar-fill,
  .wf-bar,
  .cmp-bar-fill {
    transition: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .sim-grid,
  .case-panel,
  .contact-grid,
  .tl-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .adv-grid,
  .bench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-kpi-strip,
  .stage-metrics-grid,
  .sim-kpi-banner,
  .adv-grid,
  .bench-grid,
  .timeline-steps,
  .tl-deliverables,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bar-row {
    grid-template-columns: 82px minmax(0, 1fr) 62px;
  }
  .header-cta {
    display: none;
  }
  .metal-pill {
    max-width: 100%;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .stage-footer-note {
    flex-wrap: wrap;
    gap: 8px;
  }
}
